/* ==========================================================================
   Foggy Mountain — design-v2 design system
   One stylesheet, shared by all seven role surfaces.

   Colour anchors on Brand Guidelines V1.0 (Jan 2024), page "Color Palette" —
   indigo #2E3192 stays the logo/dark-ground/CTA colour. Restyle pass (Sep
   2026) adds one colour genuinely outside the guideline: --primary-bright,
   a brighter violet used only for admin active-nav states and chart bars,
   matched against a client-supplied visual reference. Everything a guest
   or a booking touches (buttons, links, prices) stays exact brand indigo.

   Type is official Panton Family (Brand Guidelines V1.0), self-hosted
   in fonts.css with webfont fallbacks.

   Every screen in this folder traces to FOGGY_MOUNTAIN_PRD.md v1.1 and
   design/USER_STORIES.md. Nothing here styles a component the PRD does not
   ask for.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand palette — exact values from the guidelines */
  --brand-indigo: #2e3192;
  --brand-amber: #f9a600;
  --brand-crimson: #e93647;
  --brand-green: #89c540;
  --brand-orange: #f05f28;
  --brand-sky: #5ac7ef;

  /* Indigo ramp — single hue, keeps brand blue dominant */
  --indigo-900: #14163f;
  --indigo-800: #1d2060;
  --indigo-700: #24277a;
  --indigo-600: #2e3192;
  --indigo-500: #4649ad;
  --indigo-300: #9a9dd4;
  --indigo-200: #c9cbe9;
  --indigo-100: #e6e7f6;
  --indigo-50: #f3f4fb;

  /* Interactive colour — brand indigo everywhere a guest or booking is
     touched. --primary-bright is the one deliberate departure: admin
     active-nav rows and chart bars only, matched to the ops-dashboard
     reference. 6.29:1 on white, verified. */
  --primary: var(--indigo-600);
  --primary-hover: var(--indigo-700);
  --primary-bright: #4f46e5;

  /* Text — pairs verified at 4.5:1 or better on their stated background */
  --ink: #14163f;      /* on white 15.6:1 */
  --ink-2: #4a4e7a;    /* on white  7.4:1 */
  --ink-3: #6d719b;    /* on white  4.6:1 */
  --on-dark: #ffffff;  /* on indigo-600 9.8:1 */
  --on-dark-2: #c9cbe9;/* on indigo-600 5.6:1 */

  /* Text-safe variants of the bright brand colours */
  --amber-ink: #8a5a00;
  --green-ink: #4a6d1c;
  --sky-ink: #0b6e92;
  --crimson-ink: #c81e2e;

  /* Surfaces */
  --surface: #ffffff;
  --surface-sunk: #f6f7fc;
  --surface-mist: #eef0f9;
  --border: #dfe1f0;
  --border-strong: #c2c5e0;

  /* Ops shell — dark rail used by staff surfaces (admin, superadmin, agent,
     gate). Close enough to indigo-900 to be treated as the same hue, kept
     as its own token so the shell can be retextured without touching the
     brand ramp. */
  --ops-rail: #12153a;
  --ops-rail-card: #1b1f4b;
  --ops-rail-hover: #1d2160;
  --ops-rail-text: #9ba0c4;
  --ops-forecast-a: #141a4d;
  --ops-forecast-b: #1e2470;

  /* Status dots (tables, tasks, pills) */
  --dot-green: #22c55e;
  --dot-sky: #3b9be8;
  --dot-amber: #f5a524;
  --dot-red: #ef4444;

  /* Type — Panton Family (Brand Guidelines V1.0) */
  --font-display: 'Panton', 'Panton Family', 'Outfit', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'Panton', 'Panton Family', 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --t-display: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --t-h1: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);
  --t-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  --t-h3: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  --t-h4: 1.0625rem;
  --t-body: 1rem;
  --t-sm: 0.875rem;
  --t-xs: 0.75rem;
  --t-2xs: 0.6875rem;

  /* 4pt rhythm */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Reference geometry: 8 controls / 12 cards / pill status */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(20, 22, 63, 0.06), 0 1px 3px rgba(20, 22, 63, 0.08);
  --shadow-2: 0 4px 12px rgba(20, 22, 63, 0.08), 0 2px 4px rgba(20, 22, 63, 0.06);
  --shadow-3: 0 12px 32px rgba(20, 22, 63, 0.14);
  --shadow-card: 0 1px 2px rgba(20, 22, 63, 0.04), 0 8px 24px rgba(20, 22, 63, 0.06);

  --maxw: 1180px;
  --maxw-narrow: 760px;
  --header-h: 64px;
  --rail-w: 264px;
  --topbar-h: 64px;

  --focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--brand-amber);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* Router safety net: any element with a display-setting class (guest-shell,
   admin-shell, detail-split, etc.) would otherwise override the browser's
   own [hidden]{display:none} default, since author rules beat UA rules
   regardless of specificity. Without this, a hidden screen with a grid/flex
   class on it renders anyway, stacked under whatever is meant to show. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--t-h1); font-weight: 700; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 600; }
h4 { font-size: var(--t-h4); font-weight: 600; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--indigo-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--indigo-700); }

img, svg { max-width: 100%; }
img { display: block; height: auto; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

.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;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--brand-amber); color: var(--indigo-900);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--s-5); }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding-inline: var(--s-5); }

.section { padding-block: var(--s-8); }
.section-sunk { background: var(--surface-sunk); }
.section-mist { background: var(--surface-mist); }

.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }

.row { display: flex; gap: var(--s-3); align-items: center; }
.row-between { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row-wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.section-head { margin-bottom: var(--s-6); }
.eyebrow {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.lede { font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.right { text-align: right; }

/* ---------- 4. Header / footer ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--indigo-600); color: var(--on-dark);
  border-bottom: 1px solid var(--indigo-700);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-5);
}
.brand-logo { display: flex; align-items: center; gap: var(--s-3); }
.brand-logo img { height: 34px; width: auto; }
.brand-logo span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.01em; color: var(--on-dark);
}
.site-nav { display: flex; gap: var(--s-1); margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a, .nav-link {
  color: var(--on-dark-2); text-decoration: none; font-size: var(--t-sm);
  font-weight: 600; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover, .nav-link:hover { color: var(--on-dark); background: var(--indigo-700); }
.site-nav a[aria-current='page'] { color: var(--on-dark); background: var(--indigo-700); }

.site-footer {
  background: var(--indigo-900); color: var(--on-dark-2);
  padding-block: var(--s-7); font-size: var(--t-sm);
}
.site-footer a { color: var(--on-dark); }
.site-footer h4 { color: var(--on-dark); margin-bottom: var(--s-3); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: var(--s-3) var(--s-5);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-cta { background: var(--brand-amber); color: var(--indigo-900); }
.btn-cta:hover { background: #e39600; color: var(--indigo-900); }
.btn-primary { background: var(--indigo-600); color: var(--on-dark); }
.btn-primary:hover { background: var(--indigo-700); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--indigo-600); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--indigo-50); color: var(--indigo-700); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--on-dark); }
.btn-danger { background: var(--brand-crimson); color: #fff; }
.btn-danger:hover { background: var(--crimson-ink); color: #fff; }
.btn-sm { min-height: 36px; padding: var(--s-2) var(--s-4); font-size: var(--t-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] {
  background: var(--surface-mist); color: var(--ink-3);
  border-color: var(--border); cursor: not-allowed;
}

/* ---------- 6. Cards & panels -------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.card-flush { padding: 0; overflow: hidden; }
.card-media { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--surface-mist); }
.card-body { padding: var(--s-5); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--indigo-300); box-shadow: var(--shadow-2); }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6);
}
.panel-head { margin-bottom: var(--s-5); }

.placeholder-img {
  aspect-ratio: 16 / 10; width: 100%;
  background: repeating-linear-gradient(135deg, var(--indigo-50), var(--indigo-50) 10px, var(--surface-mist) 10px, var(--surface-mist) 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: var(--t-xs); font-weight: 600;
  text-align: center; padding: var(--s-3);
}

/* ---------- 7. Forms ----------------------------------------------------- */
.field { display: block; }
.field + .field { margin-top: var(--s-4); }
.field label, .label {
  display: block; font-size: var(--t-sm); font-weight: 600;
  color: var(--ink); margin-bottom: var(--s-2);
}
.hint { font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s-1); }
input[type='text'], input[type='tel'], input[type='email'], input[type='number'],
input[type='date'], input[type='password'], input[type='search'], select, textarea {
  width: 100%; min-height: 44px; padding: var(--s-3) var(--s-4);
  font-family: var(--font-body); font-size: var(--t-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}
textarea { min-height: 108px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--indigo-500); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--brand-crimson); }
.error-text {
  display: flex; gap: var(--s-2); align-items: flex-start;
  font-size: var(--t-xs); color: var(--crimson-ink); margin-top: var(--s-2); font-weight: 600;
}
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s-2); }

.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }

/* ---------- 8. Status pills & badges ------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 3px var(--s-3); border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 700; line-height: 1.6;
  border: 1px solid transparent; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-available { background: #eff7e4; color: var(--green-ink); border-color: #cfe6ac; }
.pill-limited  { background: #fff3dc; color: var(--amber-ink); border-color: #f4d79a; }
.pill-soldout  { background: #fdeaec; color: var(--crimson-ink); border-color: #f6c3c8; }
.pill-closed   { background: var(--surface-mist); color: var(--ink-2); border-color: var(--border-strong); }
.pill-info     { background: var(--indigo-50); color: var(--indigo-700); border-color: var(--indigo-200); }
.pill-neutral  { background: var(--surface-sunk); color: var(--ink-2); border-color: var(--border); }

.tag {
  display: inline-block; padding: 2px var(--s-2); border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 700; background: var(--indigo-50);
  color: var(--indigo-700); font-family: var(--font-mono);
}

/* ---------- 9. Tables ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 640px; }
table.data th, table.data td {
  text-align: left; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
table.data th {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  background: var(--surface-sunk); position: sticky; top: 0; z-index: 1;
}
table.data tbody tr:hover { background: var(--indigo-50); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 10. Price breakdown (PRD §6) --------------------------------- */
.breakdown { border-top: 1px solid var(--border); padding-top: var(--s-4); }
.breakdown-row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-2); font-size: var(--t-sm);
}
.breakdown-row dt { color: var(--ink-2); margin: 0; }
.breakdown-row dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.breakdown-row.is-discount dd { color: var(--green-ink); }
.breakdown-total {
  display: flex; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: 2px solid var(--ink);
  font-family: var(--font-display); font-size: var(--t-h4); font-weight: 700;
}
.breakdown-total dd { margin: 0; font-variant-numeric: tabular-nums; }
.rate-note { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s-2); }

/* ---------- 11. Calendar (PRD §5 availability) --------------------------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-4); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2);
}
.cal-dow {
  font-size: var(--t-xs); font-weight: 700; color: var(--ink-3);
  text-align: center; text-transform: uppercase; letter-spacing: 0.06em;
}
.cal-cell {
  min-height: 62px; padding: var(--s-2); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--font-body); cursor: pointer; text-align: left;
}
.cal-cell .d { font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); }
.cal-cell .t { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.cal-cell[data-state='available'] { border-color: #cfe6ac; background: #f7fcef; }
.cal-cell[data-state='available'] .t { color: var(--green-ink); }
.cal-cell[data-state='limited'] { border-color: #f4d79a; background: #fffaf0; }
.cal-cell[data-state='limited'] .t { color: var(--amber-ink); }
.cal-cell[data-state='soldout'] { border-color: #f6c3c8; background: #fdf4f5; cursor: not-allowed; }
.cal-cell[data-state='soldout'] .t { color: var(--crimson-ink); }
.cal-cell[data-state='closed'] { background: var(--surface-mist); color: var(--ink-3); cursor: not-allowed; }
.cal-cell[data-state='closed'] .t { color: var(--ink-3); }
.cal-cell[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--indigo-600); border-color: var(--indigo-600); }
.cal-cell.is-empty { border: 0; background: transparent; cursor: default; min-height: 0; }

/* ---------- 12. Quantity steppers ---------------------------------------- */
.qty-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-4); border-bottom: 1px solid var(--border);
}
.qty-row:last-child { border-bottom: 0; }
.stepper { display: flex; align-items: center; gap: var(--s-3); }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 1.25rem; font-weight: 700; color: var(--indigo-600);
  cursor: pointer; line-height: 1;
}
.stepper button:hover:not([disabled]) { background: var(--indigo-50); }
.stepper button[disabled] { color: var(--ink-3); background: var(--surface-mist); cursor: not-allowed; }
.stepper output {
  min-width: 2.5ch; text-align: center; font-family: var(--font-display);
  font-weight: 700; font-size: var(--t-h4); font-variant-numeric: tabular-nums;
}

/* ---------- 13. Steps rail ----------------------------------------------- */
.steps { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-6); }
.step {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 700; color: var(--ink-3);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  background: var(--surface-sunk); border: 1px solid var(--border);
}
.step[aria-current='step'] { background: var(--indigo-600); color: var(--on-dark); border-color: var(--indigo-600); }
.step.is-done { background: #eff7e4; color: var(--green-ink); border-color: #cfe6ac; }

/* ---------- 14. Offer panel (PRD §7) ------------------------------------- */
.offer-applied {
  display: flex; gap: var(--s-3); align-items: flex-start;
  background: #f7fcef; border: 1px solid #cfe6ac; border-radius: var(--r-md);
  padding: var(--s-4); font-size: var(--t-sm);
}
.offer-applied strong { color: var(--green-ink); }
.coupon-row { display: flex; gap: var(--s-2); align-items: flex-end; }
.coupon-row .field { flex: 1 1 auto; margin-top: 0; }

/* ---------- 15. Notices -------------------------------------------------- */
.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  border-radius: var(--r-md); padding: var(--s-4); font-size: var(--t-sm);
  border: 1px solid var(--indigo-200); background: var(--indigo-50); color: var(--ink);
}
.notice-warn { border-color: #f4d79a; background: #fffaf0; }
.notice-danger { border-color: #f6c3c8; background: #fdf4f5; }
.notice-ok { border-color: #cfe6ac; background: #f7fcef; }
.notice strong { display: block; margin-bottom: 2px; }

/* ---------- 16. Empty states --------------------------------------------- */
.empty {
  text-align: center; padding: var(--s-8) var(--s-5);
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface-sunk); color: var(--ink-2);
}
.empty h3 { margin-bottom: var(--s-2); }

/* ---------- 17. Occupancy board (PRD §9) --------------------------------- */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s-3); }
.occ-room {
  border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3);
  background: var(--surface); text-align: left; cursor: pointer; min-height: 84px;
  display: flex; flex-direction: column; gap: 2px;
}
.occ-room .no { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.occ-room[data-state='vacant'],
.occ-room[data-state='vacant_clean'] { border-color: #a3e635; background: #f7fee7; color: #166534; }
.occ-room[data-state='vacant_dirty'] { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.occ-room[data-state='occupied'] { border-color: #818cf8; background: #eef2ff; color: #3730a3; }
.occ-room[data-state='reserved'] { border-color: #c084fc; background: #faf5ff; color: #6b21a8; }
.occ-room[data-state='maintenance'] { border-color: #fda4af; background: #fff1f2; color: #9f1239; }
.occ-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,0.06); width: fit-content; }
.amenity-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; background: var(--surface-sunk); border: 1px solid var(--border); color: var(--ink-2); }

/* ---------- 18. Scan result (PRD §9) ------------------------------------- */
.scan-frame {
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--indigo-900);
  color: var(--on-dark-2); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--s-5); font-size: var(--t-sm);
  border: 2px dashed var(--indigo-500);
}
.scan-result { border-radius: var(--r-lg); padding: var(--s-6); text-align: center; color: #fff; }
.scan-result h2 { color: inherit; }
.scan-valid { background: var(--green-ink); }
.scan-used { background: var(--amber-ink); }
.scan-invalid { background: var(--crimson-ink); }

/* ---------- 19. QR / ticket block ---------------------------------------- */
.qr-block {
  display: grid; place-items: center; gap: var(--s-3);
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.qr-code {
  width: 168px; height: 168px; border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(0deg, var(--ink) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
  background-color: #fff; border: 6px solid #fff; outline: 1px solid var(--border);
}
.ref-code {
  font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--ink);
}

/* ---------- 20. Stat tiles (reports, dashboards) ------------------------- */
.stat { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); }
.stat .k { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-top: var(--s-1); font-variant-numeric: tabular-nums; }
.stat .s { font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s-1); }

/* ---------- 21. Ops shell (admin, superadmin, agent, gate) ---------------
   Dark rail + white main, per the Sep 2026 Admin Dashboard reference.
   Buttons render rounded-rect (r-sm) inside this shell only — everywhere
   else in the prototype (landing, booking flow) keeps the pill button the
   brand guidelines specify. */
.admin-shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.admin-shell .btn { border-radius: var(--r-sm); }
.admin-side {
  background: var(--ops-rail); color: var(--ops-rail-text);
  padding: var(--s-5) var(--s-4); position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.admin-side .brand-logo { margin-bottom: var(--s-6); gap: var(--s-3); align-items: center; }
.admin-side .brand-logo img { height: 36px; width: 36px; border-radius: var(--r-md); background: var(--primary); padding: 6px; }
.admin-side .brand-logo span { color: #fff; font-size: 15px; }
.admin-side .brand-sub {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ops-rail-text); margin: -20px 0 var(--s-6) 48px;
}
.admin-side .nav-group { margin-bottom: var(--s-5); }
.admin-side .nav-group:nth-last-of-type(2) { margin-top: auto; }
.admin-side .nav-group h4 {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ops-rail-text); opacity: 0.7; margin-bottom: var(--s-2); font-weight: 700; padding-inline: var(--s-3);
}
.admin-side a {
  display: flex; align-items: center; gap: 10px; padding-inline: var(--s-3); border-radius: var(--r-sm);
  color: var(--ops-rail-text); text-decoration: none; font-size: var(--t-sm); font-weight: 600;
  height: 42px;
}
.admin-side a svg { flex: none; opacity: 0.85; }
.admin-side a:hover { background: var(--ops-rail-hover); color: #fff; }
.admin-side a:hover svg { opacity: 1; }
.admin-side a[aria-current='page'] { background: var(--primary); color: #fff; }
.admin-side a[aria-current='page'] svg { opacity: 1; }
.admin-side a .count {
  margin-left: auto; background: rgba(255,255,255,0.12); color: var(--ops-rail-text);
  font-size: var(--t-2xs); font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill);
}
.admin-side a[aria-current='page'] .count { background: rgba(255,255,255,0.24); color: #fff; }

.rail-tip {
  margin-top: var(--s-5); background: var(--ops-rail-card); border-radius: var(--r-md);
  padding: var(--s-4); font-size: var(--t-2xs); line-height: 1.6; color: var(--ops-rail-text);
}
.rail-tip .rail-tip-head {
  display: flex; align-items: center; gap: 6px; color: #fff;
  font-size: var(--t-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}
.rail-tip .rail-tip-head svg { color: var(--primary-bright); }

.rail-user {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: var(--s-4);
}
.rail-user .who { min-width: 0; flex: 1; }
.rail-user .name { font-size: var(--t-sm); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-user .role { font-size: var(--t-2xs); color: var(--ops-rail-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-user a { display: flex; padding: 0; height: auto; color: var(--ops-rail-text); }
.rail-user a:hover { background: none; color: #fff; }

.admin-main { padding: 0; background: var(--surface); min-width: 0; }
.app-page { padding: var(--s-6); }
.admin-head { margin-bottom: var(--s-6); }

/* ---------- 21b. Topbar (ops shell) --------------------------------------- */
.app-topbar {
  position: sticky; top: 0; z-index: 5; background: var(--surface);
  border-bottom: 1px solid var(--border); height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-inline: var(--s-6);
}
.app-search {
  display: flex; align-items: center; gap: var(--s-2); width: 320px; max-width: 42vw;
  background: var(--surface-sunk); border: 1px solid transparent; border-radius: var(--r-sm);
  height: 40px; padding-inline: var(--s-3); color: var(--ink-3);
}
.app-search input {
  border: none; background: none; outline: none; font: inherit; color: var(--ink);
  width: 100%; height: 100%;
}
.app-search input::placeholder { color: var(--ink-3); }
.app-topbar-right { display: flex; align-items: center; gap: var(--s-4); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-2); cursor: pointer; position: relative;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--dot-red); border: 1.5px solid var(--surface);
}
.topbar-user { display: flex; align-items: center; gap: var(--s-2); }
.topbar-user .who { line-height: 1.3; }
.topbar-user .name { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.topbar-user .role { font-size: var(--t-2xs); color: var(--ink-3); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-family: var(--font-display); font-weight: 700; flex: none;
}

.page-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); flex-wrap: wrap; }
.page-head-row .muted { margin-top: var(--s-1); }
.page-head-actions { display: flex; align-items: center; gap: var(--s-3); }
.date-chip {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding-inline: var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink);
}
.date-chip svg { color: var(--ink-3); }

/* ---------- 22. Drawer --------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(20, 22, 63, 0.5); z-index: 250;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.drawer {
  position: fixed; inset-block: 0; right: 0; width: min(560px, 100%);
  background: var(--surface); z-index: 260; overflow-y: auto;
  box-shadow: -8px 0 32px rgba(14, 17, 51, 0.22); padding: var(--s-6);
}
.drawer-head { display: flex; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.drawer-section { margin-top: var(--s-6); }
.drawer-section h3 {
  font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--s-3);
}
.dl-row { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-2); border-bottom: 1px solid var(--border); font-size: var(--t-sm); }
.dl-row dt { color: var(--ink-2); margin: 0; }
.dl-row dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- 23. Prototype scaffolding (NOT product) ---------------------- */
/* The dock, the sample-data banner and the screen index exist to review this
   prototype. None of it is specified by the PRD; strip before any real build. */
.proto-banner {
  display: none !important;
  background: var(--indigo-900); color: var(--on-dark-2);
  font-size: var(--t-xs); text-align: center; padding: var(--s-2) var(--s-4);
}
.proto-banner strong { color: var(--brand-amber); }

.role-dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--s-4);
  z-index: 80; display: flex; gap: 2px; padding: var(--s-1);
  background: var(--indigo-900); border-radius: var(--r-pill);
  box-shadow: var(--shadow-3); max-width: calc(100vw - 32px); overflow-x: auto;
}
.role-dock a {
  display: flex; flex-direction: column; gap: 0; text-decoration: none;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  color: var(--on-dark-2); font-size: var(--t-xs); font-weight: 700; white-space: nowrap;
  min-height: 44px; justify-content: center; text-align: center;
}
.role-dock a:hover { background: var(--indigo-700); color: var(--on-dark); }
.role-dock a[aria-current='true'] { background: var(--brand-amber); color: var(--indigo-900); }
.role-dock .sub { font-weight: 500; font-size: 10px; opacity: 0.85; }

/* ---------- 24. Landing bands (carried from design/, PRD-trimmed) -------- */
.hero {
  position: relative; background: var(--indigo-600); color: var(--on-dark);
  padding-block: var(--s-9); overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,49,146,0.55), rgba(20,22,63,0.82));
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 2; text-align: center; }
.hero h1 {
  font-size: var(--t-display); font-weight: 800; text-transform: uppercase;
  color: var(--on-dark); letter-spacing: -0.02em;
}
.hero .kicker {
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-sky);
  margin-bottom: var(--s-3);
}
.hero .lede { color: var(--on-dark-2); margin: var(--s-4) auto 0; max-width: 54ch; }
.hero .row { justify-content: center; margin-top: var(--s-6); flex-wrap: wrap; }

.brand-band {
  position: relative; background: var(--indigo-600); color: var(--on-dark);
  padding-block: var(--s-9); text-align: center; overflow: hidden;
}
.brand-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1); opacity: 0.32; mix-blend-mode: luminosity;
}
.brand-band .wrap { position: relative; z-index: 2; }
.brand-band h2 {
  font-size: var(--t-display); font-weight: 800; text-transform: uppercase;
  color: var(--brand-amber); letter-spacing: -0.02em;
}
.brand-band p { color: var(--on-dark-2); margin-top: var(--s-3); }

.gallery-grid {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery-grid figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface-mist); }
.gallery-grid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery-grid figure:first-child { grid-column: span 2; }
.gallery-grid figure:first-child img { aspect-ratio: 16 / 10; }

/* ---------- 25. Toast ---------------------------------------------------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 300;
  background: var(--indigo-900); color: var(--on-dark); padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600;
  box-shadow: var(--shadow-3); max-width: calc(100vw - 32px);
}

/* ---------- 26. Responsive ----------------------------------------------- */
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static; height: auto; padding: var(--s-4);
    display: flex; gap: var(--s-4); overflow-x: auto; align-items: center;
  }
  .admin-side .brand-logo { margin-bottom: 0; }
  .admin-side .brand-sub { display: none; }
  .admin-side .nav-group { margin-bottom: 0; display: flex; gap: var(--s-1); align-items: center; }
  .admin-side .nav-group:nth-last-of-type(2) { margin-top: 0; }
  .admin-side .nav-group h4 { display: none; }
  .admin-side .rail-tip, .admin-side .rail-user { display: none; }
  .app-topbar { padding-inline: var(--s-4); flex-wrap: wrap; height: auto; padding-block: var(--s-3); }
  .app-search { width: 100%; max-width: none; order: 3; }
  .app-page { padding: var(--s-5) var(--s-4) var(--s-9); }
  .guest-shell { grid-template-columns: 1fr; }
  .guest-side {
    position: static; height: auto; padding: var(--s-4);
    display: flex; gap: var(--s-4); overflow-x: auto; align-items: center;
  }
  .guest-side .explorer-filters, .guest-side .rail-user { display: none; }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding-inline: var(--s-4); }
  .section { padding-block: var(--s-7); }
  .panel { padding: var(--s-5) var(--s-4); }
  .site-header .wrap { flex-wrap: wrap; gap: var(--s-2); padding-block: var(--s-2); }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .cal-cell { min-height: 54px; }
  .gallery-grid figure:first-child { grid-column: span 1; }
  .gallery-grid figure:first-child img { aspect-ratio: 1 / 1; }
  .role-dock .sub { display: none; }
}

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

@media print {
  .site-header, .site-footer, .role-dock, .proto-banner, .btn, .skip-link { display: none !important; }
  body { background: #fff; }
  .panel, .card { border-color: #999; break-inside: avoid; }
}

/* ==========================================================================
   27. User dashboard
   Layout follows the patterns those two apps settled on: a greeting header
   with the next trip surfaced first (Airbnb), status tabs over the booking
   list (Klook), category chips for browsing, and an account page built from
   labelled tiles rather than a settings form.
   ========================================================================== */

body.is-dashboard {
  background: var(--surface-sunk, #f8fafc);
  color: var(--ink);
}

/* Highland Welcome Hero Banner */
.dash-hero {
  background: linear-gradient(135deg, #0e1133 0%, #1c2053 45%, #282d6e 100%);
  border-radius: 24px;
  padding: 42px 48px;
  color: #ffffff;
  box-shadow: 0 20px 40px -15px rgba(14, 17, 51, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -50px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 199, 239, 0.16) 0%, rgba(46, 49, 146, 0) 70%);
  pointer-events: none;
}
.dash-hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: var(--t-2xs);
  font-weight: 700;
  color: #5ac7ef;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.dash-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 var(--s-2);
}
.dash-hero-sub {
  font-size: var(--t-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 var(--s-5);
}
.dash-search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  max-width: 560px;
}
.dash-search-icon {
  display: flex;
  align-items: center;
  color: var(--ink-3);
  flex-shrink: 0;
}
.dash-search input {
  border: 0;
  min-height: 42px;
  padding: 0;
  background: transparent;
  flex: 1;
  font-size: var(--t-sm);
  color: var(--ink);
  outline: none;
}
.dash-search input:focus-visible {
  box-shadow: none;
}
.dash-hero-stats {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}
.dash-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Category chips */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.chip:hover {
  border-color: var(--primary);
  background: var(--indigo-50);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 22, 63, 0.06);
}
.chip.is-active, .chip[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(46, 49, 146, 0.22);
}

/* Segmented status tabs */
.tabs {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--s-6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 18px;
  min-height: 38px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: all 0.15s ease;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-selected='true'] {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(46, 49, 146, 0.22);
}
.tab[aria-selected='true'] .count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.tab .count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-mist);
  font-size: var(--t-2xs);
  color: var(--ink-2);
}

/* Spotlight Trip Card */
.trip-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(20, 22, 63, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.trip-card:hover {
  border-color: var(--indigo-300);
  box-shadow: 0 12px 32px rgba(20, 22, 63, 0.1);
  transform: translateY(-2px);
}
.trip-card-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--surface-sunk);
}
.trip-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.trip-card:hover .trip-card-media img {
  transform: scale(1.04);
}
.trip-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 63, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trip-countdown-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-amber);
  color: #14163f;
  font-size: var(--t-xs);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.trip-card-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.trip-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.trip-card-k {
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
  display: block;
}
.trip-card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.trip-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.trip-card-title a:hover {
  color: var(--primary);
}
.trip-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px var(--s-4);
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-sunk);
  border: 1px solid rgba(223, 225, 240, 0.6);
}
.trip-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trip-meta-item svg {
  color: var(--primary);
  flex-shrink: 0;
}
.trip-meta-item .lbl {
  display: block;
  font-size: var(--t-2xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.trip-meta-item .val {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink);
}
.trip-card-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Recommendations Section Box */
.dash-recomms-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 32px 36px;
  box-shadow: 0 4px 16px rgba(20, 22, 63, 0.03);
  margin-top: var(--s-7);
}

/* Account Profile Card & Tiles */
.acct-profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(20, 22, 63, 0.04);
  margin-bottom: var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.tile-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.acct-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 22, 63, 0.03);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.acct-tile:hover {
  border-color: var(--indigo-300);
  box-shadow: 0 10px 24px rgba(20, 22, 63, 0.08);
  transform: translateY(-2px);
}
.acct-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}
.acct-tile h4 {
  margin: 0 0 var(--s-1);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.acct-tile p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}
.acct-tile-action {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--primary);
  margin-top: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Horizontal recommendation rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: var(--s-4);
  overflow-x: auto;
  padding-bottom: var(--s-3);
  scroll-snap-type: x mandatory;
}
.rail > * {
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .trip-card {
    grid-template-columns: 1fr;
  }
  .trip-card-media {
    min-height: 180px;
  }
  .rail {
    grid-auto-columns: 82%;
  }
  .dash-hero {
    padding: 30px 24px;
  }
}

/* ==========================================================================
   28. Guest shell (Activity Explorer, Activity Detail)
   White rail, no topbar — matches the Sep 2026 Explorer reference. Search
   and filters live in the rail because they are page state, not global nav.
   ========================================================================== */
body.has-guest-shell:not(.is-guest) .proto-banner { display: none; }

/* book.html chrome branch: Guest gets the plain top nav, a signed-in User
   gets the persistent rail. Both read the same [data-screen] content — only
   the chrome around it changes. Default (no class yet, or signed-in) shows
   the rail; #guest-header only appears once JS confirms nobody is signed in. */
#guest-header { display: none; }
body.is-guest #guest-header { display: block; }
#signedin-header { display: none; }
body:not(.is-guest) #signedin-header { display: block; }
body.is-guest #signedin-shell { grid-template-columns: 1fr; }
body.is-guest #signedin-shell .guest-side { display: none; }
.guest-shell { display: block; min-height: 100vh; background: var(--surface-sunk); }
.guest-shell .btn { border-radius: var(--r-sm); }
.guest-side {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: var(--s-5) var(--s-4); position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.guest-side .brand-logo { margin-bottom: var(--s-6); gap: var(--s-3); align-items: center; }
.guest-side .brand-logo img { height: 36px; width: 36px; border-radius: var(--r-md); background: var(--primary); padding: 6px; }
.guest-side .brand-logo span { color: var(--ink); font-size: 15px; letter-spacing: 0.01em; }
.guest-main { padding: var(--s-6); min-width: 0; }

/* ==========================================================================
   Client-facing User Header & Top Navigation (dashboard.html & book.html)
   ========================================================================== */
.user-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(20, 22, 63, 0.04);
}
.user-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--s-5); gap: var(--s-4);
}
.user-brand {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; flex: none;
}
.user-brand img {
  height: 36px; width: 36px; border-radius: var(--r-md);
  background: var(--primary); padding: 6px;
}
.user-brand-text { display: flex; flex-direction: column; }
.user-brand-text .title {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 700; color: var(--ink); line-height: 1.2;
}
.user-brand-text .sub {
  font-size: var(--t-2xs); color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.user-nav {
  display: flex; align-items: center; gap: 4px; margin-inline: auto;
}
.user-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-2);
  text-decoration: none; transition: all 0.15s ease; white-space: nowrap;
}
.user-nav-link:hover { background: var(--surface-sunk); color: var(--ink); }
.user-nav-link.is-active, .user-nav-link[aria-current="page"] {
  background: var(--primary); color: #fff;
}
.user-nav-link .nav-count {
  font-size: var(--t-2xs); font-weight: 700; padding: 1px 7px;
  border-radius: var(--r-pill); background: var(--surface-sunk); color: var(--ink-2);
}
.user-nav-link.is-active .nav-count, .user-nav-link[aria-current="page"] .nav-count {
  background: rgba(255, 255, 255, 0.25); color: #fff;
}
.user-nav-actions {
  display: flex; align-items: center; gap: var(--s-3); flex: none;
}
.user-menu-wrap { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); background: var(--surface);
  cursor: pointer; transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.user-avatar-btn:hover { box-shadow: var(--shadow-2); border-color: var(--ink-3); }
.user-avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  font-size: var(--t-xs); display: inline-flex; align-items: center; justify-content: center;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 250px; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(20, 22, 63, 0.12), 0 4px 12px rgba(20, 22, 63, 0.06);
  padding: var(--s-2) 0; z-index: 200; display: flex; flex-direction: column;
}
.user-dropdown[hidden] { display: none; }
.user-dropdown-header {
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-1);
}
.user-dropdown-name { font-weight: 700; font-size: var(--t-sm); color: var(--ink); display: block; }
.user-dropdown-sub { font-size: var(--t-2xs); color: var(--ink-3); display: block; margin-top: 2px; }
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--s-4); color: var(--ink-2);
  text-decoration: none; font-size: var(--t-sm); font-weight: 600;
  border: none; background: transparent; width: 100%; text-align: left;
  cursor: pointer; transition: background 0.1s ease, color 0.1s ease;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-sunk); color: var(--ink); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: var(--s-1) 0; }
.user-dropdown button.signout-btn { color: var(--dot-red, #dc2626); }
.user-dropdown button.signout-btn:hover { background: #fef2f2; color: #b91c1c; }

.user-main-content {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: var(--s-6) var(--s-5) var(--s-9); min-height: calc(100vh - 68px);
}

@media (max-width: 960px) {
  .user-header .shell { height: auto; padding-block: var(--s-3); flex-wrap: wrap; }
  .user-nav { order: 3; width: 100%; overflow-x: auto; padding-block: var(--s-2) 0; justify-content: flex-start; }
}

/* ==========================================================================
   Guest Dark Header (book.html #guest-header)
   Identical branding, dark styling and links to index.html homepage navbar
   ========================================================================== */
.user-header.is-dark {
  background: rgba(20, 22, 63, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(10, 12, 36, 0.28);
}
.user-header.is-dark .shell {
  min-height: 72px;
}
.user-header.is-dark .brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex: none;
}
.user-header.is-dark .brand img {
  height: 50px;
  width: auto;
  display: block;
}
.user-header.is-dark .brand-sub {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a6a9d0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: var(--s-3);
  line-height: 1.35;
  flex: none;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .user-header.is-dark .brand-sub {
    display: none;
  }
}
.user-header.is-dark .user-nav-link {
  color: #ced0ea;
  font-size: var(--t-sm);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.user-header.is-dark .user-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.user-header.is-dark .user-nav-link.is-active,
.user-header.is-dark .user-nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.user-header.is-dark .btn-cta {
  background: var(--brand-amber);
  color: #3a2600;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 8px 24px;
  min-height: 44px;
  border: 0;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.28);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-header.is-dark .btn-cta:hover {
  background: #ffb724;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.38);
}

.rail-label {
  font-size: var(--t-2xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-bottom: var(--s-2); padding-inline: 2px;
}
.guest-side .app-search { width: 100%; max-width: none; background: var(--surface-sunk); margin-bottom: var(--s-6); }

.rail-cats { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s-6); }
.rail-cats a {
  display: flex; align-items: center; gap: 10px; height: 44px; padding-inline: var(--s-3);
  border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none;
  font-size: var(--t-sm); font-weight: 600;
}
.rail-cats a svg { flex: none; color: var(--ink-3); }
.rail-cats a:hover { background: var(--surface-sunk); }
.rail-cats a.is-active, .rail-cats a[aria-current='page'] { background: var(--primary); color: #fff; }
.rail-cats a.is-active svg, .rail-cats a[aria-current='page'] svg { color: #fff; }
.rail-cats a .count {
  margin-left: auto; background: var(--surface-sunk); color: var(--ink-2);
  font-size: var(--t-2xs); font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill);
}
.rail-cats a.is-active .count { background: rgba(255,255,255,0.22); color: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip-toggle {
  height: 30px; padding-inline: var(--s-3); border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-2); font-size: var(--t-xs); font-weight: 700; cursor: pointer;
}
.chip-toggle:hover { border-color: var(--primary); color: var(--primary); }
.chip-toggle.is-active { border-color: var(--primary); color: var(--primary); background: var(--indigo-50); }

.guest-side .rail-user { border-top: 1px solid var(--border); margin-top: auto; padding-top: var(--s-4); }
.guest-side .rail-user .name { color: var(--ink); }
.guest-side .rail-user .role { color: var(--ink-3); }
.guest-side .rail-user a { color: var(--ink-3); }
.guest-side .rail-user a:hover { color: var(--ink); }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding-inline: var(--s-4);
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
}
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot-green); }

.explorer-filter-bar {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border);
}
.explorer-filter-bar .app-search { width: 280px; background: var(--surface-sunk); }
.explorer-filter-bar .chip-row { gap: var(--s-2); }

/* ---------- Explorer list-row card ---------------------------------------- */
.explorer-list { display: flex; flex-direction: column; gap: var(--s-5); }
.list-row {
  display: flex; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.list-row:hover { box-shadow: var(--shadow-3); transform: translateY(-1px); }
.list-row-media { position: relative; flex: none; width: 320px; }
.list-row-media img { width: 100%; height: 100%; object-fit: cover; }
.list-row-tag {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: var(--t-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-sm);
}
.list-row-body { flex: 1; min-width: 0; padding: var(--s-5) var(--s-5) var(--s-4); display: flex; flex-direction: column; }
.list-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.list-row-body h3 { color: var(--primary); font-size: 1.25rem; }
.list-row-rating { display: flex; align-items: center; gap: 5px; font-size: var(--t-sm); font-weight: 700; color: var(--ink); white-space: nowrap; }
.list-row-rating svg { color: var(--dot-amber); }
.list-row-rating .count { font-weight: 600; color: var(--ink-3); font-size: var(--t-xs); }
.list-row-blurb {
  color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-row-meta { display: flex; gap: var(--s-5); margin-top: var(--s-4); flex-wrap: wrap; }
.list-row-meta span { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-2); font-weight: 600; }
.list-row-meta svg { color: var(--primary); }
.list-row-foot {
  margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.list-row-price .k { font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.list-row-price .v { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--ink); }

/* ---------- Activity detail ------------------------------------------------
   Gallery + scrollable panel: the whole split is bounded to fit the
   viewport (below the page padding), the image fills its pane at a fixed
   height (no stretch, no runaway crop), and only the right panel scrolls
   internally if its content runs long — the image never scrolls out of
   view and never needs to grow to chase the content's height. */
/* ---------- Activity & Stay modern product detail ------------------------- */
.detail-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: var(--s-2);
  transition: transform 0.15s ease;
}
.detail-back-link:hover {
  transform: translateX(-2px);
  color: var(--indigo-700);
}

.detail-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.detail-sub-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  color: var(--ink-2);
  flex-wrap: wrap;
}

.detail-sub-meta .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--dot-amber, #f59e0b);
}

/* ==========================================================================
   Bento Grid Media Layout (Luxury Multi-Tile Showcase)
   ========================================================================== */
.bento-gallery-wrap {
  position: relative;
  margin-bottom: var(--s-6);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  background: #0b0f19;
}

.bento-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 215px 215px;
  gap: 8px;
  background: #0b0f19;
}

.bento-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111827;
  user-select: none;
}

.bento-item.bento-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.detail-hero-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 17, 51, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--t-2xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.bento-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.bento-item:hover .bento-media {
  transform: scale(1.04);
}

.bento-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.bento-item:hover .bento-item-overlay {
  background: rgba(10, 15, 30, 0.15);
}

.bento-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.bento-video-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: pulse-dot 1.6s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* 5th tile overlay: "+3 more" or "+4 more" */
.bento-more-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  z-index: 3;
  padding: 12px;
  transition: background 0.25s ease;
}
.bento-item:hover .bento-more-scrim {
  background: rgba(10, 15, 30, 0.52);
}
.bento-more-count {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.bento-more-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Floating "View all photos" button at bottom-right */
.bento-all-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: var(--t-xs);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bento-all-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  color: var(--primary);
}

/* ==========================================================================
   Full-Page Lightbox Overlay (Cinematic Media Viewer)
   ========================================================================== */
.media-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 9, 20, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease;
  user-select: none;
}
.media-lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Header bar */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  color: #ffffff;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(6, 9, 20, 0.65) 0%, rgba(6, 9, 20, 0) 100%);
}
.lightbox-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.lightbox-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.lightbox-counter {
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* Center stage */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 80px;
  min-height: 0;
}
.lightbox-media-container {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-main-img {
  max-width: 88vw;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  display: block;
}
.lightbox-main-video {
  max-width: 88vw;
  max-height: 64vh;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  outline: none;
  background: #000;
}

/* Navigation arrows */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.lightbox-nav-btn.prev { left: 24px; }
.lightbox-nav-btn.next { right: 24px; }

/* Caption */
.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--t-sm);
  font-weight: 500;
  margin-top: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Bottom thumbnails strip */
.lightbox-thumbs-bar {
  padding: 14px 28px 20px;
  background: linear-gradient(to top, rgba(6, 9, 20, 0.75) 0%, rgba(6, 9, 20, 0) 100%);
  display: flex;
  justify-content: center;
  z-index: 10;
}
.lightbox-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 6px;
  scrollbar-width: thin;
}
.lightbox-thumb {
  width: 68px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  flex: none;
  background: #000;
  position: relative;
  transition: all 0.2s ease;
  padding: 0;
}
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-thumb:hover {
  opacity: 0.85;
}
.lightbox-thumb.is-active {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}
.lightbox-thumb-video-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 11px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .bento-gallery {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 170px 170px;
  }
  .bento-item:nth-child(4),
  .bento-item:nth-child(5) {
    display: none;
  }
  .bento-item:nth-child(3) .bento-more-scrim {
    display: flex;
  }
  .lightbox-stage {
    padding: 10px 20px;
  }
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
  }
  .lightbox-nav-btn.prev { left: 10px; }
  .lightbox-nav-btn.next { right: 10px; }
}

@media (max-width: 600px) {
  .bento-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
  }
  .bento-item:not(.bento-hero) {
    display: none;
  }
  .bento-all-btn {
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Park Day Pass Booking Card (Single Unified Booking CTA)
   ========================================================================== */
.park-pass-hero-card {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: var(--s-6);
  background: linear-gradient(135deg, #0e1133 0%, #1a1e4a 60%, #1e245c 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: #ffffff;
  margin-bottom: var(--s-6);
  box-shadow: 0 12px 32px rgba(14, 17, 51, 0.16);
  position: relative;
  overflow: hidden;
  align-items: center;
}
.park-pass-hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.park-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-2xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-2);
}
.park-pass-hero-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 var(--s-2);
  line-height: 1.2;
}
.park-pass-hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--t-sm);
  line-height: 1.55;
  margin: 0 0 var(--s-4);
  max-width: 640px;
}
.park-pass-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.park-pass-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.park-pass-perks svg {
  color: var(--dot-green, #10b981);
  flex: none;
}

.park-pass-hero-side {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.park-pass-price-box {
  margin-bottom: var(--s-3);
}
.park-pass-price-box .k {
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  display: block;
}
.park-pass-price-box .v {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 2px 0;
}
.park-pass-price-box .per {
  font-size: var(--t-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.park-pass-price-box .sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  display: block;
}

@media (max-width: 860px) {
  .park-pass-hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.tag-included {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.tag-included svg {
  color: #059669;
  flex: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--indigo-600);
  border: 1.5px solid var(--indigo-600);
}
.btn-outline:hover {
  background: var(--indigo-50);
  color: var(--indigo-700);
  border-color: var(--indigo-700);
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--s-7);
  align-items: flex-start;
}

.detail-col-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.detail-meta-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}
.detail-meta-card svg {
  color: var(--primary);
}
.detail-meta-card .k {
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 0;
}
.detail-meta-card .v {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.detail-card-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.detail-card-section h3 {
  margin: 0 0 var(--s-3);
  font-size: 1.25rem;
  font-weight: 700;
}

.detail-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-amenities-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  font-weight: 500;
}
.detail-amenities-grid li svg {
  color: var(--dot-green, #10b981);
  flex: none;
}

/* Sticky booking sidebar */
.detail-col-side {
  position: sticky;
  top: 88px;
}

.sticky-booking-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.booking-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.booking-card-k {
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  display: block;
}
.booking-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.booking-card-price .val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.booking-card-price .per {
  font-size: var(--t-xs);
  color: var(--ink-3);
  font-weight: 600;
}

.booking-card-divider {
  height: 1px;
  background: var(--border);
  margin: var(--s-4) 0;
}

.booking-plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: var(--t-xs);
}
.booking-plan-item .plan-title {
  font-weight: 700;
  color: var(--ink);
}
.booking-plan-item .plan-price {
  font-weight: 800;
  color: var(--primary);
}

/* Fallback legacy compatibility */
.detail-page { padding: var(--s-4) 0; max-width: 100%; margin-inline: auto; }
.detail-split { display: block; }
.detail-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.detail-hero img { width: 100%; height: auto; object-fit: cover; }
.detail-panel { min-width: 0; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.meta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
}
.meta-card svg { color: var(--primary); }
.meta-card .k { font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.meta-card .v { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }

.check-list { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }
.check-list li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--t-sm); color: var(--ink-2); }
.check-list svg { color: var(--dot-green); flex: none; margin-top: 1px; }

.booking-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-card); }
.booking-box .k { font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.booking-box .price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-1); }
.booking-box .v { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--ink); }
.booking-box .per { font-size: var(--t-sm); color: var(--ink-3); font-weight: 600; }

/* ==========================================================================
   29. Ops dashboard components (Today's Overview reference)
   ========================================================================== */
.stat-tile {
  display: flex; align-items: center; gap: var(--s-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4);
}
.stat-tile-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.stat-tile-icon.tint-lavender { background: var(--indigo-50); color: var(--primary); }
.stat-tile-icon.tint-sky { background: #e7f4fd; color: var(--sky-ink); }
.stat-tile-icon.tint-amber { background: #fff3dc; color: var(--amber-ink); }
.stat-tile-icon.tint-rose { background: #fdeaec; color: var(--crimson-ink); }
.stat-tile .v { font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile .k { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; margin-top: 2px; }

.panel-flush { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.panel-flush-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border);
}
.panel-flush-head h3 { font-size: var(--t-h4); }
.panel-flush-head a { font-size: var(--t-sm); font-weight: 700; }

table.data.data-tight th, table.data.data-tight td { padding: var(--s-3) var(--s-5); }
table.data .row-person { display: flex; align-items: center; gap: var(--s-3); }
table.data .row-person .name { font-weight: 700; color: var(--ink); font-size: var(--t-sm); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 600; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-dot.dot-green { color: var(--dot-green); }
.status-dot.dot-sky { color: var(--dot-sky); }
.status-dot.dot-amber { color: var(--dot-amber); }
.status-dot.dot-red { color: var(--dot-red); }

.activity-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); padding: var(--s-5); }
.activity-cell { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); }
.activity-cell .tag-row { display: flex; align-items: center; gap: 6px; font-size: var(--t-2xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.activity-cell .cnt { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--ink); margin-top: var(--s-2); }
.activity-cell .sub { font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }

.bar-chart { display: flex; align-items: flex-end; gap: var(--s-3); height: 140px; padding-top: var(--s-3); }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 100%; max-width: 32px; background: var(--primary-bright); border-radius: 6px 6px 0 0; }
.bar-chart .bar-label { font-size: var(--t-2xs); color: var(--ink-3); margin-top: var(--s-2); font-weight: 600; }
.chart-scale { display: flex; justify-content: space-between; font-size: var(--t-2xs); color: var(--ink-3); margin-bottom: var(--s-2); }

.task-list { display: flex; flex-direction: column; gap: var(--s-3); }
.task-item { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); }
.task-item svg { flex: none; }
.task-item.is-done { color: var(--ink-3); text-decoration: line-through; }
.task-item.is-done svg { color: var(--dot-green); }
.task-item.is-next svg { color: var(--dot-amber); }
.task-item:not(.is-done):not(.is-next) svg { color: var(--border-strong); }
.task-item.is-next, .task-item:not(.is-done) { color: var(--ink); font-weight: 600; }

.forecast-card {
  background: linear-gradient(135deg, var(--ops-forecast-a), var(--ops-forecast-b));
  border-radius: var(--r-lg); padding: var(--s-5); color: #fff;
}
.forecast-card .k { font-size: var(--t-xs); color: rgba(255,255,255,0.7); }
.forecast-card .v { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; margin-top: var(--s-1); }
.forecast-card .btn { margin-top: var(--s-4); background: var(--brand-amber); color: var(--indigo-900); border-radius: var(--r-sm); }

@media (max-width: 900px) {
  .list-row { flex-direction: column; }
  .list-row-media { width: 100%; aspect-ratio: 16 / 10; }
  .meta-grid { grid-template-columns: 1fr; }
  .activity-strip { grid-template-columns: 1fr; }
  .grid-4.stat-row { grid-template-columns: repeat(2, 1fr); }
  .detail-page { height: auto; padding: var(--s-4); }
  .detail-split { grid-template-columns: 1fr; height: auto; }
  .detail-hero { height: auto; aspect-ratio: 4 / 3; }
  .detail-panel { height: auto; overflow-y: visible; padding-right: 0; }
}
