:root {
    --primary-gold: #C5A059;
    --primary-dark: #1A1A1A;
    --bg-light: #F9F7F2;
    --text-main: #FFFFFF;
    --font-main: 'Roboto', sans-serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
    
    /* Default Light Mode Variables for Guide Components */
    --guide-bg: #F9F7F2;
    --guide-bg-alt: #E2DAC9;
    --guide-text: #2A2A2A;
    --guide-text-muted: #555555;
    --guide-card: #EFE8D8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Screen-reader only text (hidden for SEO) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Override global scroll-padding to ensure anchor links leave room for background images */
html {
    scroll-padding-top: 20vh !important;
    margin: 0;
    padding: 0;
    height: 100%;
    /* NOTE: NO overflow-x: hidden here. On iOS, overflow on the html element
       clips position:fixed children (incl. the FAB button). The pan-effect
       images are already clipped by .reveal-media { overflow: hidden }. */
}


body {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #FFF;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

/* --- GLOBAL NAVIGATION (Switchers) --- */
.lang-switcher, .mode-switcher {
    position: fixed;
    z-index: 9999;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.85); /* Darker background for visibility on light sections */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(197, 160, 89, 0.3); /* Theming with gold border */
    white-space: nowrap;
}

.lang-switcher { top: 2rem; right: 2rem; }
.mode-switcher { top: 2rem; left: 2rem; }

.lang-switcher a, .mode-switcher a {
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s;
    padding: 4px 2px;
}@media (hover: hover) {
    
    .lang-switcher a:hover, .mode-switcher a:hover { opacity: 1; }
}
.lang-switcher a.active, .mode-switcher a.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-gold);
}
.lang-separator {
    color: #FFFFFF;
    opacity: 0.2;
    margin: 0 10px;
}

/* 1. Hero Section (Crossfade + Zoom-Out) */
.hero-v4 {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-img {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: brightness(0.65);
    z-index: 1;
    /* Smoother crossfade (3s), and we use animation for zoom so it plays on load */
    transition: opacity 3s ease-in-out;
    transform: scale(1); /* So it stays zoomed out while fading out */
}

@keyframes heroZoomOut {
    from { transform: scale(1.25); }
    to { transform: scale(1); }
}

.hero-slider-img-weaker {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1);
}

@keyframes heroZoomOutWeaker {
    from { transform: scale(1.10); }
    to { transform: scale(1); }
}

.hero-slider-img.hero-slider-img-weaker.active {
    animation: heroZoomOutWeaker 12s ease-out forwards;
}

.hero-slider-img.active {
    opacity: 1;
    z-index: 2;
    animation: heroZoomOut 12s ease-out forwards;
}

.hero-v4-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    width: 100%;
}

.hero-v4-title {
    font-family: 'Minion Pro', Minion, serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 300;
    letter-spacing: 15px;
    text-transform: uppercase;
    margin-bottom: 0;
    line-height: 1;
}

.hero-v4-subtitle {
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2rem;
    display: inline-block;
}

.hero-divider-gold {
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
    margin: 40px auto;
}

/* 2. Intro Area (Static Flow) */
.intro-section {
    position: relative;
    z-index: 20;
    background: var(--guide-bg, var(--bg-light));
    color: var(--guide-text, #2A2A2A);
    padding: 100px 40px;
}

.container-v4 {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-grid {
    margin-bottom: 4rem;
    overflow: hidden; /* clearfix for floats */
}

.intro-grid-image-wrapper {
    float: right;
    width: 45%;
    margin: 0 0 2rem 3rem;
}

.intro-quote {
    font-size: 1.8rem;
    color: var(--primary-gold);
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 300;
}

.intro-grid-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: zoom-in;
    margin-bottom: 1.5rem;
}

.intro-caption {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--guide-text-muted, #777);
    border-left: 2px solid var(--primary-gold);
    padding-left: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Anchor Navigation Menu --- */
.intro-anchors {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--guide-card, #EFE8D8); /* Slightly darker sand for better contrast */
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.anchor-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.anchor-link {
    color: var(--guide-text-muted, #555);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    display: inline-block;
}@media (hover: hover) {
    
    
    .anchor-link:hover {
        color: var(--primary-gold);
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .intro-grid {
        display: flex;
        flex-direction: column;
    }
    .intro-grid-image-wrapper {
        display: contents;
    }
    /* 1. Zitat */
    .intro-grid > .intro-quote { order: 1; margin-bottom: 1.5rem; }
    /* 2. Artikelstart */
    .intro-grid > [class*="drop-cap-"] { order: 2; }
    /* 3. Photo & Caption */
    .intro-grid-image {
        order: 3;
        width: 100%;
        margin: 2rem 0 0.5rem 0;
    }
    .intro-caption { order: 4; margin-bottom: 2rem; }
    /* 4. Artikel läuft weiter */
    .intro-grid > p:not(.intro-quote):not([class*="drop-cap-"]), 
    .intro-grid > h2, 
    .intro-grid > h3 {
        order: 5;
    }
    /* 5. Quick Access Menu */
    .intro-grid .floating-teaser-box {
        order: 6;
        margin: 2rem 0;
    }
    /* 6. Einschub */
    .intro-grid > .callout-v4 {
        order: 7;
        margin-top: 2rem;
    }
}

.vl-inline-link {
    color: var(--primary-gold);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 -2px; /* compensate for padding */
    position: relative;
    z-index: 50;
    pointer-events: auto;
    cursor: pointer;
}@media (hover: hover) {
    
    
    .vl-inline-link:hover {
        background: rgba(197, 160, 89, 0.15);
        color: var(--guide-text);
    }
}

/* Typography styles adapted for V4 */
.drop-cap-v4::first-letter {
    float: left;
    font-family: var(--font-main, sans-serif);
    font-size: 8.2rem;
    line-height: 0.65;
    margin: 1.2rem 1.2rem 0 0;
    color: var(--primary-gold);
    font-weight: 400;
}

h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
}

.sub-heading {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

blockquote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-gold);
    border-left: none;
    padding: 4rem 2rem;
    margin: 6rem 0;
    line-height: 1.3;
    text-align: center;
    position: relative;
}
blockquote::before, blockquote::after {
    content: '"';
    font-size: 8rem;
    color: rgba(197, 160, 89, 0.1);
    position: absolute;
    z-index: -1;
}
blockquote::before { top: -2rem; left: 0; }
blockquote::after { bottom: -6rem; right: 0; }

.callout-v4 {
    background: var(--guide-card, #FDF8F0);
    padding: 60px 50px;
    border-left: 6px solid var(--primary-gold);
    margin: 80px 0;
    position: relative;
    color: var(--guide-text, #2a2a2a);
    overflow: hidden; /* BFC to prevent background from sliding under floats */
}
.callout-v4 h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.btn-cin {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    margin-top: 1rem;
    border-radius: 3px;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}@media (hover: hover) {
    
    .btn-cin:hover {
        background: var(--primary-gold);
        color: white;
        border-color: var(--primary-gold);
    }
}

/* Premium CTA with Logo */
.btn-cta-logo {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--guide-text, #1A1A1A);
    color: var(--guide-text, #1A1A1A);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 2rem 0 0;
    height: 3.5rem;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    margin-top: 2rem;
}

.btn-cta-logo img {
    height: 100%;
    width: 3.5rem;
    object-fit: cover;
    background: #1a1a1a;
    padding: 0.7rem;
    margin-right: 1.5rem;
    transition: transform 0.3s var(--ease);
}@media (hover: hover) {
    
    
    .btn-cta-logo:hover {
        background: #1a1a1a;
        color: #fff;
    }
}@media (hover: hover) {
    
    
    .btn-cta-logo:hover img {
        transform: scale(1.1);
    }
}

/* 3. Cinematic Reveal Architecture */
/* General Reveal Media styles */
.reveal-media {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.reveal-media img,
.reveal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 1.5s var(--ease);
}

.reveal-section {
    position: relative;
    min-height: 150vh; /* Reduced from 200vh for better mobile flow */
    display: flex;
    flex-direction: column;
}

.reveal-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
    pointer-events: none;
}

/* Sublime Panning Animation */
.pan-effect img {
    left: 0;
    width: 120%;
    height: 100dvh;
    object-fit: cover;
    max-width: none;
    position: relative;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.pan-effect.is-panning img {
    animation: sideDrift 40s ease-in-out infinite alternate;
}

@keyframes sideDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-16.66%, 0, 0); }
}

/* Text Overlay Layer */
.reveal-content-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    /* Push text layer down so the image is fully visible first */
    padding-top: 100dvh; 
    /* Space after text before next section */
    padding-bottom: 50vh; 
}

@keyframes mobileNaturalPan {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 100vw)); }
}



.reveal-card {
    width: 45%;
    min-width: 500px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 80px 60px;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    color: #F9F7F2;
    transition: margin 0.5s var(--ease);
    position: relative;
}

.reveal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(22, 22, 22, 0.2);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 4px;
    z-index: -1;
}

.reveal-card.right-align {
    margin-right: 5%;
    margin-left: auto;
}

.reveal-card.left-align {
    margin-left: calc(5% - 5px);
    margin-right: auto;
}

/* Fix light colors inside dark card */
.reveal-card h2 { color: #FFF; }
.reveal-card .callout-v4 {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--primary-gold);
    color: var(--guide-text);
}
.reveal-card p { opacity: 0.9; }
.reveal-card .vl-carousel-caption { color: #FFF; opacity: 0.9; }

.article-wide-img {
    width: calc(100% + 120px);
    height: auto;
    margin: 2.5rem -60px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.article-float-right {
    float: right;
    width: 45%;
    max-width: 450px;
    height: auto;
    margin: 0.5rem 0 1.5rem 2rem;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 4px;
}

.article-float-left {
    float: left;
    width: 45%;
    max-width: 450px;
    height: auto;
    margin: 0.5rem 2rem 1.5rem 0;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 4px;
}

.article-full-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 2.5rem 0;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .article-wide-img {
        width: calc(100% + max(30px, env(safe-area-inset-right) + env(safe-area-inset-left)));
        margin-left: calc(-1 * max(15px, env(safe-area-inset-left)));
        margin-right: calc(-1 * max(15px, env(safe-area-inset-right)));
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .article-float-right, .article-float-left {
        float: none;
        width: calc(100% + max(30px, env(safe-area-inset-right) + env(safe-area-inset-left)));
        max-width: none;
        margin-left: calc(-1 * max(15px, env(safe-area-inset-left)));
        margin-right: calc(-1 * max(15px, env(safe-area-inset-right)));
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 0;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .article-wide-img {
        width: calc(100% + max(32px, env(safe-area-inset-right) + env(safe-area-inset-left)));
        margin-left: calc(-1 * max(16px, env(safe-area-inset-left)));
        margin-right: calc(-1 * max(16px, env(safe-area-inset-right)));
    }
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    .callout-v4, .photo-disclosure, .photo-disclosure[open], .intro-anchors {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(197, 160, 89, 0.3) !important;
        color: #DDD !important;
    }
}

/* Lightbox V4 adjustments */
.lb-modal {
    overscroll-behavior: contain;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark background for better focus */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    touch-action: pinch-zoom pan-y;
}
.lb-modal.is-open {
    display: flex;
}
.lb-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 5;
}

/* Hover Lift Effect for Gallery Images */
.vl-image-lift {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (hover: hover) {
    .vl-image-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.18) !important;
    }
}

.lb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 160px);
    max-height: 90dvh;
}

.lb-content {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    max-width: 100%;
    max-height: calc(90dvh - 80px);
    object-fit: contain;   
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    background: #000;
    display: block;
}

.lb-info {
    position: relative;
    width: 100%;
    text-align: center;
    color: white;
    padding: 15px 10px 0;
    z-index: 20;
}

.lb-caption {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #F8F5F2;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.lb-caption a {
    pointer-events: auto;
}@media (hover: hover) {
    
    
    .lb-caption a:hover {
        opacity: 0.8;
    }
}

.lb-counter {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-gold);
}

.lb-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 50;
}

.lb-arrow {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}@media (hover: hover) {
    
    
    .lb-arrow:hover {
        background: var(--primary-gold);
        border-color: var(--primary-gold);
        transform: scale(1.1);
    }
}

.lb-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 100;
    z-index: 100;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}
.lb-share {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: #f1f1f1;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
    opacity: 0.8;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--primary-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (hover: hover) {
    
    
    .lb-close:hover {
        transform: rotate(90deg);
        color: var(--primary-gold);
    }
    .lb-share:hover {
        opacity: 1;
        color: var(--primary-gold);
    }
}
body.lb-open { overflow: hidden; }

/* Responsive */


footer.footer-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
footer.footer-banner img.bg-rotated {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100vw; 
    width: 100vw;
    object-fit: cover;
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}
.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}
.footer-content span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

/* Premium Logo Link Styles */
.logo-link {
    display: inline-block;
    opacity: 0.6;
    transition: all 0.4s var(--ease);
}@media (hover: hover) {
    
    .logo-link:hover {
        opacity: 1;
        transform: scale(1.05);
    }
}
.hero-logo {
    height: 100px;
    width: 100px; /* Explicit for 1:1 ratio */
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease) forwards 0.3s;
    object-fit: contain;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-logo {
    height: 80px;
    margin-bottom: 2rem;
}

/* --- DISCOVER MORE SECTION --- */
.discover-more-v4 {
    padding: 100px 40px;
    background: var(--guide-bg-alt, #151515); /* Replaced Warm Beige */
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}
.discover-more-v4 p {
    color: var(--guide-text-muted, #A09E98) !important;
}

.discover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.discover-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    background: var(--guide-card, #2A2A2A); /* Dark background */
    transition: transform 0.6s var(--ease);
    transform: translateZ(0);
}@media (hover: hover) {
    
    
    .discover-item:hover {
        transform: scale(1.02);
    }
}

.discover-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}@media (hover: hover) {
    
    
    .discover-item:hover img {
        filter: brightness(0.75);
        transform: scale(1.1);
    }
}

.discover-label {
    position: relative;
    z-index: 2;
    color: var(--guide-text, #FFF);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 6px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 85%;
    text-align: center;
}

.seo-footer {
    position: relative;
    padding: 100px 40px 80px;
    background-color: var(--guide-bg-alt, #151515); /* Match dark theme */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 100;
    transform: translateZ(0); /* Force GPU layer for sticky handling */
}

/* Remove old img-based background class */
.seo-footer-bg {
    display: none;
}

.seo-nav-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-nav-col {
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .seo-nav-col:nth-child(2) {
        text-align: center;
    }
    .seo-nav-col:nth-child(3) {
        text-align: right;
    }
}

.seo-footer-bottom {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.6) !important;
}

.footer-logo-link {
    display: inline-block;
    max-width: 200px;
    margin: 0 auto;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-logo-link img {
    max-width: 100%;
    height: auto !important; /* Respect the height set in HTML but allow max-width */
}@media (hover: hover) {
    
    
    .footer-logo-link:hover {
        transform: scale(1.1);
    }
}

.footer-logo-link img {
    /* No filter, keep original logo */
}

.seo-nav-col h5 {
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.seo-nav-col ul {
    list-style: none;
}

.seo-nav-col ul li {
    margin-bottom: 0.8rem;
}

.seo-nav-col ul li a {
    color: rgba(0,0,0,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}@media (hover: hover) {
    
    
    .seo-nav-col ul li a:hover {
        color: var(--primary-gold);
    }
}

@media (max-width: 768px) {
    .discover-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px;
    }
    .discover-item {
        height: 200px !important;
        min-height: 200px !important;
    }
    .seo-footer {
        padding: 60px 20px 60px !important;
        background-attachment: scroll !important;
    }
    .seo-nav-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }
    .seo-nav-col {
        width: 100%;
        margin-bottom: 20px;
    }
    .seo-nav-col ul li {
        margin-bottom: 1.2rem;
    }
    .seo-footer-bottom {
        margin-top: 40px;
        padding-top: 30px;
    }
}

/* (Consolidated switcher styles removed from here, moved to top for better iPhone parsing) */


@media (max-width: 1024px) {
    /* Enhanced Mobile/Tablet Overrides */
    .reveal-section {
        min-height: 120vh !important;
    }
    .reveal-content-layer {
        padding-top: 25vh !important;
        padding-bottom: 25vh !important;
    }
    .pan-effect img {
        height: 100dvh !important;
        width: 130vw !important;
        max-width: none !important;
        object-fit: cover !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        transform: translateX(0);
        transition: transform 1.5s var(--ease) !important;
    }
    .pan-effect.is-panning img {
        animation: mobileNaturalPan 30s ease-in-out infinite alternate !important;
    }
    
    /* Narrower card to show more background */
    .reveal-card { 
        width: 70% !important; 
        min-width: 0 !important;
        max-width: 800px !important;
        padding: 40px max(22px, env(safe-area-inset-right)) 40px max(22px, env(safe-area-inset-left)) !important; 
    }
    
    .article-wide-img {
        width: calc(100% + max(44px, env(safe-area-inset-right) + env(safe-area-inset-left)));
        margin-left: calc(-1 * max(22px, env(safe-area-inset-left)));
        margin-right: calc(-1 * max(22px, env(safe-area-inset-right)));
    }
    
    h1 { font-size: 3rem !important; }
    h2 { font-size: 2.2rem !important; margin-bottom: 2rem !important; margin-top: 4rem !important; }
    .hero-v4-title { font-size: 3.5rem !important; letter-spacing: 8px !important; }
    .lang-switcher { top: 1rem !important; right: 1rem !important; font-size: 0.65rem !important; padding: 6px 10px !important; }
    .mode-switcher { top: 1rem !important; left: 1rem !important; font-size: 0.65rem !important; padding: 6px 10px !important; }


    /* Fix for landscape mode on small screens (iPhone Chrome + Safari) */
    @media (orientation: landscape) and (max-height: 500px) {
        .reveal-content-layer {
            /* MUST be 100dvh so the card starts BELOW the sticky image.
               15vh was causing the card to overlap the image. */
            padding-top: 100dvh !important;
            padding-bottom: 20vh !important;
        }
        /* Narrow card: leave more room for cinematic background */
        .reveal-card {
            width: 48% !important;
            padding: 25px max(16px, env(safe-area-inset-right, 16px)) 25px max(16px, env(safe-area-inset-left, 16px)) !important;
        }
        h2 { font-size: 1.6rem !important; margin-top: 1rem !important; margin-bottom: 1rem !important; }
        p { font-size: 1rem !important; margin-bottom: 1rem !important; }
        
        /* Full-bleed: CSS-based approach for Safari (supports viewport-fit=cover).
           Chrome iOS has narrow safe-area bars in landscape - browser limitation. */
        .hero-v4,
        .reveal-section {
            width: 100dvw;
            margin-left: calc(50% - 50dvw);
        }
        
        .pan-effect img {
            width: 100% !important;
            height: 100% !important;
            animation: none !important;
            transform: none !important;
            left: 0 !important;
            top: 0 !important;
            object-position: center !important;
        }
        .pan-effect.is-panning img {
            animation: none !important;
            transform: none !important;
        }
    }
}

/* Orientation-change overlay — fades to black during rotation so the
   user never sees the scroll-position correction jump.
   z-index 9999: covers page content but stays BELOW the FAB (99999)
   so the FAB button remains visible and accessible during the transition. */
#orientation-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* Unified Utility FAB Component */
.utility-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: block;
    pointer-events: none;
}

.fab-button {
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}@media (hover: hover) {
    
    
    .fab-button:hover {
        transform: scale(1.05);
        border-color: rgba(197, 160, 89, 1);
    }
}

.fab-button svg {
    width: 24px;
    height: 24px;
    fill: #C5A059;
    transition: transform 0.4s;
}

.utility-fab.active .fab-button svg {
    transform: rotate(135deg);
}

.fab-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    min-width: 200px;
    pointer-events: auto;
}

.utility-fab.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.fab-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(197, 160, 89, 0.6);
    font-weight: 700;
    margin-bottom: 0.2rem;
    padding-left: 12px;
}

.fab-link {
    color: #F8F5F2;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
}@media (hover: hover) {
    
    
    .fab-link:hover {
        background: rgba(197, 160, 89, 0.1);
        color: #C5A059;
    }
}

.fab-link.active {
    color: #C5A059;
    font-weight: 700;
}

@media (max-width: 768px) {
    .utility-fab {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}/* In landscape on mobile, move FAB to top-right + compact menu.
   CRITICAL: The fab-menu is visibility:hidden (not display:none) — it still occupies
   ~568px height in the flex layout, pushing the button off-screen! Fix: switch the
   container to display:block and absolutely position the menu.
   COMPACT MENU: languages as single row (EN|PT|FR|DE), beaches as 2-col grid. */
@media (orientation: landscape) and (max-width: 1024px) {
    /* ── FAB container: top-right, block layout ── */
    .utility-fab {
        bottom: auto !important;
        top: 1rem !important;
        right: 1.5rem !important;
        display: block !important;
    }

    /* ── Menu panel: compact, fixed-width, no overflow ── */
    .utility-fab .fab-menu {
        position: absolute !important;
        top: calc(56px + 0.5rem) !important;
        right: 0 !important;
        bottom: auto !important;
        transform: translateY(-10px) !important;
        padding: 0.75rem !important;
        gap: 0.5rem !important;
        min-width: 0 !important;
        width: 210px !important;
        border-radius: 14px !important;
    }
    .utility-fab.active .fab-menu {
        transform: translateY(0) !important;
    }

    /* ── Group spacing ── */
    .utility-fab .fab-menu-group {
        gap: 0.25rem !important;
    }

    /* ── Group labels: smaller ── */
    .utility-fab .fab-label {
        font-size: 0.5rem !important;
        margin-bottom: 0.1rem !important;
        padding-left: 6px !important;
        letter-spacing: 1.5px !important;
    }

    /* ── Language group: single horizontal row (uses :first-child — no extra class needed) ── */
    .utility-fab .fab-menu-group:first-child {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
        align-items: center !important;
    }
    .utility-fab .fab-menu-group:first-child .fab-link {
        padding: 5px 6px !important;
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
        justify-content: center !important;
        flex: 1 !important;
        border-radius: 6px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
    /* hide group label in language row — it takes too much space */
    .utility-fab .fab-menu-group:first-child .fab-label {
        display: none !important;
    }

    /* ── Beach/nav links: 2-column grid (uses :last-child) ── */
    .utility-fab .fab-menu-group:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.2rem !important;
    }
    .utility-fab .fab-menu-group:last-child .fab-link {
        padding: 5px 7px !important;
        font-size: 0.65rem !important;
        letter-spacing: 0 !important;
        justify-content: flex-start !important;
        border-radius: 6px !important;
    }
    /* 5th beach link (odd last-child) spans full width */
    .utility-fab .fab-menu-group:last-child .fab-link:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        justify-content: center !important;
    }
}

/* --- LITE NAVIGATION COMPONENT --- */
.lite-nav {
    padding-top: env(safe-area-inset-top, 0px);
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    font-family: 'Roboto', sans-serif;
    text-align: right;
}
.lite-nav-trigger {
    color: #C5A059;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
}@media (hover: hover) {
    
    .lite-nav-trigger:hover {
        border-color: #C5A059;
    }
}
.lite-nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lite-nav.active .lite-nav-menu {
    display: flex;
}
.lite-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lite-nav-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}
.lite-nav-link {
    color: var(--guide-text);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    display: block;
}@media (hover: hover) {
    
    .lite-nav-link:hover {
        color: #C5A059;
    }
}
.lite-nav-link.active {
    color: #C5A059;
    font-weight: 700;
}
.lang-inline {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .lite-nav {
    padding-top: env(safe-area-inset-top, 0px); top: 1rem; right: 1rem; }
}

.vl-inline-link {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}@media (hover: hover) {
    
    .vl-inline-link:hover {
      background: rgba(197, 160, 89, 0.15);
    }
}

/* Accordion Styling for <details> */
.vl-accordion {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vl-accordion[open] {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-gold);
}

.vl-accordion summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-gold);
    list-style: none; /* Hide default triangle in many browsers */
    position: relative;
    user-select: none;
    font-weight: 500;
}

.vl-accordion summary::-webkit-details-marker {
    display: none; /* Hide default triangle in WebKit */
}

/* Custom Icon */
.vl-accordion summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.vl-accordion[open] summary::after {
    content: '−';
}

.vl-accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: #EEE;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Horizontal Scroll Gallery */
.vl-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-top: 3rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
}
.vl-horizontal-scroll:active {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snap while dragging for smoother feel */
}

.vl-carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min-content;
}


.vl-carousel-item picture {
    display: block;
    width: auto;
    height: 100%;
}
.vl-carousel-item img {
    height: 260px;
    width: auto;
    max-width: calc(100vw - 3rem);
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
}



.vl-carousel-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--guide-text, #333);
    width: 100%;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: calc(1.4em * 3);
}


/* Mobile Adjustments for Typography and Cards */
@media (max-width: 768px) {
    .hero-v4-title {
        font-size: 2.5rem !important;
        letter-spacing: 5px !important;
        margin-bottom: 0;
    }
    .hero-v4-subtitle {
        font-size: 0.8rem !important;
        letter-spacing: 3px !important;
    }
    .reveal-card {
        width: 92% !important;
        min-width: 0 !important;
        padding: 30px max(15px, env(safe-area-inset-right)) 30px max(15px, env(safe-area-inset-left)) !important;
        margin: 0 auto !important;
    }
    h2 { 
        font-size: 1.8rem !important; 
        margin-top: 2rem !important; 
    }

    /* Fix for intro section overflow on mobile */
    .intro-section { padding: 40px 20px 30px !important;
    }
    .container-v4 {
        max-width: 100% !important;
        }
    .intro-quote {
        font-size: 1.4rem !important;
    }
    .drop-cap-v4::first-letter {
        font-size: 5rem !important;
        margin: 0.5rem 0.8rem 0 0 !important;
    }

    /* Lightbox Mobile Fixes */
    .lb-container {
        max-width: 95% !important; /* Allow image to be wider on mobile */
    }
    .lb-nav {
        padding: 0 5px !important; /* Push arrows to the absolute edge on mobile */
    }
    .lb-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
    .lb-caption {
        font-size: 0.85rem !important;
        letter-spacing: 0 !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    .lb-counter {
        font-size: 0.6rem !important;
    }

    /* Mobile Spacing for Intro Anchors */
    .intro-grid { gap: 1rem !important; /* Reduce huge gap on mobile */
    }
    .intro-anchors {
        margin-top: 0 !important; /* Remove extra margin on mobile */
        padding: 1.5rem 1rem !important; /* Slightly tighter padding on small screens */
    }

    /* Improve button readability over busy backgrounds on mobile */
    .btn-cin {
        background: rgba(10, 10, 10, 0.65) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* Lightbox Mobile Landscape Overlay */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
    .lb-viewport {
        padding: 0;
    }
    .lb-container {
        max-width: 100%;
        max-height: 100dvh;
        width: 100%;
        height: 100%;
    }
    .lb-content {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
        max-height: 100dvh;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
    }
    .lb-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 40px 60px 15px; /* Extra horizontal padding to avoid arrows */
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
        text-shadow: 0 2px 4px #000;
    }
    .lb-caption {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines to avoid covering entire image in landscape */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .lb-counter {
        font-size: 0.65rem;
    }
    .lb-nav {
        padding: 0 10px;
    }
    .lb-arrow {
        width: 44px;
        height: 44px;
    }
    .lb-close {
        top: 10px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 2rem;
        background: rgba(0,0,0,0.4);
    }
    .lb-share {
        top: auto;
        bottom: 20px;
        right: 15px;
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.4);
        border: 1px solid var(--primary-gold);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* Override panning speed for Santo Andre */
#santo-andre .pan-effect.is-panning img {
    animation-duration: 20s !important;
}

@media (max-width: 1024px) {
    #santo-andre .pan-effect.is-panning img {
        animation-duration: 15s !important;
    }
}

/* Global Rotate Hint for Mobile Portrait */
.global-rotate-hint {
    display: none;
}

/* Scroll-Down Chevron — visible on ALL viewports (desktop + mobile) */
.scroll-down-chevron {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    animation: bounceFade 2.5s infinite;
    opacity: 0.7;
    pointer-events: none;
}
.scroll-down-chevron svg {
    width: 36px;
    height: 36px;
    stroke: rgba(255, 255, 255, 0.75);
    filter: drop-shadow(0px 2px 6px rgba(0,0,0,0.6));
}

/* Mobile Portrait: rotate hint + slightly smaller chevron */
@media (max-width: 768px) and (orientation: portrait) {
    .global-rotate-hint {
        position: absolute;
        top: 15vh;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 12px 24px;
        border-radius: 30px;
        border: 1px solid var(--primary-gold);
        color: white;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        z-index: 50;
        pointer-events: none;
        animation: pulseFade 3s infinite;
        white-space: nowrap;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .global-rotate-hint svg {
        width: 24px;
        height: 24px;
        stroke: var(--primary-gold);
        animation: rotatePhone 3s ease-in-out infinite alternate;
    }

    .scroll-down-chevron {
        bottom: 8vh;
    }
    .scroll-down-chevron svg {
        width: 32px;
        height: 32px;
    }
}

@keyframes pulseFade {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes bounceFade {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    40% { transform: rotate(-90deg); }
    100% { transform: rotate(-90deg); }
}


/* --- GALLERY JUMP LINK & HINT --- */
.gallery-jump-link {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    color: var(--primary-gold);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}@media (hover: hover) {
    
    .gallery-jump-link:hover {
        background: rgba(197, 160, 89, 0.2);
        transform: translateY(-2px);
    }
}
.gallery-jump-link svg {
    width: 16px;
    height: 16px;
}




@media (max-width: 768px) {
    .gallery-jump-link {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-top: 0.5rem;
    }

}


/* Desktop Glass Effect for Galleries */
@media (min-width: 1025px) {
    .desktop-glass-gallery {
        background: transparent;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    /* Allow gallery to break out of the frosted glass card constraint on desktop */
    .reveal-card.left-align .desktop-glass-gallery {
        width: calc(95vw - 60px); /* 100vw - 5vw margin-left - 60px padding-left */
    }
    .reveal-card.right-align .desktop-glass-gallery {
        width: calc(100% + 5vw); /* Break into the 5vw right margin */
    }
}

/* Floating Teaser Box for Guide Quick Access */
.floating-teaser-box {
    float: right;
    width: 320px;
    margin: 0.5rem 0 2rem 2.5rem;
    background: var(--guide-card, rgba(20, 25, 22, 0.02));
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 1.8rem;
    border-radius: 8px;
    z-index: 10;
    position: relative;
}
@media (max-width: 768px) {
    .intro-flow-container {
        display: flex;
        flex-direction: column;
    }
    .floating-teaser-box {
        float: none;
        width: 100%;
        margin: 2rem 0 3rem 0;
        /* order: 99; removed */
    }
}

/* Automatic Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --guide-bg: #1B1918;
        --guide-bg-alt: #2a2a2a;
        --guide-text: #EAE6DC;
        --guide-text-muted: #A09E98;
        --guide-card: rgba(255, 255, 255, 0.04);
        --bg-light: #1B1918;
    }
}





@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
}

.guide-float-right {
    float: right;
    width: 360px;
    max-width: 50%;
    margin: 0.5rem 0 1.5rem 2rem;
}
.guide-float-left {
    float: left;
    width: 360px;
    max-width: 50%;
    margin: 0.5rem 2rem 1.5rem 0;
}
@media (max-width: 768px) {
    .guide-float-right, .guide-float-left {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* Unified Guide Lined Heading */
.guide-lined-heading {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}
.guide-lined-heading::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(197, 160, 89, 0.4);
}
.guide-lined-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}


.hero-optimized-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}
