:root {
    --primary: #2C3E30; /* Forest Green */
    --accent: #C5A059;  /* Matte Gold */
    --bg-light: #F9F7F2; /* Warm Beige */
    --bg-dark: #0D0F0D;
    --text-main: #2C3E30;
    --text-muted: #6B705C;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 40px 100px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(197, 160, 89, 0.3);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-3d: cubic-bezier(0.16, 1, 0.3, 1);
    
    --depth-foreground: 100px;
    --depth-mid: 40px;
    --depth-background: -50px;
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.reveal-text {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.fade-in {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.8;
}

/* --- Foundation Fix --- */
body {
    font-family: var(--font-body);
    color: var(--white);
    background-color: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.input-group input.error, .input-group textarea.error {
    border-color: #ff4d4d !important;
}

/* Global Overflow Fix */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
}

main {
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
    display: block;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.7rem;
    margin-top: 4px;
    display: block;
}

main {
    width: 100%;
    opacity: 0; /* JS will reveal this */
    visibility: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 10000;
}

/* --- Interactive 3D Card Glass System --- */
.premium-card {
    background: var(--glass);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    perspective: 1000px; /* Perspective local to card */
    transition: transform 0.6s var(--ease-3d), box-shadow 0.6s var(--ease-3d);
    position: relative;
    overflow: hidden;
}

.card-content-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-3d);
}

/* --- Micro-Animations & Breathing --- */
@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.breathe { animation: breathing 8s ease-in-out infinite; }
.float { animation: floating 6s ease-in-out infinite; }



.showcase-section {
    min-height: 100vh;
    background: #000;
    color: white;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Background Immersive Layers */
.showcase-bg-layers {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: translateZ(var(--depth-background));
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    scale: 1.1;
    filter: blur(15px) brightness(0.7); /* Slightly brighter and less blur */
    transition: opacity 1.5s var(--ease-cinematic), scale 2s var(--ease-cinematic);
}

.bg-layer.active {
    opacity: 1;
    scale: 1;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%); /* Lighter shadow */
    z-index: 2;
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left side: Text Layering */
.showcase-text {
    position: relative;
    min-height: 450px; /* Increased to balance with larger circle */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-layer {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateY(30px); /* Center and offset for animation */
}

.text-layer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateY(0);
}

.sc-subtitle {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.sc-title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.95;
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
}

.sc-desc {
    font-size: 1.1rem;
    max-width: 450px;
    opacity: 0.6;
    line-height: 1.6;
}

/* Right side: Circular visual */
.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-container {
    width: 600px;
    height: 600px;
    position: relative;
}

.image-wrap {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    /* Removed solid background fallback to prevent white screen flash */
}

.img-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    scale: 1.1;
    z-index: 1;
    will-change: opacity, transform, clip-path;
}

.img-layer.active {
    opacity: 1;
    scale: 1;
    z-index: 3; /* Always on top when active */
}

.img-layer.prev {
    opacity: 1;
    z-index: 2; /* Keep previous visible underneath during transition */
}

/* Interactive Ring */
.interaction-ring {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 1px;
}

.ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2px;
    stroke-dasharray: 301.6; /* 2 * PI * 48 */
    stroke-dashoffset: 301.6;
    stroke-linecap: round;
}

.draggable-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform-origin: center;
    cursor: grab;
    pointer-events: auto;
}

.draggable-dot:active { cursor: grabbing; }

.dot-inner {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 30px var(--accent);
    border: 3px solid white;
}

.dot-inner::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.2;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(3); opacity: 0; }
}

.circle-indicators {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.ind {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.2;
    transition: all 0.5s;
    letter-spacing: 0.1rem;
}

.ind.active { opacity: 1; color: var(--accent); }

.ind-0 { top: -20px; left: 50%; transform: translateX(-50%); }
.ind-1 { top: 15%; right: 10px; }
.ind-2 { top: 70%; right: 5px; }
.ind-3 { bottom: -15px; left: 75%; }
.ind-4 { bottom: -15px; left: 25%; }
.ind-5 { top: 70%; left: 5px; }
.ind-6 { top: 15%; left: 10px; }

/* --- Responsiveness for Circular Showcase --- */
@media (max-width: 1024px) {
    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 5vh;
        text-align: center;
        padding-top: 10vh;
    }

    .showcase-text {
        height: 250px;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .text-layer {
        width: 100%;
        left: unset;
    }

    .sc-desc {
        margin: 0 auto;
    }

    .showcase-visual {
        order: 1;
    }

    .circle-container {
        width: 350px;
        height: 350px;
    }

    .sc-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

@media (max-width: 480px) {
    .circle-container {
        width: 280px;
        height: 280px;
    }
    
    .image-wrap {
        inset: 20px;
    }
    
    .dot-inner {
        width: 18px;
        height: 18px;
        --ease-cinematic: cubic-bezier(0.85, 0, 0.15, 1);
    }
}

/* --- Interactive Core (Custom Cursor) --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s var(--ease-cinematic), height 0.3s var(--ease-cinematic), background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor.active {
    width: 70px;
    height: 70px;
    background: var(--accent);
    mix-blend-mode: normal;
}

.cursor-text {
    font-size: 10px;
    font-weight: 900;
    color: #121613;
    letter-spacing: 2px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .custom-cursor { display: none !important; }
}

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

html {
    scroll-behavior: initial;
    overflow-x: hidden;
}

section {
    position: relative;
    z-index: 1;
}

body {
    font-family: var(--font-body);
    color: var(--white);
    background-color: #0d0f0d; /* Deep Dark Forest */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; /* Fix mobile highlight */
}

input, textarea, button, a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--accent);
    color: #121613;
}

input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.3;
    cursor: pointer;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10000;
}

main {
    width: 100%;
    overflow: hidden;
    opacity: 0; /* Pre-revealed visibility safeguard */
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: #0d0f0d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-content {
    text-align: center;
    color: var(--white);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    color: var(--white);
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 2s var(--ease-cinematic) infinite;
}

@keyframes loading {
    to { left: 100%; }
}

/* --- 3D Impression Navigation --- */
#main-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 2000; /* Ensure it stays above everything */
    transition: all 0.8s var(--ease-3d);
}

.nav-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform-style: preserve-3d;
    transition: all 0.6s var(--ease-3d);
}

#main-nav.scrolled .nav-container {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    font-weight: 800;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding: 0.3rem;
    background: rgba(0,0,0,0.03);
    border-radius: 100px;
}

/* Background Pill Indicator */
.nav-pill {
    position: absolute;
    height: calc(100% - 0.6rem);
    background: #121613;
    border-radius: 100px;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    pointer-events: none;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    z-index: 2;
    transition: color 0.4s ease;
    white-space: nowrap;
}

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

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

.btn-primary.nav-btn {
    background: #121613;
    color: var(--white) !important;
    margin-left: 0.5rem;
}

#main-nav.scrolled .btn-primary.nav-btn {
    padding: 0.9rem 2.2rem;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000 !important;
    border-radius: 4px;
    transition: all 0.4s var(--ease-cinematic);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
    #main-nav { 
        width: 92%; 
        top: 1rem;
    }
    .nav-container {
        padding: 0.6rem 1.2rem;
    }
    .logo {
        font-size: 1.4rem;
        letter-spacing: 0.2rem;
    }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.6s var(--ease-3d);
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
        padding: 4rem 2rem;
        z-index: 1000;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        color: #121613;
        font-size: 1.2rem;
        padding: 1rem;
    }
    .nav-pill { display: none; }
}

@media (max-width: 480px) {
    #main-nav { width: 90%; }
    .logo { font-size: 1.2rem; letter-spacing: 0.1rem; }
    .nav-container { padding: 0.5rem 1rem; }
}

.btn-primary {
    background: #121613;
    color: var(--white) !important;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.4s var(--ease-cinematic) !important;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Utilities --- */
.vh-100 { min-height: 100vh; }
.vh-110 { min-height: 110vh; }
.vh-200 { min-height: 200vh; }
.padding-xl {
    padding: 2rem 0;
}
.container { width: 100%; padding: 0 5%; max-width: 1800px; margin: 0 auto; }
.container-large { width: 100%; padding: 0 4%; max-width: 2000px; }
.container-medium { width: 90%; max-width: 1200px; }
.text-center { text-align: center; }

img, video {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem); /* Increased size */
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

.glass {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 24px;
}

/* --- 3D Canvas --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Hero --- */
#hero {
    height: 100vh;
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero .hero-content {
    color: #000;
}

#hero .reveal-text, #hero .sub-title, #hero .fade-in {
    color: #000 !important;
}

.hero-overlay {
    background: radial-gradient(circle at center, rgba(255,255,255,0) 0%, rgba(251,250,248,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-text-wrap h1 {
    /* Merged into .reveal-text */
    color: #0d0f0d;
}

.sub-title {
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    font-size: 0.9rem;
    opacity: 1; /* removed opacity for full black */
    margin-bottom: 2rem;
    display: block;
    color: #000;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 1;
    line-height: 1.6;
    color: #000;
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #0d0f0d;
    z-index: 20;
}
.scroll-indicator span {
    opacity: 0.6;
}

/* --- Nature Reveal Section --- */
#nature-reveal {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 2;
}

#sequence-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

#legacy {
    background: #fff;
    padding: 10rem 0; /* Increased padding for more white space */
}

/* --- Legacy Section --- */
.legacy-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05); /* Softer shadow for white bg */
    background-color: #fff;
}

.legacy-card img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.legacy-overlay {
    position: relative;
    margin-top: -80px; 
    width: 100%;
    background: #fff; 
    color: var(--primary);
    padding: 3rem 4rem;
    padding-top: 7rem; /* pushes text safely down out of the torn area */
    z-index: 2;
    
    /* Torn paper effect via clip-path */
    clip-path: polygon(
        0% 15%, 5% 10%, 10% 15%, 15% 5%, 20% 12%, 25% 4%, 30% 15%, 35% 8%, 40% 14%, 45% 6%, 
        50% 12%, 55% 5%, 60% 14%, 65% 7%, 70% 15%, 75% 5%, 80% 13%, 85% 6%, 90% 14%, 95% 5%, 100% 12%,
        100% 100%, 0% 100%
    );
}

.legacy-content {
    text-align: left;
}

.legacy-script {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    display: block;
    margin-bottom: -1rem;
    opacity: 0.9;
}

.legacy-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.legacy-content p {
    font-size: 1.2rem;
    max-width: 500px;
    opacity: 0.9;
    font-weight: 300;
}

.legacy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.1rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 1px solid var(--text-main);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: 6px;
    background: var(--text-main);
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

#entry-reveal, #home-animation {
    position: relative;
    background: #000;
}

#entry-reveal .sticky-container, 
#home-animation .sticky-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#entry-canvas, #home-anim-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.reveal-card {
    padding: 4rem;
    max-width: 500px;
    text-align: left;
    color: white;
    border-radius: 40px;
}

.reveal-card h2 { 
    color: white; 
    margin-bottom: 1.5rem; 
    font-size: 3.5rem;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.reveal-card p { 
    opacity: 0.7; 
    font-size: 1.1rem; 
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.reveal-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.1s linear;
}

/* --- Nature Reveal Section --- */
#nature-reveal .sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.reveal-card {
    padding: 4rem;
    max-width: 500px;
    text-align: left;
    color: white;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.reveal-card h2 { 
    color: white; 
    margin-bottom: 1.5rem; 
    font-size: 3.5rem;
    line-height: 1.1;
}

.reveal-card p { 
    opacity: 0.7; 
    font-size: 1.1rem; 
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.reveal-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.1s linear;
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

/* --- Horizontal Scroll Section --- */
.h-scroll-section {
    overflow: hidden;
    background: #121613; /* Deepest Forest Green/Black */
    position: relative;
    height: 100vh;
}

.h-scroll-content {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 12vw;
    gap: 12vw;
    will-change: transform;
    transform-style: preserve-3d;
}

.scroll-card {
    min-width: 75vw;
    height: 70vh;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-dark);
    transform-style: preserve-3d;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 2.5s var(--ease-cinematic);
    transform: translateZ(-20px) scale(1.1);
}

.scroll-card:hover .card-bg {
    transform: translateZ(-20px) scale(1.2);
}

.card-info {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: white;
    max-width: 400px;
    transition: all 1s var(--ease-cinematic);
    transform: translateZ(var(--depth-mid));
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.card-info p {
    opacity: 0.7;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02rem;
}

@media (max-width: 1024px) {
    .scroll-card-inner { grid-template-columns: 1fr; }
    .card-bg { clip-path: none; height: 50vh; }
    .card-info { bottom: 2rem; left: 2rem; padding: 1.5rem; height: auto; max-width: 300px; }
    .card-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .card-info p { font-size: 0.85rem; line-height: 1.4; }
}

/* --- Amenities Grid --- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 6rem;
}

.amenity-item {
    padding: 6rem 4rem; /* Larger padding */
    text-align: center;
    transition: all 0.6s var(--ease-cinematic);
    transform-style: preserve-3d;
}

.amenity-item:hover {
    transform: translateY(-30px) rotateX(10deg);
}

.icon-wrap {
    margin-bottom: 2rem;
    font-size: 3rem;
    color: var(--accent);
    transform: translateZ(30px);
}

/* --- Location Section --- */
.location-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 600px;
    transform-style: preserve-3d;
}

.location-text {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sc-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 600;
}

.sc-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
    color: white;
}

.dist-list {
    list-style: none;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dist-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.dist-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.dist-item svg {
    color: var(--accent);
}

.dist-list strong {
    font-weight: 600;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.location-map {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.location-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform 1.5s var(--ease-cinematic);
}

.location-map:hover .location-visual-img {
    transform: scale(1.05);
}

.map-ui-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    padding: 2rem;
}

.map-ui-overlay * {
    pointer-events: auto;
}

.g-search-bar {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #333;
    font-size: 0.9rem;
}

.g-place-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 320px;
    padding: 1.5rem;
    background: rgba(13, 15, 13, 0.85); /* Matches our dark theme */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    .g-place-card {
        width: 260px;
        padding: 1rem;
        bottom: 1rem;
        left: 1rem;
        transform: scale(0.9);
    }
    .g-search-bar {
        padding: 0.5rem 1rem;
        top: 1rem;
        left: 1rem;
        font-size: 0.8rem;
    }
}

.g-place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.g-place-header h3 {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.g-place-header span {
    font-size: 0.75rem;
    color: var(--accent);
}

.g-place-card p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.g-actions {
    display: flex;
    gap: 0.8rem;
}

.g-btn-nav, .g-btn-save {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.g-btn-nav {
    background: #4285F4; /* Google Blue */
    color: white;
    text-decoration: none;
}

.g-btn-save {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.map-pin-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.map-pin {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 0 auto 1rem;
    animation: bounce 2s infinite ease-in-out;
}

.pin-head {
    width: 40px;
    height: 40px;
    background: #EA4335; /* Google Red */
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.4);
}

.pin-head::after {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.map-label {
    display: block;
    background: white;
    color: #333;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(197, 160, 89, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.booking-section {
    background: #000;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.input-group label {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
    transition: all 0.4s var(--ease-cinematic);
}

.input-group:focus-within label {
    color: var(--accent);
    transform: translateX(10px);
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding: 1.2rem 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s var(--ease-cinematic);
    width: 100%;
    border-radius: 0;
}

/* Fix for date picker highlight/white color */
input[type="date"] {
    color: rgba(255,255,255,0.2);
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: rgba(255,255,255,0.2);
}

input[type="date"]:focus::-webkit-datetime-edit-text,
input[type="date"]:focus::-webkit-datetime-edit-month-field,
input[type="date"]:focus::-webkit-datetime-edit-day-field,
input[type="date"]:focus::-webkit-datetime-edit-year-field,
input[type="date"]:valid::-webkit-datetime-edit-text,
input[type="date"]:valid::-webkit-datetime-edit-month-field,
input[type="date"]:valid::-webkit-datetime-edit-day-field,
input[type="date"]:valid::-webkit-datetime-edit-year-field {
    color: white;
}

input[type="date"]:focus,
input[type="date"]:valid {
    color: white;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove default focus ring on mobile/chrome */
input:focus-visible {
    outline: none;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d0f0d inset !important;
    -webkit-text-fill-color: white !important;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1300px;
    margin: 0 auto;
    background: #0d0f0d;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.booking-info-side {
    position: relative;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: white;
}

.info-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
}

.info-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 15, 13, 1) 0%, rgba(13, 15, 13, 0.4) 100%);
    z-index: 1;
}

.info-content-wrap {
    position: relative;
    z-index: 2;
}

.contact-details {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.c-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.booking-form-side {
    padding: 6rem;
    background: #0d0f0d;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.booking-footer {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1.8rem;
    background: var(--accent);
    color: #121613;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-cinematic);
}

.btn-submit i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    background: #d4ae6a;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.3);
}

.btn-submit:hover i {
    transform: translateX(10px);
}

@media (max-width: 1024px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    .booking-info-side {
        height: auto;
        min-height: 450px;
        padding: 6rem 1.5rem 4rem;
    }
    .booking-info-side h2 { font-size: 3rem !important; }
    .booking-form-side {
        padding: 4rem 1.5rem;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
}

/* --- Cinematic Footer --- */
.premium-footer {
    background: linear-gradient(180deg, #121613 0%, #000 100%);
    color: #fff;
    padding: 10rem 0 4rem;
    position: relative;
    z-index: 5;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 10vw;
    margin-bottom: 8rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    letter-spacing: 0.8rem;
    margin-bottom: 1.5rem;
    display: block;
}

.brand-tagline {
    opacity: 0.5;
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
    margin-bottom: 3rem;
}

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

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1.2rem; }
.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s var(--ease-cinematic);
    font-size: 1rem;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-contact {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}

.btn-mini {
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
}

.footer-bottom-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    opacity: 0.4;
    font-size: 0.8rem;
}

.social-links-premium {
    display: flex;
    gap: 2rem;
}

.social-circle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-circle:hover { opacity: 1; }


/* --- Discovery Paper Sheet --- */
.paper-sheet {
    background: #fff;
    max-width: 1400px;
    margin: -15vh auto 0 auto; /* Overlap effect */
    padding: 12rem 8%;
    position: relative;
    z-index: 20;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1), 0 15px 35px rgba(0,0,0,0.05);
    border-radius: 40px 40px 0 0;
}

.paper-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/p6.png'); /* Subtle paper texture */
    opacity: 0.2;
    pointer-events: none;
    border-radius: inherit;
}

/* --- Weekend Homes Showcase --- */
#weekend-homes {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    z-index: 5;
}

#weekend-homes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('wooden-villa-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.25; /* Increased from 0.15 */
    filter: blur(1px) grayscale(30%); /* Reduced blur and grayscale */
    z-index: 0;
}

#weekend-homes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(249, 247, 242, 0.4) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 0;
}

.wh-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wh-gallery {
    position: relative;
    height: 450px; /* Reduced from 550px */
    transform-style: preserve-3d;
}

.wh-img {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.wh-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.wh-img-1 {
    width: 45%; /* Reduced from 55% */
    aspect-ratio: 3 / 4;
    left: 5%;
    top: 45%;
    transform: translateY(-50%) translateZ(20px);
    z-index: 2;
}

.wh-img-2 {
    width: 50%; /* Reduced from 60% */
    aspect-ratio: 4 / 5;
    right: 10%;
    bottom: 5%;
    transform: translateZ(50px);
    z-index: 3;
}

.wh-dots-bg, .wh-dots-top {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#00b46e 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.wh-dots-bg { top: -20px; left: -20px; transform: translateZ(-10px); }
.wh-dots-top { top: -40px; right: 0; }

.wh-text {
    position: relative;
    padding-left: 2rem;
}

.wh-title {
    color: #0b6b45;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.wh-desc {
    color: #555;
    margin-bottom: 3rem;
    max-width: 90%;
}

.wh-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    position: relative;
    transform-style: preserve-3d;
}

.wh-card-circle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0f7eb;
}

.wh-card h3 {
    color: #0b2210;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.wh-card h3 span {
    color: #00b46e;
    font-size: 2rem;
}

.wh-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Premium Amenities Slider (Luxury Dark Theme) --- */
#amenities-3d {
    background: #000;
}

.am-wrapper {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 8rem 4rem;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
}

.am-header h2 {
    color: #fff;
    font-size: 4.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.am-badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.12);
    color: var(--accent);
    padding: 0.8rem 2.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
    margin-bottom: 5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.am-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.am-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: calc(25% - 1.2rem); /* 4 items per row = 8 per view */
    gap: 1.5rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 1rem 0;
}
.am-grid::-webkit-scrollbar { display: none; }

.am-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 4rem 2rem;
    border-radius: 35px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.7s var(--ease-cinematic);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.am-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
}

.am-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    transition: all 0.5s ease;
}

.am-icon i {
    font-size: 2.2rem;
    display: block;
}

.am-card:hover .am-icon {
    background: var(--accent);
    color: #121613;
    transform: rotateY(180deg);
}

.am-card span {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    transition: color 0.3s ease;
}

.am-card:hover span {
    color: #fff;
}

.am-nav {
    background: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.am-pagination {
    margin-top: 3rem;
    text-align: center;
}

.am-more-wrap {
    display: none;
}

.am-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.am-dot {
    width: 25px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 180, 110, 0.3);
}

.am-dot.active {
    background: #00b46e;
}

.am-page-text {
    color: #0b6b45;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .padding-xl { padding: 6rem 0; }
    h2 { font-size: clamp(2.5rem, 6vw, 4rem); }
    .legacy-title { font-size: 3.5rem; }
    .scroll-card { min-width: 85vw; height: 60vh; border-radius: 30px; }
    /* Consolidated above */
    
    .wh-grid { gap: 2rem; }
    .wh-gallery { height: 400px; }
    .wh-title { font-size: 2.8rem; }
    .wh-card { padding: 2rem; }
    
    .am-grid { grid-template-columns: repeat(2, 1fr); }
    .am-wrapper { padding: 3rem 1.5rem; }
}

#weekend-homes {
    padding-top: 15rem !important;
    padding-bottom: 15rem !important;
    margin-top: 5rem;
    background: #fff;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 25px; /* Symmetrical and smaller */
        height: 2px;
        background: #fff; /* White for dark theme mobile nav */
        transition: all 0.3s var(--ease-cinematic);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Removed conflicting nav-links block - handled at 1024px media query */

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

    .padding-xl { padding: 5rem 0; }
    
    .grid-2, .amenities-grid, .location-box, .form-row, .wh-grid {
        grid-template-columns: 1fr;
    }
    
    .legacy-overlay { padding: 2rem; padding-top: 4rem; margin-top: -40px; }
    /* Removed clip-path: inset(0) so the zigzag edge stays on mobile! */
    .legacy-title { font-size: 2.5rem; }
    .legacy-script { font-size: 1.4rem; }
    
    .booking-card { padding: 2rem; border-radius: 0; }
    
    .footer-main { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .footer-nav-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom-premium { flex-direction: column; gap: 1.5rem; text-align: center; }
    .social-links-premium { justify-content: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    
    .wh-text { padding-left: 0; }
    .wh-card h3 span { font-size: 1.5rem; }
    
    .location-box { grid-template-columns: 1fr; min-height: auto; }
    .location-text { padding: 4rem 2rem; }
    .location-map { height: 500px; } /* Increased height to show more photo */
    .sc-title { font-size: 2.8rem; line-height: 1.2; }
    .sc-desc { font-size: 1rem; }
    
    .nav-container { padding: 0.8rem 1.2rem; } /* Compact navbar */
    .logo { font-size: 1.2rem; }
    
    .am-grid { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-flow: row !important;
        gap: 1rem;
        width: 100%;
        padding: 1rem 0 3rem;
        overflow: hidden !important; /* Fixed: was visible, causing overflow */
    }
    
    .am-card {
        min-width: 0 !important;
        padding: 2.5rem 1rem;
        flex-shrink: 1;
    }

    .am-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .am-icon i {
        font-size: 1.5rem;
    }
.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #121613;
}

.gallery-more-wrap {
    text-align: center;
    margin: 4rem 0 2rem;
}
    .am-card span {
        font-size: 0.85rem;
    }

    .am-header h2 { font-size: 2.2rem; }
    .am-nav { display: none; }

    .extra-amenity, .extra-gallery {
        display: none !important;
    }

    .am-grid.show-all .extra-amenity,
    .gallery-track.show-all-gallery .extra-gallery {
        display: flex !important;
    }

    .am-more-wrap, .gallery-more-wrap {
        display: block !important;
    }
}

/* --- Mobile Optimization Fixes --- */
@media (max-width: 768px) {
    #main-nav { top: 10px !important; }
    .nav-container { padding: 10px 20px !important; min-height: 50px !important; }
    .logo { font-size: 1.3rem !important; }
    .footer-logo { font-size: 3.5rem !important; margin-bottom: 1rem !important; }
    .brand-tagline { font-size: 0.9rem !important; opacity: 0.6 !important; }
}

/* Global Visited Link Reset */
a:visited, .privacy-note a:visited {
    color: inherit !important;
}

.privacy-note a {
    color: #C5A059 !important;
    text-decoration: underline !important;
    transition: opacity 0.3s;
}

.privacy-note a:hover {
    opacity: 0.8;
}

/* Ensure footer layout is clean */
.premium-footer {
    padding-top: 5rem !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}


/* Form UI Tweaks */
.booking-footer { margin-top: 4rem; }
.privacy-note { font-size: 0.85rem; opacity: 0.5; margin-bottom: 2rem; line-height: 1.6; }
.privacy-note a { color: #C5A059; text-decoration: underline; }
.char-count { bottom: -25px !important; opacity: 0.3; }

/* Mobile Rescuing Styles */
@media (max-width: 768px) {
    .premium-nav { padding: 10px 15px !important; height: auto !important; }
    .logo-wrap { width: 100px !important; }
    .footer-logo { font-size: 3rem !important; }
    .brand-tagline { font-size: 0.9rem !important; }
    #booking { padding-bottom: 5rem !important; }
    .premium-footer { padding-top: 5rem !important; }
}

/* Global Link Reset for Visited */
a, a:visited, a:hover, a:active { text-decoration: none; color: inherit; }
.privacy-note a { color: #C5A059 !important; text-decoration: underline !important; }


/* --- Gallery Styles (Restored) --- */
.gallery-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.gallery-item { border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; transition: transform 0.8s var(--ease-cinematic); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-cinematic); }
.gallery-item:hover { transform: translateY(-10px); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.1); }
@media (max-width: 768px) { .gallery-track { grid-template-columns: 1fr; } }

/* Navigation Color Reset for Visibility */
.nav-links a { color: #000000 !important; }
.nav-links a.active, .nav-links a:hover { color: #ffffff !important; transition: color 0.3s ease; }
.nav-links a:visited { color: #000000 !important; }
.nav-links a.active:visited, .nav-links a:hover:visited { color: #ffffff !important; }


/* Force Reserve Button Text to White */
.btn-primary.nav-btn { color: #ffffff !important; }
.btn-primary.nav-btn:visited { color: #ffffff !important; }

