 /* ── PAGE ROUTING ─────────────────── */
  .page { display: none; padding-top: 92px; }
  .page.active { display: block; }

  /* ── LISTING PAGE ─────────────────── */
  .listing-hero {
    padding: 100px 80px 60px;
    max-width: 1200px; margin: 0 auto;
  }
  .listing-hero .eyebrow {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--bark); margin-bottom: 20px;
  }
  .listing-hero h1 {
    font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 4vw, 80px);
    line-height: 1.08; color: var(--charcoal);
  }
  .listing-hero h1 em { font-style: italic; color: var(--bark); }
  .listing-hero p {
    /* max-width: 520px;  */
    margin-top: 24px;
    font-size: 17px; line-height: 1.75; color: var(--muted);
  }

  .retreat-grid {
    max-width: 1200px; margin: 0 auto;
    padding: 0 80px 120px;
  }

  .retreat-card {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; margin-bottom: 2px;
    cursor: pointer; overflow: hidden;
    transition: opacity 0.4s;
  }
  .retreat-card:hover { opacity: 0.92; }
  .retreat-card:nth-child(even) .card-img { order: 2; }
  .retreat-card:nth-child(even) .card-body { order: 1; }

  .card-img {
    position: relative; height: 520px; overflow: hidden;
  }
  .card-img img {
    width: 100%; height: 100%; object-fit: cover;
  }
  /* Primary / secondary image crossfade */
  .card-img-primary,
  .card-img-secondary {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 1.4s ease-in-out, transform 1.4s ease-in-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
  }
  .card-img-primary { opacity: 1; transform: scale(1); z-index: 1; }
  .card-img-secondary { opacity: 0; transform: scale(1); z-index: 2; }

  .retreat-card:hover .card-img-primary,
  .retreat-card.touch-active .card-img-primary {
    opacity: 0; transform: scale(1.03);
  }
  .retreat-card:hover .card-img-secondary,
  .retreat-card.touch-active .card-img-secondary {
    opacity: 1; transform: scale(1.03);
  }
  .card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(97,87,76,0.35) 0%, transparent 60%);
  }
  .card-num {
    position: absolute; top: 32px; left: 32px;
    font-family: var(--serif); font-size: 13px; letter-spacing: 0.12em;
    color: rgba(250,248,244,0.7);
  }

  .card-body {
    background: var(--cream-dark);
    padding: 64px 56px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .card-location {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--bark); margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
  }
  .card-location::before {
    content: ''; display: block;
    width: 24px; height: 0.5px; background: var(--bark);
  }
  .card-body h2 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(32px, 3.5vw, 46px); line-height: 1.1;
    color: var(--charcoal); margin-bottom: 8px;
  }
  .card-body .subtitle {
    font-family: var(--serif); font-style: italic;
    font-size: 15px; color: var(--bark); margin-bottom: 28px;
  }
  .card-body p {
    font-size: 14px; line-height: 1.85; color: var(--muted);
    max-width: 360px; margin-bottom: 40px;
  }
  .card-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
  }
  .tag {
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    border: 0.5px solid rgba(139,115,85,0.4);
    padding: 6px 14px; color: var(--bark);
    cursor: pointer; background: transparent;
    transition: background-color 0.35s ease, color 0.35s ease,
                border-color 0.35s ease, transform 0.35s ease;
  }
  .tag:hover {
    background-color: var(--bark);
    border-color: var(--bark);
    color: var(--cream-dark);
    transform: translateY(-2px);
  }
  .btn-ghost {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--charcoal); text-decoration: none;
    border-bottom: 0.5px solid var(--charcoal);
    padding-bottom: 4px;
    transition: gap 0.3s;
    cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
  }
  .btn-ghost:hover { gap: 20px; }
  .btn-ghost .arrow { font-size: 14px; }

  
  /* Divider */
  .divider {
    max-width: 1200px; margin: 0 auto;
    border: none; border-top: 0.5px solid rgba(139,115,85,0.18);
  }

  /* Scroll reveal placeholder for sections */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .reveal { animation: fadeUp 0.8s ease forwards; }

  /* ══════════════════════════════════════════════
     HERO VIDEO SECTION
  ══════════════════════════════════════════════ */

  #hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: visible;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    z-index: 0;
    opacity: 0;
    animation: heroZoom 28s ease-out forwards, heroVideoReveal 2.4s ease 0.15s forwards;
  }

  @keyframes heroZoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1.0); }
  }

  @keyframes heroVideoReveal {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  #hero-fallback-img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(42,36,32,0.38) 0%,
        rgba(42,36,32,0.12) 30%,
        rgba(42,36,32,0.14) 60%,
        rgba(42,36,32,0.68) 100%
      ),
      linear-gradient(
        to right,
        rgba(42,36,32,0.28) 0%,
        transparent 55%
      );
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-eyebrow {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.62);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: heroFadeUp 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
  }
  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 0.5px;
    background: rgba(250,248,244,0.35);
  }

  .hero-headline {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(44px, 6.4vw, 58px);
    line-height: 1.06;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 22px;
    opacity: 0;
    animation: heroFadeUp 2s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
  }
  .hero-headline em {
    font-style: italic;
    color: rgba(250,248,244,0.82);
  }

  .hero-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.7;
    color: rgba(250,248,244,0.68);
    max-width: 540px;
    margin-bottom: 44px;
    opacity: 0;
    animation: heroFadeUp 1.9s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
  }

  .hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: heroFadeUp 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.7s forwards;
  }

  .hero-btn-primary {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--charcoal);
    border: none;
    padding: 16px 38px;
    cursor: pointer;
    transition: opacity 0.45s ease, transform 0.45s ease, letter-spacing 0.45s ease, box-shadow 0.45s ease;
    text-decoration: none;
    display: inline-block;
  }
  .hero-btn-primary:hover {
    opacity: 0.94;
    transform: translateY(-2px);
    letter-spacing: 0.2em;
    box-shadow: 0 10px 28px rgba(28, 22, 22, 0.22);
  }

  .hero-btn-ghost {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: transparent;
    color: var(--white);
    border: 0.5px solid rgba(250,248,244,0.5);
    padding: 16px 38px;
    cursor: pointer;
    transition: background 0.45s ease, border-color 0.45s ease, transform 0.45s ease, letter-spacing 0.45s ease;
    text-decoration: none;
    display: inline-block;
  }
  .hero-btn-ghost:hover {
    background: rgba(250,248,244,0.1);
    border-color: rgba(250,248,244,0.9);
    transform: translateY(-2px);
    letter-spacing: 0.2em;
  }

  .hero-rule {
    width: 48px;
    height: 0.5px;
    background: var(--gold);
    margin: 0 auto 28px;
    opacity: 0;
    animation: heroFadeIn 1.6s ease 1.15s forwards;
  }

  .hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: heroFadeIn 1.6s ease 2.3s forwards;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .hero-scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
  }
  .hero-scroll-indicator span {
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.45);
    transition: color 0.4s ease;
  }
  .hero-scroll-indicator:hover span {
    color: rgba(250,248,244,0.75);
  }
  .scroll-line {
    width: 0.5px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(250,248,244,0.45), transparent);
    animation: scrollPulse 2.8s ease-in-out 2.6s infinite;
    transform-origin: top;
  }

  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50%       { opacity: 0.95; transform: scaleY(1.18); }
  }

  body.hero-visible nav {
    background: rgba(240,235,224,0.92);
    border-bottom-color: rgba(97,87,76,0.18);
    backdrop-filter: blur(12px);
  }
  body.hero-visible .nav-logo,
  body.hero-visible .nav-links a,
  body.hero-visible .nav-book {
    color: var(--muted);
  }
  body.hero-visible .nav-links a:hover,
  body.hero-visible .nav-links a.active {
    color: var(--gold);
  }
  body.hero-visible .nav-book {
    border-color: transparent;
  }
  body.hero-visible .nav-book:hover {
    background: rgba(234, 228, 219, 0.12);
    color: var(--charcoal);
  }
  body.hero-visible .nav-logo span {
    color: var(--gold);
  }
  /* center crest color is handled in its own rule above via filter */

  nav {
    transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  }
  nav .nav-logo,
  nav .nav-links a,
  nav .nav-book {
    transition: color 0.4s ease, background 0.3s ease, border-color 0.4s ease;
  }
  /* center crest transitions already defined in .nav-center-logo img */

  /* sec-nav transitions mirror primary nav */
  .sec-nav {
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  }
  .sec-nav-item,
  .sec-nav-sep {
    transition: color 0.4s ease;
  }

  #page-home { padding-top: 0 !important; }

  @media (max-width: 768px) {
    #hero-bg-video   { display: block; object-position: center center; }
    #hero-fallback-img { display: none; }

    .hero-headline { font-size: clamp(40px, 10vw, 64px); }
    .hero-sub { font-size: 15px; }
    .hero-cta-row { gap: 10px; }
    .hero-btn-primary,
    .hero-btn-ghost {
      padding: 15px 26px;
      font-size: 10px;
      min-height: 48px;
    }
  }

  @media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-right { gap: 16px; }
    .listing-hero, .retreat-grid, .rooms-section, .story-section { padding-left: 24px; padding-right: 24px; }
    .experiences-section, .wellness-section, .detail-cta, footer { padding-left: 24px; padding-right: 24px; }
    .testimonial-section { padding-left: 24px; padding-right: 24px; }
    .retreat-card { grid-template-columns: 1fr; }
    .card-img { height: 320px; }
    .retreat-card:nth-child(even) .card-img { order: 0; }
    .retreat-card:nth-child(even) .card-body { order: 0; }
    .story-section { grid-template-columns: 1fr; gap: 40px; }
    .wellness-inner { grid-template-columns: 1fr; gap: 40px; }
    .exp-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand {
      gap: 16px;
    }
    .footer-social {
      padding-left: 14px;
    }
    .footer-social-icons {
      gap: 2px;
    }
    .back-btn { margin: 24px; }
    .detail-hero-content { left: 24px; bottom: 40px; }
  }

  /* ══════════════════════════════════════════════
     POOL & COURTYARD — FULL-SCREEN VIDEO SECTION
  ══════════════════════════════════════════════ */

  .pool-video-section {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;          /* content anchored bottom */
    justify-content: center;
  }

  /* ── Video element ──────────────────────────── */
  .pool-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Slow Ken Burns — section zoom from 1.06 to 1.0 over 20s */
    transform: scale(1.06);
    animation: poolZoom 20s ease-out forwards;
    will-change: transform;
    z-index: 0;
  }
  @keyframes poolZoom {
    to { transform: scale(1.0); }
  }

  /* ── Fallback image (mobile / no-video) ─────── */
  .pool-video-fallback {
    display: none;             /* hidden by default — shown via media query */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    z-index: 0;
  }

  /* ── Overlay — three-layer gradient ─────────── */
  /* Layer 1: Top vignette    — subtle darkness at the edges      */
  /* Layer 2: Bottom darkness — ensures text is always legible    */
  /* Layer 3: Warm colour wash — aligns with cream/charcoal brand */
  .pool-video-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(42,36,32,0.22)   0%,
        rgba(42,36,32,0.02)  30%,
        rgba(42,36,32,0.02)  55%,
        rgba(42,36,32,0.58)  85%,
        rgba(42,36,32,0.78) 100%
      ),
      linear-gradient(
        to right,
        rgba(42,36,32,0.18) 0%,
        transparent          50%,
        rgba(42,36,32,0.10) 100%
      );
    z-index: 1;
  }

  /* ── Content — floats above overlay ─────────── */
  .pool-video-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 80px 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    /* Staggered fade-up reveal — triggered by .in-view class */
    /* opacity: 0; */
    transform: translateY(24px);
    transition: opacity 0.0s, transform 0.0s; /* overridden by in-view */
  }
  .pool-video-section.in-view .pool-video-content {
    animation: poolContentReveal 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
  }
  @keyframes poolContentReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
  }

  /* Eyebrow — spaced caps with hairline left accent */
  .pool-eyebrow {
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.50);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: poolContentReveal 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.10s both;
  }
  .pool-video-section:not(.in-view) .pool-eyebrow { opacity: 0; }
  .pool-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 0.5px;
    background: rgba(184,154,106,0.55); /* --gold at 55% */
    flex-shrink: 0;
  }

  /* Main heading */
  .pool-heading {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.06;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    max-width: 640px;
    animation: poolContentReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both;
  }
  .pool-video-section:not(.in-view) .pool-heading { opacity: 0; }
  .pool-heading em {
    font-style: italic;
    color: rgba(250,248,244,0.68);
  }

  /* Gold rule separator */
  .pool-rule {
    width: 0;
    height: 0.5px;
    background: var(--gold);
    margin-bottom: 20px;
    transition: none;
    animation: poolRuleExpand 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both;
  }
  .pool-video-section:not(.in-view) .pool-rule { width: 0; }
  @keyframes poolRuleExpand {
    from { width: 0;   opacity: 0; }
    to   { width: 48px; opacity: 1; }
  }

  /* Description */
  .pool-desc {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.7;
    color: rgba(250,248,244,0.58);
    max-width: 480px;
    animation: poolContentReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.44s both;
  }
  .pool-video-section:not(.in-view) .pool-desc { opacity: 0; }

  /* ── Scroll indicator ───────────────────────── */
  .pool-scroll-cue {
    position: absolute;
    bottom: 32px;
    right: 72px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
  }
  .pool-video-section.in-view .pool-scroll-cue {
    animation: poolContentReveal 1s ease 1.2s forwards;
  }
  .pool-scroll-cue-text {
    font-family: var(--sans);
    font-size: 8px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.32);
    writing-mode: vertical-lr;
    text-orientation: mixed;
  }
  .pool-scroll-line {
    width: 0.5px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(250,248,244,0.35), transparent);
    animation: scrollLinePulse 2.4s ease-in-out 1.8s infinite;
  }
  @keyframes scrollLinePulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1);    }
    50%       { opacity: 0.9; transform: scaleY(1.2); transform-origin: top; }
  }

  /* ── Responsive ─────────────────────────────── */
  @media (max-width: 768px) {
    /* Swap to static image on mobile — save bandwidth */
    .pool-video-bg      { display: none; }
    .pool-video-fallback { display: block; }

    .pool-video-section {
      height: 75vh;
      min-height: 480px;
      align-items: flex-end;
    }
    .pool-video-content { padding: 0 24px 56px; }
    .pool-scroll-cue    { right: 24px; bottom: 24px; }
  }
  @media (max-width: 480px) {
    .pool-video-section { height: 68vh; min-height: 400px; }
    .pool-heading { font-size: clamp(32px, 9vw, 48px); }
  }

  @media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-right { gap: 16px; }
    .listing-hero, .retreat-grid, .rooms-section, .story-section { padding-left: 24px; padding-right: 24px; }
    .experiences-section, .wellness-section, .detail-cta, footer { padding-left: 24px; padding-right: 24px; }
    .testimonial-section { padding-left: 24px; padding-right: 24px; }
    .retreat-card { grid-template-columns: 1fr; }
    .card-img { height: 320px; }
    .retreat-card:nth-child(even) .card-img { order: 0; }
    .retreat-card:nth-child(even) .card-body { order: 0; }
    .story-section { grid-template-columns: 1fr; gap: 40px; }
    .wellness-inner { grid-template-columns: 1fr; gap: 40px; }
    .exp-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .back-btn { margin: 24px; }
    .detail-hero-content { left: 24px; bottom: 40px; }
  }


 @media (max-width: 768px) {
  .hero-content {
    padding: 0 20px 88px;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .hero-btn-primary,
  .hero-btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-scroll-indicator {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 20px;
    flex-direction: column;
    gap: 10px;
  }

  .hero-scroll-indicator:hover {
    transform: translateX(-50%) translateY(3px);
  }

  .hero-scroll-indicator .scroll-line {
    width: 0.5px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(250,248,244,0.45), transparent);
  }

  #hero-mute-btn {
    left: 14px;
    bottom: 18px;
  }

  .exp-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .exp-explore-btn {
    width: 100%;
    justify-content: center;
  }
}
