/* ==========================================================================
   NEGRIL NIGHTS & BIRTHDAY DELIGHTS — Digital Itinerary
   Design tokens + reusable component system.
   ========================================================================== */

:root {
  /* Neutrals — warm ivory / deep espresso plum */
  --espresso-900: #211c18;
  --espresso-700: #3e352d;
  --mauve-500: #928174;
  --mauve-300: #cec7bd;
  --ivory-100: #f7f2ea;
  --ivory-50: #fbf7f2;
  --white: #fffdfb;

  /* Purple system — Deep Aubergine / Royal Plum / Muted Lavender */
  --aubergine-900: #32261c;
  --aubergine-800: #433326;
  --aubergine-700: #513e2e;
  --plum-700: #503c2b;
  --plum-600: #624a36;
  --plum-500: #795c44;
  --lavender-400: #c4b7a7;
  --lavender-300: #d5ccc0;
  --lavender-200: #e9e4dd;

  /* Champagne gold — reserved for fine lines, icons, dates, signature moments */
  --gold-700: #7d6335;
  --gold-600: #9c7d48;
  --gold-500: #c5a46d;
  --gold-300: #e2cda2;
  --gold-100: #f4ead7;

  /* Semantic */
  --bg-body: var(--ivory-100);
  --text-primary: var(--espresso-900);
  --text-muted: var(--mauve-500);
  --border-soft: rgba(50, 38, 28, 0.12);
  --border-gold: rgba(197, 164, 109, 0.5);
  --border-lavender: rgba(196, 183, 167, 0.5);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Already loaded (see the Google Fonts link in <head>) and already used
     inline once for the Hero's own script text — named here so other
     script-style text (e.g. A Note From's signature) can share it without
     repeating the raw font string, and without ever touching the Hero's
     own rule. */
  --font-script: "Alex Brush", cursive;

  --container-max: 1180px;
  --gutter: 24px;
  --bottom-nav-h: 64px;
  /* iPhone safe areas, as variables so layout rules (and tests) can share them. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-soft: 0 20px 60px -30px rgba(50, 38, 28, 0.4);
  --shadow-card: 0 12px 32px -20px rgba(50, 38, 28, 0.24);

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Color-only retheme of the browser's OWN native page scrollbar/scroll
   indicator — never a custom-built scrollbar. Deliberately touches only
   the thumb color (a translucent champagne-gold, already this site's
   foundation gold token — the same base color Negril Luxe's own champagne
   accents derive from); track stays transparent and no width/thickness
   property is set anywhere, so size, shape, position, and show/hide
   behavior are exactly the browser default, unchanged. `scrollbar-color`
   is the standard property (modern Firefox/Chrome/Edge, partial Safari);
   the ::-webkit-scrollbar-thumb pair is the same color for browsers that
   read that instead. Where neither is honored (this exact native
   indicator has historically limited third-party styling support on
   iOS), the browser's own default simply applies — never a fallback path
   that could look broken. */
html {
  scrollbar-color: rgba(197, 164, 109, 0.55) transparent;
}
html::-webkit-scrollbar-thumb {
  background-color: rgba(197, 164, 109, 0.55);
}
html::-webkit-scrollbar-track {
  background: transparent;
}
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Site Background — OPTIONAL, reusable full-page background artwork      */
/* ---------------------------------------------------------------------- */
/* MASTER STANDARD, foundation layer. Structurally independent from the
   Hero's own photo layer (.hero-photo-layer, further down) — this is a
   separate element entirely, driven by TRIP.siteBackground rather than
   TRIP.heroPhoto (see app.js renderSiteBackground()). Fixed to the
   viewport (not absolute) so it never needs to match the page's full
   scrollable height — correct for arbitrarily long itineraries without
   any extra wiring. Sits at the bottom of the stacking order (z-index
   below every other z-indexed element in this file: nav is 100, bottom
   nav 90, modals 200-500) and is purely decorative — aria-hidden, no
   pointer events — so it never intercepts scrolling, taps, or fixed-nav/
   modal interaction. --site-bg-image/--site-bg-position/--site-bg-overlay
   default to fully transparent/none, so with no siteBackground configured
   this layer paints nothing and the page looks exactly as it did before
   this layer existed — confirmed by app.js removing the element from the
   DOM entirely in that case, this CSS is what makes it safe even if it
   were present. Foundation only: this does not make any section's own
   background translucent (see the FOUNDATION-ONLY note on
   TRIP.siteBackground in content.js) — that's future "glass" work this
   layer is built to support without needing to be rebuilt. */
.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.site-background-image {
  position: absolute;
  inset: 0;
  background-image: var(--site-bg-image, none);
  background-position: var(--site-bg-position, center);
  background-size: cover;
  background-repeat: no-repeat;
}
.site-background-overlay {
  position: absolute;
  inset: 0;
  background: var(--site-bg-overlay, transparent);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.01em;
  color: var(--espresso-900);
}

.section-intro {
  max-width: 620px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-editorial), transform 0.8s var(--ease-editorial);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                              */
/* ---------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(18px, var(--safe-top)) var(--gutter) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s var(--ease-editorial), box-shadow 0.4s var(--ease-editorial), padding 0.4s var(--ease-editorial);
}
.site-nav.is-scrolled {
  background: rgba(251, 247, 242, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--border-soft);
  /* Same safe-area-aware minimum as the base .site-nav rule above — without
     env(safe-area-inset-top) here too, scrolling collapsed the header to a
     flat 12px, which lost the status-bar clearance specifically in iOS
     standalone/Home Screen mode (where the inset is a real, non-zero value
     the header must stay clear of). */
  padding-top: max(12px, var(--safe-top));
  padding-bottom: 12px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s var(--ease-editorial);
  white-space: nowrap;
}
/* Safety net for the narrowest phones only (≤350px, e.g. iPhone SE) —
   prevents the brand line from pushing the menu button off-screen.
   No effect at normal widths, where the full text already fits. */
@media (max-width: 350px) {
  .brand-mark {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.site-nav.is-scrolled .brand-mark { color: var(--espresso-900); }

.nav-links {
  display: none;
  align-items: center;
  gap: 34px;
}
@media (min-width: 760px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 250, 0.88);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease-editorial), border-color 0.35s var(--ease-editorial);
}
.site-nav.is-scrolled .nav-links a { color: var(--espresso-700); }
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--plum-500);
  border-color: var(--plum-500);
}
.site-nav:not(.is-scrolled) .nav-links a:hover,
.site-nav:not(.is-scrolled) .nav-links a.is-active {
  color: var(--gold-300);
  border-color: var(--gold-300);
}

/* Save to Phone — nav trigger buttons */
.stp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.stp-trigger-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.stp-trigger-icon svg { width: 100%; height: 100%; }

.stp-trigger:focus-visible,
.share-trigger:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: var(--radius-full);
}
.site-nav.is-scrolled .stp-trigger:focus-visible,
.site-nav.is-scrolled .share-trigger:focus-visible {
  outline-color: var(--gold-600);
}

.stp-trigger--nav {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 253, 250, 0.4);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 253, 250, 0.92);
  transition: color 0.35s var(--ease-editorial), border-color 0.35s var(--ease-editorial), background-color 0.35s var(--ease-editorial);
}
.stp-trigger--nav:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.site-nav.is-scrolled .stp-trigger--nav {
  border-color: var(--border-gold);
  color: var(--gold-700);
}
.site-nav.is-scrolled .stp-trigger--nav:hover {
  background: var(--gold-100);
  border-color: var(--gold-600);
}

/* Mobile top bar — compact icon-only trigger, replaces the old hamburger.
   The trigger button and its discovery tooltip are siblings inside this
   wrapper (not tooltip-inside-button) since a <button> cannot validly
   contain another <button>, which the manual-dismiss control needs to be. */
.stp-trigger-wrap {
  position: relative;
  display: inline-flex;
}
.stp-trigger--mobile-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  transition: color 0.35s var(--ease-editorial);
}
.stp-trigger--mobile-top .stp-trigger-icon { width: 19px; height: 19px; }
.site-nav.is-scrolled .stp-trigger--mobile-top { color: var(--espresso-900); }
.stp-trigger--mobile-top:hover { color: var(--gold-300); }
.site-nav.is-scrolled .stp-trigger--mobile-top:hover { color: var(--gold-700); }
@media (min-width: 760px) {
  .stp-trigger--mobile-top { display: none; }
}

/* One-time Save to Phone discovery tooltip — teaches the icon-only mobile
   control on a visitor's first view of the session, then fades away on its
   own. See Assets/js/save-to-phone.js for the show/hide timing. */
.stp-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: -6px;
  z-index: 5;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  width: max-content;
  max-width: 172px;
  padding: 9px 13px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--aubergine-900) 0%, var(--plum-700) 100%);
  border: 1px solid rgba(197, 164, 109, 0.45);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ivory-100);
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-editorial), transform 0.45s var(--ease-editorial);
}
.stp-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--aubergine-900);
  border-left: 1px solid rgba(197, 164, 109, 0.45);
  border-top: 1px solid rgba(197, 164, 109, 0.45);
  transform: rotate(45deg);
}
.stp-tooltip-arrow {
  color: var(--gold-300);
  flex: none;
}
.stp-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .stp-tooltip {
    transition: opacity 0.3s ease;
    transform: none;
  }
}

/* One-time Share This Trip discovery tooltip — same behavior/timing pattern
   as .stp-tooltip, sequenced to appear after it so the two never overlap.
   See Assets/js/share-trip.js. */
.share-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: -6px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: max-content;
  max-width: 190px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--aubergine-900) 0%, var(--plum-700) 100%);
  border: 1px solid rgba(197, 164, 109, 0.45);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-editorial), transform 0.45s var(--ease-editorial);
}
.share-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--aubergine-900);
  border-left: 1px solid rgba(197, 164, 109, 0.45);
  border-top: 1px solid rgba(197, 164, 109, 0.45);
  transform: rotate(45deg);
}
.share-tooltip-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.share-tooltip span:not(.share-tooltip-title) {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ivory-100);
}
.share-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .share-tooltip {
    transition: opacity 0.3s ease;
    transform: none;
  }
}

/* Share This Trip — nav trigger buttons (same visual language as Save to Phone) */
.share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.share-trigger-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.share-trigger-icon svg { width: 100%; height: 100%; }

.share-trigger--nav {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 253, 250, 0.4);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 253, 250, 0.92);
  transition: color 0.35s var(--ease-editorial), border-color 0.35s var(--ease-editorial), background-color 0.35s var(--ease-editorial);
}
.share-trigger--nav:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.site-nav.is-scrolled .share-trigger--nav {
  border-color: var(--border-gold);
  color: var(--gold-700);
}
.site-nav.is-scrolled .share-trigger--nav:hover {
  background: var(--gold-100);
  border-color: var(--gold-600);
}

/* Trigger button and its discovery tooltip are siblings inside this wrapper
   (see the .stp-trigger-wrap comment above — same reason). */
.share-trigger-wrap {
  position: relative;
  display: inline-flex;
}
.share-trigger--mobile-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  transition: color 0.35s var(--ease-editorial);
}
.share-trigger--mobile-top .share-trigger-icon { width: 19px; height: 19px; }
.site-nav.is-scrolled .share-trigger--mobile-top { color: var(--espresso-900); }
.share-trigger--mobile-top:hover { color: var(--gold-300); }
.site-nav.is-scrolled .share-trigger--mobile-top:hover { color: var(--gold-700); }
@media (min-width: 760px) {
  .share-trigger--mobile-top { display: none; }
}

/* Fixed bottom navigation — mobile / small tablet only */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  background: rgba(251, 247, 242, 0.96);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -10px 30px -14px rgba(50, 38, 28, 0.3);
  padding-bottom: var(--safe-bottom);
}
@media (min-width: 760px) {
  .bottom-nav { display: none; }
}

.bottom-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--bottom-nav-h);
  padding: 8px 2px 7px;
  color: var(--mauve-500);
}
.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial);
}
.bottom-nav-icon svg { width: 18px; height: 18px; }
.bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-editorial);
}
.bottom-nav-item.is-active .bottom-nav-icon {
  background: var(--lavender-200);
  color: var(--plum-600);
}
.bottom-nav-item.is-active .bottom-nav-label {
  color: var(--plum-700);
  font-weight: 700;
}
.bottom-nav-item:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: -2px;
  border-radius: 10px;
}

/* ---------------------------------------------------------------------- */
/* Loading / Entry Screen                                                  */
/* Migrated from the proven Houston (Mary's Weekend 2026) itinerary's      */
/* opening screen — same monogram choreography, same structure — rather    */
/* than recreated from scratch. Reusable branded entry screen shown once   */
/* per browsing session before the itinerary. Content is driven by the     */
/* SPLASH config + canonical TRIP data in content.js; behavior lives in    */
/* Assets/js/splash.js, which toggles .is-leaving/.is-hidden below.        */
/* Colors here are sensible Master defaults (this trip's own aubergine/    */
/* plum/gold foundation palette) so the component is destination-agnostic  */
/* on its own — negril-luxe.css adds only a restrained orchid/rose tint to   */
/* .splash-glow on top, per the Negril brief. No photo layer: deliberately   */
/* quiet/cinematic rather than previewing background-negril.jpg or the Hero. */
/* ---------------------------------------------------------------------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory-100);
  overflow: hidden;
  padding:
    max(32px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background:
    radial-gradient(120% 90% at 15% 8%, rgba(197, 164, 109, 0.22) 0%, rgba(197, 164, 109, 0) 55%),
    radial-gradient(130% 100% at 85% 100%, rgba(121, 92, 68, 0.55) 0%, rgba(50, 38, 28, 0) 60%),
    linear-gradient(160deg, #32261c 0%, #433326 38%, #513e2e 68%, #624a36 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(233, 205, 147, 0.3) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  pointer-events: none;
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash[hidden] { display: none; }

/* Restrained glow behind the monogram — separate from .splash's own
   ambient corner gradients above, centered specifically behind the mark.
   Neutral gold/plum by default; negril-luxe.css recolors it orchid/rose. */
.splash-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(42% 36% at 50% 42%, rgba(197, 164, 109, 0.24) 0%, rgba(197, 164, 109, 0) 70%);
  opacity: 0;
  animation: splash-glow-in 0.9s ease 0.1s 1 forwards;
  pointer-events: none;
}
@keyframes splash-glow-in {
  to { opacity: 1; }
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
}

/* Monogram — thin gold ring "sketches in" around the crowned JaX
   wordmark, the same mark used site-wide (e.g. the Save to Phone icon
   family) — migrated verbatim from Houston, never redrawn or replaced
   per trip ("do not create a new logo"). */
.splash-monogram { position: relative; width: 132px; height: 132px; margin: 0 auto 28px; }
.splash-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.splash-ring-track, .splash-ring-draw { fill: none; stroke-width: 1.5; }
.splash-ring-track { stroke: rgba(226, 205, 162, 0.22); }
.splash-ring-draw {
  stroke: var(--gold-500);
  stroke-linecap: round;
  stroke-dasharray: 490;
  stroke-dashoffset: 490;
  animation: splash-ring-draw 0.85s var(--ease-editorial) 0.15s 1 forwards;
}
@keyframes splash-ring-draw { to { stroke-dashoffset: 0; } }

.splash-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  animation: splash-rise-fade 0.5s var(--ease-editorial) 0.65s 1 forwards;
}
.splash-crown { width: 26px; height: 14px; color: var(--gold-500); }
.splash-crown path { fill: currentColor; }
.splash-mark-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  background-image: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes splash-rise-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-tagline {
  margin: 28px 0 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 3.2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold-100);
  opacity: 0;
  animation: splash-rise-fade 0.5s var(--ease-editorial) 0.85s 1 forwards;
}
.splash-subline {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  opacity: 0;
  animation: splash-rise-fade 0.5s var(--ease-editorial) 1s 1 forwards;
}
.splash-meta {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 253, 250, 0.68);
  opacity: 0;
  animation: splash-rise-fade 0.5s var(--ease-editorial) 1s 1 forwards;
}

.splash-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 26px auto 0;
  overflow: hidden;
  background: rgba(212, 175, 100, 0.18);
}
.splash-rule-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  animation: splash-rule-fill 0.5s var(--ease-editorial) 1.2s 1 forwards;
}
@keyframes splash-rule-fill { to { transform: scaleX(1); } }

.splash-skip {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(226, 205, 162, 0.35);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, border-color 0.2s ease, background 0.2s ease;
  animation: splash-skip-rise-fade 0.6s ease-out 0.4s 1 backwards;
}
@keyframes splash-skip-rise-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-skip:hover,
.splash-skip:focus-visible {
  border-color: var(--gold-300);
  background: rgba(226, 205, 162, 0.08);
}
.splash-skip:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}
.splash-skip-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.splash-skip:hover .splash-skip-arrow,
.splash-skip:focus-visible .splash-skip-arrow {
  transform: translateX(3px);
}

/* Exit choreography — triggered by splash.js before the final .is-hidden.
   Targets wrapper layers only, migrated as-is from Houston's proven
   two-stage exit (is-leaving plays the fade/lift, is-hidden then removes
   from flow). */
.splash.is-leaving .splash-glow { transition: opacity 0.5s ease; opacity: 0; }
.splash.is-leaving .splash-content,
.splash.is-leaving .splash-skip {
  transition: opacity 0.45s ease, transform 0.45s var(--ease-editorial);
  opacity: 0;
  transform: translateY(-8px);
}

@media (min-width: 760px) {
  .splash-skip { font-size: 12px; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .splash { transition: opacity 0.3s ease, visibility 0.3s ease; }
  .splash-glow,
  .splash-mark,
  .splash-tagline,
  .splash-subline,
  .splash-meta {
    animation: splash-glow-in 0.3s ease 0s 1 forwards;
  }
  .splash-ring-draw { stroke-dashoffset: 0; animation: none; }
  .splash-rule-fill { transform: scaleX(1); animation: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 8%, rgba(197, 164, 109, 0.22) 0%, rgba(197, 164, 109, 0) 55%),
    radial-gradient(130% 100% at 85% 100%, rgba(121, 92, 68, 0.55) 0%, rgba(50, 38, 28, 0) 60%),
    linear-gradient(160deg, #32261c 0%, #433326 38%, #513e2e 68%, #624a36 100%);
}
/* Dedicated photo layer, separate from .hero itself, so the slow cinematic
   zoom can animate the image without moving the title/content that sits
   above it. Active on both desktop and mobile — transform-only, so it stays
   cheap on lower-powered devices. */
.hero-photo-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: var(--hero-photo-position, center);
  transform-origin: center;
}
.hero[data-has-photo="true"] .hero-photo-layer {
  background-image: var(--hero-photo-url);
  animation: hero-ken-burns 32s ease-in-out infinite alternate;
}
@keyframes hero-ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-layer { animation: none !important; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 20, 15, 0.4) 0%, rgba(27, 20, 15, 0.18) 40%, rgba(27, 20, 15, 0.58) 100%);
  pointer-events: none;
}
.hero[data-has-photo="false"] .hero-scrim { display: none; }
.hero[data-has-photo="true"] .hero-scrim {
  background:
    radial-gradient(72% 60% at 50% 47%, rgba(18, 14, 10, 0.62) 0%, rgba(18, 14, 10, 0.38) 50%, rgba(18, 14, 10, 0.05) 80%),
    linear-gradient(180deg, rgba(18, 14, 10, 0.5) 0%, rgba(18, 14, 10, 0.22) 24%, rgba(18, 14, 10, 0.3) 64%, rgba(16, 12, 9, 0.76) 100%);
}
.hero-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(197, 164, 109, 0.4);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.hero[data-has-photo="false"] .hero-frame { display: none; }

/* Original JazzeeXscapes ambient detail — a handful of soft champagne-gold
   glints that quietly twinkle. Active on both desktop and mobile; mobile
   shows fewer, smaller glints (same concept, lighter footprint) rather than
   skipping the effect entirely. Switched off for prefers-reduced-motion. */
.hero-glints {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-glint {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(197, 164, 109, 0.95) 0%, rgba(197, 164, 109, 0.35) 45%, rgba(197, 164, 109, 0) 75%);
  animation: hero-glint-twinkle 7s ease-in-out infinite;
}
.hero-glint--1 { top: 16%;  left: 11%;  width: 7px;  height: 7px;  animation-delay: 0s;    animation-duration: 6.5s; }
.hero-glint--2 { top: 24%;  right: 15%; width: 5px;  height: 5px;  animation-delay: 2.1s;  animation-duration: 8s; }
.hero-glint--3 { top: 66%;  left: 8%;   width: 6px;  height: 6px;  animation-delay: 3.6s;  animation-duration: 7.2s; }
.hero-glint--4 { top: 74%;  right: 11%; width: 8px;  height: 8px;  animation-delay: 1.2s;  animation-duration: 9s; }
.hero-glint--5 { top: 44%;  right: 6%;  width: 4px;  height: 4px;  animation-delay: 4.8s;  animation-duration: 6s; }

/* Mobile: trim to three smaller glints — same ambient concept, lighter
   density so the effect stays subtle (not busy) on a small screen. */
@media (max-width: 759px) {
  .hero-glint--4,
  .hero-glint--5 { display: none; }
  .hero-glint--1 { width: 5px; height: 5px; }
  .hero-glint--2 { width: 4px; height: 4px; }
  .hero-glint--3 { width: 4px; height: 4px; }
}

@keyframes hero-glint-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.55; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glints { display: none; }
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: hero-rise 1.4s var(--ease-editorial) both;
}
.hero[data-has-photo="true"] .hero-content {
  text-shadow:
    0 1px 2px rgba(12, 9, 6, 0.85),
    0 2px 10px rgba(12, 9, 6, 0.6),
    0 6px 26px rgba(12, 9, 6, 0.45);
}
/* Negril composition needs its own vertical rhythm — the overlap between
   the destination word and the script line does its own spacing work,
   so the outer gap can be tighter than the generic default's. */
.hero-content--negril { gap: 16px; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-300);
}
/* Collapses cleanly (no stray flex-gap gap) when a trip folds its "name"
   line into heroTitleHtml instead, as the Negril composition does below. */
.hero-eyebrow:empty { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 9vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-300);
}

.hero-divider {
  width: 46px;
  height: 1px;
  background: rgba(255, 253, 250, 0.5);
}

/* ---------------------------------------------------------------------- */
/* Negril Hero composition — art-directed per hero-mockup.png (reference     */
/* only, never rendered on the page itself). Trip-specific per instruction */
/* 8: content strings come from TRIP data (see heroTitleHtml in            */
/* content.js), but this layout/scale treatment is bespoke to this trip's  */
/* three-tier lockup (small tracked name -> oversized gold display word -> */
/* overlapping flowing script) rather than the generic single-line         */
/* .hero-title rules above, which stay intact for a future trip using the  */
/* plain default template. Every clamp() here was tuned by comparing       */
/* rendered screenshots against the mockup at both desktop and mobile      */
/* widths — see the regression notes for the specific values checked.      */
/* ---------------------------------------------------------------------- */
.hero-title--negril {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 94vw;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-wrap: initial;
  /* The generic .hero[data-has-photo="true"] .hero-content text-shadow
     (three dark layers, tuned for plain light text over a busy photo) is
     otherwise inherited here — harmless on the name/script lines, but it
     visibly muddies the destination word's gradient fill at this size, so
     each of the three lines below sets its own appropriate shadow/glow via
     filter: drop-shadow instead, which respects the gradient/transparency
     rather than flattening it. */
  text-shadow: none;
}
.hero-title-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(13px, 1.8vw, 19px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 clamp(2px, 1vw, 10px) 0.55em; /* nudge right to visually re-center under the tracked letter-spacing */
  filter: drop-shadow(0 2px 6px rgba(12, 9, 6, 0.6));
}
/* The destination word carries the hero's champagne-metal treatment — a
   soft cream-to-bronze gradient fill, so it reads as the focal point
   without any bright color. */
.hero-title-destination {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(84px, 17vw, 230px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fbf3e2 0%, #ecdcb9 24%, #d3b988 48%, #a98b58 72%, #836a3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(12, 9, 6, 0.55));
}
.hero-title-script {
  display: block;
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: clamp(46px, 8.4vw, 112px);
  line-height: 1;
  color: var(--gold-300);
  margin-top: clamp(-40px, -6vw, -18px);
  filter: drop-shadow(0 3px 12px rgba(12, 9, 6, 0.55));
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(255, 253, 250, 0.92);
}
.hero-meta .destination {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
}
.hero-meta .dates {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender-300);
}
.hero[data-has-photo="true"] .hero-meta .dates {
  color: var(--gold-300);
}

/* Negril meta block: destination -> thin divider+flower -> dates, matching
   hero-mockup.png's own composition below the title (replacing the
   standalone .hero-divider this trip's markup no longer uses). */
.hero-meta--negril {
  align-items: center;
  text-align: center;
  gap: 10px;
}
.hero-meta--negril .destination {
  font-style: normal;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-meta-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
}
.hero-meta-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 253, 250, 0.45);
}
.hero-meta-divider-flower {
  font-size: 12px;
  line-height: 1;
  color: var(--gold-300);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 253, 250, 0.75);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  animation: cue-pulse 2.2s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Transition wave from hero into content */
.hero-transition {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 3;
}
.hero-transition svg { width: 100%; height: 60px; display: block; }
/* REGRESSION FIX: this fill was still var(--bg-body) — the foundation's
   bright ivory page background from before the Negril Luxe re-theme, never
   updated when everything below the Hero switched to dark plum. That
   left a bright cream wave-shaped slab between the Hero and the now-dark
   Countdown. Fixed directly here (not in negril-luxe.css, which is
   structurally forbidden from touching any .hero/.hero-* selector,
   including this one) using --aubergine-900 — an existing FOUNDATION
   token (already this trip's own dark-plum base, not a negril-prefixed
   one), so styles.css stays self-sufficient and this is a sensible
   default for any dark-themed Master trip, not a Negril-only patch. Wave
   shape/size/position are completely untouched — color only. */
.hero-transition path { fill: var(--aubergine-900); }

/* ---------------------------------------------------------------------- */
/* Trip Countdown                                                          */
/* ---------------------------------------------------------------------- */
.countdown {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  background: linear-gradient(120deg, var(--aubergine-900) 0%, var(--plum-700) 100%);
  border-top: 1px solid rgba(197, 164, 109, 0.3);
  border-bottom: 1px solid rgba(197, 164, 109, 0.3);
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 140% at 50% 0%, rgba(197, 164, 109, 0.16) 0%, rgba(197, 164, 109, 0) 60%);
  pointer-events: none;
}

.countdown-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.countdown-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.countdown-values {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 30px;
  justify-content: center;
}
.countdown-values[hidden] { display: none; }

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 54px;
}
.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 500;
  line-height: 1;
  color: var(--ivory-50);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.countdown-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-300);
  white-space: nowrap;
}

/* Narrow phones: stay on one row (never wrap into a 2x2 grid) by shrinking
   type and gaps rather than reflowing the layout. */
@media (max-width: 480px) {
  .countdown-values { gap: clamp(6px, 3vw, 20px); }
  .countdown-unit { min-width: 0; gap: 3px; }
  .countdown-number { font-size: clamp(20px, 7vw, 28px); }
  .countdown-label { font-size: clamp(8px, 2.3vw, 10px); letter-spacing: 0.1em; }
}
@media (max-width: 360px) {
  .countdown-values { gap: clamp(5px, 2.4vw, 14px); }
  .countdown-number { font-size: clamp(18px, 6.6vw, 24px); }
  .countdown-label { font-size: clamp(7px, 2vw, 9px); letter-spacing: 0.06em; }
}

.countdown-complete {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(21px, 4vw, 28px);
  color: var(--gold-300);
}

/* ---------------------------------------------------------------------- */
/* Trip at a Glance                                                        */
/* ---------------------------------------------------------------------- */
.glance {
  padding: 84px 0 64px;
  background: var(--bg-body);
}
.glance-header {
  text-align: center;
  margin: 0 auto 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.glance-header .section-intro { text-align: center; color: var(--text-muted); font-size: 15px; }

.glance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .glance-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.glance-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.glance-card .icon {
  width: 26px;
  height: 26px;
  color: var(--plum-600);
}
.glance-card .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.glance-card .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--espresso-900);
  line-height: 1.3;
}

/* ---------------------------------------------------------------------- */
/* A Note From — editorial welcome note, migrated from the proven Houston  */
/* (Mary's Weekend 2026) itinerary's WELCOME_NOTE component structure      */
/* rather than rebuilt from scratch. DOM order matches the required        */
/* mobile reading order (header, photo, caption, quote, message,           */
/* signature) — the desktop two-column layout below is pure CSS            */
/* (grid-template-areas), so source/reading order never has to change      */
/* between breakpoints. Content is driven by WELCOME_NOTE in content.js;   */
/* behavior lives in renderWelcomeNote() in app.js.                        */
/* ---------------------------------------------------------------------- */
.welcome-note { padding: 8px 0 88px; }

.welcome-note-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "media"
    "quote"
    "message"
    "signature";
  row-gap: 28px;
}
@media (min-width: 1024px) {
  .welcome-note-grid {
    grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
    grid-template-areas:
      "media header"
      "media quote"
      "media message"
      "media signature";
    column-gap: 72px;
    row-gap: 22px;
    align-items: start;
  }
}

.welcome-note-header { grid-area: header; display: flex; flex-direction: column; gap: 10px; }

/* Layer 1: eyebrow + proportional side rules. */
.welcome-note-eyebrow-row { display: flex; align-items: center; gap: 14px; }
.welcome-note-eyebrow-line {
  flex: 1 1 34px;
  max-width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold));
}
.welcome-note-eyebrow-line:last-child { background: linear-gradient(90deg, var(--border-gold), transparent); }
.welcome-note-header .eyebrow { flex: none; color: var(--gold-700); }

/* Layer 2: a finer, shorter rule beneath the eyebrow, broken by one small
   centered sparkle. The row has a fixed height and the sparkle is
   position:absolute, so the sparkle can never add layout height or push
   the headline down, no matter what. */
.welcome-note-crown-row {
  position: relative;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}
.welcome-note-crown-line {
  width: 26px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--border-gold));
  opacity: 0.8;
}
.welcome-note-crown-row .welcome-note-crown-line:last-child { background: linear-gradient(90deg, var(--border-gold), transparent); }
.welcome-note-crown-sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  color: var(--gold-500);
  filter: drop-shadow(0 0 4px rgba(197, 164, 109, 0.5));
}

/* Layer 3: the headline + one small asymmetrical accent dot. */
.welcome-note-heading-wrap { position: relative; }
.welcome-note-heading {
  color: var(--espresso-900);
  font-size: clamp(30px, 5.4vw, 46px);
}
.welcome-note-heading-accent {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.3em;
  line-height: 1;
  margin-left: 2px;
  color: var(--gold-500);
}
.welcome-note-accent-dot {
  position: absolute;
  top: -2px;
  right: 14%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 6px rgba(197, 164, 109, 0.6);
}
@media (min-width: 640px) { .welcome-note-accent-dot { top: -4px; right: 8%; } }

/* Layer 4: a long sweeping champagne pen-stroke — dip, rise, one
   restrained calligraphic loop, taper — with a single sparkle at its low
   point. Spans most of the headline's own width, not a fixed size. */
.welcome-note-flourish {
  display: block;
  width: 78%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 520 / 84;
  margin-top: 6px;
  overflow: visible;
}
.welcome-note-flourish-path { color: var(--border-gold); opacity: 0.9; }
.welcome-note-flourish-sparkle { color: var(--gold-500); filter: drop-shadow(0 0 5px rgba(197, 164, 109, 0.5)); }

.welcome-note-media { grid-area: media; }
.welcome-note-photo-frame {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .welcome-note-photo-frame { margin: 0; } }
/* Subtle offset paper layer behind the photo — thin gold outline, rotated
   a couple of degrees. */
.welcome-note-photo-frame::before {
  content: "";
  position: absolute;
  inset: -14px -10px 14px -16px;
  background: rgba(247, 236, 212, 0.3);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  transform: rotate(-2.2deg);
  z-index: 0;
}
.welcome-note-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
/* Intentional placeholder — shown while WELCOME_NOTE.photo.src is unset
   (see renderWelcomeNotePhoto in app.js). Same frame/border/shadow a real
   photo would use, so a portrait can be added later with zero layout
   change; deliberately not a broken <img>. */
.welcome-note-photo-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--lavender-200);
  color: var(--plum-500);
}
.welcome-note-photo-placeholder svg { width: 34%; height: 34%; }
.welcome-note-caption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--gold-700);
}
.welcome-note-caption:empty { display: none; }
@media (min-width: 1024px) { .welcome-note-caption { text-align: left; } }

.welcome-note-quote-block { grid-area: quote; position: relative; padding-left: 34px; max-width: 52ch; }
.welcome-note-quote-mark {
  position: absolute;
  left: -6px;
  top: -22px;
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.4;
}
.welcome-note-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.3vw, 21px);
  color: var(--espresso-900);
}

.welcome-note-message { grid-area: message; display: flex; flex-direction: column; gap: 14px; max-width: 58ch; }
.welcome-note-message p { font-family: var(--font-body); font-size: 15px; line-height: 1.75; color: var(--text-muted); }

.welcome-note-signature-block { grid-area: signature; }
.welcome-note-closing { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--text-muted); margin: 0 0 4px; }
.welcome-note-signature-names { font-family: var(--font-script); font-size: 28px; line-height: 1.15; color: var(--gold-700); margin: 0; }
.welcome-note-signature-roles { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* Two-beat reveal: the photo fades up first, the text column follows a
   short beat later — both triggered by the same scroll-into-view moment
   (see setupReveal() in app.js, shared with every other .reveal element
   site-wide), the stagger is purely a transition-delay. */
.welcome-note-header.reveal,
.welcome-note-quote-block.reveal,
.welcome-note-message.reveal,
.welcome-note-signature-block.reveal {
  transition-delay: 0.15s;
}

/* ---------------------------------------------------------------------- */
/* Smart Trip Weather — reusable, OPTIONAL "TripWeather" module           */
/* Kept deliberately compact — one card, not a full section with its own  */
/* header/grid — since the itinerary already contains several rich        */
/* sections. Live data via Open-Meteo (no key required); see              */
/* Assets/js/trip-weather.js for the state machine and fetch logic.       */
/* ---------------------------------------------------------------------- */
.weather {
  padding: 0 0 8px;
  background: var(--bg-body);
}
.weather-card {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) {
  .weather-card { padding: 34px 40px; }
}

.weather-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 6px;
}
.weather-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--espresso-900);
  margin-bottom: 4px;
}

/* --- Pre-forecast (waiting) state --- */
.weather-state--pre {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.weather-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  margin-bottom: 14px;
}
.weather-icon-badge svg { width: 21px; height: 21px; }

.weather-message {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--espresso-900);
  max-width: 46ch;
  margin-top: 10px;
}
.weather-submessage {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: 4px;
}

/* Restrained atmospheric line + traveling gold point — the same slow,
   ambient motion language as the Journey module's route line, scoped
   independently here. Purely decorative. */
.weather-atmos {
  position: absolute;
  top: 22px;
  right: 26px;
  width: min(160px, 30%);
  height: 14px;
  opacity: 0.9;
}
@media (min-width: 640px) {
  .weather-atmos { top: 28px; right: 40px; width: 200px; }
}
.weather-atmos-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 164, 109, 0) 0%, rgba(197, 164, 109, 0.55) 50%, rgba(197, 164, 109, 0) 100%);
  transform: translateY(-50%);
}
.weather-atmos-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7e6 0%, var(--gold-500) 55%, rgba(197, 164, 109, 0) 80%);
  box-shadow: 0 0 6px 1px rgba(197, 164, 109, 0.5);
  animation: weather-atmos-travel 6s ease-in-out infinite;
}
@keyframes weather-atmos-travel {
  0%   { left: 0%;   opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* --- Forecast row (shared by forecast + today-remaining states) --- */
.weather-forecast-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.weather-forecast-row--compact { margin-top: 14px; }

.weather-day {
  flex: 0 0 auto;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  background: var(--ivory-100);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.weather-day-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.weather-day-icon { width: 24px; height: 24px; color: var(--plum-600); margin: 2px 0; }
.weather-day-icon svg { width: 100%; height: 100%; }
.weather-day-temps {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--espresso-900);
  display: flex;
  gap: 5px;
  align-items: baseline;
}
.weather-day-low { color: var(--text-muted); font-size: 12px; }
.weather-day-condition {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}
.weather-day-rain {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--plum-600);
  margin-top: 2px;
}
.weather-day-rain svg { width: 11px; height: 11px; }

.weather-day--soon {
  justify-content: center;
  color: var(--text-muted);
}
.weather-day-soon-label {
  font-size: 10.5px;
  font-style: italic;
  line-height: 1.4;
  margin-top: 4px;
}

/* --- Today mode --- */
.weather-now {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.weather-now-icon { width: 46px; height: 46px; color: var(--plum-600); flex: none; }
.weather-now-icon svg { width: 100%; height: 100%; }
.weather-now-info { display: flex; flex-direction: column; gap: 2px; }
.weather-now-temp {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1;
  color: var(--espresso-900);
}
.weather-now-condition { font-size: 13.5px; color: var(--text-muted); }
.weather-now-range { font-size: 12px; color: var(--text-muted); }

.weather-connect {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.weather-connect-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 8px;
}
.weather-connect-style-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--espresso-900);
  display: block;
  margin-bottom: 8px;
}
.weather-plans-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.weather-plans-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--espresso-900);
}
.weather-plans-time {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
}
.weather-connect-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-600);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-editorial);
}
.weather-connect-link svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-editorial); }
.weather-connect-link:hover,
.weather-connect-link:focus-visible {
  border-bottom-color: currentColor;
}
.weather-connect-link:hover svg,
.weather-connect-link:focus-visible svg { transform: translateX(3px); }
.weather-connect-link:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* --- Loading / unavailable / post-trip --- */
.weather-loading-text {
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}
.weather-state--post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.weather-post-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .weather-atmos-dot { animation: none; left: 50%; opacity: 0.8; }
}

/* ---------------------------------------------------------------------- */
/* The Journey — reusable Flight / Host Flight feature                    */
/* A static, point-in-time display of a selected flight, to help group    */
/* travelers coordinate — NOT live flight or fare tracking.               */
/* ---------------------------------------------------------------------- */
.journey {
  padding: 84px 0 88px;
  background: var(--bg-body);
}
.journey-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.journey-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.journey-group {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 55%, var(--plum-700) 130%);
  border: 1px solid rgba(197, 164, 109, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 22px 30px;
  box-shadow: 0 30px 70px -30px rgba(50, 38, 28, 0.65);
}
@media (min-width: 700px) {
  .journey-group { padding: 48px 48px 44px; }
}
.journey-group::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 164, 109, 0.22);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.journey-group-header {
  position: relative;
  max-width: 60ch;
  margin-bottom: 30px;
}
.journey-host-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(197, 164, 109, 0.16);
  border: 1px solid rgba(197, 164, 109, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.journey-host-explanation {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(233, 228, 221, 0.82);
}

.journey-legs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (min-width: 760px) {
  .journey-legs { flex-direction: row; gap: 28px; }
  .journey-legs .journey-leg { flex: 1; min-width: 0; }
}

.journey-leg {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid rgba(197, 164, 109, 0.25);
}
.journey-legs .journey-leg:first-child { padding-top: 0; border-top: none; }
@media (min-width: 760px) {
  .journey-legs .journey-leg { padding-top: 0; border-top: none; }
  .journey-legs .journey-leg:not(:first-child) {
    padding-left: 28px;
    border-left: 1px solid rgba(197, 164, 109, 0.25);
  }
}

.journey-leg-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.journey-leg-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.journey-leg-route-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--white);
}
.journey-leg-arrow { color: var(--gold-300); font-style: normal; }
.journey-leg-date {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(233, 228, 221, 0.65);
}

/* Route visual — airport codes with a slow, restrained gold point of light
   traveling between them. Purely decorative (aria-hidden); the times/codes
   themselves carry the real information for assistive tech. */
.journey-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.journey-route-point {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: none;
}
.journey-route-point--arrival { text-align: right; align-items: flex-end; }
.journey-airport-code {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
}
.journey-route-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(233, 228, 221, 0.75);
  white-space: nowrap;
}

.journey-route-line {
  position: relative;
  flex: 1;
  height: 16px;
  min-width: 32px;
}
.journey-route-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 164, 109, 0.15) 0%, rgba(197, 164, 109, 0.65) 50%, rgba(197, 164, 109, 0.15) 100%);
  transform: translateY(-50%);
}
/* Airplane route treatment — MASTER STANDARD, reusable across every future
   itinerary. Universal motion, fully themeable appearance: color comes
   from currentColor (set to --gold-300 below, the same token already used
   throughout this component), so retheming for a new trip is a design-
   token change, never a rewrite of this animation. Positioned with `left`
   as a percentage of .journey-route-line's own width (not translateX,
   which would be relative to the icon's own size) so it scales cleanly
   at any route-line width from mobile to desktop. Each keyframe's `left`
   is a calc() of that percentage plus/minus a fixed 8px — half the icon's
   own 15px width plus a hair of margin — so translate(-50%) centering
   can never push either edge past .journey-route-line's own bounds, even
   at its 32px CSS min-width (verified: the tightest edge case still
   clears with ~1.5px to spare). The icon itself is a top-down silhouette
   (see ICONS.airplane in app.js) rotated 90deg/-90deg to face right/left
   — the 0%/100% keyframe states are identical, so the infinite loop has
   no visible seam or jump. */
.journey-route-plane {
  position: absolute;
  top: 50%;
  left: calc(4% + 8px);
  width: 15px;
  height: 15px;
  color: var(--gold-300);
  filter: drop-shadow(0 0 5px rgba(226, 205, 162, 0.65));
  animation: journey-plane-glide 16s ease-in-out infinite;
}
.journey-route-plane svg { width: 100%; height: 100%; display: block; }
@keyframes journey-plane-glide {
  0%   { left: calc(4% + 8px);  transform: translate(-50%, -50%) rotate(90deg); }
  45%  { left: calc(96% - 8px); transform: translate(-50%, -50%) rotate(90deg); }
  50%  { left: calc(96% - 8px); transform: translate(-50%, -50%) rotate(-90deg); }
  95%  { left: calc(4% + 8px);  transform: translate(-50%, -50%) rotate(-90deg); }
  100% { left: calc(4% + 8px);  transform: translate(-50%, -50%) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .journey-route-plane {
    animation: none;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* Connection / layover detail — only rendered when a leg has one or more
   flight.connections entries; nonstop legs show none of this. */
.journey-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 14px;
}
.journey-connection {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(197, 164, 109, 0.12);
  border: 1px solid rgba(197, 164, 109, 0.3);
}
.journey-connection-airport {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  text-transform: uppercase;
}
.journey-connection-layover {
  position: relative;
  padding-left: 11px;
  font-size: 11px;
  color: rgba(233, 228, 221, 0.75);
}
.journey-connection-layover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(233, 228, 221, 0.45);
  transform: translateY(-50%);
}

.journey-leg-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
}
.journey-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.journey-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 228, 221, 0.5);
}
.journey-detail-value {
  font-size: 13.5px;
  color: var(--white);
}

/* Fare — a point-in-time figure, never framed as live/current pricing */
.journey-fare {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(197, 164, 109, 0.25);
}
.journey-fare-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233, 228, 221, 0.55);
  margin-bottom: 6px;
}
.journey-fare-amount {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 30px);
  color: var(--gold-300);
}
.journey-fare-type {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 228, 221, 0.6);
  margin-left: 4px;
}
.journey-fare-disclaimer {
  margin-top: 8px;
  font-size: 12px;
  font-style: italic;
  color: rgba(233, 228, 221, 0.55);
  max-width: 46ch;
}

/* Group travel guidance */
.journey-guidance {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(197, 164, 109, 0.25);
}
@media (min-width: 640px) {
  .journey-guidance { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
.journey-guidance-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 6px;
}
.journey-guidance-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(233, 228, 221, 0.8);
}

/* CTA */
.journey-cta-row {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.journey-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  background: var(--gold-300);
  color: var(--aubergine-900);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.journey-cta svg { width: 14px; height: 14px; }
a.journey-cta:hover { background: var(--gold-100); }
.journey-cta.is-pending {
  background: none;
  border: 1px solid rgba(197, 164, 109, 0.4);
  color: var(--gold-300);
}
.journey-pending-pill {
  color: rgba(233, 228, 221, 0.6);
  border-color: rgba(196, 183, 167, 0.3);
}

/* ---------------------------------------------------------------------- */
/* Destination Requirements — PREMIUM feature                             */
/* The whole section is ONE collapsed-by-default card — same height-       */
/* animation technique as the day-accordion (grid 0fr -> 1fr on the wrap), */
/* just a single toggle rather than a list of independently-openable ones. */
/* ---------------------------------------------------------------------- */
.requirements {
  padding: 64px 0;
  background: var(--bg-body);
  border-top: 1px solid var(--border-soft);
}

.requirements-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.requirements-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 700px) {
  .requirements-toggle { padding: 26px 30px; gap: 20px; }
}
.requirements-toggle:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: -2px;
}

.requirements-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-md);
  background: rgba(197, 164, 109, 0.18);
  color: var(--gold-700);
}
.requirements-toggle-icon svg { width: 22px; height: 22px; }

.requirements-toggle-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.requirements-toggle-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 21px);
  font-weight: 500;
  color: var(--espresso-900);
}
.requirements-toggle-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

.requirements-chevron {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--lavender-400);
  transition: transform 0.35s var(--ease-editorial), color 0.35s var(--ease-editorial);
}
.requirements-chevron svg { width: 100%; height: 100%; }
.requirements-card.is-open .requirements-chevron {
  transform: rotate(180deg);
  color: var(--plum-600);
}

/* Height animates via the grid 0fr -> 1fr trick — no JS measuring needed */
.requirements-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-editorial);
}
.requirements-card.is-open .requirements-panel-wrap {
  grid-template-rows: 1fr;
}
.requirements-panel-inner { overflow: hidden; }
.requirements-panel { padding: 4px 22px 26px; }
@media (min-width: 700px) {
  .requirements-panel { padding: 4px 30px 32px; }
}

.requirements-panel-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.requirements-panel-header .section-intro {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
}

/* Compact "verified as of" note — informational, not a warning, so no red/
   alert styling: a small pill-shaped line that reads as responsible
   premium guidance rather than a disclaimer banner. */
.requirements-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px auto 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--espresso-700);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}
.requirements-verified svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold-500); }

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .requirements-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

.requirements-item {
  background: var(--ivory-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.requirements-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--lavender-200);
  color: var(--plum-600);
  margin-bottom: 4px;
}
.requirements-item-icon svg { width: 20px; height: 20px; }
.requirements-item-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--espresso-900);
}
.requirements-item-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
/* Optional per-category official-source link (see item.link in
   content.js) — same pill-CTA language as .requirements-official-cta
   below, just smaller/inline since it lives inside a compact grid card
   rather than its own full-width callout. */
.requirements-item-cta {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--lavender-200);
  color: var(--plum-600);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.requirements-item-cta:hover { background: var(--lavender-300); }
.requirements-item-cta:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.requirements-item-cta svg { width: 12px; height: 12px; }

/* VISITAX — the one item requiring traveler action, so it's called out as
   its own featured gold callout rather than blending into the card grid. */
.requirements-visitax {
  position: relative;
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--ivory-100) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .requirements-visitax {
    flex-direction: row;
    align-items: center;
    padding: 30px 34px;
    gap: 24px;
  }
}
.requirements-visitax-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  position: absolute;
  top: -12px;
  left: 24px;
}
.requirements-visitax-badge svg { width: 10px; height: 10px; }
.requirements-visitax-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gold-700);
  flex: none;
}
.requirements-visitax-icon svg { width: 24px; height: 24px; }
.requirements-visitax-text { flex: 1 1 auto; }
.requirements-visitax-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--espresso-900);
  margin-bottom: 6px;
}
.requirements-visitax-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.requirements-visitax-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gold-700);
  color: var(--white);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.3s var(--ease-editorial);
}
.requirements-visitax-cta:hover { background: var(--gold-600); }
.requirements-visitax-cta:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.requirements-visitax-cta svg { width: 14px; height: 14px; }

/* Be Ready to Show + Official Resources */
.requirements-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (min-width: 700px) {
  .requirements-lower { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
}

.requirements-checklist {
  background: var(--lavender-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.requirements-checklist-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--espresso-900);
  margin-bottom: 14px;
}
.requirements-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.requirements-checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--espresso-900);
}
.requirements-checklist-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--plum-600);
}

.requirements-official {
  background: var(--ivory-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.requirements-official-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--lavender-200);
  color: var(--plum-600);
}
.requirements-official-icon svg { width: 20px; height: 20px; }
.requirements-official-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--espresso-900);
}
.requirements-official-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.requirements-official-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  background: var(--plum-600);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.requirements-official-cta:hover { background: var(--plum-500); }
.requirements-official-cta:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.requirements-official-cta svg { width: 14px; height: 14px; }

.requirements-disclaimer {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------- */
/* The Stay — richer resort/accommodation feature                         */
/* ---------------------------------------------------------------------- */
.stay-feature {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 55%, var(--plum-700) 130%);
}
.stay-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 12% 0%, rgba(197, 164, 109, 0.14) 0%, rgba(197, 164, 109, 0) 60%);
  pointer-events: none;
}

.stay-feature-header {
  position: relative;
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.stay-feature-header .eyebrow { color: var(--gold-300); }
.stay-feature-header .section-heading { color: var(--white); }
.stay-feature-header .section-intro {
  text-align: center;
  color: var(--lavender-300);
  font-size: 15.5px;
}

.stay-feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 960px) {
  .stay-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

/* Primary resort card */
.stay-card {
  position: relative;
  background: var(--ivory-50);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .stay-card { padding: 48px 44px; }
}
.stay-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.stay-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  color: var(--espresso-900);
  margin-top: 10px;
}
.stay-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.stay-card-location svg { width: 14px; height: 14px; color: var(--plum-600); flex-shrink: 0; }
a.stay-card-location:hover { color: var(--plum-600); }

.stay-card-times {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.stay-time { display: flex; flex-direction: column; gap: 3px; }
.stay-time-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stay-time-value {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--espresso-900);
}
.stay-time-divider {
  width: 1px;
  height: 30px;
  background: var(--border-soft);
}

.stay-cta-row {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.stay-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  background: var(--plum-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.stay-cta svg { width: 14px; height: 14px; }
a.stay-cta:hover { background: var(--plum-500); }
.stay-cta.is-pending {
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold-700);
}

/* Info column — 01 / 02 / 03 */
.stay-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.stay-block-number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-300);
  margin-bottom: 6px;
}
.stay-block-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--white);
  margin-bottom: 12px;
}
.stay-block-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(233, 228, 221, 0.82);
  max-width: 50ch;
}

.stay-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stay-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(247, 242, 233, 0.92);
}
.stay-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(197, 164, 109, 0.14);
  color: var(--gold-300);
  flex-shrink: 0;
}
.stay-highlight-icon svg { width: 16px; height: 16px; }

.stay-goodtoknow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(233, 228, 221, 0.85);
}
.stay-pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.stay-pending p {
  font-size: 13.5px;
  color: rgba(233, 228, 221, 0.65);
  max-width: 42ch;
}
.stay-feature .stay-pending .pill-tbd {
  color: var(--gold-300);
  border-color: rgba(197, 164, 109, 0.5);
}

/* ---------------------------------------------------------------------- */
/* Itinerary                                                               */
/* ---------------------------------------------------------------------- */
.itinerary {
  padding: 40px 0 96px;
  background: var(--bg-body);
}
.itinerary-header {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.itinerary-header .section-intro { color: var(--text-muted); font-size: 15px; }

.day-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Day-level accordion — one day is its own expand/collapse container;
   activities live inside its panel (see .activity-* below). Mirrors the
   same header-button + grid-0fr→1fr panel pattern used for activities, one
   level up, so multiple days can stay open independently. */
.day-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 90px;
}

.day-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 700px) {
  .day-header { padding: 36px 40px; }
}
.day-header:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: -2px;
}

.day-header-text { min-width: 0; }
.day-card-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.day-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.day-date {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.day-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  color: var(--espresso-900);
  margin-top: 4px;
}
.day-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
}

.day-chevron {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 6px;
  color: var(--lavender-400);
  transition: transform 0.35s var(--ease-editorial), color 0.35s var(--ease-editorial);
}
.day-chevron svg { width: 100%; height: 100%; }
.day-card.is-open .day-chevron {
  transform: rotate(180deg);
  color: var(--plum-600);
}

/* Height animates via the grid 0fr → 1fr trick — no JS measuring needed */
.day-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-editorial);
}
.day-card.is-open .day-panel-wrap {
  grid-template-rows: 1fr;
}
.day-panel-inner { overflow: hidden; }
.day-panel { padding: 0 24px 28px; }
@media (min-width: 700px) {
  .day-panel { padding: 0 40px 36px; }
}

.activity-list {
  display: flex;
  flex-direction: column;
}

/* --- Expandable activity accordion (reusable pattern) --- */
.activity-item {
  border-top: 1px solid var(--border-soft);
}
.activity-item:first-child { border-top: none; }

.activity-item.is-static { padding: 14px 2px; }
.activity-item.is-static:first-child { padding-top: 4px; }
.activity-item.is-static .activity-title { font-size: 15px; font-weight: 600; color: var(--espresso-900); }

.activity-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.activity-item:first-child .activity-header { padding-top: 4px; }
.activity-header:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.activity-header-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.activity-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--espresso-900);
}
.activity-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.activity-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.activity-time-preview {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--plum-600);
  white-space: nowrap;
}
.activity-chevron {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--lavender-400);
  transition: transform 0.35s var(--ease-editorial), color 0.35s var(--ease-editorial);
}
.activity-chevron svg { width: 100%; height: 100%; }
.activity-item.is-open .activity-chevron {
  transform: rotate(180deg);
  color: var(--plum-600);
}

/* Height animates via the grid 0fr → 1fr trick — no JS measuring needed */
.activity-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-editorial);
}
.activity-item.is-open .activity-panel-wrap {
  grid-template-rows: 1fr;
}
.activity-panel-inner { overflow: hidden; }
.activity-panel { padding: 2px 2px 22px; }

.activity-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.activity-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.activity-field-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lavender-200);
  color: var(--plum-600);
  margin-top: 1px;
}
.activity-field-icon svg { width: 13px; height: 13px; }
.activity-field-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.activity-field-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.activity-field-value {
  font-size: 14px;
  color: var(--espresso-900);
  line-height: 1.45;
}
.activity-field-value a { color: var(--plum-600); text-decoration: underline; text-underline-offset: 2px; }
.activity-field-value .is-tbd {
  color: var(--mauve-300);
  font-style: italic;
  font-weight: 400;
}
.activity-included-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
  transition: background-color 0.3s var(--ease-editorial);
}
.activity-calendar-btn:hover { background: var(--gold-100); }
.activity-calendar-btn:focus-visible { outline: 2px solid var(--plum-500); outline-offset: 2px; }
.activity-calendar-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Pending state — shown whenever an activity doesn't yet have a finalized
   time. Stays visible (never hidden) so guests always see the action exists,
   it just isn't active until scheduling is confirmed. */
.activity-calendar-btn.is-pending {
  cursor: default;
  align-items: center;
  text-align: left;
  color: var(--mauve-500);
  border-color: var(--border-lavender);
}
.activity-calendar-btn.is-pending:hover { background: none; }
.activity-calendar-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.activity-calendar-btn-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-style: italic;
  color: var(--mauve-300);
}

.pill-tbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-600);
  border: 1px solid var(--border-lavender);
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-full);
}
.pill-tbd svg { width: 11px; height: 11px; }

/* Open / TBD day placeholder */
.day-open-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0 4px;
}
.day-open-state .glyph {
  width: 34px;
  height: 34px;
  color: var(--lavender-400);
}
.day-open-state .msg {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
}

/* --- Birthday day: signature treatment --- */
.day-card.is-celebration {
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 55%, var(--plum-700) 130%);
  border: 1px solid rgba(197, 164, 109, 0.35);
  color: var(--ivory-50);
  padding: 34px 24px 30px;
  box-shadow: 0 30px 70px -30px rgba(50, 38, 28, 0.65);
}
@media (min-width: 700px) {
  .day-card.is-celebration { padding: 48px 44px 42px; }
}
.day-card.is-celebration::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 164, 109, 0.28);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.day-card.is-celebration .day-tag {
  background: rgba(197, 164, 109, 0.18);
  color: var(--gold-300);
}
.day-card.is-celebration .day-date { color: rgba(233, 228, 221, 0.7); }
.day-card.is-celebration .day-title { color: var(--white); }
.day-card.is-celebration .day-summary { color: var(--lavender-300); }
.day-card.is-celebration .day-chevron { color: var(--lavender-300); }
.day-card.is-celebration.is-open .day-chevron { color: var(--gold-300); }
.day-card.is-celebration .activity-item { border-top-color: rgba(233, 228, 221, 0.14); }
.day-card.is-celebration .activity-title { color: var(--white); }
.day-card.is-celebration .activity-subtitle { color: rgba(233, 228, 221, 0.7); }
.day-card.is-celebration .activity-time-preview { color: var(--gold-300); }
.day-card.is-celebration .activity-chevron { color: var(--lavender-300); }
.day-card.is-celebration .activity-item.is-open .activity-chevron { color: var(--gold-300); }
.day-card.is-celebration .activity-field-icon {
  background: rgba(197, 164, 109, 0.16);
  color: var(--gold-300);
}
.day-card.is-celebration .activity-field-label { color: rgba(233, 228, 221, 0.5); }
.day-card.is-celebration .activity-field-value { color: var(--white); }
.day-card.is-celebration .activity-field-value a { color: var(--gold-300); }
.day-card.is-celebration .activity-field-value .is-tbd { color: rgba(233, 228, 221, 0.45); }
.day-card.is-celebration .activity-calendar-btn {
  border-color: rgba(197, 164, 109, 0.5);
  color: var(--gold-300);
}
.day-card.is-celebration .activity-calendar-btn:hover { background: rgba(197, 164, 109, 0.14); }
.day-card.is-celebration .activity-calendar-btn.is-pending {
  color: rgba(233, 228, 221, 0.55);
  border-color: rgba(196, 183, 167, 0.4);
}
.day-card.is-celebration .activity-calendar-btn.is-pending:hover { background: none; }
.day-card.is-celebration .activity-calendar-btn-sub { color: rgba(233, 228, 221, 0.4); }

.celebration-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 14px;
}
.celebration-badge svg { width: 14px; height: 14px; }

/* Dress code spotlight */
.dresscode-block {
  position: relative;
  margin-top: 26px;
  padding: 22px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 250, 0.06);
  border: 1px solid rgba(197, 164, 109, 0.3);
}
.dresscode-block .dresscode-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dresscode-block p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(233, 228, 221, 0.82);
  max-width: 52ch;
}

/* ---------------------------------------------------------------------- */
/* Shared Trip Album — reusable, OPTIONAL "doorway" to an externally        */
/* hosted shared photo album (e.g. Google Photos) the host/client          */
/* provides. Not a photo host itself, and not the same feature as a        */
/* future in-page gallery or the Birthday Passport.                        */
/* ---------------------------------------------------------------------- */
.album {
  padding: 24px 0 90px;
  background: var(--bg-body);
}
.album-card {
  position: relative;
  overflow: hidden;
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(150deg, var(--ivory-50) 0%, var(--gold-100) 145%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px 26px 40px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .album-card { padding: 60px 56px 52px; }
}

/* Abstract stacked photo-frame motif — no photographs, purely decorative */
.album-motif {
  position: relative;
  width: 92px;
  height: 66px;
  margin-bottom: 6px;
}
.album-frame {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold-500);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.55);
}
.album-frame--1 { transform: rotate(-9deg) translate(-15px, 3px); opacity: 0.5; }
.album-frame--2 { transform: rotate(6deg) translate(11px, -3px); opacity: 0.7; }
.album-frame--3 { transform: rotate(-2deg); opacity: 1; box-shadow: var(--shadow-card); }
.album-glint {
  position: absolute;
  top: -3px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7e6 0%, var(--gold-500) 60%, rgba(197, 164, 109, 0) 80%);
  opacity: 0;
  animation: album-glint-twinkle 5.5s ease-in-out infinite;
}
@keyframes album-glint-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 0.85; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .album-glint { animation: none; opacity: 0.5; }
}

.album-card .eyebrow { color: var(--gold-700); }
.album-card .section-heading {
  max-width: 20ch;
}
.album-description {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.album-cta-row {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.album-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--plum-600);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial);
}
.album-cta:hover { background: var(--plum-500); }
.album-cta:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.album-cta-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-editorial);
}
.album-cta:hover .album-cta-arrow { transform: translateX(3px); }
.album-supporting-text {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
}

/* Preview-only explainer modal (shown when no sharedAlbumUrl is set) —
   mirrors the Share This Trip / Save to Phone sheet pattern for consistency. */
.album-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(27, 20, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-editorial), visibility 0.35s;
}
.album-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 640px) {
  .album-overlay { align-items: center; padding: 24px; }
}

.album-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ivory-50);
  border-radius: 22px 22px 0 0;
  padding: 14px 26px 30px;
  box-shadow: 0 -20px 60px -20px rgba(27, 20, 15, 0.5);
  transform: translateY(24px);
  transition: transform 0.4s var(--ease-editorial);
}
.album-overlay.is-open .album-sheet {
  transform: translateY(0);
}
.album-sheet:focus { outline: none; }
@media (min-width: 640px) {
  .album-sheet {
    border-radius: var(--radius-lg);
    padding: 32px 34px 34px;
    max-height: 84vh;
  }
}

.album-handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--lavender-300);
  margin: 4px auto 18px;
}
@media (min-width: 640px) {
  .album-handle { display: none; }
}

.album-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lavender-200);
  border: none;
  color: var(--plum-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease-editorial);
}
.album-close:hover { background: var(--lavender-300); }
.album-close:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.album-close svg { width: 15px; height: 15px; }

.album-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 8px;
}
.album-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aubergine-900);
  color: var(--gold-300);
  margin-bottom: 4px;
}
.album-modal-icon svg { width: 20px; height: 20px; }
.album-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso-900);
}
.album-modal-body {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}
.album-modal-note {
  margin-top: 10px;
  font-size: 12.5px;
  font-style: italic;
  text-align: center;
  color: var(--mauve-500);
}

.album-modal-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--plum-600);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.album-modal-dismiss:hover { background: var(--plum-500); }
.album-modal-dismiss:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Visually-hidden but screen-reader-accessible text. */
.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;
}

/* ---------------------------------------------------------------------- */
/* The Style Edit — reusable, OPTIONAL wardrobe/dress-code module          */
/* Distinct from daily-itinerary dress-code fields, the Curated Gallery,   */
/* the Birthday Passport, and the Shared Trip Album.                       */
/* ---------------------------------------------------------------------- */
.style-edit {
  padding: 8px 0 88px;
  background: var(--bg-body);
}
.style-edit-header {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.style-edit-header .section-intro { text-align: center; color: var(--text-muted); font-size: 15px; }

.style-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 860px) {
  .style-edit-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.style-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s var(--ease-editorial), transform 0.4s var(--ease-editorial);
}
@media (min-width: 700px) {
  .style-card { padding: 44px 34px 36px; min-height: 440px; }
}

.style-card-number {
  position: absolute;
  top: -8px;
  right: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(84px, 13vw, 130px);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.5s var(--ease-editorial);
}
.style-card:hover .style-card-number,
.style-card:focus-within .style-card-number {
  transform: translateY(-4px);
}

.style-card-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.style-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.style-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.style-card-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.style-card-event {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
}

.style-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.12;
}

.style-card-mood {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 32ch;
}

.style-card-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.style-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease-editorial);
}
.style-card:hover .style-swatch:nth-child(1),
.style-card:focus-within .style-swatch:nth-child(1) { transition-delay: 0s; }
.style-card:hover .style-swatch:nth-child(2),
.style-card:focus-within .style-swatch:nth-child(2) { transition-delay: 0.05s; }
.style-card:hover .style-swatch:nth-child(3),
.style-card:focus-within .style-swatch:nth-child(3) { transition-delay: 0.1s; }
.style-card:hover .style-swatch,
.style-card:focus-within .style-swatch {
  transform: translateY(-3px);
}

.style-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-editorial);
}
.style-card-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease-editorial);
}
.style-card:hover .style-card-cta,
.style-card:focus-within .style-card-cta {
  border-bottom-color: currentColor;
}
.style-card-cta:hover svg,
.style-card-cta:focus-visible svg {
  transform: translateX(3px);
}
.style-card-cta:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* Variant 01 — Resort Chic: warm ivory / neutral luxury */
.style-card--neutral {
  background: linear-gradient(150deg, var(--ivory-50) 0%, var(--gold-100) 145%);
  border: 1px solid var(--border-gold);
  color: var(--espresso-900);
}
.style-card--neutral .style-card-number { color: rgba(197, 164, 109, 0.28); }
.style-card--neutral .style-card-date { color: var(--gold-700); }
.style-card--neutral .style-card-event,
.style-card--neutral .style-card-mood { color: var(--text-muted); }
.style-card--neutral .style-card-cta { color: var(--plum-600); }
.style-card--neutral:hover,
.style-card--neutral:focus-within {
  box-shadow: 0 0 0 1px rgba(197, 164, 109, 0.55), var(--shadow-soft);
}

/* Variant 02 — Jazzee Chic: the signature, strongest treatment */
.style-card--signature {
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 50%, var(--plum-700) 135%);
  border: 1px solid rgba(197, 164, 109, 0.5);
  color: var(--white);
  box-shadow: 0 34px 80px -30px rgba(50, 38, 28, 0.7);
}
.style-card--signature .style-card-number { color: rgba(197, 164, 109, 0.22); }
.style-card--signature .style-card-date { color: var(--gold-300); }
.style-card--signature .style-card-event { color: rgba(233, 228, 221, 0.75); }
.style-card--signature .style-card-name { color: var(--white); }
.style-card--signature .style-card-mood { color: rgba(233, 228, 221, 0.85); }
.style-card--signature .style-card-cta { color: var(--gold-300); }
.style-card--signature:hover,
.style-card--signature:focus-within {
  box-shadow: 0 0 0 1px rgba(197, 164, 109, 0.8), 0 34px 80px -28px rgba(50, 38, 28, 0.75);
  transform: translateY(-4px);
}

/* Variant 03 — Poolside Luxe: soft lavender / blush / warm neutral */
.style-card--soft {
  background: linear-gradient(150deg, var(--lavender-200) 0%, var(--ivory-50) 140%);
  border: 1px solid var(--border-lavender);
  color: var(--plum-700);
}
.style-card--soft .style-card-number { color: rgba(196, 183, 167, 0.4); }
.style-card--soft .style-card-date { color: var(--plum-600); }
.style-card--soft .style-card-event,
.style-card--soft .style-card-mood { color: rgba(50, 38, 28, 0.6); }
.style-card--soft .style-card-cta { color: var(--plum-600); }
.style-card--soft:hover,
.style-card--soft:focus-within {
  box-shadow: 0 0 0 1px rgba(196, 183, 167, 0.65), var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) {
  .style-card,
  .style-card-number,
  .style-swatch,
  .style-card-cta,
  .style-card-cta svg {
    transition: none;
  }
  .style-card--signature:hover,
  .style-card--signature:focus-within {
    transform: none;
  }
  .style-card:hover .style-card-number,
  .style-card:focus-within .style-card-number,
  .style-card:hover .style-swatch,
  .style-card:focus-within .style-swatch {
    transform: none;
  }
}

/* ---------------------------------------------------------------------- */
/* The Packing Edit — migrated from the proven Houston (Mary's Weekend     */
/* 2026) itinerary's PACKING_EDIT component structure rather than rebuilt  */
/* from scratch. Same single-card collapsed-by-default toggle pattern as  */
/* Destination Requirements (.requirements-* above) — a compact header row */
/* that expands a grid-template-rows 0fr->1fr panel, so the closed state   */
/* never adds real length to the page. An empty PACKING_EDIT.items renders */
/* .packing-edit-empty "Coming Soon" instead of the real checklist (see    */
/* renderPackingEdit in app.js); the checklist/progress/Reset styling      */
/* below is built either way, so real items ever need no new CSS.         */
/* ---------------------------------------------------------------------- */
.packing-edit { padding: 8px 0 40px; }
.packing-edit-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.packing-edit-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 700px) { .packing-edit-toggle { padding: 26px 30px; gap: 20px; } }
.packing-edit-toggle:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }

.packing-edit-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--gold-100);
  color: var(--gold-700);
}
.packing-edit-toggle-icon svg { width: 22px; height: 22px; }

.packing-edit-toggle-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.packing-edit-toggle-eyebrow.eyebrow { font-size: 11px; }
.packing-edit-toggle-heading { font-family: var(--font-display); font-size: clamp(18px, 3vw, 21px); font-weight: 500; color: var(--espresso-900); }

.packing-edit-chevron {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--lavender-400);
  transition: transform 0.35s var(--ease-editorial), color 0.35s var(--ease-editorial);
}
.packing-edit-chevron svg { width: 100%; height: 100%; }
.packing-edit-card.is-open .packing-edit-chevron { transform: rotate(180deg); color: var(--plum-600); }

.packing-edit-panel-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-editorial); }
.packing-edit-card.is-open .packing-edit-panel-wrap { grid-template-rows: 1fr; }
.packing-edit-panel-inner { overflow: hidden; }
.packing-edit-panel { padding: 4px 22px 26px; }
@media (min-width: 700px) { .packing-edit-panel { padding: 4px 30px 32px; } }

.packing-edit-instruction { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }

/* Coming-soon placeholder — shown while PACKING_EDIT.items is empty. */
.packing-edit-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 8px 12px;
}
.packing-edit-empty .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--gold-700);
  background: var(--gold-100);
}
.packing-edit-empty .glyph svg { width: 20px; height: 20px; }
.packing-edit-empty p { max-width: 46ch; font-size: 14px; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* Real checklist — renders once PACKING_EDIT.items has entries. */
.packing-progress {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-600);
}

.packing-checklist-list { list-style: none; margin: 0 0 22px; padding: 0; }
.packing-item { border-bottom: 1px solid var(--border-soft); }
.packing-item:last-child { border-bottom: none; }
.packing-item-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.packing-item-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
.packing-item-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1.5px solid var(--border-gold);
  border-radius: 7px;
  color: transparent;
  background: var(--ivory-50);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.packing-item-box svg { width: 15px; height: 15px; }
.packing-item-checkbox:checked + .packing-item-box {
  background: var(--plum-600);
  border-color: var(--plum-600);
  color: var(--ivory-50);
}
.packing-item-checkbox:focus-visible + .packing-item-box { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.packing-item-text-group { display: flex; flex-direction: column; gap: 2px; }
.packing-item-text { font-size: 14.5px; color: var(--espresso-900); transition: color 0.2s ease; }
.packing-item-note { font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.packing-item.is-checked .packing-item-text {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-gold);
}
.packing-item.is-checked .packing-item-note { opacity: 0.7; }

/* Featured/contextual items — a quiet champagne wash and left accent bar,
   not a second card (see PACKING_EDIT.items[].highlight in content.js). */
.packing-item--highlight { position: relative; padding-left: 10px; }
.packing-item--highlight::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.packing-item--highlight .packing-item-text { font-weight: 600; }

.packing-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  background: none;
  color: var(--gold-700);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}
.packing-reset-btn:hover { background: rgba(197, 164, 109, 0.14); }
.packing-reset-btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.packing-reset-btn svg { width: 14px; height: 14px; }

/* Closing note — links directly to the full Travel Essentials Checklist
   (a standalone external tool), also still reachable from its own card in
   Your Travel Toolkit — never duplicated here. */
.packing-edit-full-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-gold);
}
.packing-edit-full-note-question { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--espresso-900); margin: 0 0 4px; }
.packing-edit-full-note-body { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 10px; max-width: 52ch; }
.packing-edit-full-note-link {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-700);
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.packing-edit-full-note-link:hover { color: var(--plum-600); border-color: var(--plum-600); }

/* ---------------------------------------------------------------------- */
/* The Travel Crew — reusable, OPTIONAL traveler/guest roster module       */
/* ---------------------------------------------------------------------- */
.crew {
  padding: 8px 0 88px;
  background: var(--bg-body);
}
.crew-header {
  max-width: 560px;
  margin: 0 auto 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.crew-header .section-intro { text-align: center; color: var(--text-muted); font-size: 15px; }

/* Jania (the birthday traveler) shown prominently above the rest, rather
   than as a fourth equal grid card — see .crew-featured-card below. A soft
   radial halo behind the whole block is what gives her the "stands apart"
   separation from the crew grid, not just a bigger version of its frame. */
.crew-featured {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}
@media (min-width: 700px) {
  .crew-featured { margin-bottom: 46px; }
}
.crew-featured::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(197, 164, 109, 0.24) 0%, rgba(197, 164, 109, 0.09) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 700px) {
  .crew-featured::before { width: 420px; height: 420px; }
}
.crew-featured-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
a.crew-card:focus-visible .crew-frame,
a.crew-featured-card:focus-visible .crew-featured-frame {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* Noticeably larger than the plain corner brackets on supporting cards,
   with a soft gold glow so it reads as ceremonial, not just decorative. */
.crew-featured-crown {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  color: var(--gold-500);
  filter: drop-shadow(0 3px 10px rgba(197, 164, 109, 0.55));
}
.crew-featured-crown svg { width: 100%; height: 100%; }
@media (min-width: 700px) {
  .crew-featured-crown { width: 56px; height: 56px; margin-bottom: 4px; }
}

/* Outer ornamental ring — a second, gilded frame wrapped around the
   regular .crew-featured-frame so Jania reads as a custom presentation
   rather than the same crew-card frame simply scaled up. */
.crew-featured-frame-outer {
  position: relative;
  display: inline-flex;
  padding: 7px;
  border-radius: calc(var(--radius-md) + 9px);
  background: linear-gradient(155deg, var(--gold-300) 0%, var(--gold-600) 45%, var(--gold-300) 100%);
  box-shadow:
    0 0 0 1px rgba(197, 164, 109, 0.4),
    0 0 60px 10px rgba(197, 164, 109, 0.32),
    0 20px 44px -16px rgba(50, 38, 28, 0.6);
  transition: box-shadow 0.4s var(--ease-editorial), transform 0.4s var(--ease-editorial);
}
.crew-featured-frame-outer::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(197, 164, 109, 0.35);
  border-radius: calc(var(--radius-md) + 13px);
  pointer-events: none;
}
a.crew-featured-card:hover .crew-featured-frame-outer,
a.crew-featured-card:focus-visible .crew-featured-frame-outer {
  box-shadow:
    0 0 0 1px rgba(197, 164, 109, 0.55),
    0 0 70px 14px rgba(197, 164, 109, 0.4),
    0 20px 44px -16px rgba(50, 38, 28, 0.6);
  transform: translateY(-3px);
}

/* Small gold sparkle flourishes at each corner of the outer ring. */
.crew-featured-ornament-slot {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--gold-300);
  filter: drop-shadow(0 1px 4px rgba(197, 164, 109, 0.5));
}
.crew-featured-ornament-slot .crew-featured-ornament { display: block; width: 100%; height: 100%; }
.crew-featured-ornament-slot svg { width: 100%; height: 100%; }
.crew-featured-ornament-slot--tl { top: -8px; left: -8px; }
.crew-featured-ornament-slot--tr { top: -8px; right: -8px; }
.crew-featured-ornament-slot--bl { bottom: -8px; left: -8px; }
.crew-featured-ornament-slot--br { bottom: -8px; right: -8px; }
@media (min-width: 700px) {
  .crew-featured-ornament-slot { width: 22px; height: 22px; }
}

.crew-featured-frame {
  position: relative;
  /* Fixed widths, not width:100% — .crew-featured-card is a shrink-to-fit
     flex column (align-items:center) with no definite width of its own to
     resolve a percentage against, unlike the regular .crew-grid cards
     (CSS Grid items stretch to a definite cell width by default). A
     percentage here silently resolved to a too-small computed size,
     making the "featured" portrait render SMALLER than the regular crew
     cards instead of larger. Explicit widths sidestep that entirely. */
  width: 210px;
  max-width: 60vw;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 55%, var(--plum-700) 130%);
  border: 1px solid rgba(197, 164, 109, 0.6);
}
@media (min-width: 700px) {
  .crew-featured-frame { width: 280px; max-width: none; }
}
.crew-featured-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(197, 164, 109, 0.3);
  border-radius: calc(var(--radius-md) - 5px);
  pointer-events: none;
  z-index: 1;
}
.crew-featured-frame .crew-frame-corner {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.crew-featured-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--espresso-900);
  text-shadow: 0 0 22px rgba(197, 164, 109, 0.28);
}
@media (min-width: 700px) {
  .crew-featured-name { font-size: 30px; }
}

/* Refined gold badge/pill treatment for the "Birthday Girl" designation —
   set apart from the plain uppercase .crew-role text on supporting cards. */
.crew-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(197, 164, 109, 0.16), rgba(197, 164, 109, 0.3));
  border: 1px solid rgba(197, 164, 109, 0.55);
  box-shadow: 0 0 20px rgba(197, 164, 109, 0.22);
}
.crew-featured-badge-sparkle {
  display: inline-flex;
  width: 10px;
  height: 10px;
  color: var(--gold-500);
}
.crew-featured-badge-sparkle svg { width: 100%; height: 100%; }
.crew-featured-badge-text {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  max-width: 340px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .crew-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; max-width: 720px; }
}

.crew-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

/* Portrait frame — tall, softly architectural, not a plain circle */
.crew-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 55%, var(--plum-700) 130%);
  border: 1px solid rgba(197, 164, 109, 0.45);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.4s var(--ease-editorial), transform 0.4s var(--ease-editorial);
}
.crew-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(197, 164, 109, 0.25);
  border-radius: calc(var(--radius-md) - 5px);
  pointer-events: none;
  z-index: 1;
}
.crew-frame-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1.4px solid var(--gold-300);
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s var(--ease-editorial);
}
.crew-frame-corner--tl { top: 9px; left: 9px; border-right: none; border-bottom: none; }
.crew-frame-corner--tr { top: 9px; right: 9px; border-left: none; border-bottom: none; }
.crew-frame-corner--bl { bottom: 9px; left: 9px; border-right: none; border-top: none; }
.crew-frame-corner--br { bottom: 9px; right: 9px; border-left: none; border-top: none; }

.crew-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-editorial);
}

/* Small badge signaling the whole card is a link to the traveler's social
   profile — deliberately the only visual cue, no separate/secondary link
   inside the card, and no visible URL text anywhere. */
.crew-social-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(50, 38, 28, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: var(--white);
  transition: background-color 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial);
}
.crew-social-badge svg { width: 13px; height: 13px; }
.crew-featured-frame .crew-social-badge {
  width: 32px;
  height: 32px;
  right: 10px;
  bottom: 10px;
}
.crew-featured-frame .crew-social-badge svg { width: 16px; height: 16px; }
a.crew-card:hover .crew-social-badge,
a.crew-card:focus-visible .crew-social-badge,
a.crew-featured-card:hover .crew-social-badge,
a.crew-featured-card:focus-visible .crew-social-badge {
  background: var(--gold-700);
  transform: scale(1.08);
}
.crew-placeholder {
  width: 38%;
  color: rgba(226, 205, 162, 0.5);
  transition: transform 0.5s var(--ease-editorial), color 0.4s var(--ease-editorial);
}
.crew-placeholder svg { width: 100%; height: 100%; }

.crew-card:hover .crew-frame,
.crew-card:focus-within .crew-frame {
  box-shadow: 0 0 0 1px rgba(197, 164, 109, 0.75), var(--shadow-soft);
  transform: translateY(-3px);
}
.crew-card:hover .crew-frame-corner,
.crew-card:focus-within .crew-frame-corner {
  opacity: 1;
}
.crew-card:hover .crew-photo,
.crew-card:focus-within .crew-photo {
  transform: scale(1.04);
}
.crew-card:hover .crew-placeholder,
.crew-card:focus-within .crew-placeholder {
  transform: scale(1.05);
  color: rgba(226, 205, 162, 0.75);
}

.crew-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.35s var(--ease-editorial);
}
.crew-card:hover .crew-info,
.crew-card:focus-within .crew-info {
  transform: translateY(-2px);
}
.crew-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--espresso-900);
}
.crew-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.crew-closing {
  margin: 26px auto 0;
  max-width: 40ch;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .crew-frame,
  .crew-photo,
  .crew-placeholder,
  .crew-info,
  .crew-featured-frame-outer {
    transition: none;
  }
  a.crew-featured-card:hover .crew-featured-frame-outer,
  a.crew-featured-card:focus-visible .crew-featured-frame-outer {
    transform: none;
  }
  .crew-card:hover .crew-frame,
  .crew-card:focus-within .crew-frame {
    transform: none;
  }
  .crew-card:hover .crew-photo,
  .crew-card:focus-within .crew-photo,
  .crew-card:hover .crew-placeholder,
  .crew-card:focus-within .crew-placeholder {
    transform: none;
  }
  .crew-card:hover .crew-info,
  .crew-card:focus-within .crew-info {
    transform: none;
  }
}

/* ---------------------------------------------------------------------- */
/* JaX Travel Scavenger Hunt — PREMIUM feature                            */
/* Same structural/visual pattern as the teaser card already built for    */
/* the Nikki's Nolarette itinerary's scavenger hunt feature, adapted to   */
/* this itinerary's own palette (gold/plum) rather than a new treatment.  */
/* ---------------------------------------------------------------------- */
.scavenger-hunt { padding: 8px 0 64px; background: var(--bg-body); }
.scavenger-hunt-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(150deg, var(--ivory-50) 0%, var(--gold-100) 145%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px 26px 40px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
@media (min-width: 640px) {
  .scavenger-hunt-card { padding: 52px 56px 48px; }
}
.scavenger-hunt-icon { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.scavenger-hunt-card .eyebrow { color: var(--gold-700); }
.scavenger-hunt-title { max-width: 20ch; }
.scavenger-hunt-copy { max-width: 40ch; }
.scavenger-hunt-copy p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.scavenger-hunt-copy p + p { margin-top: 6px; }
.scavenger-hunt-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  background: var(--plum-600);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.scavenger-hunt-cta:hover { background: var(--plum-500); }
.scavenger-hunt-cta:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.scavenger-hunt-cta-arrow { display: inline-block; transition: transform 0.25s var(--ease-editorial); }
.scavenger-hunt-cta:hover .scavenger-hunt-cta-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* Travel Toolkit                                                          */
/* ---------------------------------------------------------------------- */
.toolkit {
  padding: 8px 0 88px;
  background: var(--bg-body);
}
.toolkit-header {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toolkit-header .section-intro { color: var(--text-muted); font-size: 15px; }

.toolkit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .toolkit-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
}

.toolkit-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.toolkit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}
.toolkit-badge svg { width: 10px; height: 10px; }

.toolkit-card.is-featured {
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 760px) {
  .toolkit-card.is-featured { padding: 32px 28px; }
}

.toolkit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--lavender-200);
  color: var(--plum-600);
}
.toolkit-icon svg { width: 20px; height: 20px; }
.toolkit-card.is-featured .toolkit-icon {
  background: rgba(197, 164, 109, 0.18);
  color: var(--gold-700);
}

.toolkit-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--espresso-900);
  margin-top: 6px;
}
.toolkit-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.toolkit-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-600);
  transition: gap 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial);
}
.toolkit-cta svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease-editorial); }
.toolkit-cta:hover { gap: 11px; color: var(--plum-500); }
.toolkit-card.is-featured .toolkit-cta { color: var(--gold-700); }
.toolkit-card.is-featured .toolkit-cta:hover { color: var(--gold-600); }

.toolkit-cta.is-pending {
  color: var(--mauve-300);
  cursor: default;
  pointer-events: none;
}
.toolkit-pending-pill {
  margin-top: 2px;
  align-self: flex-start;
}

/* ---------------------------------------------------------------------- */
/* Packages CTA — SHOWROOM ONLY (see PAGE_IDENTITY.packagesCta in         */
/* content.js / renderPackagesCta() in app.js, which removes this whole   */
/* section when the deployment isn't the public sample). Placed after     */
/* Travel Tools, right before the footer. Deliberately smaller/quieter    */
/* than the Trip Memories card above (narrower max-width, tighter         */
/* padding, no decorative motif) — a compact closing note, not another    */
/* feature section, so it doesn't read as an ad pasted onto the sample.   */
/* ---------------------------------------------------------------------- */
.packages-cta { padding: 8px 0 56px; }
.packages-cta-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
@media (min-width: 640px) {
  .packages-cta-card { padding: 40px 44px; }
}
.packages-cta-card .eyebrow { color: var(--gold-700); }
.packages-cta-card .section-heading { font-size: clamp(22px, 3.6vw, 28px); }
.packages-cta-copy {
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.packages-cta-button {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: var(--plum-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.packages-cta-button:hover { background: var(--plum-500); }
.packages-cta-button:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.packages-cta-button-arrow { display: inline-block; transition: transform 0.25s var(--ease-editorial); }
.packages-cta-button:hover .packages-cta-button-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* Birthday Passport                                                       */
/* ---------------------------------------------------------------------- */
.passport {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--lavender-200) 0%, var(--ivory-100) 100%);
  border-top: 1px solid var(--border-soft);
}
.passport-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.passport-header .section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.passport-hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-600);
}

/* ---------------------------------------------------------------------- */
/* Vertical timeline                                                       */
/* ---------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 68px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 20px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(197, 164, 109, 0) 0%,
    rgba(197, 164, 109, 0.55) 8%,
    rgba(197, 164, 109, 0.55) 92%,
    rgba(197, 164, 109, 0) 100%
  );
}
@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-0.5px); }
}

.timeline-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 52px;
}
@media (min-width: 900px) {
  .timeline-entry {
    /* DOM order is [photo, info]; plain "row" already renders
       photo-left / info-right, matching the odd-entry example. */
    flex-direction: row;
    align-items: center;
    gap: 64px;
    padding-left: 0;
  }
  .timeline-entry:nth-of-type(even) {
    flex-direction: row-reverse;
  }
}

.timeline-node {
  position: absolute;
  top: 6px;
  left: 20px;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ivory-50);
  border: 2px solid var(--gold-500);
  z-index: 2;
}
@media (min-width: 900px) {
  .timeline-node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.timeline-node.is-finale {
  background: var(--gold-500);
  border-color: var(--plum-600);
}

.timeline-photo { position: relative; }
@media (min-width: 900px) {
  .timeline-photo { flex: 1 1 0; max-width: 440px; }
}

.timeline-photo-btn {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: none;
  position: relative;
  box-shadow: var(--shadow-card);
}
.timeline-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline-photo-btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.timeline-photo.is-diptych {
  display: flex;
  gap: 8px;
}
.timeline-photo.is-diptych .timeline-photo-btn { flex: 1 1 0; }

.timeline-tile-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(50, 38, 28, 0.5);
  padding: 4px 9px;
  border-radius: var(--radius-full);
}

.timeline-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
@media (min-width: 900px) {
  .timeline-info { flex: 1 1 0; max-width: 380px; }
}
.timeline-age {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  color: var(--plum-600);
  margin-top: 2px;
}
.timeline-destination {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--espresso-900);
  margin-top: 4px;
}

/* Finale entry (age 46 — Cancún, the current trip) */
.timeline-entry.timeline-entry--finale {
  padding-left: 52px;
}
@media (min-width: 900px) {
  .timeline-entry.timeline-entry--finale {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    margin-top: 8px;
  }
}

.timeline-finale {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--aubergine-900) 0%, var(--aubergine-800) 55%, var(--plum-700) 130%);
  border: 1px solid rgba(197, 164, 109, 0.35);
  box-shadow: 0 30px 70px -30px rgba(50, 38, 28, 0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.timeline-finale::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 164, 109, 0.28);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.timeline-finale-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.timeline-finale-eyebrow svg { width: 12px; height: 12px; }
.timeline-finale-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: var(--gold-300);
  margin-top: 6px;
}
.timeline-finale-meta {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--lavender-200);
}
.timeline-finale-note {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(233, 228, 221, 0.78);
  max-width: 32ch;
}

.passport-empty {
  max-width: 560px;
  margin: 0 auto;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 52px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 253, 250, 0.55);
}
.passport-empty .glyph { width: 30px; height: 30px; color: var(--gold-600); }
.passport-empty .headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--espresso-900);
}
.passport-empty p {
  max-width: 44ch;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------- */
/* The Curated Gallery — migrated from the proven Houston (Mary's Weekend  */
/* 2026) itinerary's data-driven MEMORIES_GALLERY component structure      */
/* rather than rebuilt from scratch. Desktop: an editorial mosaic via      */
/* native CSS multi-column layout — no build step, no JS layout code, and */
/* (unlike CSS Grid spans) each card's height falls out of its own         */
/* image's natural aspect ratio instead of a shared placeholder shape, so  */
/* a mix of portrait/landscape/square photos never gets distorted or      */
/* cropped to fit. Mobile: the same items become a horizontal snap-scroll  */
/* strip. Content is driven by CURATED_GALLERY in content.js; behavior     */
/* (including the placeholder-tile path for any photo without a `src`      */
/* yet) lives in renderGallery()/renderGalleryItem() in app.js.            */
/* ---------------------------------------------------------------------- */
.curated-gallery { padding: 8px 0 88px; }
.gallery-header { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.gallery-supporting-line { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--text-muted); }
.gallery-instruction {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.gallery-grid { columns: 2; column-gap: 18px; }
@media (min-width: 1024px) { .gallery-grid { columns: 3; column-gap: 26px; } }

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
@media (min-width: 1024px) { .gallery-item { margin-bottom: 26px; } }

.gallery-item-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease-editorial);
}
.gallery-item:hover .gallery-item-img,
.gallery-item:focus-visible .gallery-item-img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 6, 0) 55%, rgba(12, 9, 6, 0.72) 100%);
  opacity: 0.7;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay { opacity: 0.88; }

.gallery-item-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  /* Never scales with the image on hover — see .gallery-item-img above,
     the only child transform-animated. */
}

.gallery-item:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* Intentional "coming soon" placeholder tile — same masonry slot a real
   photo will use once CURATED_GALLERY.images[].src is set (see
   renderGalleryItem in app.js), never a broken <img>. Not a <button>:
   there's nothing to enlarge yet, so it's correctly excluded from the tab
   order rather than pretending to be interactive. aspect classes give
   each placeholder a deliberately mixed height (portrait/landscape/
   square) so the masonry demonstrates handling mixed aspect ratios even
   before real photos exist. */
.gallery-item--pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: var(--lavender-200);
  border: 1px dashed var(--border-gold);
}
.gallery-item--pending.gallery-item--portrait { aspect-ratio: 3 / 4; }
.gallery-item--pending.gallery-item--landscape { aspect-ratio: 4 / 3; }
.gallery-item--pending.gallery-item--square { aspect-ratio: 1 / 1; }
.gallery-item-pending-icon { width: 30px; height: 30px; color: var(--plum-500); }
.gallery-item-pending-icon svg { width: 100%; height: 100%; }
.gallery-item-pending-label {
  max-width: 20ch;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 759px) {
  .gallery-grid {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 78%;
    margin-bottom: 0;
    align-self: flex-start;
    height: auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .gallery-item--pending { flex-basis: 62%; }
  /* Belt-and-suspenders: the base rules above already render each real
     photo at its natural size with no crop, but pin that explicitly here
     so a mobile card can never be pulled back into a fixed frame. */
  .gallery-item-img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item-img { transition: none; }
  .gallery-item:hover .gallery-item-img,
  .gallery-item:focus-visible .gallery-item-img { transform: none; }
  .gallery-grid { scroll-behavior: auto; }
}

/* Lightbox (future use once photos are added) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(27, 20, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-editorial), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox for The Curated Gallery — separate from the Birthday Passport's
   simpler lightbox above: adds prev/next controls and a caption. Migrated
   from the proven Houston implementation. */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(12, 9, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(64px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(64px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }

.gallery-lightbox-stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  touch-action: pan-y;
}
.gallery-lightbox-stage img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: var(--shadow-soft); object-fit: contain; }
.gallery-lightbox-caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-300);
  cursor: pointer;
  z-index: 2;
}
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.gallery-lightbox-close {
  top: max(22px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-nav svg { width: 20px; height: 20px; }
.gallery-lightbox-prev { left: max(16px, env(safe-area-inset-left)); }
.gallery-lightbox-next { right: max(16px, env(safe-area-inset-right)); }
@media (max-width: 640px) {
  .gallery-lightbox { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .gallery-lightbox-nav { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox { transition: opacity 0.15s ease; }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  padding: 22px var(--gutter) 26px;
  background: var(--aubergine-900);
  color: rgba(233, 228, 221, 0.65);
}
/* Clears the fixed bottom nav so the footer is never hidden beneath it */
@media (max-width: 759px) {
  .site-footer {
    padding-bottom: calc(26px + var(--bottom-nav-h) + env(safe-area-inset-bottom));
  }
}
.footer-line {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.footer-line .dot {
  color: rgba(233, 228, 221, 0.3);
}
.footer-line .brand-link {
  color: var(--gold-300);
  font-weight: 600;
}
.footer-line .brand-link[href] { cursor: pointer; }
.footer-line .brand-link:not([href]) { cursor: default; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 2px;
}
.footer-social a,
.footer-social span {
  display: inline-flex;
  color: rgba(233, 228, 221, 0.55);
  transition: color 0.3s var(--ease-editorial);
}
.footer-social a:hover { color: var(--gold-300); }
.footer-social svg { width: 15px; height: 15px; }

@media (max-width: 380px) {
  .footer-line { font-size: 11.5px; }
}

/* ---------------------------------------------------------------------- */
/* Save to Phone                                                           */
/* ---------------------------------------------------------------------- */
.stp-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(27, 20, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-editorial), visibility 0.35s;
}
.stp-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 640px) {
  .stp-overlay { align-items: center; padding: 24px; }
}

.stp-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ivory-50);
  border-radius: 22px 22px 0 0;
  padding: 14px 26px 30px;
  box-shadow: 0 -20px 60px -20px rgba(27, 20, 15, 0.5);
  transform: translateY(24px);
  transition: transform 0.4s var(--ease-editorial);
}
.stp-overlay.is-open .stp-sheet {
  transform: translateY(0);
}
.stp-sheet:focus {
  outline: none;
}
@media (min-width: 640px) {
  .stp-sheet {
    border-radius: var(--radius-lg);
    padding: 32px 34px 34px;
    max-height: 84vh;
  }
}

.stp-handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--lavender-300);
  margin: 4px auto 18px;
}
@media (min-width: 640px) {
  .stp-handle { display: none; }
}

.stp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lavender-200);
  border: none;
  color: var(--plum-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease-editorial);
}
.stp-close:hover { background: var(--lavender-300); }
.stp-close svg { width: 15px; height: 15px; }

.stp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 8px;
}
.stp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aubergine-900);
  color: var(--gold-300);
  margin-bottom: 4px;
}
.stp-icon svg { width: 20px; height: 20px; }
.stp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso-900);
}
.stp-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38ch;
}

.stp-tabs {
  margin: 24px auto 4px;
  display: flex;
  width: fit-content;
  background: var(--lavender-200);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}
.stp-tab {
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--plum-700);
  transition: background-color 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial);
}
.stp-tab.is-active {
  background: var(--plum-600);
  color: var(--white);
}

.stp-panels { margin-top: 22px; }
.stp-panel[hidden] { display: none; }

.stp-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: stp-step;
}
.stp-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stp-step::before {
  counter-increment: stp-step;
  content: counter(stp-step);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--plum-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stp-step-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--lavender-200);
  color: var(--plum-700);
}
.stp-step-icon svg { width: 15px; height: 15px; }
.stp-step-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--espresso-900);
}

/* ---------------------------------------------------------------------- */
/* Share This Trip                                                         */
/* ---------------------------------------------------------------------- */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(27, 20, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-editorial), visibility 0.35s;
}
.share-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 640px) {
  .share-overlay { align-items: center; padding: 24px; }
}

.share-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ivory-50);
  border-radius: 22px 22px 0 0;
  padding: 14px 26px 30px;
  box-shadow: 0 -20px 60px -20px rgba(27, 20, 15, 0.5);
  transform: translateY(24px);
  transition: transform 0.4s var(--ease-editorial);
}
.share-overlay.is-open .share-sheet {
  transform: translateY(0);
}
.share-sheet:focus { outline: none; }
@media (min-width: 640px) {
  .share-sheet {
    border-radius: var(--radius-lg);
    padding: 32px 34px 34px;
    max-height: 84vh;
  }
}

.share-handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--lavender-300);
  margin: 4px auto 18px;
}
@media (min-width: 640px) {
  .share-handle { display: none; }
}

.share-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lavender-200);
  border: none;
  color: var(--plum-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease-editorial);
}
.share-close:hover { background: var(--lavender-300); }
.share-close svg { width: 15px; height: 15px; }

.share-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 8px;
}
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aubergine-900);
  color: var(--gold-300);
  margin-bottom: 4px;
}
.share-icon svg { width: 20px; height: 20px; }
.share-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso-900);
}
.share-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 34ch;
}

.share-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--plum-600);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.share-copy-btn:hover { background: var(--plum-500); }
.share-copy-btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.share-copy-icon { display: inline-flex; width: 16px; height: 16px; }
.share-copy-icon svg { width: 100%; height: 100%; }

.share-status {
  margin-top: 14px;
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--plum-600);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial);
}
.share-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ======================================================================== */
/* HERO — saved-to-home-screen (standalone) composition on portrait phones   */
/*                                                                          */
/* ROOT CAUSE: .hero is min-height:100svh with a LANDSCAPE photo set to      */
/* background-size:cover. In Safari the toolbars make 100svh ~664px on a     */
/* 390pt-wide iPhone; saved to the Home Screen there are no toolbars, so     */
/* 100svh becomes ~844px. `cover` scales the artwork by hero HEIGHT, so it   */
/* grew ~27% and the 390px-wide window narrowed from ~39% to ~31% of the     */
/* image — the moon (x≈71%) fell off the right edge and the glasses         */
/* (x≈10–35%) off the left. A taller hero + landscape art + cover can never  */
/* keep two focal points ~50% of the image width apart in view.             */
/*                                                                          */
/* FIX (standalone only; Safari + desktop untouched): the photo is a         */
/* proportional band sized from the VIEWPORT WIDTH (not hero height) so the  */
/* same ~71% slice of the art — glasses at left, moon at right — shows on    */
/* every iPhone. A blurred, darkened copy of the same artwork fills the rest */
/* of the full-height hero, the band's edges fade into it, the live title    */
/* sits just under the band, and the header / scroll cue / bottom nav use    */
/* the safe-area variables. Never stretches: height is the single dimension  */
/* (width:auto), so proportions are always preserved.                        */
/* `html.is-standalone` is set by an inline script in index.html             */
/* (display-mode: standalone OR navigator.standalone).                       */
/* ======================================================================== */
@media (max-width: 759px) and (orientation: portrait) {
  html.is-standalone .hero {
    --hero-band-top: calc(var(--safe-top) + 64px);   /* clears status bar + header */
    --hero-band-h: min(94vw, 40svh);                 /* 94vw = ~71% window of the 3:2 art; 40svh keeps short phones from crowding the title */
    align-items: flex-start;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }
  html.is-standalone .hero[data-has-photo="true"]::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--hero-photo-url);
    background-size: cover;
    background-position: 43% center;
    filter: blur(28px) brightness(0.5) saturate(1.05);
    transform: scale(1.1);
  }
  html.is-standalone .hero-photo-layer {
    inset: var(--hero-band-top) 0 auto 0;
    height: var(--hero-band-h);
    background-size: auto 100%;
    /* centre the art's 43% point (between glasses and moon) in the viewport */
    background-position: calc(50vw - 0.645 * var(--hero-band-h)) center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  }
  html.is-standalone .hero-content {
    margin-top: calc(var(--hero-band-top) + var(--hero-band-h) - 22px);
  }
  html.is-standalone .hero-scroll-cue {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
  }
  /* just the word, no vertical line — keeps the cue clear of the date line */
  html.is-standalone .hero-scroll-cue .line { display: none; }
}
/* Test helper: emulate an iPhone's safe-area insets in a desktop browser. */
html.sim-safe-area { --safe-top: 47px; --safe-bottom: 34px; }
