@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #C17F59;
    --primary-light: #D49D7E;
    --secondary: #4A5D4E;
    --accent: #D4AF37;
    --bg: #FDFBF9;
    --text: #1A1C1E;
    --text-muted: #626262;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(26, 28, 30, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Language Switching */
[data-lang="nl"] .lang-en { display: none !important; }
[data-lang="en"] .lang-nl { display: none !important; }

.lang-short { display: none; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /*margin-right: 1.5rem;*/
    background: rgba(255, 255, 255, 0.1);
    padding: 0 12px;
    border-radius: 20px;
    height: 32px;
}

.specs-grid {
		display: none !important;
    }

.lang-btn {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.5;
    transition: var(--transition);
}

.lang-btn.active {
    opacity: 1;
    color: var(--primary-light) !important;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
	position: relative;           /* Important for Safari */
    max-width: 100%;
	width: 100%;
	margin: 0;
    padding: 0;
    overflow-x: hidden !important;
	box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
	width: 100%;
}

section {
    padding: 8rem 0;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
	right: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    background: rgba(26, 28, 30, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s ease, box-shadow 0.4s ease;
	box-sizing: border-box;
}

header.scrolled {
    background: rgba(26, 28, 30, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem !important; /* Constant size as requested */
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
	height: 45px;
    transition: none; /* No scaling */
    flex-shrink: 0;
}

header.scrolled .logo {
    color: var(--white);
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

header.scrolled .nav-links a {
    color: var(--white);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}


header .btn-booking {
    color: var(--white);
    background: transparent;
    border: none;
    padding: 0.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

header .btn-booking.booking:hover {
    color: var(--white) !important;
    border-color: #003580;
    background: rgba(0, 53, 128, 0.15);   /* optional subtle blue tint */
}

header .btn-booking.booking:hover .btn-text {
    color: var(--white) !important;
}

/*header.scrolled .btn-booking {
    color: var(--white);
    background: transparent;
    border: none;
}*/

/*header .btn-booking:hover {
    color: var(--white);
    transform: translateY(-2px);
    background: transparent;
}*/


header .btn-booking.vrbo {
    /*background: rgba(255, 255, 255, 0.95);*/
    /*padding: 0.4rem 0.8rem;*/
    border-radius: 8px;
    /*box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.5);*/
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.4rem;
    transition: all 0.3s ease;
}

header .btn-booking.vrbo svg {
    width: 70px;
    height: auto;
}


header .btn-booking.vrbo .btn-text {
    color: #00bafc;
    font-weight: 700;
}

header .btn-booking.vrbo:hover {
    /*background: #ffffff;*/
    /*box-shadow: 0 0 25px 5px rgba(255, 255, 255, 0.8);*/
    transform: translateY(-2px) scale(1.02);
	/*fill: var(--white) !important;*/
}




/* --- Booking Buttons --- */

.booking-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-booking {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    /*transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                color 0.4s ease, 
                border-color 0.4s ease;*/
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: inherit;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.btn-booking svg {
    width: 30px;
    height: 30px;
}


.btn-booking.vrbo svg {
    width: 85px;
    /*height: auto;*/
}

.btn-booking.airbnb:hover {
    border-color: #FF5A5F;
    color: #FF5A5F;
    transform: translateY(-3px);
	color: var(--white) !important;
}

.btn-booking.booking:hover {
    border-color: #003580;
    color: #003580;
    transform: translateY(-3px);
	color: var(--white) !important;
}

.btn-booking.vrbo:hover {
    border-color: #00bafc;
    color: #00bafc;
    transform: translateY(-3px);
}

.hero .booking-group {
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero .booking-label {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 1;
}



/* --- Hero Section --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transform: scale(1.1);
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Features Section --- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- Gallery --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-row: span 2;
}

/* --- Location --- */

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: #eef2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* --- Villa Specifics Grid --- */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Responsive Breakpoints --- */

/* Safari-specific horizontal overflow fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
	header {
        left: 0;
        right: 0;
        width: auto;             /* Let it stretch naturally */
        max-width: 100%;
    }
	
    html, body {
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    .container,
	nav,
    section,
	.nav-container,
    .hero,
    .about-grid,
    .location-wrapper,
    .gallery-grid {
        max-width: 100% !important;
        box-sizing: border-box;
    }
	.booking-group {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media (max-width: 1140px) {
    .nav-links li:nth-child(1) { display: none; } /* Hide 'The Villa' */
}

@media (max-width: 1040px) {
    .nav-links li:nth-child(2) { display: none; } /* Hide 'Amenities' */
}

@media (max-width: 968px) {
    .container { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .location-wrapper { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-item.large { grid-row: span 1; height: 400px; }
}

@media (max-width: 930px) {
    .nav-links { display: none !important; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image { order: 2; }
    .about-text { order: 1; text-align: center; }
    .about-text .stats { justify-content: center; }
}

@media (max-width: 730px) {
    /*.nav-container {
        padding: 0 0.5rem;
        width: 100% !important;
    }*/
    /*.nav-links {
        display: none !important;
    }*/
    header .booking-group {
        /*display: flex !important;*/
        gap: 0.25rem;
        /*flex-wrap: nowrap !important;
        flex-shrink: 0 !important;*/
        margin-left: auto;
		flex-shrink: 0;
    }
	
	.btn-booking {
        padding: 0.45rem 0.7rem;
        min-width: 42px;
        height: 42px;
        justify-content: center;
    }
	
	.btn-booking svg {
        width: 28px;
        height: 28px;
    }
	
	header .btn-booking.vrbo svg {
        width: 68px;   /* Slightly smaller on very tight screens */
    }
	
    /*header .booking-group .booking-label {
        display: none !important;
    }*/
    /*header .btn-booking {
        padding: 0.5rem;
        min-width: 44px;
        height: 44px;
        justify-content: center;
        flex-shrink: 0 !important;
    }*/
	
	.btn-booking .btn-text {
        display: none !important;
    }
	
    header .btn-booking svg {
        width: 30px;
        height: 30px;
        /*transition: var(--transition);*/
        /*flex-shrink: 0 !important;*/
    }
    header .btn-booking .btn-text {
        display: none !important;
    }
    nav {
        display: flex !important;
        /*justify-content: flex-start !important;*/
		justify-content: space-between !important;
        align-items: center;
        width: 100% !important;
        gap: 0.5rem;
        flex-wrap: nowrap !important;
    }
    /*header .logo {
        margin: 0 !important;
        text-align: left !important;
        flex-shrink: 0 !important;
    }*/
    /*.lang-switcher {
        margin: 0 0.5rem !important;
        gap: 0.2rem;
        flex-shrink: 0 !important;
        transform: scale(0.9);
    }*/
}

@media (max-width: 575px) {
    .hero-content h1 { font-size: 2.5rem; }
    .specs-grid {
        gap: 1rem;
    }
	/*.booking-group {
        flex-direction: column;
        gap: 0rem;
    }*/
    .lang-full { display: none !important; }
    .lang-short { display: inline !important; }
}

@media (max-width: 400px) {
    nav {
        gap: 0.3rem !important;
    }
    header .logo {
        font-size: 1.4rem !important; /* Slight reduction for ultra-tiny screens */
    }
    .lang-switcher {
        margin: 0 0.25rem !important;
        transform: scale(0.8);
    }
}


/* --- Carousel --- */

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 400px; /* Consitent with about image height */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text);
    opacity: 0;
    transition: var(--transition);
}

.carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* --- 404 Page --- */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FDFBF9;
    padding-top: 80px; /* Space for fixed header */
}

.error-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 2rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08); /* More subtle, premium shadow */
}

.error-img {
    height: 600px;
}

.error-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-content {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--text);
}

.error-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

@media (max-width: 980px) {
    .error-container { max-width: 900px; }
    .error-content { padding: 3rem; }
}

@media (max-width: 730px) {
    .error-container { 
        grid-template-columns: 1fr; 
        margin: 1rem; 
        max-width: 450px;
    }
    .error-img { height: 250px; }
    .error-content { padding: 2.5rem; text-align: center; }
    .error-content h1 { font-size: 2.5rem; }
    .error-page { padding-top: 60px; }
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation Links Spacing --- */

.nav-container {
    padding: 0 2rem;
}

nav {
    width: 100%;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

/* --- Hero Subtle Overlay --- */

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

/* --- Utility Typography --- */

.text-uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
/* --- Lightbox --- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 2010;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-control.prev { left: 40px; }
.lightbox-control.next { right: 40px; }

@media (max-width: 768px) {
    .lightbox-control {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.15);
    }
    .lightbox-control.prev { left: 15px; }
    .lightbox-control.next { right: 15px; }
    .lightbox-close { top: 15px; right: 15px; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
