/* ── 1. Design tokens (CSS custom properties) ──────────────
 * src/core/tokens.css
 * Font families declared via --font-serif and --font-sans.
 * Each font string must appear EXACTLY ONCE (CSS-1 invariant).
 * ──────────────────────────────────────────────────────────── */

:root {
  /* Greens */
  --cream: #f4ecd8;
  --warm-white: #fcf8ed;
  --pine: #4a543f;
  --pine-light: #6e7354;
  --pine-dark: #313620;
  --pine-mid: #8c926c;
  --mist: #d6d2b8;

  /* Earths */
  --earth: #8b6347;
  --terracotta: #c4724a;
  --gold: #b3a05b;

  /* Darks */
  --charcoal: #2a2522;
  --charcoal-deep: #1a1a17;
  --slate: #4a5568;
  --slate-light: #718096;
  --slate-dark: #2d3748;
  --text-warm: #3d3530;

  /* Blues */
  --slate-blue: #2d4a7a;
  --slate-blue-mid: #4a6aad;

  /* Typography */
  --font-serif: "Palmore", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Fz poppin", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-sans); /* alias — faq.css and rooms.css use this name */

  /* Semi-transparent alpha variants (CSS-3) — derived from --gold: #b3a05b = rgb(179,160,91) */
  --gold-10: rgba(179, 160, 91, 0.1);
  --gold-20: rgba(179, 160, 91, 0.2);
  --gold-35: rgba(179, 160, 91, 0.35);
  --gold-40: rgba(179, 160, 91, 0.4);
  --mist-20: rgba(184, 202, 189, 0.2);
  --mist-50: rgba(184, 202, 189, 0.5);
  --pine-dark-80: rgba(26, 48, 40, 0.8);
  --pine-dark-90: rgba(26, 48, 40, 0.9);
  --pine-dark-92: rgba(26, 48, 40, 0.92);
  --pine-29: rgba(29, 42, 38, 0.9);
  --cream-90: rgba(253, 250, 245, 0.9);

  /* Gradient interpolation stops (used in room/blog card backgrounds) */
  --brown-deep: #6b3a22;
  --terracotta-dark: #c45a30;
  --pine-deep: #243d38;
  --slate-mid: #5a6a84;
  --brown-dark: #5c3318;
  --earth-warm: #b86040;
  --blue-deep: #3a5a9a;
  --indigo-muted: #3d5490;

  /* Layout */
  --nav-height: 80px;
}

/* ── 2. Root wrapper + base resets ──────────────────────────
 * src/core/reset.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  background: var(--warm-white);
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-warm);
}

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

#cp12-wrap a {
  text-decoration: none;
}

/* ── 3. Accessibility utilities ──────────────────────────────
 * src/core/accessibility.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#cp12-wrap .skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 999999;
  transition: top 0.2s;
  border: none;
  cursor: pointer;
}

#cp12-wrap .skip-nav:focus {
  top: 1rem;
}

#cp12-wrap *:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* :focus fallback for browsers without :focus-visible support */
#cp12-wrap *:focus:not(:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#cp12-wrap button:focus-visible,
#cp12-wrap a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Mobile nav CTA colour (replaces inline style) */
#cp12-wrap .nav-mobile-cta {
  color: var(--gold);
}

/* ── i18n: FOUC prevention ──────────────────────────────────
 * Elements with data-i18n are hidden until lang-switcher
 * (IIFE 0) applies translations and removes i18n-loading.  */
html.i18n-loading [data-i18n],
html.i18n-loading [data-i18n-html] {
  opacity: 0;
}

/* ── 4. Navigation (desktop) ─────────────────────────────────
 * src/layout/nav.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .cp12-main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Base transparency, overridden by .nav-over-dark on load */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    background 0.45s ease,
    backdrop-filter 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

/* ── Nav element base styles ─────────────────────────────── */

#cp12-wrap .nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.05em;
  transition: color 0.45s ease;
}

#cp12-wrap .nav-logo span {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  transition: color 0.45s ease;
}

#cp12-wrap .nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

#cp12-wrap .nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.3s;
  position: relative;
}

/* Animated underline — grows from center on hover */
#cp12-wrap .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cp12-wrap .nav-links a:hover {
  color: var(--cream);
}

#cp12-wrap .nav-links a:hover::after {
  width: 100%;
  left: 0;
}

#cp12-wrap .nav-links a:focus-visible {
  outline: none;
  color: var(--cream);
}

/* Focus indicator for nav links: extend the underline animation instead of a box */
#cp12-wrap .nav-links a:focus-visible::after {
  width: 100%;
  left: 0;
  background: var(--gold);
}

#cp12-wrap .cp12-main-nav a.nav-cta {
  background: var(--pine);
  color: var(--cream);
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Nav CTA — no underline pseudo-element */
#cp12-wrap .cp12-main-nav a.nav-cta::after {
  display: none;
}

#cp12-wrap .cp12-main-nav a.nav-cta:hover {
  background: var(--terracotta);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 114, 74, 0.3);
}

#cp12-wrap .cp12-main-nav a.nav-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}



/* ── Scrolled over LIGHT sections (rooms, about, journal) ──────────────────
   Warm cream frosted glass — neutral, readable                              */
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) {
  background: rgba(253, 250, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(45, 74, 62, 0.08);
}

#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .nav-logo {
  color: var(--pine);
}
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .nav-logo span {
  color: var(--earth);
}
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .nav-links a {
  color: var(--pine);
}
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .nav-links a:hover {
  color: var(--terracotta);
}
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) a.nav-cta {
  background: var(--pine);
  color: var(--cream);
  border: 1px solid transparent;
}
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) a.nav-cta:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* ── Over DARK sections (hero, video, explore, book) ──────────────
   Pine Forest frosted glass — immersive, brand-forward                      */
#cp12-wrap .cp12-main-nav.nav-over-dark {
  background: rgba(26, 48, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}

#cp12-wrap .cp12-main-nav.nav-over-dark .nav-logo {
  color: var(--cream);
}
#cp12-wrap .cp12-main-nav.nav-over-dark .nav-logo span {
  color: var(--gold);
}
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .nav-hamburger {
  color: var(--pine);
}
#cp12-wrap .cp12-main-nav.nav-over-dark .nav-links a {
  color: var(--mist);
}
#cp12-wrap .cp12-main-nav.nav-over-dark .nav-links a:hover {
  color: var(--gold);
}

#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .nav-links a:hover::after,
#cp12-wrap .cp12-main-nav.nav-over-dark .nav-links a:hover::after {
  width: 100%;
  left: 0;
}
#cp12-wrap .cp12-main-nav.nav-over-dark a.nav-cta {
  background: var(--gold);
  color: var(--charcoal);
}
#cp12-wrap .cp12-main-nav.nav-over-dark a.nav-cta:hover {
  background: var(--terracotta);
  color: var(--cream);
}
#cp12-wrap .cp12-main-nav.nav-over-dark .nav-hamburger {
  color: var(--cream);
}

/* ── Language toggle button ─────────────────────────────── */
#cp12-wrap .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s;
  /* WCAG 2.5.5: minimum touch target height */
  min-height: 44px;
  justify-content: center;
}

#cp12-wrap .lang-btn:hover {
  color: var(--gold);
}

#cp12-wrap .lang-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#cp12-wrap .lang-btn .lang-active {
  font-weight: 700;
  color: var(--gold);
}

#cp12-wrap .lang-btn .lang-sep {
  opacity: 0.35;
  margin: 0 0.1rem;
}

/* Adapt lang button to nav colorway states */
#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .lang-btn {
  color: var(--slate);
}

#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .lang-btn:hover {
  color: var(--pine);
}

#cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) .lang-btn .lang-active {
  color: var(--earth);
}

/* Mobile hamburger */
#cp12-wrap .nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--pine);
  line-height: 1;
  /* WCAG 2.5.5: minimum 44×44px touch target */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

#cp12-wrap .nav-hamburger svg {
  display: block;
}

/* ── Nav responsive rules ────────────────────────────────── */

/* Hide desktop lang button when hamburger appears — moved into mobile overlay */
@media (max-width: 900px) {
  #cp12-wrap .cp12-main-nav .lang-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .cp12-main-nav {
    padding: 0.75rem 1rem;
  }
  /* Tighten nav-logo size on very small screens */
  #cp12-wrap .nav-logo {
    font-size: 1.2rem;
  }
}

/* ── 4b. Navigation — mobile overlay ─────────────────────────
 * src/layout/nav-mobile.css
 * ──────────────────────────────────────────────────────────── */

/* Mobile overlay */
#cp12-wrap .nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--pine);
  z-index: 1001; /* Must exceed nav bar z-index (1000) so overlay renders above hamburger */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

#cp12-wrap .nav-mobile-overlay.open {
  display: flex;
}

#cp12-wrap .nav-mobile-overlay a {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--cream);
  letter-spacing: 0.05em;
  font-weight: 300;
  transition: color 0.2s;
  /* WCAG 2.5.5: min touch target for mobile nav links */
  min-height: 44px;
  display: flex;
  align-items: center;
}

#cp12-wrap .nav-mobile-overlay a:hover {
  color: var(--gold);
}

#cp12-wrap .nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  /* WCAG 2.5.5: minimum 44×44px touch target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Mobile overlay — lang switcher ─────────────────────── */

#cp12-wrap .nav-mobile-divider {
  width: 2.5rem;
  border: none;
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  margin: 0;
}

#cp12-wrap .nav-mobile-overlay .lang-btn {
  color: var(--mist);
  font-size: 1.1rem;
}

#cp12-wrap .nav-mobile-overlay .lang-btn:hover {
  color: var(--gold);
}

#cp12-wrap .nav-mobile-overlay .lang-btn .lang-active {
  color: var(--gold);
}

/* ── Mobile overlay responsive ───────────────────────────── */

@media (max-width: 480px) {
  /* Tighten font size slightly for very narrow screens */
  #cp12-wrap .nav-mobile-overlay a {
    font-size: 1.8rem;
  }
  #cp12-wrap .nav-mobile-overlay {
    gap: 1.8rem;
  }
}

/* ── Section progress dots ───────────────────────────────────
 * src/layout/dots.css
 * ──────────────────────────────────────────────────────────── */

#cp12-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.4rem 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#cp12-dots.visible {
  opacity: 1;
}

#cp12-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
}

/* Tooltip */
#cp12-dots .dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(29, 42, 38, 0.9);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s 0.1s;
}

#cp12-dots .dot:hover::after,
#cp12-dots .dot:focus-visible::after {
  opacity: 1;
}

#cp12-dots .dot:hover,
#cp12-dots .dot:focus-visible {
  background: var(--gold);
  transform: scale(1.25);
  outline: none;
}

#cp12-dots .dot[aria-current="true"] {
  background: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25);
}

/* Dark sections — dots switch to lighter colour */
#cp12-dots.on-dark .dot {
  background: rgba(255, 255, 255, 0.4);
}
#cp12-dots.on-dark .dot:hover,
#cp12-dots.on-dark .dot:focus-visible,
#cp12-dots.on-dark .dot[aria-current="true"] {
  background: var(--gold);
}

/* On cream sections */
#cp12-dots.on-light .dot {
  background: rgba(29, 42, 38, 0.25);
}
#cp12-dots.on-light .dot:hover,
#cp12-dots.on-light .dot:focus-visible,
#cp12-dots.on-light .dot[aria-current="true"] {
  background: var(--pine);
}

/* Hide on mobile */
@media (max-width: 900px) {
  #cp12-dots {
    display: none;
  }
}

/* ── Next-section floating button ───────────────────────────
 * src/layout/next-btn.css
 * ──────────────────────────────────────────────────────────── */

#cp12-next-btn {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(29, 42, 38, 0.75);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    background 0.25s,
    transform 0.25s;
  animation: cp12BobDown 2.4s ease-in-out infinite;
  backdrop-filter: blur(6px);
}

#cp12-next-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

#cp12-next-btn:hover {
  background: var(--pine);
  border-color: var(--gold);
  transform: translateX(-50%) translateY(4px);
  animation: none;
}

#cp12-next-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  #cp12-next-btn {
    display: none;
  }
}

/* ── Buttons — shared base (CSS-2 invariant) ─────────────────
 * src/core/buttons.css
 * The grouped selector satisfies validate.js CSS-2 check.
 * ──────────────────────────────────────────────────────────── */

/* Shared base (CSS-2) */
#cp12-wrap .btn-primary,
#cp12-wrap .btn-gold,
#cp12-wrap .btn-outline,
#cp12-wrap .btn-ghost {
  padding: 1rem 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* Focus visible — shared accessible ring */
#cp12-wrap .btn-primary:focus-visible,
#cp12-wrap .btn-gold:focus-visible,
#cp12-wrap .btn-outline:focus-visible,
#cp12-wrap .btn-ghost:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Primary / Gold — filled */
#cp12-wrap .btn-primary,
#cp12-wrap .btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

#cp12-wrap .btn-primary:hover,
#cp12-wrap .btn-gold:hover {
  background: var(--terracotta);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 114, 74, 0.35);
}

/* Outline — mist border */
#cp12-wrap .btn-outline {
  border: 1px solid var(--mist-50);
  color: var(--mist);
}

#cp12-wrap .btn-outline:hover {
  border-color: var(--mist);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 202, 189, 0.15);
}

/* Ghost — gold border */
#cp12-wrap .btn-ghost {
  border: 1px solid var(--gold-40);
  color: var(--gold);
}

#cp12-wrap .btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-10);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 160, 91, 0.2);
}

/* ── Section label component ─────────────────────────────────
 * src/core/section-labels.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#cp12-wrap .section-label::before,
#cp12-wrap .section-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

#cp12-wrap .section-label--left {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

#cp12-wrap .section-label--left::before,
#cp12-wrap .section-label--left::after {
  display: none;
}

#cp12-wrap .section-label--gold {
  color: var(--gold);
}

#cp12-wrap .section-label--cta {
  margin-bottom: 1.5rem;
}

/* Light variant — used on warm-white backgrounds (testimonials, faq, location).
 * Same gold color as default; declared explicitly so the modifier is intentional
 * and can be themed independently if background colors change. */
#cp12-wrap .section-label--light {
  color: var(--gold);
}

/* ── Section heading (used across rooms, about, journal) ── */

#cp12-wrap .section-heading {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 300;
  line-height: 1.05;
  color: var(--pine);
}

#cp12-wrap .section-heading em {
  font-style: italic;
  color: var(--terracotta);
}

@media (max-width: 768px) {
  #cp12-wrap .section-heading {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .section-heading {
    font-size: 2.6rem;
  }
}

/* ── Shared card eyebrow — category label above a card title ──
 * Used by: .travel-cat (explore), .blog-card-cat (journal).
 * Apply .card-eyebrow as an additional class, or use the
 * feature-specific class + extend at the feature level for color. */

#cp12-wrap .card-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Shared inline arrow link — text + animated → arrow ───────
 * Used by: .room-link (rooms), .blog-link (journal).
 * Feature files set the base color; hover color is terracotta or pine
 * depending on context, so color overrides stay in feature CSS. */

#cp12-wrap .card-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s, gap 0.3s;
}

#cp12-wrap .card-arrow-link::after {
  content: "\2192"; /* → */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cp12-wrap .card-arrow-link:hover {
  gap: 0.75rem;
}

#cp12-wrap .card-arrow-link:hover::after {
  transform: translateX(5px);
}

/* ── 6. Animations + reveal system ──────────────────────────
 * src/core/animations.css
 * Contains: fade-up, delay utilities, cp12-reveal, reduced-motion guard (A-1),
 * and all shared @keyframes used by multiple sections.
 * Note: cp12BobDown keyframe is also used by next-btn; kept here for single
 * source of truth. Section-specific animation signatures live in each feature.
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .fade-up {
  animation: cp12fu 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#cp12-wrap .delay-1 {
  animation-delay: 0.15s;
  opacity: 0;
}
#cp12-wrap .delay-2 {
  animation-delay: 0.3s;
  opacity: 0;
}
#cp12-wrap .delay-3 {
  animation-delay: 0.45s;
  opacity: 0;
}
#cp12-wrap .delay-4 {
  animation-delay: 0.6s;
  opacity: 0;
}
#cp12-wrap .delay-5 {
  animation-delay: 0.75s;
  opacity: 0;
}

@keyframes cp12fu {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared entrance keyframes */
@keyframes cp12SlideLeft {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes cp12SlideRight {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes cp12ScaleUp {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes cp12FadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes cp12GlowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 169, 110, 0);
  }
}
@keyframes cp12BobDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

/* IntersectionObserver reveal */
#cp12-wrap .cp12-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

#cp12-wrap .cp12-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── A-1: Respect OS reduced-motion preference ───────────── */
@media (prefers-reduced-motion: reduce) {
  #cp12-wrap .cp12-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #cp12-wrap .cp12-reveal.visible {
    opacity: 1;
    transform: none;
  }
  #cp12-wrap .fade-up,
  #cp12-wrap .delay-1,
  #cp12-wrap .delay-2,
  #cp12-wrap .delay-3,
  #cp12-wrap .delay-4,
  #cp12-wrap .delay-5 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  #cp12-wrap .scroll-line {
    animation: none;
    opacity: 0.7;
  }
  #cp12-wrap .room-img-bg,
  #cp12-wrap .travel-card-img-bg {
    transition: none;
  }
  /* Disable all card hover transforms */
  #cp12-wrap .btn-primary:hover,
  #cp12-wrap .btn-gold:hover,
  #cp12-wrap .btn-outline:hover,
  #cp12-wrap .btn-ghost:hover {
    transform: none;
    box-shadow: none;
  }
  #cp12-wrap .play-btn:hover {
    transform: none;
  }
  #cp12-wrap .travel-card:hover,
  #cp12-wrap .blog-card:hover,
  #cp12-wrap .room-card:hover {
    transform: none;
    box-shadow: none;
  }
  /* Disable nav link underline animation */
  #cp12-wrap .nav-links a::after {
    transition: none;
  }
  /* Disable image zoom on hover */
  #cp12-wrap .room-card:hover .room-img-bg,
  #cp12-wrap .travel-card:hover .travel-card-img-bg,
  #cp12-wrap .blog-card:hover .bi1,
  #cp12-wrap .blog-card:hover .bi2,
  #cp12-wrap .blog-card:hover .bi3 {
    transform: none;
    filter: none;
  }
  /* Disable overlay fade on hover */
  #cp12-wrap .room-img::after,
  #cp12-wrap .travel-card-img::after,
  #cp12-wrap .blog-card-img::after {
    transition: none;
    opacity: 0;
  }
  /* Disable social link lift */
  #cp12-wrap .social-link:hover {
    transform: none;
    box-shadow: none;
  }
  /* Disable filter tab lift */
  #cp12-wrap .tab:hover:not(.active) {
    transform: none;
    box-shadow: none;
  }
  /* Disable booking step-num scale */
  #cp12-wrap .booking-step:hover .step-num {
    transform: none;
    box-shadow: none;
  }
  /* Disable nav CTA lift */
  #cp12-wrap .cp12-main-nav a.nav-cta:hover {
    transform: none;
    box-shadow: none;
  }
  /* Disable room-link and blog-link gap animation */
  #cp12-wrap .room-link,
  #cp12-wrap .blog-link {
    transition: color 0.3s;
  }
  #cp12-wrap .room-link:hover,
  #cp12-wrap .blog-link:hover {
    gap: 0.5rem;
  }
  #cp12-wrap .room-link::after,
  #cp12-wrap .blog-link::after {
    transition: none;
  }
  #cp12-next-btn {
    animation: none;
  }
  /* Disable entrance animations for new light sections (REC-5) */
  #cp12-wrap .sect-testimonials .testimonial-card,
  #cp12-wrap .sect-testimonials.animated .testimonial-card,
  #cp12-wrap .sect-location .location-grid,
  #cp12-wrap .sect-location.animated .location-grid,
  #cp12-wrap .sect-faq .faq-item,
  #cp12-wrap .sect-faq.animated .faq-item {
    animation: none;
    opacity: 1;
  }
  /* Suppress infinite glow pulse on CTA button (WCAG 2.1 SC 2.3.3) */
  #cp12-wrap .sect-book.animated .btn-primary {
    animation-name: cp12ScaleUp;
    animation-iteration-count: 1;
  }
  /* CRIT-2: Disable smooth scroll for users with vestibular/motion sensitivity (WCAG 2.1 SC 2.3.3) */
  #cp12-wrap {
    scroll-behavior: auto;
  }
}

/* ── Lazy image loader — placeholder + shimmer ────────────────
 * src/shared/lazy-loader.css
 * Inserted after core/animations.css in build.js cssSources.
 *
 * .cp12-lazy         = element whose background-image is deferred
 * .cp12-lazy::before = animated shimmer while loading
 * .cp12-loaded       = added by lazy-loader.js once image is applied
 * ──────────────────────────────────────────────────────────── */

/* Placeholder state: solid colour while image defers */
#cp12-wrap .cp12-lazy {
  background: var(--pine-dark);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on top of placeholder */
#cp12-wrap .cp12-lazy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cp12Shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Remove shimmer once image has loaded */
#cp12-wrap .cp12-lazy.cp12-loaded::before {
  display: none;
}

/* Shimmer keyframe */
@keyframes cp12Shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  #cp12-wrap .cp12-lazy::before {
    animation: none;
    display: none;
  }
}

/* ── 5. Hero / Home section ──────────────────────────────────
 * src/features/home/home.css
 * Button rules go in src/core/buttons.css — not here.
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .hero {
  min-height: 100vh;
  margin-top: -1px; /* close hairline gap from #cp12-wrap background bleed above hero */
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

#cp12-wrap .hero-left {
  background: var(--pine);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 5rem 6rem; /* 10rem top = 8rem content offset + ~2rem nav height */
  position: relative;
}

#cp12-wrap .hero-left::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 0;
  bottom: 0;
  width: 80px;
  background: var(--pine);
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
  display: none;
}

#cp12-wrap .hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#cp12-wrap .hero-tag::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--mist);
}

#cp12-wrap .hero-title {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 0.9;
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

#cp12-wrap .hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

#cp12-wrap .hero-subtitle {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 3rem;
}

#cp12-wrap .hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero right panel */
#cp12-wrap .hero-right {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

#cp12-wrap .hero-image-bg {
  position: absolute;
  inset: 0;
  background: url("static/img/hero-cover.jpg") right center/cover no-repeat;
}

#cp12-wrap .hero-image-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23B8CABD'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  display: none;
}

#cp12-wrap .hero-image-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

#cp12-wrap .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184, 202, 189, 0.2);
  margin-top: 2rem;
}

#cp12-wrap .stat-box {
  background: rgba(29, 42, 38, 0.9);
  padding: 1.5rem;
  text-align: center;
}

#cp12-wrap .stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

#cp12-wrap .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  display: block;
  margin-top: 0.4rem;
}

#cp12-wrap .hero-pine-icon {
  font-size: 8rem;
  opacity: 0.15;
  position: absolute;
  top: 20%;
  right: 20%;
  display: none;
}

/* Play button (hero) */
#cp12-wrap .play-btn-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

#cp12-wrap .play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#cp12-wrap .play-btn::after {
  content: "";
  border-left: 22px solid var(--gold);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 5px;
}

#cp12-wrap .play-btn:hover {
  background: rgba(201, 169, 110, 0.35);
  transform: scale(1.08);
}

#cp12-wrap .play-label {
  color: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Scroll hint */
#cp12-wrap .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#cp12-wrap .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--mist), transparent);
  animation: cp12sp 2s ease-in-out infinite;
}

@keyframes cp12sp {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ── Hero responsive rules ───────────────────────────────── */

@media (max-width: 900px) {
  #cp12-wrap .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
  }
  #cp12-wrap .hero-right {
    display: block;
    order: -1;
  }
  #cp12-wrap .hero-image-content {
    display: none; /* Hide stats/play button over image on mobile to keep it clean */
  }
  #cp12-wrap .hero-title {
    font-size: 3.5rem;
  }
  /* Reduce left padding on hero-left at tablet to match smaller viewport */
  #cp12-wrap .hero-left {
    padding: 6rem 3rem 4rem;
  }
  /* scroll-hint is over hero-left in single-col — hide to avoid overlap */
  #cp12-wrap .scroll-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  #cp12-wrap .hero-title {
    font-size: 3rem;
  }
  #cp12-wrap .hero-left {
    padding: 8rem 2.5rem 4rem;
  }
  #cp12-wrap .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  #cp12-wrap .stat-num {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .hero-title {
    font-size: 2.6rem;
    line-height: 1;
  }
  #cp12-wrap .hero-left {
    padding: 7rem 1.5rem 3rem;
  }
  /* Hide the diagonal clip-path sliver — it overflows at single-column width */
  #cp12-wrap .hero-left::after {
    display: none;
  }
  #cp12-wrap .hero-btns {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  /* Slightly tighter hero text for very narrow screens */
  #cp12-wrap .hero-title {
    font-size: 2.2rem;
  }
  #cp12-wrap .hero-subtitle {
    font-size: 0.88rem;
  }
  /* stat-num: reduce for very small screens */
  #cp12-wrap .stat-num {
    font-size: 1.6rem;
  }
}

/* ── 9. Video section ─────────────────────────────────────────
 * src/features/video/video.css
 * ──────────────────────────────────────────────────────────── */

/* Hide until real welcome video is ready — revert by removing these two rules */
#cp12-wrap #video { display: none; }
#cp12-wrap #cp12-dots [data-target="video"] { display: none; }

#cp12-wrap .video-section {
  background: linear-gradient(
    180deg,
    var(--pine) 0%,
    var(--charcoal) 240px,
    var(--charcoal) 100%
  );
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

#cp12-wrap .video-section::before {
  content: "CP12";
  position: absolute;
  font-family: var(--font-serif);
  font-size: 20rem;
  color: rgba(255, 255, 255, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 700;
  user-select: none;
}

#cp12-wrap .video-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

#cp12-wrap .video-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.1;
}

#cp12-wrap .video-title em {
  font-style: italic;
  color: var(--gold);
}

#cp12-wrap .video-desc {
  color: rgba(184, 202, 189, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 3rem;
}

#cp12-wrap .video-frame {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pine-dark) 0%, var(--pine) 100%);
  border: 1px solid rgba(201, 169, 110, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

#cp12-wrap .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

#cp12-wrap .big-play {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.15);
  border: 2px solid rgba(201, 169, 110, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    transform 0.3s,
    border-color 0.3s;
}

#cp12-wrap .big-play::after {
  content: "";
  border-left: 28px solid var(--gold);
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  margin-left: 6px;
}

#cp12-wrap .video-frame:hover .big-play {
  background: rgba(201, 169, 110, 0.3);
  transform: scale(1.1);
}

#cp12-wrap .video-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

/* ── Video section animation signatures ───────────────────── */

#cp12-wrap .sect-video .video-title {
  opacity: 0;
}
#cp12-wrap .sect-video.animated .video-title {
  animation: cp12fu 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
#cp12-wrap .sect-video .video-desc {
  opacity: 0;
}
#cp12-wrap .sect-video.animated .video-desc {
  animation: cp12fu 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
#cp12-wrap .sect-video .video-frame {
  opacity: 0;
  transform: scale(0.96);
}
#cp12-wrap .sect-video.animated .video-frame {
  animation: cp12FadeScale 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* ── Video responsive rules ──────────────────────────────── */

@media (max-width: 768px) {
  #cp12-wrap .video-section {
    padding: 5rem 0;
  }
  #cp12-wrap .video-container {
    padding: 0 2rem;
  }
  #cp12-wrap .video-title {
    font-size: 2.8rem;
  }
  #cp12-wrap .video-desc {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .video-section {
    padding: 4rem 0;
  }
  #cp12-wrap .video-container {
    padding: 0 1.5rem;
  }
  #cp12-wrap .video-title {
    font-size: 2.2rem;
  }
  /* Scale down the big play button slightly so it doesn't dominate small screens */
  #cp12-wrap .big-play {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 430px) {
  #cp12-wrap .video-title {
    font-size: 2rem;
  }
}

/* ── 10. Rooms section ────────────────────────────────────────
 * src/features/rooms/rooms.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .rooms-section {
  padding: 5rem 3rem 8rem; /* reduced top to remove dead-zone; keep generous bottom */
  background: var(--cream);
  position: relative;
  /* CRIT-2/IMPORTANT-5: overflow:hidden removed — it clips the expansion panel */
}

/* Section transition bands removed — sections now use natural body scroll */
/* (Transition gradient pseudo-elements caused dark bands under body-scroll layout) */

#cp12-wrap .rooms-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

#cp12-wrap .rooms-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-warm);
  opacity: 0.8;
}

#cp12-wrap .rooms-grid {
  display: grid;
  /* auto-fill for large catalog cards — 2-col on desktop, 1-col on mobile */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* lone last card in a 2-col row spans full width — centered, capped at 600px.
 * Works correctly for odd number of cards (e.g. 7th card alone in row 4). */
#cp12-wrap .rooms-grid .room-card:last-child:nth-child(2n + 1) {
  grid-column: 1 / -1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#cp12-wrap .room-card {
  position: relative;
  background: var(--warm-white);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(26, 48, 40, 0.07);
}

#cp12-wrap .room-img {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

#cp12-wrap .room-img-bg {
  position: absolute;
  inset: 0;
  /* real photos fill the image area */
  background-size: cover;
  background-position: center;
  /* neutral fallback when neither coverPhoto nor bgClass is present */
  background-color: var(--pine-dark);
}

#cp12-wrap .room-img-bg-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


#cp12-wrap .room-price-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(253, 250, 245, 0.95);
  padding: 0.6rem 1rem;
  text-align: center;
}

#cp12-wrap .price-vnd {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--pine);
  display: block;
  line-height: 1;
  font-weight: 600;
}

#cp12-wrap .price-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth);
}

#cp12-wrap .featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  font-weight: 500;
}

#cp12-wrap .room-body {
  padding: 2rem;
}

#cp12-wrap .room-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--pine);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

#cp12-wrap .room-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--earth);
}

#cp12-wrap .room-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#cp12-wrap .room-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-warm);
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

#cp12-wrap .room-best-for {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--pine);
  opacity: 0.85;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
}

#cp12-wrap .amenity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

#cp12-wrap .pill {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: var(--cream);
  color: var(--pine);
  border: 1px solid rgba(45, 74, 62, 0.15);
}

/* arrow link — shared base from section-labels.css (.card-arrow-link);
 * only color overrides are specific to this section */
#cp12-wrap .room-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--pine);
  transition: color 0.3s, gap 0.3s;
}

#cp12-wrap .room-link::after {
  content: "\2192";
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ── Rooms section animation signatures ───────────────────── */

#cp12-wrap .sect-rooms .rooms-header {
  opacity: 0;
}
#cp12-wrap .sect-rooms.animated .rooms-header {
  animation: cp12fu 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Note: Room cards no longer use entrance animations to prevent 
 * "blank beige viewport" issues when scrolling too fast on mobile. */

/* ── Rooms responsive rules ──────────────────────────────── */

@media (max-width: 900px) {
  /* rooms-grid uses auto-fill — no override needed; it goes 3→2→1 naturally.
   * rooms-header still collapses from 2-col to 1-col at 900px. */
  #cp12-wrap .rooms-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #cp12-wrap .rooms-section {
    padding: 4rem 2rem 6rem;
  }
  #cp12-wrap .rooms-header {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .rooms-section {
    padding: 4rem 1.5rem;
  }
  #cp12-wrap .rooms-header {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  #cp12-wrap .room-meta {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }
}

@media (max-width: 430px) {
  /* Rooms grid: reduce gap at very narrow widths */
  #cp12-wrap .rooms-grid {
    gap: 1rem;
  }
}

/* ── Coming Soon card ───────────────────────────────────── */
#cp12-wrap .room-card--coming-soon {
  opacity: 0.82;
  pointer-events: none;
}

#cp12-wrap .room-coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pine-dark-90, rgba(26,48,40,0.9)) 0%, rgba(45,74,62,0.75) 100%);
}

#cp12-wrap .room-coming-soon-icon {
  font-size: 3rem;
  opacity: 0.7;
}

#cp12-wrap .coming-soon-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--pine-dark);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

#cp12-wrap .room-link--soon {
  display: inline-block;
  color: var(--slate-light);
  font-size: 0.85rem;
  cursor: default;
  opacity: 0.6;
}

/* ── 11. Room detail modal ─────────────────────────────────────
 * src/features/rooms/room-modal.css
 * All rules scoped under #cp12-wrap
 * ──────────────────────────────────────────────────────────── */

/* ── Overlay ── */

#cp12-wrap .room-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  /* Pine-dark backdrop — brand-consistent, slightly less opaque than video modal */
  background: rgba(26, 48, 40, 0.88);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* CRIT-1: backdrop fade — opacity starts at 0, transitions to 1 on .open */
  opacity: 0;
  transition: opacity 0.28s ease;
}

#cp12-wrap .room-modal.open {
  display: flex;
  opacity: 1;
}

/* ── Inner container ── */

#cp12-wrap .room-modal-inner {
  display: grid;
  grid-template-columns: 65% 1fr;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  background: var(--warm-white);
  overflow: hidden;
  position: relative;
  animation: roomModalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes roomModalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Cross-room switching: fade content while repopulating */
#cp12-wrap .room-modal-inner.room-modal-switching {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ── Gallery column (left 55%) ── */

#cp12-wrap .room-modal-gallery {
  display: flex;
  flex-direction: column;
  background: var(--pine-dark);
  overflow: hidden;
}

#cp12-wrap .room-modal-main-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--pine-dark);
  min-height: 480px;
}

#cp12-wrap .room-modal-caption {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.58);
  padding: 0.5rem 1.5rem;
  min-height: 1.8rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

#cp12-wrap .room-modal-photo-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  background: rgba(26, 48, 40, 0.94);
}

#cp12-wrap .room-modal-prev,
#cp12-wrap .room-modal-next {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--warm-white);
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  /* Minimum touch target 44×44 */
  min-width: 44px;
  min-height: 44px;
}

#cp12-wrap .room-modal-prev:hover,
#cp12-wrap .room-modal-next:hover,
#cp12-wrap .room-modal-prev:focus-visible,
#cp12-wrap .room-modal-next:focus-visible,
#cp12-wrap .room-modal-prev.btn-active,
#cp12-wrap .room-modal-next.btn-active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.65);
}

#cp12-wrap .room-modal-counter {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
}

#cp12-wrap .room-modal-thumbs {
  display: flex;
  gap: 2px;
  padding: 0.5rem 1.5rem 0.75rem;
  background: rgba(26, 48, 40, 0.94);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#cp12-wrap .room-modal-thumb {
  flex: 0 0 3.4rem;
  height: 2.8rem;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.52;
}

#cp12-wrap .room-modal-thumb.active,
#cp12-wrap .room-modal-thumb:hover {
  border-color: var(--gold);
  opacity: 1;
  transform: scale(1.06);
}

/* ── Content column (right 45%) ── */

#cp12-wrap .room-modal-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

#cp12-wrap .room-modal-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--pine);
  line-height: 1.15;
}

#cp12-wrap .room-modal-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--earth);
  font-weight: 600;
}

#cp12-wrap .room-modal-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.06em;
}

#cp12-wrap .room-modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#cp12-wrap .room-modal-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-warm);
  opacity: 0.85;
  flex: 1;
}

#cp12-wrap .room-modal-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#cp12-wrap .room-modal-amenity-chip {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: var(--cream);
  color: var(--pine);
  border: 1px solid rgba(45, 74, 62, 0.15);
}

#cp12-wrap .room-modal-book-btn {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 1rem 2.5rem;
  background: var(--pine);
  color: var(--warm-white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s,
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s;
}

#cp12-wrap .room-modal-book-btn:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 114, 74, 0.3);
}

#cp12-wrap .room-modal-book-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Close button ── */

#cp12-wrap .room-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(26, 48, 40, 0.85);
  border: none;
  color: var(--warm-white);
  width: 2.4rem;
  height: 2.4rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s,
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#cp12-wrap .room-modal-close:hover {
  background: rgba(26, 48, 40, 1);
  transform: rotate(90deg);
}

#cp12-wrap .room-modal-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ── Reduced-motion guard ── */

@media (prefers-reduced-motion: reduce) {
  #cp12-wrap .room-modal {
    transition: none;
  }
  #cp12-wrap .room-modal-inner {
    animation: none;
  }
  #cp12-wrap .room-modal-inner.room-modal-switching {
    transition: none;
  }
  #cp12-wrap .room-modal-thumb {
    transition: none;
    transform: none;
  }
  #cp12-wrap .room-modal-thumb.active,
  #cp12-wrap .room-modal-thumb:hover {
    transform: none;
  }
  #cp12-wrap .room-modal-prev,
  #cp12-wrap .room-modal-next {
    transition: none;
  }
  #cp12-wrap .room-modal-close {
    transition: none;
  }
  #cp12-wrap .room-modal-close:hover {
    transform: none;
  }
  #cp12-wrap .room-modal-book-btn {
    transition: none;
  }
  #cp12-wrap .room-modal-book-btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── Mobile: single-column layout ── */

@media (max-width: 768px) {
  #cp12-wrap .room-modal {
    padding: 0;
    align-items: flex-end;
  }
  #cp12-wrap .room-modal-inner {
    grid-template-columns: 1fr;
    max-width: 100%;
    max-height: 95vh;
    width: 100%;
    border-radius: 0;
    /* CRIT-4: avoid content being hidden behind iOS home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #cp12-wrap .room-modal-main-img {
    min-height: 220px;
  }
  #cp12-wrap .room-modal-content {
    padding: 1.5rem;
  }
  #cp12-wrap .room-modal-book-btn {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Reduce name size to prevent text overflow on narrow screens */
  #cp12-wrap .room-modal-name {
    font-size: 1.55rem;
  }
  /* Tighten content padding for extra space */
  #cp12-wrap .room-modal-content {
    padding: 1.25rem;
    gap: 0.75rem;
  }
  /* Caption becomes very tight — reduce font slightly */
  #cp12-wrap .room-modal-caption {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }
  /* Limit modal height so content is scrollable rather than compressed */
  #cp12-wrap .room-modal-inner {
    max-height: 92vh;
  }
}

/* ── Testimonials section ──────────────────────────────────────
 * src/features/testimonials/testimonials.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .testimonials-section {
  background: var(--warm-white);
  padding: 5rem 3rem 7rem;
}

#cp12-wrap .testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#cp12-wrap .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 1.5rem;
  margin: 3rem 0 2.5rem;
}

/* ── Card ── */
#cp12-wrap .testimonial-card {
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Header row: avatar · meta · maps icon ── */
#cp12-wrap .testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

#cp12-wrap .testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--warm-white);
  flex-shrink: 0;
}

#cp12-wrap .testimonial-avatar--pine      { background: var(--pine); }
#cp12-wrap .testimonial-avatar--terracotta { background: var(--terracotta); }

#cp12-wrap .testimonial-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

#cp12-wrap .testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

#cp12-wrap .testimonial-badge {
  font-size: 0.75rem;
  color: var(--slate-light);
  line-height: 1.3;
}

#cp12-wrap .testimonial-stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: 0.25rem;
}

#cp12-wrap .testimonial-maps-icon {
  color: var(--slate-light);
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}

/* ── Review text ── */
#cp12-wrap .testimonial-text {
  margin: 0;
  padding: 0;
  border: none;
}

#cp12-wrap .testimonial-text p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-warm);
  margin: 0;
}

/* ── CTA ── */
#cp12-wrap .testimonials-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #cp12-wrap .testimonials-section {
    padding: 4rem 1.5rem 5rem;
  }

  #cp12-wrap .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Section animation signature ── */
#cp12-wrap .sect-testimonials .testimonial-card { opacity: 0; }
#cp12-wrap .sect-testimonials.animated .testimonial-card {
  animation: cp12fu 0.6s ease both;
}
#cp12-wrap .sect-testimonials.animated .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
#cp12-wrap .sect-testimonials.animated .testimonial-card:nth-child(2) { animation-delay: 0.25s; }

/* ── 11. Travel / Explore section ────────────────────────────
 * src/features/explore/explore.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .travel-section {
  background: var(--pine);
  padding: 8rem 3rem 4rem; /* bottom reduced to tighten break with About */
  position: relative;
  overflow: hidden;
}

/* Top gold rule */
#cp12-wrap .travel-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--terracotta),
    var(--gold)
  );
  z-index: 2;
  pointer-events: none;
}

#cp12-wrap .travel-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#cp12-wrap .travel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}

/* section heading — private variant of the .section-heading pattern.
 * Differs from shared: size 3.5rem (vs 3.8rem), color cream (dark bg), em color gold.
 * Future: add class="travel-heading section-heading" to HTML and reduce this to overrides. */
#cp12-wrap .travel-heading {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.05;
}

#cp12-wrap .travel-heading em {
  font-style: italic;
  color: var(--gold);
}

/* Filter tabs */
#cp12-wrap .filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#cp12-wrap .tab {
  padding: 0.5rem 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 202, 189, 0.3);
  color: var(--mist);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s,
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s;
  font-family: var(--font-sans);
  min-height: 44px;
}

#cp12-wrap .tab.active,
#cp12-wrap .tab:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

#cp12-wrap .tab:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 160, 91, 0.25);
}

#cp12-wrap .tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Travel grid */
#cp12-wrap .travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

#cp12-wrap .travel-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 202, 189, 0.12);
  position: relative;
  overflow: hidden;
  /* IMPORTANT-3: opacity added for smooth filter fade (display:none set after transition) */
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s, opacity 0.22s;
}

/* IMPORTANT-3: fading-out state — JS sets display:none after FILTER_FADE_MS */
#cp12-wrap .travel-card.is-filtered {
  opacity: 0;
  pointer-events: none;
}

#cp12-wrap .travel-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(201, 169, 110, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Focus visible for keyboard navigation */
#cp12-wrap .travel-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#cp12-wrap .travel-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

#cp12-wrap .travel-card-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.55s ease;
  will-change: transform;
}

#cp12-wrap .travel-card:hover .travel-card-img-bg {
  transform: scale(1.07);
  filter: brightness(1.08);
}

/* Overlay on travel card image hover */
#cp12-wrap .travel-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(179, 160, 91, 0.15) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

#cp12-wrap .travel-card:hover .travel-card-img::after {
  opacity: 1;
}

/* Travel card images: backgrounds applied lazily by lazy-loader.js (IIFE 6).
 * Images are referenced via data-bg attributes in explore.html.partial.
 * .ti1–.ti6 classes retained for any per-card overrides if needed. */

#cp12-wrap .runner-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--terracotta);
  color: var(--warm-white);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#cp12-wrap .diff-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

#cp12-wrap .travel-body {
  padding: 1.5rem;
}

/* card eyebrow — shared typography from section-labels.css (.card-eyebrow);
 * only color is specific to this section */
#cp12-wrap .travel-cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

#cp12-wrap .travel-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

#cp12-wrap .travel-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: rgba(184, 202, 189, 0.6);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

#cp12-wrap .travel-highlight {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(184, 202, 189, 0.75);
  border-left: 2px solid var(--gold);
  padding-left: 0.8rem;
  font-style: italic;
}

/* ── Explore section animation signatures ─────────────────── */

#cp12-wrap .sect-explore .travel-heading {
  opacity: 0;
}
#cp12-wrap .sect-explore.animated .travel-heading {
  animation: cp12SlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#cp12-wrap .sect-explore .filter-tabs {
  opacity: 0;
}
#cp12-wrap .sect-explore.animated .filter-tabs {
  animation: cp12fu 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
#cp12-wrap .sect-explore .travel-card {
  opacity: 0;
  transform: translateY(32px);
}
/* Scalable stagger: base delay 0.12s + 0.10s per card (works for any card count) */
#cp12-wrap .sect-explore.animated .travel-card {
  animation: cp12fu 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}
#cp12-wrap .sect-explore.animated .travel-card:nth-child(2) {
  animation-delay: 0.22s;
}
#cp12-wrap .sect-explore.animated .travel-card:nth-child(3) {
  animation-delay: 0.32s;
}
#cp12-wrap .sect-explore.animated .travel-card:nth-child(4) {
  animation-delay: 0.42s;
}
#cp12-wrap .sect-explore.animated .travel-card:nth-child(5) {
  animation-delay: 0.52s;
}
#cp12-wrap .sect-explore.animated .travel-card:nth-child(6) {
  animation-delay: 0.62s;
}
#cp12-wrap .sect-explore.animated .travel-card:nth-child(n+7) {
  animation-delay: 0.72s;
}

/* ── Explore responsive rules ────────────────────────────── */

@media (max-width: 900px) {
  #cp12-wrap .travel-grid {
    grid-template-columns: 1fr;
  }
  #cp12-wrap .travel-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #cp12-wrap .travel-section {
    padding: 4rem 2rem 6rem;
  }
  #cp12-wrap .travel-header {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  #cp12-wrap .travel-grid {
    grid-template-columns: 1fr;
  }
  #cp12-wrap .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .travel-section {
    padding: 4rem 1.5rem;
  }
  /* travel-heading was never scaled down — 3.5rem overflows at mobile */
  #cp12-wrap .travel-heading {
    font-size: 2.4rem;
  }
  /* Stack travel-header vertically so heading and filter tabs don't compete for width */
  #cp12-wrap .travel-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 430px) {
  /* travel-grid: enforce single-column and prevent any implicit sizing issues */
  #cp12-wrap .travel-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* travel-card: ensure cards don't stack on top of each other */
  #cp12-wrap .travel-card {
    position: relative;
    width: 100%;
  }
  /* Reduce travel image height to avoid tall cards on small screens */
  #cp12-wrap .travel-card-img {
    height: 160px;
  }
  /* Tighten travel heading on very narrow */
  #cp12-wrap .travel-heading {
    font-size: 2rem;
  }
  /* Ensure travel inner section doesn't overflow */
  #cp12-wrap .travel-inner {
    overflow: hidden;
  }
  /* filter tabs: stack if needed on very narrow screens */
  #cp12-wrap .filter-tabs {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  #cp12-wrap .tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.62rem;
    /* WCAG 2.5.5: maintain minimum 44px touch target even on very narrow screens */
    min-height: 44px;
  }
}

/* ── 12. About section ────────────────────────────────────────
 * src/features/about/about.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .sect-about {
  background: var(--warm-white);
}

#cp12-wrap .about-section {
  padding: 5rem 3rem 6rem; /* top trimmed to land cleanly after travel gradient */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

#cp12-wrap .about-visual {
  position: relative;
  height: 500px;
}

#cp12-wrap .about-img-main {
  position: absolute;
  width: 75%;
  height: 80%;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    var(--pine-light),
    var(--pine-mid) 40%,
    var(--pine)
  );
  overflow: hidden;
}

#cp12-wrap .about-img-accent {
  position: absolute;
  width: 50%;
  height: 50%;
  bottom: 0;
  right: 0;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

#cp12-wrap .about-img-accent .big-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--warm-white);
  display: block;
  line-height: 1;
  font-weight: 600;
}

#cp12-wrap .about-img-accent .big-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.4rem;
}

/* section heading — private variant of the .section-heading pattern.
 * Differs from shared: size 3rem (vs 3.8rem), line-height 1.15 (vs 1.05).
 * Future: add class="about-heading section-heading" to HTML and reduce this to overrides. */
#cp12-wrap .about-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--pine);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

#cp12-wrap .about-heading em {
  font-style: italic;
  color: var(--terracotta);
}

#cp12-wrap .about-text {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-warm);
  opacity: 0.8;
  margin-bottom: 1rem;
}

#cp12-wrap .perks {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cp12-wrap .perk {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

#cp12-wrap .perk-icon {
  width: 36px;
  height: 36px;
  background: var(--pine);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

#cp12-wrap .perk-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--pine);
  margin-bottom: 0.2rem;
}

#cp12-wrap .perk-text p {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.7;
}

#cp12-wrap .checkin-strip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--slate);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 0.55rem 0.9rem;
  margin: 0.5rem 0 1.5rem;
  flex-wrap: wrap;
}

#cp12-wrap .checkin-strip strong {
  color: var(--pine);
  font-weight: 500;
}

#cp12-wrap .strip-divider {
  color: var(--mist);
  margin: 0 0.2rem;
}

#cp12-wrap .about-content > .btn-primary {
  margin-top: 0;
}

/* ── About section animation signatures ───────────────────── */

#cp12-wrap .sect-about .about-visual {
  opacity: 0;
}
#cp12-wrap .sect-about.animated .about-visual {
  animation: cp12SlideLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
#cp12-wrap .sect-about .about-content {
  opacity: 0;
}
#cp12-wrap .sect-about.animated .about-content {
  animation: cp12SlideRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* ── About responsive rules ──────────────────────────────── */

@media (max-width: 900px) {
  #cp12-wrap .about-section {
    grid-template-columns: 1fr;
    /* Reduce the very large 6rem gap — it's only needed for side-by-side layout */
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  #cp12-wrap .about-section {
    padding: 4rem 2rem;
    gap: 2.5rem;
  }
  /* Scale down heading to match other sections at tablet */
  #cp12-wrap .about-heading {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .about-section {
    padding: 4rem 1.5rem;
  }
  /* Constrain about-visual height so absolutely-positioned children stay in-bounds */
  #cp12-wrap .about-visual {
    height: 320px;
  }
  #cp12-wrap .about-heading {
    font-size: 2.2rem;
  }
  /* Perk icon size reduced to save space */
  #cp12-wrap .perk-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 430px) {
  /* About visual: constrain so absolute children are clipped, not overflowing */
  #cp12-wrap .about-visual {
    height: 280px;
  }
  #cp12-wrap .about-heading {
    font-size: 2rem;
  }
}

/* ── Location section ──────────────────────────────────────────
 * src/features/location/location.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .location-section {
  background: var(--cream);
  padding: 5rem 3rem 7rem;
}

#cp12-wrap .location-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#cp12-wrap .location-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-warm);
  opacity: 0.8;
  max-width: 680px;
  margin: 0 0 3rem;
}

#cp12-wrap .location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Distance cards ── */
#cp12-wrap .location-distances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#cp12-wrap .distance-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--warm-white);
  border-radius: 2px;
}

#cp12-wrap .dist-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

#cp12-wrap .dist-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#cp12-wrap .dist-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}

#cp12-wrap .dist-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pine);
  font-family: var(--font-serif);
}

#cp12-wrap .dist-time {
  font-size: 0.75rem;
  color: var(--slate-light);
}

/* ── Map block ── */
#cp12-wrap .location-map-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
}

#cp12-wrap .location-map-link:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 4px;
  border-radius: 2px;
}

#cp12-wrap .location-map-placeholder {
  background: var(--pine-dark);
  background-image:
    radial-gradient(circle at 60% 40%, var(--pine-dark-90) 0%, transparent 60%),
    linear-gradient(135deg, var(--pine) 0%, var(--pine-dark) 100%);
  min-height: 260px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#cp12-wrap .location-map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.02) 20px,
    rgba(255, 255, 255, 0.02) 22px
  );
}

#cp12-wrap .map-pin-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

#cp12-wrap .map-address {
  color: var(--mist);
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: center;
  font-style: normal;
  position: relative;
  z-index: 1;
}

#cp12-wrap .location-map-btn {
  display: block;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #cp12-wrap .location-section {
    padding: 4rem 1.5rem 5rem;
  }

  #cp12-wrap .location-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #cp12-wrap .location-distances {
    grid-template-columns: 1fr 1fr;
  }

  #cp12-wrap .location-map-placeholder {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .location-distances {
    grid-template-columns: 1fr;
  }
}

/* ── Section animation signature ── */
#cp12-wrap .sect-location .location-grid { opacity: 0; }
#cp12-wrap .sect-location.animated .location-grid {
  animation: cp12fu 0.7s ease 0.1s both;
}

/* ── 13. Blog / Journal section ───────────────────────────────
 * src/features/journal/journal.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .blog-section {
  background: var(--cream);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Section transition: cream (blog) → charcoal (CTA) — removed; now handled by section bg */

#cp12-wrap .blog-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#cp12-wrap .blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* section heading — private variant of the .section-heading pattern.
 * Differs from shared: size 3rem (vs 3.8rem), margin-bottom 1rem.
 * Future: add class="blog-heading section-heading" to HTML and reduce this to overrides. */
#cp12-wrap .blog-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--pine);
  font-weight: 300;
  margin-bottom: 1rem;
}

#cp12-wrap .blog-heading em {
  font-style: italic;
  color: var(--terracotta);
}

#cp12-wrap .blog-subtext {
  font-size: 0.9rem;
  opacity: 0.65;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

#cp12-wrap .blog-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.5rem;
}

#cp12-wrap .blog-card {
  background: var(--warm-white);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#cp12-wrap .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(42, 37, 34, 0.13),
              0 4px 12px rgba(42, 37, 34, 0.06);
}

#cp12-wrap .blog-card-img {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

#cp12-wrap .blog-card.large .blog-card-img {
  aspect-ratio: 4/3;
}

/* Image zoom layers (bi1/bi2/bi3 are background-only elements without a separate child element,
 * so we zoom via a pseudo-overlay approach on the image container itself) */
#cp12-wrap .bi1,
#cp12-wrap .bi2,
#cp12-wrap .bi3 {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.55s ease;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

#cp12-wrap .blog-card:hover .bi1,
#cp12-wrap .blog-card:hover .bi2,
#cp12-wrap .blog-card:hover .bi3 {
  transform: scale(1.06);
  filter: brightness(1.06);
}

/* Hover overlay on blog card image */
#cp12-wrap .blog-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(42, 37, 34, 0.15) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

#cp12-wrap .blog-card:hover .blog-card-img::after {
  opacity: 1;
}

/* ── Blog card image layers ──
   bi1: forest running trail — pine canopy with sun break
   bi2: solo warm golden hour — amber earth atmospheric
   bi3: hidden gems at dusk  — indigo twilight with moonrise
──────────────────────────────────────────────────────── */

#cp12-wrap .bi1 {
  background:
    /* top-right sun break through canopy */
    radial-gradient(
      ellipse at 85% 10%,
      rgba(201, 169, 110, 0.28) 0%,
      transparent 45%
    ),
    /* subtle diagonal shaft */
    linear-gradient(
        115deg,
        transparent 45%,
        rgba(255, 255, 255, 0.05) 58%,
        transparent 72%
      ),
    /* forest base */
    linear-gradient(
        155deg,
        var(--pine-dark) 0%,
        var(--pine) 55%,
        var(--pine-mid) 100%
      );
}

#cp12-wrap .bi2 {
  background:
    /* golden hour glow from top */
    radial-gradient(
      ellipse at 50% 0%,
      rgba(201, 169, 110, 0.32) 0%,
      transparent 55%
    ),
    /* warm side light */
    linear-gradient(
        140deg,
        transparent 40%,
        rgba(255, 200, 130, 0.06) 58%,
        transparent 75%
      ),
    /* earth base */
    linear-gradient(
        150deg,
        var(--brown-dark) 0%,
        var(--earth) 45%,
        var(--terracotta) 80%,
        var(--earth-warm) 100%
      );
}

#cp12-wrap .bi3 {
  background:
    /* moonrise glow at top-centre */
    radial-gradient(
      ellipse at 55% 5%,
      rgba(150, 170, 230, 0.3) 0%,
      transparent 50%
    ),
    /* horizontal twilight band */
    linear-gradient(180deg, rgba(74, 106, 173, 0.2) 0%, transparent 40%),
    /* indigo-blue base */
    linear-gradient(
        150deg,
        var(--slate-blue) 0%,
        var(--blue-deep) 40%,
        var(--slate-blue-mid) 80%,
        var(--indigo-muted) 100%
      );
}

#cp12-wrap .blog-card-body {
  padding: 1.5rem;
}

/* card eyebrow — shared typography from section-labels.css (.card-eyebrow);
 * only color and margin are specific to this section */
#cp12-wrap .blog-card-cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

#cp12-wrap .blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--pine);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

#cp12-wrap .blog-card.large .blog-card-title {
  font-size: 1.8rem;
}

#cp12-wrap .blog-card-excerpt {
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.65;
}

/* arrow link — shared base from section-labels.css (.card-arrow-link);
 * color and margin-top are specific to this section */
#cp12-wrap .blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--pine);
  margin-top: 1rem;
  transition: color 0.3s, gap 0.3s;
}

#cp12-wrap .blog-link::after {
  content: "\2192";
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cp12-wrap .blog-link:hover {
  color: var(--terracotta);
  gap: 0.75rem;
}

#cp12-wrap .blog-link:hover::after {
  transform: translateX(4px);
}

#cp12-wrap .blog-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Journal section animation signatures ─────────────────── */

#cp12-wrap .sect-journal .blog-heading {
  opacity: 0;
}
#cp12-wrap .sect-journal.animated .blog-heading {
  animation: cp12fu 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#cp12-wrap .sect-journal .blog-card {
  opacity: 0;
}
#cp12-wrap .sect-journal.animated .blog-card.large {
  animation: cp12ScaleUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
#cp12-wrap .sect-journal.animated .blog-card:not(.large):nth-child(2) {
  animation: cp12fu 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
#cp12-wrap .sect-journal.animated .blog-card:not(.large):nth-child(3) {
  animation: cp12fu 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards;
}

/* ── Journal responsive rules ────────────────────────────── */

@media (max-width: 900px) {
  #cp12-wrap .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #cp12-wrap .blog-section {
    padding: 4rem 2rem 6rem;
  }
  /* Scale down blog heading to match section hierarchy */
  #cp12-wrap .blog-heading {
    font-size: 2.4rem;
  }
}

@media (max-width: 640px) {
  #cp12-wrap .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .blog-section {
    padding: 4rem 1.5rem;
  }
  #cp12-wrap .blog-heading {
    font-size: 2.2rem;
  }
  /* Reduce large card title for narrow screens */
  #cp12-wrap .blog-card.large .blog-card-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 430px) {
  /* blog-card: prevent any width blowout */
  #cp12-wrap .blog-card {
    width: 100%;
  }
  #cp12-wrap .blog-heading {
    font-size: 2rem;
  }
}

/* ── FAQ section ───────────────────────────────────────────────
 * src/features/faq/faq.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .faq-section {
  background: var(--warm-white);
  padding: 5rem 3rem 7rem;
}

#cp12-wrap .faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

#cp12-wrap .faq-grid {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
}

/* ── Individual FAQ item ── */
#cp12-wrap .faq-item {
  border-bottom: 1px solid var(--mist);
}

#cp12-wrap .faq-item:first-of-type {
  border-top: 1px solid var(--mist);
}

/* Remove browser default triangle — both Firefox/Chrome and Safari */
#cp12-wrap .faq-item > summary {
  list-style: none;
  cursor: pointer;
  /* Intentional: suppress default browser focus ring on <summary>.
   * A custom keyboard focus ring is provided via .faq-question:focus-visible
   * below (2px solid var(--pine)), which activates only for keyboard navigation.
   * Browsers that don't support :focus-visible lose visible focus here, but
   * the custom rule on .faq-question provides adequate coverage for modern browsers. */
  outline: none;
}

#cp12-wrap .faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Suppress any outline on the <details> element itself */
#cp12-wrap .faq-item {
  outline: none;
}

#cp12-wrap .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  user-select: none;
}

/* Intentional keyboard focus ring — only when navigating by keyboard */
#cp12-wrap .faq-question:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Open-state treatment: subtle background tint + slightly bolder text */
#cp12-wrap .faq-item[open] > .faq-question {
  background: var(--cream);
}

#cp12-wrap .faq-question h3 {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.5;
}

/* Custom toggle icon via ::after */
#cp12-wrap .faq-question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--pine);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

#cp12-wrap .faq-item[open] > .faq-question::after {
  content: "\00D7";
  color: var(--terracotta);
}

/* Answer text */
#cp12-wrap .faq-answer {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-warm);
  padding: 0 1rem 1.5rem 0;
  margin: 0;
  opacity: 0.85;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #cp12-wrap .faq-section {
    padding: 4rem 1.5rem 5rem;
  }

  #cp12-wrap .faq-question h3 {
    font-size: 0.9rem;
  }
}

/* ── Section animation signature ── */
#cp12-wrap .sect-faq .faq-item { opacity: 0; }
#cp12-wrap .sect-faq.animated .faq-item {
  animation: cp12fu 0.5s ease both;
}
#cp12-wrap .sect-faq.animated .faq-item:nth-child(1) { animation-delay: 0.05s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(2) { animation-delay: 0.1s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(3) { animation-delay: 0.15s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(4) { animation-delay: 0.2s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(5) { animation-delay: 0.25s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(6) { animation-delay: 0.3s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(7) { animation-delay: 0.35s; }
#cp12-wrap .sect-faq.animated .faq-item:nth-child(8) { animation-delay: 0.4s; }

/* ── 14. CTA section ──────────────────────────────────────────
 * src/features/cta/cta.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .cta-section {
  background: var(--charcoal);
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cp12-wrap .cta-bg-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(201, 169, 110, 0.03) 60px,
    rgba(201, 169, 110, 0.03) 61px
  );
}

#cp12-wrap .cta-content {
  position: relative;
  z-index: 1;
}

#cp12-wrap .cta-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--cream);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.5rem;
}

#cp12-wrap .cta-title em {
  font-style: italic;
  color: var(--gold);
}

#cp12-wrap .cta-sub {
  font-size: 0.95rem;
  color: rgba(184, 202, 189, 0.7);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* How-to-book step strip */
#cp12-wrap .booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

#cp12-wrap .booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

#cp12-wrap .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s;
}

#cp12-wrap .booking-step:hover .step-num {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(196, 114, 74, 0.4);
}

#cp12-wrap .step-text strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

#cp12-wrap .step-text p {
  font-size: 0.7rem;
  color: rgba(184, 202, 189, 0.6);
  line-height: 1.5;
  margin: 0;
}

#cp12-wrap .cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Facebook button icon+text gap */
#cp12-wrap .btn-ghost--facebook {
  gap: 0.5rem;
}

#cp12-wrap .address-text {
  font-style: normal;
}

/* ── CTA section animation signatures ─────────────────────── */

#cp12-wrap .sect-book .booking-steps {
  opacity: 0;
}
#cp12-wrap .sect-book.animated .booking-steps {
  animation: cp12fu 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
#cp12-wrap .sect-book .cta-title {
  opacity: 0;
}
#cp12-wrap .sect-book.animated .cta-title {
  animation: cp12fu 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
#cp12-wrap .sect-book .btn-primary,
#cp12-wrap .sect-book .btn-ghost {
  opacity: 0;
}
#cp12-wrap .sect-book.animated .btn-ghost {
  animation: cp12ScaleUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}
#cp12-wrap .sect-book.animated .btn-primary {
  animation-name: cp12ScaleUp, cp12GlowPulse;
  animation-duration: 0.7s, 2.5s;
  animation-delay: 0.35s, 1.2s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
}

/* ── CTA responsive rules ────────────────────────────────── */

@media (max-width: 768px) {
  #cp12-wrap .cta-section {
    padding: 5rem 2rem;
  }
  /* Scale down large CTA title at tablet — 4.5rem is very large for 768px */
  #cp12-wrap .cta-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 600px) {
  #cp12-wrap .booking-steps {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 1rem;
  }
  #cp12-wrap .booking-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .cta-title {
    font-size: 2.6rem;
  }
  #cp12-wrap .cta-section {
    padding: 4rem 1.5rem;
  }
  #cp12-wrap .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  #cp12-wrap .cta-sub {
    font-size: 0.88rem;
  }
}

@media (max-width: 430px) {
  /* Tighter CTA title */
  #cp12-wrap .cta-title {
    font-size: 2.2rem;
  }
}

/* ── 15. Footer + social links ───────────────────────────────
 * src/layout/footer.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap footer {
  background: var(--charcoal-deep);
  padding: 5rem 3rem 2rem;
  color: rgba(253, 250, 245, 0.5);
}

#cp12-wrap .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

#cp12-wrap .footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: 0.05em;
}

#cp12-wrap .footer-logo em {
  font-style: italic;
  color: var(--gold);
}

#cp12-wrap .footer-tagline {
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

#cp12-wrap .footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  background: transparent; /* prevent Wix embed wrapper inheritance */
}

#cp12-wrap .social-link {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent; /* icons float on footer dark, no box */
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s;
}

#cp12-wrap .social-link svg {
  display: block;
  flex-shrink: 0;
}

#cp12-wrap .social-link:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(179, 160, 91, 0.3);
}

#cp12-wrap .social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#cp12-wrap .footer-col-title {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

#cp12-wrap .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#cp12-wrap .footer-links a {
  font-size: 0.82rem;
  opacity: 0.55;
  transition:
    opacity 0.3s,
    color 0.3s;
  color: var(--cream);
}

#cp12-wrap .footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

#cp12-wrap .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.35;
}

#cp12-wrap .address-text {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.6;
}

#cp12-wrap .address-text a {
  color: var(--gold);
}

#cp12-wrap .address-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#cp12-wrap .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.6;
  color: var(--cream);
}

#cp12-wrap .footer-contact-item a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s;
}

#cp12-wrap .footer-contact-item a:hover {
  color: var(--gold);
}

#cp12-wrap .contact-icon {
  flex-shrink: 0;
  margin-top: 0.15rem; /* Optical alignment with first line of text */
  color: var(--gold);
  opacity: 0.8;
}

/* ── Footer responsive rules ─────────────────────────────── */

@media (max-width: 900px) {
  #cp12-wrap .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #cp12-wrap .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .footer-grid {
    grid-template-columns: 1fr;
  }
  /* footer-bottom flex row overflows at narrow widths — stack vertically */
  #cp12-wrap .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
  #cp12-wrap footer {
    padding: 3rem 1.5rem 2rem;
  }
}

/* ── 16. Modal ────────────────────────────────────────────────
 * src/layout/modal.css
 * ──────────────────────────────────────────────────────────── */

#cp12-wrap .modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(26, 26, 23, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* Fade transition — visibility keeps it out of tab order when hidden */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#cp12-wrap .modal.open {
  opacity: 1;
  visibility: visible;
}

#cp12-wrap .modal-inner {
  max-width: 800px;
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: 2rem;
  position: relative;
}

#cp12-wrap .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  font-family: var(--font-sans);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cp12-wrap .modal-video-placeholder {
  aspect-ratio: 16/9;
  background: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  text-align: center;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}

#cp12-wrap .modal-note {
  font-size: 0.75rem;
  color: var(--mist);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ── Video modal responsive rules ────────────────────────── */

@media (max-width: 768px) {
  #cp12-wrap .modal {
    padding: 1rem;
  }
  #cp12-wrap .modal-inner {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  #cp12-wrap .modal {
    padding: 0;
    align-items: flex-end;
  }
  #cp12-wrap .modal-inner {
    /* Full-width bottom sheet on small screens */
    max-width: 100%;
    padding: 1rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #cp12-wrap .modal-video-placeholder {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
}

/* ── R-1: Responsive sentinel — cross-cutting layout rules ───
 * src/core/responsive-sentinel.css
 * This file is the R-1 anchor ensuring @media (max-width: 768px) always
 * exists in the compiled CSS. Feature-specific responsive overrides live at
 * the bottom of each feature's own CSS file.
 * ──────────────────────────────────────────────────────────── */

/* ── Cross-cutting 900px breakpoint ──────────────────────── */

@media (max-width: 900px) {
  #cp12-wrap .cp12-main-nav {
    padding: 1rem 1.5rem;
  }
  #cp12-wrap .nav-links {
    display: none;
  }
  #cp12-wrap .nav-hamburger {
    display: flex;
    align-items: center;
  }
}

/* ── R-1: Tablet breakpoint (≤768px) ─────────────────────── */

@media (max-width: 768px) {
  /* Cross-cutting layout adjustments at tablet width */
  #cp12-wrap .rooms-header,
  #cp12-wrap .travel-header {
    gap: 2rem;
  }

  /* Cross-cutting section padding reduction — sections that don't define their own */
  #cp12-wrap .blog-section,
  #cp12-wrap .cta-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── Mid-breakpoint (≤640px) ──────────────────────────────── */

@media (max-width: 640px) {
  /* Cross-cutting adjustments — individual feature rules are in feature files */
}

/* ── Mobile breakpoint (≤480px) ──────────────────────────── */

@media (max-width: 480px) {
  /* Cross-cutting: full-width buttons when stacked on narrow screens */
  #cp12-wrap .hero-btns .btn-primary,
  #cp12-wrap .hero-btns .btn-outline,
  #cp12-wrap .cta-btns .btn-primary,
  #cp12-wrap .cta-btns .btn-ghost {
    width: 100%;
    max-width: 320px;
  }
}

/* ── 17. @supports progressive enhancements ──────────────────
 * src/core/supports.css
 * Must be the LAST file in concat order so it correctly overrides
 * earlier rules in browsers that support backdrop-filter.
 * ──────────────────────────────────────────────────────────── */

@supports (backdrop-filter: blur(1px)) {
  /* Scoped to scrolled-over-light state only — dark hero must stay dark */
  #cp12-wrap .cp12-main-nav.scrolled:not(.nav-over-dark) {
    background: rgba(253, 250, 245, 0.85);
    backdrop-filter: blur(12px);
  }

  #cp12-wrap .stat-box {
    background: rgba(29, 42, 38, 0.7);
    backdrop-filter: blur(10px);
  }

  #cp12-wrap .big-play {
    backdrop-filter: blur(4px);
  }
  #cp12-wrap .diff-badge {
    backdrop-filter: blur(4px);
  }
  #cp12-wrap .room-price-tag {
    backdrop-filter: blur(8px);
  }
}
