:root {
    --bg: #FAFAFA;
    --text: #172a24;
    /* Dark Rainforest Green */
    --accent: #172a24;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utility */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Navigation */
nav {
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    z-index: 100;
    /* mix-blend-mode: difference; REMOVED - poor contrast on complex bg */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links span,
.nav-links a {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-left: 2rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Better legibility */
}

.lang-switch {
    opacity: 0.9;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

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

@keyframes slowZoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.0);
    }
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 6vw;
    line-height: 1;
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    border-left: 1px solid white;
    padding-left: 1rem;
}

/* Intro Section */
.intro {
    padding: 10rem 0;
}

.big-text {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 300;
    max-width: 900px;
}

.intro-details {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
}

/* Split Options */
.options-section {
    background: var(--text);
    color: white;
    padding: 8rem 0;
}

.option-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    transition: all 0.5s ease;
    position: relative;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: white;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 1rem;
    width: 100%;
    grid-auto-flow: dense;
}

.bento-grid .grid-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 1px;
}

.bento-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.span-2x1 {
    grid-column: span 2;
}

.span-1x2 {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .span-2x2,
    .span-2x1,
    .span-1x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.opt-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.7rem;
    border: 1px solid white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.opt-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.opt-list {
    list-style: none;
    margin-bottom: 3rem;
}

.opt-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

/* Location Section */
.location-section {
    padding: 8rem 0;
    background: var(--bg);
}

.price {
    font-size: 3rem;
    /* Prominent Price */
    font-family: var(--font-display);
    margin: 1.5rem 0;
}

.btn-outline {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--text);
}

/* Gallery Carousel */
.gallery-container {
    position: relative;
    height: 70vh;
    background: #000;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    height: 100%;
    /* scroll-snap-type: x mandatory; Removed to allow fluid expansion */
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track .gallery-item {
    flex: 0 0 auto;
    width: 15vw;
    height: 100%;
    margin-right: 0;
    /* Seamless */
    transition: all 0.5s ease;
    cursor: pointer;
    border-right: 1px solid #111;
    position: relative;
    overflow: hidden;
}

.gallery-track .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) grayscale(0.2);
    transition: filter 0.5s ease;
    display: block;
}

.gallery-track .gallery-item:hover {
    width: 50vw;
}

.gallery-track .gallery-item:hover img {
    filter: brightness(1) grayscale(0);
}

/* Ensure icon works in carousel too */
.gallery-track .gallery-item:hover .expand-icon {
    opacity: 1;
    transform: translateY(0);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-btn.prev {
    left: 0;
}

.gallery-btn.next {
    right: 0;
}


/* Contact/Inquire Button */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    text-decoration: none;
    color: var(--text);
}

.btn:hover {
    background: var(--text);
    color: var(--bg);
}

/* Detailed Contact Block */
.contact-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-row {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.contact-row:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}

.contact-link {
    flex-grow: 1;
    text-decoration: none;
    color: white;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-link .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.contact-link .value {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.copy-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.close-lightbox:hover {
    color: var(--bg);
}

/* Grid Item Overlay */
.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.grid-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

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

.expand-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.expand-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.grid-item:hover .expand-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Play Icon Overlay */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    /* Force white context */
}

.play-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.play-icon svg path {
    fill: white !important;
    /* Brute force override for current color issues */
}

.grid-item:hover .play-icon,
.gallery-item:hover .play-icon,
.accordion-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.7);
    border-color: #fff;
}

/* Sanctuary Accordion */
.sanctuary-accordion {
    display: flex;
    overflow: hidden;
    gap: 4px;
}

.accordion-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: flex 0.5s ease;
    overflow: hidden;
    border-radius: 1px;
}

.accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.accordion-item:hover {
    flex: 3;
}

.accordion-item:hover img {
    transform: scale(1.03);
}

/* Ensure play/expand icons stay centered during accordion transition */
.accordion-item .play-icon,
.accordion-item .expand-icon {
    z-index: 2;
    /* Maintain centering logic from parent styles */
}

@media (max-width: 768px) {
    .sanctuary-accordion {
        flex-direction: column;
        height: auto !important;
        gap: 8px;
    }

    /* Sanctuary: Text first on mobile */
    #sanctuary .grid-2 {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .accordion-item {
        height: 180px;
        flex: none;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .accordion-item:hover {
        transform: scale(1.02);
    }
}

/* Heritage Collection */
.bg-dark {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

.heritage-card {
    text-align: left;
}

.heritage-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.heritage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.heritage-card:hover img {
    transform: scale(1.05);
}

.heritage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

.heritage-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.btn-outline-white {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: #1a1a1a;
    border-color: white;
}

/* Mobile Nav Styles */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

@media (max-width: 768px) {

    /* 1. Vertical Spacing Fixes */
    .intro,
    .options-section,
    .location-section,
    #sanctuary,
    #studio,
    #main-house,
    #heritage {
        padding: 4rem 0 !important;
    }

    .intro {
        padding: 6rem 2rem 4rem 2rem !important;
        /* Restore gap and horizontal padding */
    }

    .container {
        padding: 0 2rem;
    }

    /* 2. Typography Scaling */
    .big-text {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    h2,
    .section-header h2 {
        font-size: 2.5rem !important;
    }

    .hero h1 {
        font-size: 12vw;
    }

    /* 3. Gallery Carousel Improvements */
    .gallery-container {
        height: 60vh;
        /* Better fit for mobile */
    }

    .gallery-track {
        scroll-snap-type: x mandatory;
        padding-left: 7.5vw;
        /* Center the first item (100 - 85)/2 */
        padding-right: 7.5vw;
    }

    .gallery-track .gallery-item {
        width: 85vw;
        margin-right: 15px;
        /* Small gap between items */
        scroll-snap-align: center;
        /* Disable hover expansion on mobile */
    }

    .gallery-track .gallery-item:hover {
        width: 85vw;
        /* Reset hover expansion */
    }

    /* Ensure icon is visible on mobile without hover if desired, or relying on active state */
    .expand-icon {
        opacity: 0.8;
        transform: translateY(0);
        bottom: 1.5rem;
        right: 1.5rem;
    }

    /* 4. Bento Grid Fixes (2 Columns) */
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
        /* Slightly taller for better visibility */
        gap: 0.5rem;
    }

    .span-2x2,
    .span-2x1 {
        grid-column: span 2;
    }

    /* Let 1x1 items naturally flow */

    /* 5. Touch Targets Active States */
    .grid-item:active,
    .heritage-card:active,
    .gallery-item:active,
    .accordion-item:active,
    .btn:active,
    .btn-outline:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    /* Grid Fixes (Original) */
    .intro-details {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu */
    .hamburger {
        display: block;
        margin-right: 1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(23, 42, 36, 0.98);
        /* Brand Dark Green */
        backdrop-filter: blur(10px);
        display: flex;
        /* Added flex container */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 99;
        /* Below Hamburger */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a,
    .nav-links span {
        margin: 1.5rem 0;
        font-size: 1.5rem;
        margin-left: 0;
        /* Reset desktop margin */
    }
}