/* ============================================================
   HIMALOS DESIGN SYSTEM
   Single source of truth. Never style inline. Never add one-off classes.
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Primary — deep mountain teal */
  --color-primary-900: #0F3D3E;
  --color-primary-700: #1F5F60;
  --color-primary-500: #2E8B8C;
  --color-primary-300: #6FB7B8;
  --color-primary-100: #D4ECEC;

  /* Accent — Nepal flag crimson, muted */
  --color-accent-700: #8B2635;
  --color-accent-500: #B83A4B;
  --color-accent-300: #E08896;

  /* Warm sand — prayer flag warmth */
  --color-warm-700: #B8804A;
  --color-warm-500: #D9A574;
  --color-warm-200: #F5E6D3;

  /* Neutrals */
  --color-bg:           #FAF8F5;
  --color-surface:      #FFFFFF;
  --color-sidebar-bg:   #F2F9F9;
  --color-text:         #1F2421;
  --color-text-muted:   #5C6660;
  --color-border:       #E5E0D8;

  /* Semantic */
  --color-success: #4A7C59;
  --color-warning: #C9893A;
  --color-error:   #A33B3B;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;

  /* Spacing — 4px scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius / shadow */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 61, 62, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 61, 62, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 61, 62, 0.14), 0 2px 8px rgba(15, 61, 62, 0.06);
}

[data-theme="dark"] {
  --color-bg:           #0F1614;
  --color-surface:      #1A2422;
  --color-sidebar-bg:   #1A2422;
  --color-text:         #F0EDE7;
  --color-text-muted:   #9BA39E;
  --color-border:       #2C3835;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary-500);
  text-decoration: underline;
}

a:hover {
  color: var(--color-primary-700);
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------------------------------------
   3. LAYOUT SHELL
   ------------------------------------------------------------ */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-700);
  text-decoration: none;
  margin-right: auto;
}

.site-header__logo:hover {
  color: var(--color-primary-900);
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */
.h-display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.h-1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.h-2 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.h-3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
}

.text-muted {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.text-small {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--color-primary-500);
  color: #FFFFFF;
  border-color: var(--color-primary-500);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-700);
  border-color: var(--color-primary-700);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-primary-700);
  border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-primary-100);
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary-600);
  border-color: var(--color-primary-400);
  font-weight: 500;
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #FFFFFF;
}

.nav-login-btn {
  border-radius: 999px;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(46, 139, 140, 0.35);
  transition: box-shadow 0.2s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nav-login-btn:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(46, 139, 140, 0.45);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--color-error);
  color: #FFFFFF;
  border-color: var(--color-error);
}

.btn-danger:hover:not(:disabled) {
  background-color: #8B2E2E;
  border-color: #8B2E2E;
  color: #FFFFFF;
}

/* Small variant used for switchers */
.btn--sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-3) var(--space-7);
  font-size: var(--text-base);
  font-weight: 600;
}

.btn--xs {
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.btn--active {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  border-color: var(--color-primary-300);
}

/* Theme toggle icons — visibility driven by [data-theme] on <html> */
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ------------------------------------------------------------
   6. FORM CONTROLS
   ------------------------------------------------------------ */
.input,
.select,
.textarea {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(46, 139, 140, 0.15);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-bg);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6660' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
  cursor: pointer;
}

.select--sm {
  width: auto;
  padding: var(--space-1) var(--space-6) var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary-500);
  cursor: pointer;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-hint--warn {
  color: var(--color-warning);
}

.form-hint--error {
  color: var(--color-error);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

.input--error,
.textarea--error {
  border-color: var(--color-error) !important;
}

.select--error {
  border-color: var(--color-error) !important;
}

/* ── Package creation wizard ───────────────────────────────── */
.wizard-bar { background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); }
.wizard-bar__steps { display: flex; align-items: center; gap: 0; }
.wizard-bar__step { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); background: none; border: none; cursor: pointer; padding: var(--space-1) var(--space-2); }
.wizard-bar__num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 600; background: var(--color-border); color: var(--color-text-muted); }
.wizard-bar__label { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.wizard-bar__step--active .wizard-bar__num { background: var(--color-primary); color: #fff; }
.wizard-bar__step--active .wizard-bar__label { color: var(--color-primary); font-weight: 600; }
.wizard-bar__step--done .wizard-bar__num { background: var(--color-success, #16a34a); color: #fff; }
.wizard-bar__step--done .wizard-bar__label { color: var(--color-success, #16a34a); }
.wizard-bar__line { flex: 1; height: 2px; background: var(--color-border); margin: 0 var(--space-1); position: relative; top: -8px; }
.wizard-bar__line--done { background: var(--color-success, #16a34a); }

/* ── Package wizard confirm summary ────────────────────────── */
.confirm-summary { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-1) var(--space-4); margin: 0; }
.confirm-summary dt { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 500; }
.confirm-summary dd { font-size: var(--text-sm); margin: 0; }

/* ── Package pill navigation (Create + Edit) ────────────────── */
.pkg-pill-nav { display: flex; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-6); flex-wrap: wrap; }
.pkg-pill-nav__pill { padding: var(--space-2) var(--space-4); border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; white-space: nowrap; }
.pkg-pill-nav__pill:hover:not([disabled]) { border-color: var(--color-primary-500); color: var(--color-primary-700); background: var(--color-primary-100); }
.pkg-pill-nav__pill--active { background: var(--color-primary-500) !important; border-color: var(--color-primary-500) !important; color: #fff !important; }
.pkg-pill-nav__pill--done { border-color: var(--color-success); color: var(--color-success); }
.pkg-pill-nav__pill[disabled] { opacity: 0.4; cursor: not-allowed; }
.pkg-pill-nav__pill--has-error { border-color: var(--color-error) !important; color: var(--color-error) !important; }
.pkg-pill-nav__pill--has-error::after { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--color-error); border-radius: 50%; margin-left: 6px; vertical-align: middle; flex-shrink: 0; }

/* ── Cancellation preset cards ─────────────────────────────── */
.cancellation-preset-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.cancellation-preset-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.cancellation-preset-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-raised);
}

.cancellation-preset-card--active {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
}

.cancellation-preset-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cancellation-preset-radio {
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.cancellation-preset-card__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.cancellation-preset-card__hint {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Cancellation live preview ─────────────────────────────── */
.cancellation-preview {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.cancellation-preview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cancellation-preview__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cancellation-preview__item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-text-muted);
}

.cancellation-preview__item--full svg { color: var(--color-success); }
.cancellation-preview__item--full     { color: var(--color-text); }
.cancellation-preview__item--none svg { color: var(--color-error); }

/* ── Booking widget cancellation line (detail page) ───────── */
.bw-cancellation-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.bw-cancellation-line svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.bw-per-person {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
  margin: calc(var(--space-1) * -1) 0 var(--space-2);
}

/* ── Savings indicator chip ──────────────────────────────────── */
@keyframes savings-pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.bw-savings-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  cursor: default;
  flex-shrink: 0;
}

.bw-savings-indicator--active {
  animation: savings-pop 0.2s ease-out forwards;
}

.bw-savings-tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #14532d;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: opacity 0.15s;
  z-index: 10;
}

.bw-savings-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #14532d;
}

.bw-savings-indicator:hover .bw-savings-tooltip {
  visibility: visible;
  opacity: 1;
}

/* ── Mobile inline savings message ──────────────────────────── */
.bw-savings-inline {
  font-size: var(--text-sm);
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-1) 0 0;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   7. CARD
   ------------------------------------------------------------ */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}

.card-body {
  padding: var(--space-6);
}

/* ------------------------------------------------------------
   8. BADGES
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: var(--color-border);
  color: var(--color-text-muted);
}

.badge-success {
  background-color: rgba(74, 124, 89, 0.12);
  color: var(--color-success);
}

.badge-warning {
  background-color: rgba(201, 137, 58, 0.12);
  color: var(--color-warning);
}

.badge-error {
  background-color: rgba(163, 59, 59, 0.12);
  color: var(--color-error);
}

/* ------------------------------------------------------------
   9. ALERTS
   ------------------------------------------------------------ */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
  background-color: var(--color-surface);
}

.alert-info {
  background-color: var(--color-primary-100);
  border-color: var(--color-primary-300);
  color: var(--color-primary-900);
}

.alert-error {
  background-color: rgba(163, 59, 59, 0.08);
  border-color: rgba(163, 59, 59, 0.3);
  color: var(--color-error);
}

.alert-warning {
  background-color: rgba(201, 137, 58, 0.08);
  border-color: rgba(201, 137, 58, 0.3);
  color: var(--color-warning);
}

.alert-success {
  background-color: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.3);
  color: #2e7d32;
}

.required-star {
  color: var(--color-error);
  margin-left: 2px;
  font-weight: bold;
  font-size: 0.9em;
}

.req-checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0 0;
}

.req-checklist li {
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
}

/* ------------------------------------------------------------
   10. PAGE-SPECIFIC
   ------------------------------------------------------------ */

/* Auth pages (login, forgot password, reset password, 2FA) */
.auth-page {
  max-width: 420px;
  margin: var(--space-12) auto;
}

.auth-page__footer {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Full-width button modifier */
.btn--full {
  width: 100%;
}

/* Key display for TOTP setup */
.totp-key {
  font-family: monospace;
  font-size: var(--text-base);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  word-break: break-all;
  color: var(--color-primary-900);
  letter-spacing: 0.08em;
}

/* Hide empty validation summary (MVC renders .validation-summary-valid when no errors) */
.validation-summary-valid {
  display: none;
}

/* Medium-width form pages (business signup, etc.) */
.page-form {
  max-width: 560px;
  margin: var(--space-12) auto;
}

/* Data table for admin queues */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.data-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
}

.data-table tbody tr:hover {
  background-color: var(--color-primary-100);
}

.data-table--clickable tbody tr {
  cursor: pointer;
}

.data-table__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover {
  background-color: var(--color-primary-100);
  color: var(--color-primary);
}

/* Empty state */
.empty-state {
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

/* Page header with action */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.page-header--with-center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ── Package slot counter (page-header center) ───────────────────────────── */
.pkg-slot-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-primary-700);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary-700) 7%, var(--color-surface));
  min-width: 120px;
}
.pkg-slot-counter__label {
  font-size: .625rem;
  font-weight: 600;
  color: var(--color-primary-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: .8;
}
.pkg-slot-counter__frac {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-700);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pkg-slot-counter__cur  { color: var(--color-primary-700); }
.pkg-slot-counter__slash {
  font-size: 1rem;
  font-weight: 300;
  opacity: .4;
  margin: 0 2px;
}
.pkg-slot-counter__total { color: color-mix(in srgb, var(--color-primary-700) 55%, var(--color-text-muted)); }
.pkg-slot-counter__track {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--color-primary-700) 18%, var(--color-surface));
}
.pkg-slot-counter__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--color-primary-700);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
/* near-limit: shift to amber */
.pkg-slot-counter--near {
  border-color: var(--color-warm-500);
  background: color-mix(in srgb, var(--color-warm-500) 7%, var(--color-surface));
}
.pkg-slot-counter--near .pkg-slot-counter__label,
.pkg-slot-counter--near .pkg-slot-counter__frac,
.pkg-slot-counter--near .pkg-slot-counter__cur  { color: var(--color-warm-700); }
.pkg-slot-counter--near .pkg-slot-counter__total { color: color-mix(in srgb, var(--color-warm-700) 55%, var(--color-text-muted)); }
.pkg-slot-counter--near .pkg-slot-counter__track { background: color-mix(in srgb, var(--color-warm-500) 18%, var(--color-surface)); }
.pkg-slot-counter--near .pkg-slot-counter__fill  { background: var(--color-warm-700); }
/* full: solid amber fill */
.pkg-slot-counter--full {
  border-color: var(--color-warm-500);
  background: var(--color-warm-200);
}
.pkg-slot-counter--full .pkg-slot-counter__label,
.pkg-slot-counter--full .pkg-slot-counter__cur  { color: var(--color-warm-700); }
.pkg-slot-counter--full .pkg-slot-counter__frac  { color: var(--color-warm-700); }
.pkg-slot-counter--full .pkg-slot-counter__total { color: color-mix(in srgb, var(--color-warm-700) 55%, var(--color-text-muted)); }
.pkg-slot-counter--full .pkg-slot-counter__track { background: color-mix(in srgb, var(--color-warm-500) 25%, var(--color-warm-200)); }
.pkg-slot-counter--full .pkg-slot-counter__fill  { background: var(--color-warm-700); }
.pkg-slot-counter__upgrade {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-warm-700);
  text-decoration: none;
}
.pkg-slot-counter__upgrade:hover { text-decoration: underline; }

.pkg-limit-warning {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: #92400e;
}
.pkg-limit-warning svg { flex-shrink: 0; color: #d97706; }
.pkg-limit-warning a   { color: #92400e; font-weight: 600; }

/* ------------------------------------------------------------
   11. UTILITIES
   ------------------------------------------------------------ */
.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;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* ------------------------------------------------------------
   12. DASHBOARD
   ------------------------------------------------------------ */
.dashboard-section {
  margin-bottom: var(--space-8);
}

.dashboard-section + .dashboard-section {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   13. IMAGE GRID (package images)
   ------------------------------------------------------------ */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.image-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.image-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-color: var(--color-bg);
}

.image-card__meta {
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.image-card form {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   14. APP SHELL (business / admin authenticated layouts)
   ------------------------------------------------------------ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background-color: var(--color-sidebar-bg);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 200;
  transition: transform 0.25s;
}

.app-sidebar__header {
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  flex-shrink: 0;
}

.app-sidebar__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-700);
  text-decoration: none;
}

.app-sidebar__logo:hover {
  color: var(--color-primary-900);
}

.app-sidebar__close {
  display: none;
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

/* ── Sidebar brand (logo circle + business name) ───────────────────── */
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-width: 0;
}

.sidebar-logo-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo-avatar--empty {
  border-style: dashed;
}

.sidebar-logo-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-logo-avatar__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
  padding: 0 var(--space-1);
}

.sidebar-business-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 var(--space-2);
}

.app-sidebar nav {
  padding: var(--space-4) var(--space-2);
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
  margin-bottom: var(--space-1);
}

.app-sidebar-link:hover {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  text-decoration: none;
}

.app-sidebar-link-active {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  font-weight: 600;
}

.app-sidebar-link-active:hover {
  color: var(--color-primary-900);
}

.app-sidebar-link--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* ── Sidebar collapsible group ─────────────────────────────────────── */
.app-sidebar-group {
  margin-bottom: var(--space-1);
}

.app-sidebar-group summary {
  list-style: none;
}

.app-sidebar-group summary::-webkit-details-marker {
  display: none;
}

.app-sidebar-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, color 0.15s;
}

.app-sidebar-group__summary::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
  flex-shrink: 0;
}

details.app-sidebar-group[open] .app-sidebar-group__summary::after {
  transform: rotate(45deg);
}

.app-sidebar-group__summary:hover {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
}

.app-sidebar-group--disabled .app-sidebar-group__summary {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.app-sidebar-group__children {
  padding-left: var(--space-3);
  padding-top: var(--space-1);
}

.app-sidebar-sublink {
  display: block;
  padding: var(--space-1) var(--space-3);
  border-left: 2px solid var(--color-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
  margin-bottom: var(--space-1);
}

.app-sidebar-sublink:hover {
  color: var(--color-primary-700);
  border-color: var(--color-primary-400);
  background-color: var(--color-primary-50);
  text-decoration: none;
}

.app-sidebar-sublink-active {
  color: var(--color-primary-700);
  border-color: var(--color-primary-600);
  font-weight: 600;
  background-color: var(--color-primary-50);
}

/* ── Nav link icons ────────────────────────────────────────────────── */
.nav-icon {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.app-sidebar-link:hover .nav-icon,
.app-sidebar-link-active .nav-icon,
.app-sidebar-group__summary:hover .nav-icon,
.app-sidebar-group__summary.app-sidebar-link-active .nav-icon {
  opacity: 1;
}

/* ── Sidebar section labels (admin nav groupings) ──────────────────── */
.app-sidebar-section-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-4) var(--space-1);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

/* ── Sidebar footer (sign-out + optional user chip) ────────────────── */
.app-sidebar__footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-user-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  min-width: 0;
}

.sidebar-user-chip__info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-chip__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.sidebar-user-chip__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
}

/* ── Checkbox group ────────────────────────────────────────────────── */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.check-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

.check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary-600);
  cursor: pointer;
}

.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 199;
}

.app-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  flex-shrink: 0;
}

.app-header__menu {
  display: none;
}

.app-header__title {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-base);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.app-main {
  flex: 1;
  padding: var(--space-8) var(--space-6);
}

.app-main--flush {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Fills all space below the app-header; the 60px matches .app-header height */
  height: calc(100vh - 60px);
}

.app-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  min-width: 220px;
  max-width: 360px;
  width: fit-content;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 4px 20px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  font-size: var(--text-sm);
  font-weight: 500;
  border-left: 4px solid currentColor;
  animation: toast-in .25s cubic-bezier(.2,.8,.4,1) both;
}
.app-toast--created { color: #065f46; background: #d1fae5; border-left-color: #10b981; }
.app-toast--updated { color: #1e3a8a; background: #dbeafe; border-left-color: #3b82f6; }
.app-toast--deleted { color: #78350f; background: #fef3c7; border-left-color: #f59e0b; }
.app-toast--success { color: #065f46; background: #d1fae5; border-left-color: #10b981; }
.app-toast--error   { color: #7f1d1d; background: #fee2e2; border-left-color: #ef4444; }
.app-toast__msg  { flex: 1; line-height: 1.4; }
.app-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: .45;
  font-size: .875rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: opacity .15s;
}
.app-toast__close:hover { opacity: 1; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(1rem); } }
.app-toast--out { animation: toast-out .25s ease both; }

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.status-pill-draft {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.status-pill-pending {
  background-color: rgba(201, 137, 58, 0.12);
  color: var(--color-warning);
  border-color: rgba(201, 137, 58, 0.3);
}

.status-pill-approved {
  background-color: rgba(74, 124, 89, 0.12);
  color: var(--color-success);
  border-color: rgba(74, 124, 89, 0.3);
}

.status-pill-rejected {
  background-color: rgba(163, 59, 59, 0.08);
  color: var(--color-error);
  border-color: rgba(163, 59, 59, 0.3);
}

/* ── Tier badges ─────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.7em 0.25em 0.5em;
  border-radius: 5px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.18);
  white-space: nowrap;
  user-select: none;
  cursor: default;
  vertical-align: middle;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}
.tier-badge--verified {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  border-color: #0f766e;
}
.tier-badge--proven {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border-color: #1e40af;
}
.tier-badge--trusted {
  background: linear-gradient(135deg, #15803d 0%, #4ade80 100%);
  color: #fff;
  border-color: #15803d;
}
.tier-badge--premier {
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%);
  color: #fff;
  border-color: #92400e;
}
.tier-badge--elite {
  background: linear-gradient(135deg, #4c1d95 0%, #a78bfa 100%);
  color: #fff;
  border-color: #4c1d95;
  box-shadow: 0 1px 6px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Large variant for business dashboard */
.tier-badge--lg {
  font-size: 0.9rem;
  padding: 0.4em 1.1em 0.4em 0.85em;
  gap: 0.4em;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Hover tooltip wrapper */
.tier-badge-wrap {
  position: relative;
  display: inline-block;
}
.tier-badge-tip {
  pointer-events: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 11px 15px;
  min-width: 190px;
  font-size: 0.78rem;
  line-height: 1.6;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 300;
  white-space: nowrap;
}
.tier-badge-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #0f172a;
}
.tier-badge-wrap:hover .tier-badge-tip { opacity: 1; }

.tier-badge-tip__row {
  display: flex;
  align-items: center;
  gap: 0.45em;
}
.tier-badge-tip__label { color: #94a3b8; }

/* Achievement card on business dashboard */
.tier-achievement {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  margin-bottom: var(--space-6);
}
.tier-achievement--verified  { background: linear-gradient(135deg, rgba(15,118,110,0.08) 0%, rgba(20,184,166,0.05) 100%); border-color: rgba(15,118,110,0.25); }
.tier-achievement--proven    { background: linear-gradient(135deg, rgba(30,64,175,0.08) 0%, rgba(59,130,246,0.05) 100%); border-color: rgba(30,64,175,0.25); }
.tier-achievement--trusted   { background: linear-gradient(135deg, rgba(21,128,61,0.08) 0%, rgba(74,222,128,0.05) 100%); border-color: rgba(21,128,61,0.25); }
.tier-achievement--premier   { background: linear-gradient(135deg, rgba(146,64,14,0.08) 0%, rgba(245,158,11,0.05) 100%); border-color: rgba(146,64,14,0.25); }
.tier-achievement--elite     { background: linear-gradient(135deg, rgba(76,29,149,0.10) 0%, rgba(167,139,250,0.06) 100%); border-color: rgba(124,58,237,0.3); }

.tier-achievement__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tier-achievement__icon svg { width: 36px; height: 36px; }

.tier-achievement--verified  .tier-achievement__icon { color: #0d9488; }
.tier-achievement--proven    .tier-achievement__icon { color: #3b82f6; }
.tier-achievement--trusted   .tier-achievement__icon { color: #22c55e; }
.tier-achievement--premier   .tier-achievement__icon { color: #f59e0b; }
.tier-achievement--elite     .tier-achievement__icon { color: #a78bfa; }

.tier-achievement__body { flex: 1; }
.tier-achievement__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 2px; }
.tier-achievement__name  { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.tier-achievement__stats { display: flex; gap: var(--space-5); margin-top: var(--space-2); flex-wrap: wrap; }
.tier-achievement__stat  { font-size: 0.78rem; color: var(--color-text-muted); }
.tier-achievement__stat strong { color: var(--color-text); font-weight: 700; }

/* ------------------------------------------------------------
   15. FORM ROW
   ------------------------------------------------------------ */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

/* ------------------------------------------------------------
   16. DATA TABLE
   ------------------------------------------------------------ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tbody tr:hover {
  background-color: var(--color-bg);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   17. FILTER CHIPS (package list)
   ------------------------------------------------------------ */
.package-filters {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip:hover {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  border-color: var(--color-primary-300);
  text-decoration: none;
}

.filter-chip--active {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  border-color: var(--color-primary-300);
  font-weight: 600;
}

/* ------------------------------------------------------------
   18. SECTION ANCHOR NAV (package form)
   ------------------------------------------------------------ */
.section-anchor-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  position: sticky;
  top: 60px;
  z-index: 50;
}

.anchor-nav-link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.anchor-nav-link:hover {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  text-decoration: none;
}

/* ------------------------------------------------------------
   19. PACKAGE FORM TWO-COLUMN LAYOUT
   ------------------------------------------------------------ */
.pkg-form-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-6);
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
}

.pkg-create-layout {
  max-width: 980px;
  margin: 0 auto;
}

.pkg-edit-title {
  flex: 1;
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  padding: 0 var(--space-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg-sidebar {
  position: sticky;
  top: var(--space-4);
  margin-top: calc(var(--space-2) * 2 + var(--text-sm) * 1.5 + var(--space-4) + var(--space-6) + 1px);
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.form-row--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.form-row--location {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.incl-excl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.req-checklist__section-head {
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-1);
  border-top: 1px solid var(--color-border);
}

.req-checklist__section-head:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

@media (max-width: 900px) {
  .pkg-form-layout {
    grid-template-columns: 1fr;
  }
  .pkg-sidebar {
    position: static;
    order: -1;
  }
  .incl-excl-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row--2,
  .form-row--3,
  .form-row--location {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   19. PHOTO GRID & TILES (package edit)
   ------------------------------------------------------------ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.photo-tile {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg);
  cursor: grab;
  transition: border-color 0.15s;
}

.photo-tile:active {
  cursor: grabbing;
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-tile__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.photo-tile-hero {
  border-color: var(--color-primary-500);
}

.photo-tile-hero::before {
  content: 'COVER';
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--color-primary-600);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
}

.photo-tile-hero .photo-hero-btn {
  color: var(--color-primary-700);
  font-weight: 600;
}

.photo-tile--dragging {
  opacity: 0.5;
  border-color: var(--color-primary-300);
}

.photo-hero-btn {
  flex: 1;
  text-align: left;
}

/* ------------------------------------------------------------
   20. DROPZONE (photo upload)
   ------------------------------------------------------------ */
.dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.dropzone p {
  margin: 0;
}

.dropzone--active {
  border-color: var(--color-primary-500);
  background-color: var(--color-primary-100);
}

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}
.upload-progress-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-primary-200);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: upload-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: var(--space-2);
}

.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

.upload-overlay__card {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-8) var(--space-10);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  min-width: 240px;
}

.upload-overlay__ring {
  width: 52px;
  height: 52px;
  border: 4px solid var(--color-primary-100);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: upload-spin 0.75s linear infinite;
  margin: 0 auto var(--space-5);
}

.upload-overlay__title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.upload-overlay__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Submission checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.checklist-item::before {
  content: '○';
  color: var(--color-border);
  font-size: var(--text-base);
  line-height: 1;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.checklist-done {
  color: var(--color-text);
}

.checklist-done::before {
  content: '✓';
  color: var(--color-success);
}

/* Responsive: desktop sidebar as full-height column */
@media (min-width: 768px) {
  .app-sidebar {
    background-color: var(--color-sidebar-bg);
    border-right: 1px solid var(--color-border);
  }

  .app-sidebar__header {
    margin-top: 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .app-sidebar nav {
    margin-top: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    max-height: none;
    padding: var(--space-3) var(--space-2);
    flex: 1;
    min-height: 0;
  }

  /* Compact variant: tighter spacing so admin nav fits without scrolling */
  .app-sidebar--compact .app-sidebar__header {
    padding: var(--space-3) var(--space-4);
  }

  .app-sidebar--compact nav {
    padding: var(--space-2) var(--space-2);
    overflow-y: hidden;
  }

  .app-sidebar--compact .app-sidebar-link {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 0;
  }

  .app-sidebar--compact .app-sidebar-section-label {
    padding-top: var(--space-2);
    padding-bottom: 2px;
  }
}

/* Responsive: mobile sidebar */
@media (max-width: 767px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    height: 100vh;
    overflow-y: auto;
    background-color: var(--color-sidebar-bg);
    border-right: 1px solid var(--color-border);
  }

  .app-sidebar nav {
    overflow-y: visible;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-sidebar-overlay.is-visible {
    display: block;
  }

  .app-sidebar__close {
    display: flex;
  }

  .app-header__menu {
    display: flex;
  }

  .app-main {
    padding: var(--space-4);
  }
}

/* ------------------------------------------------------------
   21. NOTIFICATION BELL
   ------------------------------------------------------------ */
.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger button */
.notification-bell__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.notification-bell__trigger:hover,
.notification-bell__trigger[aria-expanded="true"] {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  border-color: var(--color-primary-100);
}

/* SVG bell icon */
.notification-bell__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Unread count badge */
.notification-bell__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background-color: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 999px;
  text-align: center;
  pointer-events: none;
}

/* Dropdown panel */
.notification-bell__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: 340px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
}

@media (max-width: 400px) {
  .notification-bell__dropdown {
    width: calc(100vw - var(--space-8));
    right: calc(-1 * var(--space-4));
  }
}

/* Dropdown header */
.notification-bell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.notification-bell__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* Empty state */
.notification-bell__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.notification-bell__empty p {
  margin: 0;
}

/* Notification list */
.notification-bell__list {
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
  max-height: 320px;
  overflow-y: auto;
}

/* Individual notification item */
.notification-bell__item {
  border-bottom: 1px solid var(--color-border);
}

.notification-bell__item:last-child {
  border-bottom: none;
}

.notification-bell__item--unread {
  background-color: rgba(46, 139, 140, 0.04);
}

.notification-bell__item-btn {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.12s;
  font-family: var(--font-sans);
}

.notification-bell__item-btn:hover {
  background-color: var(--color-primary-100);
}

/* Unread indicator dot */
.notification-bell__unread-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background-color: var(--color-primary-500);
}

/* Item text content */
.notification-bell__item-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.notification-bell__item-title {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-bell__item--unread .notification-bell__item-title {
  font-weight: 600;
}

.notification-bell__item-time {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Footer */
.notification-bell__footer {
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.notification-bell__view-all {
  font-size: var(--text-sm);
  color: var(--color-primary-500);
  text-decoration: none;
  font-weight: 500;
}

.notification-bell__view-all:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   22. NOTIFICATION DRAWER
   ------------------------------------------------------------ */
.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.notif-overlay.notif-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.notif-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 100vw;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 601;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.notif-drawer.notif-drawer--open {
  transform: translateX(0);
}

.notif-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  gap: var(--space-3);
}

.notif-drawer__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.notif-drawer__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.notif-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-drawer__loading,
.notif-drawer__error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.notif-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  gap: 0;
}

.notif-drawer__empty p { margin: 0; }

.notif-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-drawer__item {
  border-bottom: 1px solid var(--color-border);
}

.notif-drawer__item:last-child {
  border-bottom: none;
}

.notif-drawer__item--unread {
  background-color: rgba(46, 139, 140, 0.05);
}

.notif-drawer__item-btn {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.12s;
  font-family: var(--font-sans);
}

.notif-drawer__item-btn:hover {
  background-color: var(--color-bg);
}

.notif-drawer__unread-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-500);
}

.notif-drawer__item-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.notif-drawer__item-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.notif-drawer__item--unread .notif-drawer__item-title { font-weight: 700; }

.notif-drawer__item-text {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.notif-drawer__item-time {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.notif-drawer__pagination {
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.notif-drawer__pagination-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  gap: var(--space-3);
}

.notif-drawer__page-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   23. NOTIFICATION LIST (full /notifications page)
   ------------------------------------------------------------ */
.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification-list__item {
  border-bottom: 1px solid var(--color-border);
}

.notification-list__item:last-child {
  border-bottom: none;
}

.notification-list__item--unread {
  background-color: rgba(46, 139, 140, 0.05);
}

.notification-list__form { display: block; }

.notification-list__btn {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.12s;
  font-family: var(--font-sans);
}

.notification-list__btn:hover { background-color: var(--color-bg); }

.notification-list__title {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.notification-list__item--unread .notification-list__title { font-weight: 700; }

.notification-list__body {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.notification-list__time {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ------------------------------------------------------------
   24. ADDON OPTION CARDS (package edit – meals, transport, etc.)
   ------------------------------------------------------------ */
.addon-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}

.addon-option-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, background-color 0.15s;
}

.addon-option-card.is-base {
  border-color: var(--color-primary-500);
  background-color: var(--color-primary-50);
}

.addon-option-card.is-upgrade {
  border-color: var(--color-primary-300);
}

.addon-card__body {
  padding: var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.addon-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.addon-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.addon-tag {
  display: inline-block;
  padding: 1px var(--space-2);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.addon-tag--muted {
  opacity: 0.7;
}

.addon-tag--class {
  background-color: rgba(46, 139, 140, 0.08);
  border-color: rgba(46, 139, 140, 0.2);
  color: var(--color-primary-700);
}

.addon-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.addon-card__transfer-detail {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.addon-card__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-700);
  margin-top: auto;
  padding-top: var(--space-2);
}

.addon-option-card--none .addon-card__price {
  color: var(--color-text-muted);
  font-weight: 400;
}

.addon-card__controls {
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.addon-base-label,
.addon-upgrade-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.addon-base-radio,
.addon-upgrade-check {
  accent-color: var(--color-primary-600);
  cursor: pointer;
  width: 0.875rem;
  height: 0.875rem;
}

/* ── 23. Password toggle ──────────────────────────────────────── */
.password-wrapper {
  position: relative;
}
.password-wrapper .input {
  padding-right: 2.5rem;
}
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.password-toggle:hover {
  color: var(--color-text);
}
.password-toggle .icon-eye-off {
  display: none;
}
.password-wrapper.show-password .icon-eye {
  display: none;
}
.password-wrapper.show-password .icon-eye-off {
  display: block;
}
.password-wrapper input::-ms-reveal {
  display: none;
}

/* ── 24. Admin shell — timeline, modal, detail-grid, filter-bar ───────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  margin-bottom: var(--space-6);
}
.filter-bar .input,
.filter-bar .select {
  flex: 1 1 160px;
  min-width: 120px;
}

.filter-bar__group {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}
.filter-bar__group .select {
  flex: 0 0 auto;
}

/* ── Date-range picker (admin booking filter) ─────────────────── */
.drp { position: relative; flex: 0 0 auto; }

.drp__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.drp__trigger:hover,
.drp__trigger[aria-expanded="true"] {
  border-color: var(--color-primary-500);
}
.drp__trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(46,139,140,0.15);
}
.drp__label--set { color: var(--color-text); font-weight: 500; }

.drp__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-muted);
  color: var(--color-surface);
  border: none;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.drp__clear:hover { background: var(--color-primary-500); }

.drp .hero-search__cal { left: 0; transform: none; }

.drp__hint {
  font-size: var(--text-xs);
  color: var(--color-primary-700);
  text-align: center;
  margin: 0 0 var(--space-3);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drp__day--in-range {
  background: var(--color-primary-100) !important;
  color: var(--color-primary-700) !important;
  border-radius: 0 !important;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
}
.booking-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.booking-detail-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.info-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-3);
  row-gap: var(--space-2);
}
.info-dl dt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
  padding-top: 1px;
}
.info-dl dd {
  margin: 0;
  font-size: var(--text-sm);
}
@media (max-width: 960px) {
  .booking-detail-cols { grid-template-columns: 1fr; }
}
.detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.detail-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  word-break: break-word;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5625rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid var(--color-surface);
  z-index: 1;
}
.timeline-item--done::before {
  background: var(--color-success);
}
.timeline-item--rejected::before {
  background: var(--color-error);
}
.timeline-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Native <dialog> closed state must win over any display:flex from utility classes. */
dialog:not([open]) { display: none; }

dialog.modal {
  margin: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - var(--space-8));
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  color: var(--color-text);
}
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.modal__box {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}
.modal__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

dialog.modal-content {
  margin: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  max-width: 480px;
  width: calc(100% - var(--space-8));
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  color: var(--color-text);
}
dialog.modal-content h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
}
dialog.modal-content::backdrop {
  background: rgba(0, 0, 0, 0.4);
}
.modal-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  justify-content: flex-end;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}
.stat-card__number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary-700);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Tile row used on payouts page */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stat-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.stat-card--link:hover {
  border-color: var(--color-primary-400);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.admin-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.admin-feed-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.admin-feed-item:last-child {
  border-bottom: none;
}
.admin-feed-item__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 11rem;
}
.admin-feed-item__title {
  font-size: var(--text-sm);
  color: var(--color-text);
}
a.admin-feed-item__title {
  color: var(--color-primary-700);
  text-decoration: none;
}
a.admin-feed-item__title:hover {
  text-decoration: underline;
}

/* Payout page section cards */
.payout-section {
  margin-bottom: var(--space-6);
}

/* How payouts work accordion */
.payout-info-panel > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s;
}
.payout-info-panel > summary::-webkit-details-marker { display: none; }
.payout-info-panel > summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.payout-info-panel[open] > summary::after { transform: rotate(45deg); }
.payout-info-panel > summary:hover { background-color: var(--color-primary-100); }
.payout-info-panel__body {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Custom date range fields in statement modal */
.payout-custom-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Payout status badges */
.badge-payout-pending  { background: var(--color-warm-200);    color: var(--color-warm-700); }
.badge-payout-due      { background: var(--color-primary-100); color: var(--color-primary-700); }
.badge-payout-onhold   { background: var(--color-accent-300);  color: var(--color-accent-700); }
.badge-payout-cancelled { background: var(--color-border);     color: var(--color-text-muted); }

/* ------------------------------------------------------------
   25. PUBLIC SHELL (traveler-facing pages)
   ------------------------------------------------------------ */
.public-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.public-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.public-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}

.public-header__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-700);
  text-decoration: none;
  flex-shrink: 0;
}

.public-header__logo:hover {
  color: var(--color-primary-900);
}

/* ── Business layout: logo ─── */
.public-header--business .public-header__logo {
  display: inline-flex;
  align-items: center;
}

/* ── In-navbar search (between logo and controls) ─── */

/* Collapsed trigger pill */
@keyframes nav-search-expand {
  from { opacity: 0.5; transform: scaleX(0.96); transform-origin: center top; }
  to   { opacity: 1;   transform: scaleX(1); }
}

.pub-nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 var(--space-4);
}
.pub-nav-search--hidden {
  display: none;
}

/* Collapsed trigger pill (visible when not --expanded) */
.pub-nav-search--expanded .pub-nav-search__trigger { display: none; }

.pub-nav-search__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  padding: 8px 20px 8px 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  box-shadow: 0 1px 5px rgba(15,61,62,0.07), 0 1px 2px rgba(15,61,62,0.04);
  transition: box-shadow 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-nav-search__trigger:hover {
  border-color: var(--color-primary-300);
  box-shadow: 0 3px 12px rgba(15,61,62,0.13);
  color: var(--color-text);
}

/* Expanded form wrap (hidden when not --expanded) */
.pub-nav-search:not(.pub-nav-search--expanded) .pub-nav-search__form-wrap { display: none; }
.pub-nav-search--expanded .pub-nav-search__form-wrap {
  display: block;
  width: 100%;
  max-width: 400px;
  animation: nav-search-expand 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Compact search bar inside the navbar */
.pub-nav-search__form-wrap .hero-search {
  max-width: none;
  margin: 0;
  animation: none;
}
.pub-nav-search__form-wrap .hero-search__bar {
  border-radius: 999px;
  box-shadow: 0 1px 8px rgba(15,61,62,0.10), 0 1px 2px rgba(15,61,62,0.05);
}
.pub-nav-search__form-wrap .hero-search__slot {
  padding: 8px 10px 8px 16px;
}
.pub-nav-search__form-wrap .hero-search__input {
  font-size: var(--text-sm);
}
.pub-nav-search__form-wrap .hero-search__date-btn {
  padding: 8px 12px;
  min-width: 108px;
  font-size: var(--text-xs);
}
.pub-nav-search__form-wrap .hero-search__date-label {
  font-size: var(--text-xs);
}
.pub-nav-search__form-wrap .hero-search__submit {
  padding: 8px 12px;
  margin: 4px 4px 4px 0;
  border-radius: 999px;
  font-size: var(--text-xs);
}

/* On narrow screens: hide the nav search bar entirely — not enough room alongside logo + controls */
@media (max-width: 640px) {
  .pub-nav-search { display: none; }
}

/* ── Sticky header CTA (Business landing page — shown when hero scrolls out) ── */
.public-header--business .public-header__inner { position: relative; }
.biz-header-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(calc(-50% - 6px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.biz-header-cta--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-50%);
  pointer-events: auto;
}
.biz-header-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary-500);
  color: #fff;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.biz-header-cta__btn:hover { background: var(--color-primary-700); color: #fff; }
@media (max-width: 640px) { .biz-header-cta { display: none; } }


.biz-public-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ══════════════════════════════════════════════════════════════════════════════
   Business Landing (v2) — full cinematic redesign
══════════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ───────────────────────────────────────────────────────────────── */

@keyframes biz2-orb-a {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(90px, -60px) scale(1.15); }
  66%  { transform: translate(-60px, 80px) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes biz2-orb-b {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-110px, 90px) scale(1.12); }
  70%  { transform: translate(60px, -70px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes biz2-orb-c {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(70px, -50px) scale(1.2); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes biz2-word-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes biz2-eyebrow-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes biz2-sub-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes biz2-chevron-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50%       { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}
@keyframes biz2-feat-icon-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes biz2-glow-pulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(20,184,166,0.35); }
  50%       { box-shadow: 0 8px 40px rgba(20,184,166,0.55); }
}

/* ── Scroll reveal ───────────────────────────────────────────────────────────── */

.biz2-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
.biz2-reveal--in {
  opacity: 1;
  transform: none;
}

/* ── Shared atoms ────────────────────────────────────────────────────────────── */

.biz2-page {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.biz2-section {
  padding: 96px var(--space-6);
  background: var(--color-bg);
}

.biz2-section__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.biz2-section__inner--wide {
  max-width: 1160px;
}

.biz2-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-500);
  text-align: center;
  margin: 0 0 var(--space-3);
  display: block;
}
.biz2-eyebrow--left  { text-align: left; }
.biz2-eyebrow--light { color: rgba(20,184,166,0.75); }

.biz2-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary-900);
  text-align: center;
  letter-spacing: -0.015em;
  line-height: 1.13;
  margin-bottom: var(--space-5);
}
[data-theme="dark"] .biz2-section__title { color: var(--color-primary-200); }
.biz2-section__title--light { color: #fff; }
[data-theme="dark"] .biz2-section__title--light { color: #fff; }

.biz2-section__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--space-12);
  line-height: 1.8;
}

/* ── CTA button (shared) ─────────────────────────────────────────────────────── */

.biz2-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-600);
  color: #fff;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  animation: biz2-glow-pulse 3s ease-in-out infinite;
}
.biz2-cta-btn:hover {
  background: var(--color-primary-500);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.biz2-cta-btn svg { transition: transform 0.2s ease; }
.biz2-cta-btn:hover svg { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════════════════════
   Hero
══════════════════════════════════════════════════════════════════════════════ */

.biz2-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a2422;
  overflow: hidden;
  text-align: center;
  z-index: 10;
  isolation: isolate;
}
/* Radial vignette — dot pattern lives in Layer 1 SVG */
.biz2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(0,0,0,0.22) 100%);
}
/* Cursor glow */
.biz2-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--cx, 50%) var(--cy, 30%),
    rgba(46,139,140,0.22),
    transparent 55%
  );
}

/* Aurora orbs */
.biz2-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.biz2-aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.biz2-aurora__orb--a {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(20,184,166,0.38) 0%, transparent 65%);
  top: -220px;
  left: -120px;
  animation: biz2-orb-a 22s ease-in-out infinite;
}
.biz2-aurora__orb--b {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(99,102,241,0.28) 0%, transparent 65%);
  top: -80px;
  right: -80px;
  animation: biz2-orb-b 28s ease-in-out infinite;
}
.biz2-aurora__orb--c {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(14,165,233,0.22) 0%, transparent 65%);
  bottom: 120px;
  left: 35%;
  animation: biz2-orb-c 20s ease-in-out infinite;
}

/* Star field */
.biz2-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.biz2-stars::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow:
    72px 38px 0 rgba(255,255,255,0.65),
    198px 14px 0 rgba(255,255,255,0.45),
    317px 62px 0 rgba(255,255,255,0.55),
    441px 24px 0 rgba(255,255,255,0.4),
    568px 50px 0 rgba(255,255,255,0.6),
    693px 19px 0 rgba(255,255,255,0.5),
    812px 44px 0 rgba(255,255,255,0.38),
    937px 31px 0 rgba(255,255,255,0.55),
    1058px 57px 0 rgba(255,255,255,0.42),
    1183px 22px 0 rgba(255,255,255,0.6),
    1317px 46px 0 rgba(255,255,255,0.45),
    1402px 18px 0 rgba(255,255,255,0.5),
    130px 92px 0 rgba(255,255,255,0.28),
    275px 108px 0 rgba(255,255,255,0.35),
    420px 85px 0 rgba(255,255,255,0.25),
    565px 112px 0 rgba(255,255,255,0.32),
    710px 95px 0 rgba(255,255,255,0.28),
    855px 104px 0 rgba(255,255,255,0.22),
    1000px 89px 0 rgba(255,255,255,0.3),
    1145px 107px 0 rgba(255,255,255,0.25),
    1290px 93px 0 rgba(255,255,255,0.32),
    54px 155px 0 rgba(255,255,255,0.18),
    218px 168px 0 rgba(255,255,255,0.22),
    382px 145px 0 rgba(255,255,255,0.16),
    546px 172px 0 rgba(255,255,255,0.2),
    710px 152px 0 rgba(255,255,255,0.18),
    874px 165px 0 rgba(255,255,255,0.15),
    1038px 148px 0 rgba(255,255,255,0.2),
    1202px 162px 0 rgba(255,255,255,0.17),
    1366px 155px 0 rgba(255,255,255,0.2);
}

/* Mountain silhouette layers */
.biz2-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.biz2-mountains svg {
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
}
.biz2-mountains__far  { fill: rgba(255,255,255,0.07); height: 140px; }
.biz2-mountains__mid  { fill: rgba(255,255,255,0.12); height: 180px; }
.biz2-mountains__near { fill: rgba(255,255,255,0.19); height: 200px; }

/* Hero content */
.biz2-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding: 120px var(--space-6) 240px;
  margin: 0 auto;
}

/* Nepal cultural icons — revealed by cursor proximity via JS */
.biz2-hero__icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.biz2-hero__icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.86) translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  color: rgba(140,215,255,0.82);
  display: block;
}
.biz2-hero__icon svg { display: block; }

.biz2-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5dcaa5;
  border: 1px solid #1d9e75;
  background: rgba(13,42,42,0.4);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: var(--space-6);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  animation: biz2-eyebrow-in 0.6s 0.15s both;
}

.biz2-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}

.biz2-word {
  display: inline-block;
  opacity: 0;
  animation: biz2-word-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.biz2-word        { animation-delay: 0.35s; }
.biz2-word--d2    { animation-delay: 0.55s; }
.biz2-word--d3    { animation-delay: 0.75s; }
.biz2-word--accent { color: rgba(110,231,183,1); }

.biz2-hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  line-height: 1.8;
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  margin: 0 auto var(--space-10);
  animation: biz2-sub-in 0.8s 0.9s both;
}

.biz2-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  animation: biz2-sub-in 0.8s 1.1s both;
}

.biz2-hero__scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.biz2-hero__scroll-cue:hover { color: rgba(255,255,255,0.9); text-decoration: none; }

.biz2-scroll-chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: biz2-chevron-bounce 1.8s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Peak Reveal — layers 1-3 (bg, aurora, mountain), alt strip, alt cursor
══════════════════════════════════════════════════════════════════════════════ */

/* Layer 1 — static background SVG */
.biz2-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Layer 2 — aurora glow */
.biz2-peak-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: radial-gradient(ellipse 700px 360px at 50% 50%, rgba(93,202,165,0.18), transparent);
}
.biz2-peak-aurora--visible { opacity: 1; }

/* Layer 3 — mountain SVG */
#biz2-peak-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
#biz2-peak-svg.biz2-peak-svg--visible { opacity: 0.85; }

/* Layer 5 — right altitude strip */
.biz2-alt-indicator {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 72px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.biz2-alt-indicator--visible { opacity: 1; }

.biz2-alt-strip {
  position: absolute;
  right: 20px;
  top: 40px; bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(159,225,203,0.3), rgba(159,225,203,0.06));
}

.biz2-alt-label {
  position: absolute;
  right: 14px;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #5dcaa5;
  opacity: 0.45;
  white-space: nowrap;
  line-height: 1;
}
.biz2-alt-label--top { top: 18px; }
.biz2-alt-label--bot { bottom: 18px; }

.biz2-alt-tick {
  position: absolute;
  right: 22px;
  width: 12px;
  height: 1px;
  background: #5dcaa5;
  opacity: 0.4;
  transform: translateY(-50%);
  transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}
.biz2-alt-tick--hit {
  width: 18px;
  background: #9fe1cb;
  opacity: 1;
}

/* Layer 6 — altitude cursor line + readout */
.biz2-alt-cursor {
  position: absolute;
  left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.biz2-alt-cursor--on { opacity: 0.9; }

.biz2-alt-cursor-line {
  position: absolute;
  right: 0;
  width: 48px;
  height: 1px;
  background: #9fe1cb;
  box-shadow: 0 0 10px #1d9e75;
}
.biz2-alt-cursor-readout {
  position: absolute;
  right: 36px;
  top: -14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #9fe1cb;
  white-space: nowrap;
}

/* headline/subhead pop over mountain */
.biz2-hero__headline { text-shadow: 0 2px 30px rgba(8,29,29,0.6); }
.biz2-hero__sub      { text-shadow: 0 1px 12px rgba(8,29,29,0.6); }

/* glowing dot injected into pill on peak active */
.biz2-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9fe1cb;
  box-shadow: 0 0 8px 2px #9fe1cb;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Trust bar
══════════════════════════════════════════════════════════════════════════════ */

.biz2-trust {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.biz2-trust__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.biz2-trust__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-8);
  text-align: center;
}

.biz2-trust__divider {
  width: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
  flex-shrink: 0;
}

.biz2-trust__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}
[data-theme="dark"] .biz2-trust__icon {
  background: color-mix(in srgb, var(--color-primary-900) 60%, var(--color-bg));
  color: var(--color-primary-300);
}

.biz2-trust__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-800);
  line-height: 1.2;
}
[data-theme="dark"] .biz2-trust__value { color: var(--color-primary-200); }

.biz2-trust__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 140px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════════
   How it works — Steps
══════════════════════════════════════════════════════════════════════════════ */

.biz2-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: 3.5rem;
  position: relative;
}

.biz2-steps__track {
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  pointer-events: none;
}

.biz2-steps__line {
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.biz2-steps__line-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-400));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.biz2-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.biz2-step__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary-600);
  background: var(--color-primary-100);
  border: 2px solid var(--color-primary-200);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--color-bg);
}
[data-theme="dark"] .biz2-step__num {
  background: color-mix(in srgb, var(--color-primary-900) 60%, var(--color-bg));
  border-color: var(--color-primary-700);
  color: var(--color-primary-300);
  box-shadow: 0 0 0 6px var(--color-bg);
}

.biz2-step__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  flex: 1;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.biz2-step__card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-color: var(--color-primary-200);
  transform: translateY(-3px);
}

.biz2-step__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
[data-theme="dark"] .biz2-step__icon-wrap {
  background: color-mix(in srgb, var(--color-primary-900) 55%, var(--color-bg));
  color: var(--color-primary-300);
}

.biz2-step__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.biz2-step__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Platform features — dark section
══════════════════════════════════════════════════════════════════════════════ */

.biz2-features {
  background: color-mix(in srgb, var(--color-primary-100) 30%, var(--color-surface));
  padding: 100px var(--space-6);
}
[data-theme="dark"] .biz2-features {
  background: #040d12;
}

.biz2-features__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}
[data-theme="dark"] .biz2-features__lead { color: rgba(255,255,255,0.5); }

.biz2-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.biz2-feat-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
[data-theme="dark"] .biz2-feat-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
}
.biz2-feat-card:hover {
  border-color: var(--color-primary-300);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(15,61,62,0.10), inset 0 -3px 0 var(--color-primary-500);
}
[data-theme="dark"] .biz2-feat-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(20,184,166,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 -3px 0 rgba(20,184,166,0.7);
}

.biz2-feat-card__top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
}
.biz2-feat-card:hover .biz2-feat-card__top-bar {
  transform: scaleX(1);
}

.biz2-feat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  transition: background 0.2s;
}
[data-theme="dark"] .biz2-feat-card__icon {
  background: rgba(20,184,166,0.12);
  color: rgba(110,231,183,0.9);
}
.biz2-feat-card:hover .biz2-feat-card__icon {
  background: color-mix(in srgb, var(--color-primary-100) 70%, var(--color-primary-300));
  animation: biz2-feat-icon-pop 0.4s ease;
}
[data-theme="dark"] .biz2-feat-card:hover .biz2-feat-card__icon {
  background: rgba(20,184,166,0.2);
}

.biz2-feat-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary-900);
  margin-bottom: var(--space-2);
}
[data-theme="dark"] .biz2-feat-card__name { color: rgba(255,255,255,0.92); }

.biz2-feat-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}
[data-theme="dark"] .biz2-feat-card__desc { color: rgba(255,255,255,0.45); }

/* ══════════════════════════════════════════════════════════════════════════════
   Mission quote
══════════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════════════
   Bottom CTA
══════════════════════════════════════════════════════════════════════════════ */

.biz2-cta {
  position: relative;
  background: var(--color-primary-900);
  padding: 100px var(--space-6);
  text-align: center;
  overflow: hidden;
}
.biz2-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(46,139,140,0.20),
    transparent 55%
  );
}

.biz2-cta__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}
.biz2-cta__mountains svg {
  width: 100%;
  height: 100%;
  display: block;
}

.biz2-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.biz2-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.biz2-cta__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════════════════════════════════════════════════
   Pinned process / how-it-works
══════════════════════════════════════════════════════════════════════════════ */

.biz2-process {
  height: 300vh;
  background: #081c1a;
}

.biz2-process__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #081c1a;
  transition: background 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step backgrounds — visibly tinted, not pitch-black */
.biz2-process__sticky[data-step="0"] { background: #0d2924; }
.biz2-process__sticky[data-step="1"] { background: #0b1c35; }
.biz2-process__sticky[data-step="2"] { background: #271500; }

/* Per-step progress bar + nav dot */
.biz2-process__sticky[data-step="0"] .biz2-process__prog-fill { background: linear-gradient(90deg,#24b88a,#6dd8b2); }
.biz2-process__sticky[data-step="1"] .biz2-process__prog-fill { background: linear-gradient(90deg,#2672d8,#7ab8ff); }
.biz2-process__sticky[data-step="2"] .biz2-process__prog-fill { background: linear-gradient(90deg,#c8900a,#ffc842); }
.biz2-process__sticky[data-step="0"] .biz2-proc-dot--active { background: #6dd8b2; }
.biz2-process__sticky[data-step="1"] .biz2-proc-dot--active { background: #7ab8ff; }
.biz2-process__sticky[data-step="2"] .biz2-proc-dot--active { background: #ffc842; }

/* Section heading — pinned at top of sticky viewport */
.biz2-process__heading {
  position: absolute;
  top: clamp(28px, 4.5vh, 52px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}
.biz2-process__heading .biz2-eyebrow {
  color: rgba(255,255,255,0.40);
  margin-bottom: var(--space-2);
}
.biz2-process__htitle {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: rgba(245,251,247,0.82);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

/* Per-panel accent — tied to panel so colours survive cross-fade transitions */
[data-proc-panel="0"] .biz2-process__right    { border-left-color: rgba(109,216,178,0.20); }
[data-proc-panel="1"] .biz2-process__right    { border-left-color: rgba(122,184,255,0.20); }
[data-proc-panel="2"] .biz2-process__right    { border-left-color: rgba(255,200,66,0.20);  }
[data-proc-panel="0"] .biz2-process__right .biz2-eyebrow { color: #6dd8b2; opacity: 1; }
[data-proc-panel="1"] .biz2-process__right .biz2-eyebrow { color: #7ab8ff; opacity: 1; }
[data-proc-panel="2"] .biz2-process__right .biz2-eyebrow { color: #ffc842; opacity: 1; }
[data-proc-panel="0"] .biz2-process__left-pills li { color:#6dd8b2; background:rgba(40,190,145,0.16); border-color:rgba(40,190,145,0.36); }
[data-proc-panel="1"] .biz2-process__left-pills li { color:#7ab8ff; background:rgba(50,130,248,0.16); border-color:rgba(50,130,248,0.36); }
[data-proc-panel="2"] .biz2-process__left-pills li { color:#ffc842; background:rgba(220,160,15,0.16); border-color:rgba(220,160,15,0.36); }

.biz2-process__prog-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(93,202,165,0.12);
  z-index: 10;
}
.biz2-process__prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d9e75, #5dcaa5);
  transition: width 0.07s linear;
  border-radius: 0 1px 1px 0;
}

.biz2-process__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-10);
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.biz2-process__panel--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.biz2-process__panel--above {
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
}

.biz2-process__panel-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.biz2-process__left {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-right: var(--space-8);
}
.biz2-process__num-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.biz2-process__big-num {
  font-family: var(--font-display);
  font-size: clamp(9rem, 20vw, 17rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(93,202,165,0.22);
  user-select: none;
}
.biz2-process__step-of {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(93,202,165,0.45);
  margin-top: var(--space-4);
  text-align: right;
}
.biz2-process__icon {
  color: rgba(93,202,165,0.30);
  margin-top: var(--space-6);
}

.biz2-process__right {
  border-left: 1px solid rgba(93,202,165,0.15);
  padding-left: var(--space-10);
  padding-right: var(--space-4);
}
.biz2-process__right .biz2-eyebrow {
  color: #5dcaa5;
  opacity: 0.7;
}

.biz2-process__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  color: rgba(245,251,247,0.95);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
}

.biz2-process__body {
  font-size: var(--text-base);
  color: rgba(245,251,247,0.70);
  line-height: 1.85;
  max-width: 44ch;
  margin-bottom: var(--space-8);
}

.biz2-process__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.biz2-process__chips li {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(29,158,117,0.12);
  color: #5dcaa5;
  border: 1px solid rgba(29,158,117,0.28);
  letter-spacing: 0.01em;
}

.biz2-process__nav {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 10;
}
.biz2-proc-dot {
  height: 3px;
  width: 24px;
  border-radius: 2px;
  border: none;
  background: rgba(93,202,165,0.20);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.biz2-proc-dot--active {
  background: #5dcaa5;
  width: 40px;
}

/* ── Vortex canvas ─────────────────────────────────────────────────── */
.biz2-vortex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  /* fade applied via canvas destination-out gradient — no CSS mask needed */
}

/* ── Process left — pills overlay ──────────────────────────────────── */
.biz2-process__left {
  position: relative;
  align-self: stretch; /* fill grid row height so pills container has room */
}
.biz2-process__num-wrap {
  transition: opacity 0.38s ease, transform 0.38s ease;
  will-change: opacity, transform;
}
.biz2-process__num-wrap--fade {
  opacity: 0;
  transform: scale(0.87) translateY(12px);
  pointer-events: none;
}
.biz2-process__left-pills {
  position: absolute;
  inset: 0;
  padding-right: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 13px;
  list-style: none;
  margin: 0;
  pointer-events: none;
}
.biz2-process__left-pills li {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 999px;
  background: rgba(29,158,117,0.13);
  color: #5dcaa5;
  border: 1px solid rgba(29,158,117,0.30);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0);
}
@keyframes biz2-pill-emerge {
  0%   { opacity:0;  transform:scale(0.05); filter:brightness(5); }
  18%  { opacity:1;  transform:scale(0.09); filter:brightness(6); }
  56%  { transform:scale(1.07); filter:brightness(1.6); }
  76%  { transform:scale(0.96); filter:brightness(1.1); }
  100% { opacity:1;  transform:scale(1);    filter:brightness(1); }
}
.biz2-process__left-pills li.biz2-pill--in                 { animation: biz2-pill-emerge 0.70s cubic-bezier(0.22,1,0.36,1) forwards; }
.biz2-process__left-pills li:nth-child(1).biz2-pill--in    { animation-delay:   0ms; }
.biz2-process__left-pills li:nth-child(2).biz2-pill--in    { animation-delay: 210ms; }
.biz2-process__left-pills li:nth-child(3).biz2-pill--in    { animation-delay: 420ms; }

@media (max-width: 960px) {
  .biz2-process__panel-grid { grid-template-columns: 1fr 1.6fr; }
  .biz2-process__big-num    { font-size: clamp(7rem, 18vw, 13rem); }
  .biz2-process__right      { padding-left: var(--space-8); }
  .biz2-process__icon       { display: none; }
}

@media (max-width: 780px) {
  .biz2-process             { height: auto; }
  .biz2-process__sticky     { position: static; display: block; height: auto; overflow: visible; padding: 56px var(--space-5) 0; }
  .biz2-vortex-canvas       { display: none; }
  .biz2-process__prog-track,
  .biz2-process__nav        { display: none; }
  .biz2-process__panel      { position: static; opacity: 1 !important; pointer-events: auto !important; transform: none !important; padding: var(--space-10) 0; border-bottom: 1px solid rgba(93,202,165,0.10); }
  .biz2-process__panel-grid { display: block; }
  .biz2-process__left       { display: none; }
  .biz2-process__right      { border-left: 3px solid rgba(29,158,117,0.40); padding-left: var(--space-6); padding-right: 0; border-top: none; }
  .biz2-process__heading    { position: relative; top: auto; left: auto; transform: none; white-space: normal; padding: var(--space-4) 0 var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .biz2-process { height: auto; }
  .biz2-process__sticky { position: static; height: auto; overflow: visible; }
  .biz2-process__panel { position: static; opacity: 1 !important; pointer-events: auto !important; transform: none !important; }
  .biz2-process__prog-track, .biz2-process__nav { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Responsive
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .biz2-feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .biz2-section        { padding: 72px var(--space-6); }
  .biz2-features       { padding: 72px var(--space-6); }
  .biz2-cta            { padding: 72px var(--space-6); }
  .biz2-section__lead  { margin-bottom: var(--space-8); }
  /* Trust bar: hide dividers so wrapping stats don't look broken */
  .biz2-trust__divider { display: none; }
  .biz2-trust__stat    { padding: var(--space-5) var(--space-6); }
}

@media (max-width: 640px) {
  .biz2-section        { padding: 56px var(--space-5); }
  .biz2-features       { padding: 56px var(--space-5); }
  .biz2-why            { padding: 56px var(--space-5); }
  .biz2-cta            { padding: 64px var(--space-5); }
  .biz2-hero__inner    { padding: 100px var(--space-5) 200px; }
  /* Scale down the large headline and process title for phone viewports */
  .biz2-hero__headline  { font-size: clamp(1.875rem, 8.5vw, 2.5rem); }
  .biz2-process__title  { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .biz2-feat-grid      { grid-template-columns: 1fr; }
  .biz2-trust__inner   { flex-direction: column; }
  .biz2-trust__stat {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-5) var(--space-6);
  }
  .biz2-trust__stat:last-child { border-bottom: none; }
  .biz2-trust__divider { display: none; }
  .biz2-hero__actions  { flex-direction: column; gap: var(--space-4); }
  .biz2-section__title { font-size: clamp(1.625rem, 5vw, 2.25rem); }
  .biz2-cta__title     { font-size: clamp(1.875rem, 7vw, 3rem); }
  .biz2-feat-grid      { gap: var(--space-3); }
}


.public-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  padding-left: var(--space-6);
}

.public-nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.public-nav__link:hover {
  color: var(--color-primary-700);
  text-decoration: none;
}

.public-header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  margin-left: auto;
}

/* Account menu (traveler auth slot) */
.account-menu {
  position: relative;
}

.account-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.account-icon-btn {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  background-color: var(--color-primary-100);
  border-color: var(--color-primary-300);
}


/* ── Public footer ────────────────────────────────────────────────────────── */
.public-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-6) var(--space-8);
  margin-top: auto;
}

.public-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 4-col grid: brand col wider, 3 nav cols share remaining space */
.public-footer-cols {
  display: grid;
  grid-template-columns: minmax(180px, 230px) repeat(3, 1fr);
  gap: var(--space-6) var(--space-10);
  margin-bottom: var(--space-8);
}

/* 3-col variant used in business footer */
.public-footer-cols--biz {
  grid-template-columns: minmax(180px, 230px) repeat(2, 1fr);
}

/* Brand column */
.public-footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-900);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-3);
}
[data-theme="dark"] .public-footer__brand-name { color: var(--color-primary-200); }

.public-footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Nav columns */
.public-footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.public-footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color 0.15s;
}

.public-footer__link:hover {
  color: var(--color-primary-700);
  text-decoration: none;
}

/* Trust strip */
.public-footer__trust {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.public-footer__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 190px;
}

.public-footer__trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .public-footer__trust-icon {
  background: rgba(20,184,166,0.12);
  color: rgba(110,231,183,0.85);
}

.public-footer__trust-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: block;
}

.public-footer__trust-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  line-height: 1.4;
}

/* Bottom bar */
.public-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.public-footer__bottom-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Social links */
.public-footer__social {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.public-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.public-footer__social-link:hover {
  color: var(--color-primary-700);
  border-color: var(--color-primary-400);
}

/* Minimal footer (authenticated) */
.public-footer__legal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-bottom: var(--space-4);
}

.public-footer__legal-strip--centered {
  justify-content: center;
}

.public-footer__legal-strip--no-bottom {
  margin-bottom: 0;
}

.public-footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.public-footer__legal-strip .public-footer__link {
  display: inline;
  margin-bottom: 0;
}

/* Search hero (home page) */
.public-search-hero {
  padding: calc(var(--space-12) * 1.6) var(--space-6) calc(var(--space-12) * 1.4);
  text-align: center;
  background-color: var(--color-primary-900);
  border-bottom: none;
  position: relative;
  z-index: 10;
}

.public-search-hero--compact {
  padding: var(--space-5) var(--space-6);
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15, 61, 62, 0.08);
}

.public-search-hero--has-strip {
  padding-bottom: var(--space-8);
}

.public-search-hero--compact .search-bar {
  margin-top: 0;
}

.search-bar {
  display: flex;
  max-width: 600px;
  margin: var(--space-6) auto 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.search-bar-input {
  flex: 1;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
  outline: none;
}

.search-bar-input::placeholder {
  color: var(--color-text-muted);
}

.search-bar-button {
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary-500);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.search-bar-button:hover {
  background-color: var(--color-primary-700);
}

/* ── Hero search (home page) — keyword + date + submit ─────────────────── */
.hero-search {
  position: relative;
  max-width: 640px;
  margin: var(--space-6) auto 0;
  animation: idx-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.hero-search__bar {
  display: flex;
  align-items: stretch;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 6px 28px rgba(15,61,62,0.13), 0 1px 4px rgba(15,61,62,0.06);
  overflow: hidden;
}

.hero-search__slot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5);
  flex: 1;
  min-width: 0;
}

.hero-search__slot-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.hero-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.hero-search__input::placeholder { color: var(--color-text-muted); }

.hero-search__divider {
  width: 1px;
  background: var(--color-border);
  flex-shrink: 0;
  margin: var(--space-3) 0;
  align-self: stretch;
}

.hero-search__date-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  min-width: 148px;
  font-family: var(--font-sans);
  transition: background 0.12s;
}

.hero-search__date-btn:hover { background: var(--color-primary-100); }

.hero-search__date-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero-search__date-label--set {
  color: var(--color-text);
  font-weight: 500;
}

.hero-search__submit {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-5);
  margin: 4px 4px 4px 0;
  background: var(--color-primary-500);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.hero-search__submit:hover:not(:disabled) { background: var(--color-primary-700); }

.hero-search__submit:disabled {
  background: var(--color-text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Calendar popover ───────────────────────────────────────────────────── */
.hero-search__cal {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: 300px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
}

.hero-search__cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.hero-search__cal-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.hero-search__cal-nav-btn:hover:not(:disabled) {
  background: var(--color-primary-100);
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}

.hero-search__cal-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.hero-search__cal-month {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.hero-search__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.hero-search__cal-dh {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  padding: 2px 0 4px;
}

.hero-search__cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.1s, color 0.1s;
  font-weight: 400;
  position: relative;
}

.hero-search__cal-day:hover:not(:disabled):not([data-empty]) {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.hero-search__cal-day--today {
  color: var(--color-primary-700);
  font-weight: 700;
}

.hero-search__cal-day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary-500);
}

.hero-search__cal-day--selected {
  background: var(--color-primary-500) !important;
  color: #fff !important;
  font-weight: 700;
}

.hero-search__cal-day--selected::after { background: rgba(255,255,255,0.65) !important; }

.hero-search__cal-day:disabled {
  color: var(--color-text-muted);
  opacity: 0.38;
  cursor: not-allowed;
  background: transparent !important;
}

.hero-search__cal-day[data-empty] {
  cursor: default;
  background: transparent !important;
  pointer-events: none;
}


/* OTP modal (within public layout) */
.otp-modal {
  margin: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 400px;
  width: calc(100% - var(--space-8));
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
  color: var(--color-text);
}

.otp-modal h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-primary-900);
}

.otp-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.otp-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.otp-modal__close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.otp-modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.otp-modal__error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-bottom: var(--space-2);
  min-height: 1.25rem;
}

.otp-modal__error:empty {
  min-height: 0;
  margin-bottom: 0;
}

.otp-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

.otp-modal__terms {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.otp-modal__terms a {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.otp-code-input {
  letter-spacing: 0.25em;
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 600;
}

/* Account dropdown */
.account-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 176px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 200;
}

.account-dropdown__nav {
  display: flex;
  flex-direction: column;
}

.account-dropdown__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color 0.12s;
}

.account-dropdown__link:hover {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
  text-decoration: none;
}

.account-dropdown__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2) 0;
}

.account-dropdown__theme-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.account-dropdown__signout {
  font-size: var(--text-sm);
  justify-content: flex-start;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

/* Public main content area */
.public-main {
  flex: 1;
}

.public-main--flush {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 72px);
}

.traveler-conversations-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .public-nav {
    display: none;
  }

  .public-header__inner {
    padding: 0 var(--space-4);
  }

}

@media (max-width: 768px) {
  .public-footer-cols,
  .public-footer-cols--biz {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .public-footer-cols,
  .public-footer-cols--biz {
    grid-template-columns: 1fr;
  }

  .public-footer__trust-item {
    min-width: 100%;
  }

  .public-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ── 26. Public home page ──────────────────────────────────────────────── */

/* Scroll-reveal for index page */
.idx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.idx-reveal--in {
  opacity: 1;
  transform: none;
}

.home-section {
  padding: var(--space-12) var(--space-6) calc(var(--space-12) * 1.2);
  max-width: 1200px;
  margin: 0 auto;
}

.home-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.home-section__title-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}



.home-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-900);
  position: relative;
}
[data-theme="dark"] .home-section__title { color: var(--color-primary-200); }

.home-section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--color-primary-500);
  border-radius: 2px;
}

.home-section__explore-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  flex-shrink: 0;
  margin-top: var(--space-1);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.home-section__explore-link:hover {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #fff;
  transform: translateY(-1px);
}

.home-section__explore-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.home-section__explore-link:hover svg {
  transform: translateX(3px);
}

.home-section__title-link {
  text-decoration: none;
  color: inherit;
}
.home-section__title-link:hover .home-section__title {
  opacity: 0.75;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.feat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 4px rgba(15,61,62,0.07), 0 4px 16px rgba(15,61,62,0.06);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.feat-card:hover {
  box-shadow: 0 8px 32px rgba(15,61,62,0.14), 0 2px 8px rgba(15,61,62,0.08), inset 0 -3px 0 var(--color-primary-500);
  transform: translateY(-6px);
}

.feat-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feat-card__img {
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.feat-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,20,0.58) 0%, rgba(10,25,20,0.08) 42%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

.feat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.feat-card:hover .feat-card__img img {
  transform: scale(1.07);
}

.feat-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.feat-card__body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.feat-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-card__business {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feat-card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feat-card__price {
  font-weight: 700;
  color: var(--color-primary-700);
  font-size: 0.85rem;
  white-space: nowrap;
  background: var(--color-primary-100);
  padding: 2px 9px;
  border-radius: 100px;
}



.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
}

.trust-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: var(--space-12);
}

.trust-stat {
  text-align: center;
}

.trust-stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1;
}

.trust-stat__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}


@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-section-track .feat-card {
    flex: 0 0 calc((100% - var(--space-4)) / 2.3);
  }
}

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip__inner {
    gap: var(--space-8);
  }

  .home-section {
    padding: var(--space-8) var(--space-4);
  }

  .home-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Mobile carousel: 1.2 cards — partial card is the swipe affordance */
  .home-section-track .feat-card {
    flex: 0 0 calc(100% / 1.2);
  }

  /* Hide prev/next arrows on touch screens — swipe is the interaction */
  .home-section .rec-strip-btn {
    display: none;
  }
}



/* ── 27. Package listing page ─────────────────────────────────────────────── */

.listing-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  align-items: start;
}

.listing-main { min-width: 0; }

/* ── Continue Exploring shelf ────────────────────────────────────── */
.continue-exploring { margin-bottom: var(--space-8); }
.continue-exploring__heading { font-size: var(--text-xl); font-weight: 700; color: var(--color-text); margin: 0 0 var(--space-4); }
.continue-exploring__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 860px) { .continue-exploring__grid { grid-template-columns: repeat(2, 1fr); } }

.listing-filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: sticky;
  top: calc(72px + 94px + var(--space-4));
}

.listing-filters__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.filter-section {
  margin-bottom: var(--space-5);
}

.filter-section + .filter-section {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.filter-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ── Tag filter rows (Difficulty / Suitability) ─── */
.listing-filters .checkbox-group {
  flex-direction: column;
  gap: 2px;
}
.listing-filters .checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 6px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.listing-filters .checkbox-label:hover {
  background: var(--color-primary-100);
}
.listing-filters .checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.listing-filters .checkbox-label input[type="checkbox"]:checked {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6.5 5,9.5 10,3' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* Dual range slider — floating bubble labels */
.range-slider-wrap {
  position: relative;
  padding-top: 32px;
}

.range-bubble {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--color-primary-500);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.45;
  box-shadow: 0 1px 5px rgba(46, 139, 140, 0.4);
  transition: left 0.04s linear;
}

.range-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary-500);
  border-bottom: 0;
}

.range-slider {
  position: relative;
  height: 32px;
}

.range-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--color-border);
  border-radius: 3px;
  transform: translateY(-50%);
  pointer-events: none;
}

.range-slider__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to right, var(--color-primary-300), var(--color-primary-500));
  border-radius: 3px;
}

.range-slider__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
}

.range-slider__thumb::-webkit-slider-runnable-track {
  background: transparent;
}

.range-slider__thumb::-moz-range-track {
  background: transparent;
  border: none;
}

.range-slider__thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2.5px solid var(--color-primary-500);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: all;
  cursor: pointer;
  position: relative;
}

.range-slider__thumb::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2.5px solid var(--color-primary-500);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: all;
  cursor: pointer;
}

.filter-apply-btn {
  width: 100%;
  margin-top: var(--space-5);
}

/* ── Filter date picker ───────────────────────────────────────────────── */
.filter-date-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
}

.filter-date-btn:hover {
  border-color: var(--color-primary-400);
  color: var(--color-text);
}

.filter-date-btn--active {
  border-color: var(--color-primary-500);
  color: var(--color-text);
  font-weight: 500;
}

.filter-date-btn__label { flex: 1; }

.filter-date-btn__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.filter-date-btn__clear:hover { background: var(--color-border); color: var(--color-text); }

.filter-cal {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.filter-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

/* Available date state reused by the filter sidebar calendar */
.hero-search__cal-day--available {
  background: var(--color-success);
  color: var(--color-surface);
  cursor: pointer;
}

.hero-search__cal-day--available:hover:not(:disabled) {
  background: var(--color-primary-700);
  color: #fff;
}

/* ── Filter travellers stepper ────────────────────────────────────────── */
.filter-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-1) 0;
}

.filter-stepper__btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  line-height: 1;
}

.filter-stepper__btn:hover:not(:disabled) {
  background: var(--color-primary-100);
  border-color: var(--color-primary-400);
  color: var(--color-primary-700);
}

.filter-stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }

.filter-stepper__display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.filter-stepper__val {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.filter-stepper__unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.listing-results {
  min-width: 0;
  transition: opacity 0.2s ease;
}

.listing-results.is-loading {
  opacity: 0.4;
  pointer-events: none;
  cursor: wait;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.listing-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.listing-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-left: auto;
}

.listing-sort .select {
  font-size: 0.85rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.package-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}

.package-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.package-card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.package-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-card-image__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.package-card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.package-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-card__business {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Duration + price row — sits just below the title */
.package-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.package-card__duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Verified badge + saved count — anchored to the bottom of the card */
.package-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* Status overlay on the image (New / rating pill) */
.package-card-image__status {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  z-index: 1;
}

.package-card-image__status .rating-pill,
.package-card-image__status .rating-pill-new {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.package-card-image__status .rating-pill {
  color: var(--color-primary-700, var(--color-primary));
}

.package-card-image__status .rating-pill-new {
  color: var(--color-text);
}

/* Operator tier badge — top-left corner of card images, aligned with the wishlist heart.
   White frosted glass pops on dark photos; shadow + border keeps it defined on light photos. */
.package-card-image .tier-badge,
.feat-card__img .tier-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.30);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-full, 999px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.price-tag {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: nowrap;
}

.price-tag__from {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: var(--space-1);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-primary-light, color-mix(in srgb, var(--color-primary) 12%, transparent));
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-700);
  background: var(--color-primary-100);
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}

a.rating-pill {
  cursor: pointer;
}

a.rating-pill:hover {
  background: var(--color-primary-200);
  color: var(--color-primary-800);
}

.rating-pill-new {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised, var(--color-border));
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── Himalos Verified badge ──────────────────────────────────────────────── */

/* ── Himalos Verified badge ──────────────────────────────────────────────── */

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary-700);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  position: relative;
  outline-offset: 2px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.verified-badge svg {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.9;
}

/* Tooltip */
.verified-badge::after {
  content: "Every operator individually reviewed & approved by Himalos before listing.";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 190px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  white-space: normal;
}

.verified-badge::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 14px;
  border: 5px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 30;
}

.verified-badge:hover::after,
.verified-badge:hover::before,
.verified-badge:focus::after,
.verified-badge:focus::before {
  opacity: 1;
}

/* Variant used on the detail page meta bar */
.verified-badge--detail {
  font-size: 0.72rem;
  padding: 5px 12px 5px 10px;
  gap: 6px;
}

/* ── Difficulty badge ────────────────────────────────────────────────────── */

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  flex-shrink: 0;
}
.difficulty-badge--beginner    { background: #d1fae5; color: #065f46; }
.difficulty-badge--moderate    { background: #fef3c7; color: #92400e; }
.difficulty-badge--challenging { background: #ffedd5; color: #9a3412; }
.difficulty-badge--expert      { background: #fee2e2; color: #991b1b; }

/* ── Saved count (card footer) ───────────────────────────────────────────── */

.package-card__saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.package-card__saved svg {
  color: #ef4444;
  flex-shrink: 0;
}

.wishlist-heart {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s;
  backdrop-filter: blur(4px);
}

.wishlist-heart svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.15s, stroke 0.15s;
}

.wishlist-heart:hover,
.wishlist-heart.is-saved {
  color: #e53e3e;
}

.wishlist-heart.is-saved svg {
  fill: currentColor;
}

@keyframes wl-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

@keyframes wl-ripple {
  0%   { outline: 2px solid rgba(229, 62, 62, 0.6); outline-offset: 0px; }
  100% { outline: 2px solid rgba(229, 62, 62, 0); outline-offset: 14px; }
}

.wishlist-heart.is-popping svg {
  animation: wl-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wishlist-heart.is-popping {
  animation: wl-ripple 0.5s ease-out forwards;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.listing-results .pagination {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.1s, border-color 0.1s;
}

.pagination__link:hover {
  background: var(--color-surface-raised, var(--color-border));
  border-color: var(--color-primary);
}

.pagination__link--active {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(46, 139, 140, 0.35), 0 0 0 3px var(--color-primary-300);
  transform: scale(1.1);
  z-index: 1;
  pointer-events: none;
  cursor: default;

}

.pagination__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--color-text);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.pagination__nav-btn:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}
.pagination__nav-btn--disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
.listing-results .pagination__info {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding: 0 var(--space-2);
}

.listing-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--color-text-muted);
}

.listing-empty__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

/* ── Wishlist loading animation ─────────────────────────────────────────── */
.wishlist-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: var(--space-5);
}

.wishlist-loading__icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(229, 62, 62, 0.14);
  animation: wl-ripple 2s ease-out infinite;
}

.wishlist-loading__ring--delay {
  animation-delay: 0.7s;
}

@keyframes wl-ripple {
  0%   { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(2.1);  opacity: 0; }
}

.wishlist-loading__icon svg {
  position: relative;
  width: 46px;
  height: 46px;
  fill: #e53e3e;
  stroke: #e53e3e;
  stroke-width: 0.5;
  filter: drop-shadow(0 3px 10px rgba(229, 62, 62, 0.45));
  animation: wl-beat 1.4s ease-in-out infinite;
}

@keyframes wl-beat {
  0%, 100% { transform: scale(1); }
  15%       { transform: scale(1.25); }
  30%       { transform: scale(1); }
  45%       { transform: scale(1.13); }
  60%       { transform: scale(1); }
}

.wishlist-loading__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.filters-toggle-btn {
  display: none;
  width: 100%;
  margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
  .listing-shell {
    grid-template-columns: 1fr;
    padding: var(--space-6) var(--space-4);
  }

  .listing-filters {
    position: static;
  }

  .listing-filters.is-hidden-mobile {
    display: none;
  }

  .filters-toggle-btn {
    display: block;
  }

  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

.wishlist-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Package detail page ───────────────────────────────────────────────────── */

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) 6rem; /* extra bottom clears fixed price bar */
}

/* Hero */
.detail-hero {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: var(--space-3);
  aspect-ratio: 16 / 7;
}

/* Two-column grid: left = main image, right = two stacked thumbnails */
.detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  gap: 3px;
}

.detail-hero__main {
  overflow: hidden;
  height: 100%;
}

.detail-hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 100%;
  min-height: 0;
}

.detail-hero__side-cell {
  overflow: hidden;
  min-height: 0;
  display: flex;
}

.detail-hero__side-cell > .detail-hero__img {
  flex: 1;
  min-width: 0;
  width: 100%;
  object-fit: cover;
}

.detail-hero__side-cell--empty {
  background: var(--color-border);
}

.detail-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s;
}

/* Subtle zoom on hover for grid cells */
.detail-hero__main:hover .detail-hero__img,
.detail-hero__side-cell:hover .detail-hero__img {
  opacity: 0.9;
}

.detail-hero__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  background: var(--color-border);
}

.detail-hero__wishlist {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

.detail-hero__wishlist:hover {
  background: #fff;
  transform: scale(1.08);
}

/* View all photos button — bottom-right corner */
.detail-hero__view-all {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}

.detail-hero__view-all:hover {
  background: #fff;
}

/* ── Lightbox overlay ─────────────────────────────────────────────────────── */
.hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.hero-lightbox__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px var(--space-16, 80px);
}

.hero-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.hero-lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.hero-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

.hero-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.hero-lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.hero-lightbox__nav--prev { left: var(--space-5); }
.hero-lightbox__nav--next { right: var(--space-5); }

.hero-lightbox__counter {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}
.hero-lightbox__report {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.hero-lightbox__report:hover { color: rgba(255, 255, 255, 0.9); background: rgba(0,0,0,0.3); }

@media (max-width: 640px) {
  .hero-lightbox__wrap {
    padding: 56px 0 64px;
  }
  .hero-lightbox__img {
    max-height: calc(100vh - 120px);
    border-radius: 0;
  }
  .hero-lightbox__nav--prev { left: var(--space-3); }
  .hero-lightbox__nav--next { right: var(--space-3); }
}

/* Gallery strip */
.detail-gallery {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  scrollbar-width: none;
}

.detail-gallery::-webkit-scrollbar { display: none; }

.detail-gallery-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.7;
}

.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-gallery-thumb--active,
.detail-gallery-thumb:hover {
  border-color: var(--color-primary-500);
  opacity: 1;
}

/* Meta bar below gallery */
.detail-meta-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.detail-meta-bar__left { flex: 1; min-width: 0; }

.detail-meta-bar__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.detail-meta-bar__business {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.detail-meta-bar__tags {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.detail-stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Difficulty level badge */
.difficulty-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.difficulty-badge--easy        { background: #d1fae5; color: #065f46; }
.difficulty-badge--moderate    { background: #fef3c7; color: #92400e; }
.difficulty-badge--challenging { background: #fed7aa; color: #9a3412; }
.difficulty-badge--difficult   { background: #fee2e2; color: #991b1b; }
.difficulty-badge--extreme     { background: #fce7f3; color: #9d174d; }

.detail-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.detail-tag-chip {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.detail-tag-chip:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.detail-meta-bar__right {
  text-align: right;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   CALENDAR
   ------------------------------------------------------------ */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.cal-toolbar__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto;
  grid-auto-rows: 120px;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendar-grid__header {
  background: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-cell {
  background: var(--color-surface);
  padding: var(--space-2) var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: relative;
  overflow: hidden;
}

.calendar-cell[role="button"] {
  cursor: pointer;
  transition: background-color 0.12s;
}

.calendar-cell[role="button"]:hover {
  background-color: var(--color-primary-100);
}

.calendar-cell[role="button"]:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: -2px;
}

.calendar-cell--today {
  background-color: rgba(46, 139, 140, 0.06);
}

.calendar-cell--today .calendar-cell__day {
  background: var(--color-primary-500);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-cell--past {
  background-color: var(--color-bg);
}

.calendar-cell--past .calendar-cell__day {
  color: var(--color-text-muted);
}

.calendar-cell--other-month {
  opacity: 0.4;
}

.calendar-cell--available {
  background: var(--color-success);
  color: var(--color-surface);
  cursor: pointer;
  min-height: 36px;
  justify-content: center;
  align-items: center;
}

.calendar-cell--available:hover {
  background: var(--color-primary-700);
  color: var(--color-surface);
}

.calendar-cell--available:focus-visible {
  outline: 2px solid var(--color-primary-900);
  outline-offset: -2px;
}

.calendar-cell--unavailable {
  opacity: 0.38;
  cursor: not-allowed;
  min-height: 36px;
  justify-content: center;
  align-items: center;
}

.calendar-cell--selected {
  background: var(--color-primary-700);
  color: var(--color-surface);
  outline: 2px solid var(--color-primary-900);
  outline-offset: -2px;
  min-height: 36px;
  justify-content: center;
  align-items: center;
}

.calendar-cell__day {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.calendar-day-departure {
  background: var(--color-primary-100);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.calendar-day-departure__title {
  font-weight: 600;
  color: var(--color-primary-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-day-departure__cap {
  color: var(--color-text-muted);
}

.calendar-add-button {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-500);
  font-size: var(--text-base);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.12s, background-color 0.12s;
}

.calendar-cell:hover .calendar-add-button {
  opacity: 1;
}

.calendar-add-button:hover {
  background: var(--color-primary-100);
}

/* ------------------------------------------------------------
   DEPARTURE LIST & DAY DETAIL
   ------------------------------------------------------------ */
.departure-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.departure-list {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.departure-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.departure-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.departure-row__meta {
  font-size: var(--text-sm);
}

.departure-row__notes {
  font-size: var(--text-sm);
  white-space: pre-wrap;
}

.departure-row__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------
   PUBLIC DEPARTURE LIST (detail page)
   ------------------------------------------------------------ */
.pub-departure-section {
  margin-top: var(--space-6);
}

.pub-departure-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pub-departure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.pub-departure-row__date {
  font-weight: 600;
  font-size: var(--text-sm);
}

.pub-departure-row__tz {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

.pub-departure-avail {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

.pub-departure-avail--available {
  background: var(--color-success-100, #d1fae5);
  color: var(--color-success-700, #065f46);
}

.pub-departure-avail--limited {
  background: var(--color-warning-100, #fef3c7);
  color: var(--color-warning-700, #92400e);
}

.pub-departure-avail--soldout {
  background: var(--color-border);
  color: var(--color-text-muted);
}

.pub-departure-row__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.pub-departure-empty {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

/* ------------------------------------------------------------
   PACKAGE AVAILABILITY CALENDAR (traveler-side booking widget)
   ------------------------------------------------------------ */
.pkg-avail-cal {
  margin: 0 0 var(--space-5);
}

.pkg-avail-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.pkg-avail-cal__month-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  flex: 1;
  letter-spacing: 0.02em;
}

/* Nav buttons match the hero search calendar style */
.pkg-avail-cal__nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.pkg-avail-cal__nav-btn:hover:not(:disabled) {
  background: var(--color-primary-100);
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}

.pkg-avail-cal__nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Grid: hero-cal style — transparent, 3px gap, no visible border lines */
.pkg-avail-cal .calendar-grid {
  grid-template-rows: unset;
  grid-auto-rows: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  gap: 3px;
}

/* Header row: match hero cal day headers */
.pkg-avail-cal .calendar-grid__header {
  background: transparent;
  padding: var(--space-1) 0 var(--space-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

/* Cells: square, rounded, transparent base — like hero cal day buttons */
.pkg-avail-cal .calendar-cell {
  aspect-ratio: 1;
  min-height: unset;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background 0.1s, color 0.1s;
}

.pkg-avail-cal .calendar-cell__day {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 0;
  color: inherit;
}

/* Available: normal text, clickable — green omitted intentionally */
.pkg-avail-cal .calendar-cell--available {
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 600;
}

.pkg-avail-cal .calendar-cell--available:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.pkg-avail-cal .calendar-cell--available:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: -2px;
}

/* Selected: primary-500 — matches hero cal selected day */
.pkg-avail-cal .calendar-cell--selected {
  background: var(--color-primary-500) !important;
  color: #fff !important;
  font-weight: 700;
  outline: none;
}

/* Unavailable: faded, no pointer */
.pkg-avail-cal .calendar-cell--unavailable {
  background: transparent;
  min-height: unset;
  opacity: 0.3;
  cursor: not-allowed;
}

/* Past: faded, no pointer */
.pkg-avail-cal .calendar-cell--past {
  background: transparent;
  min-height: unset;
  opacity: 0.3;
  cursor: default;
}

.pkg-avail-cal .calendar-cell--past .calendar-cell__day {
  color: inherit;
}

.pkg-avail-empty {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.4;
}

.pkg-avail-loading {
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------
   GROUP ROSTER CARD
   ------------------------------------------------------------ */
.group-roster-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.group-roster-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* ------------------------------------------------------------
   MODAL
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 61, 62, 0.35);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal--wide {
  max-width: 640px;
}

.modal--departure {
  max-width: 580px;
  height: 560px;
}

.modal > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal-body {
  padding: var(--space-5) var(--space-6);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.detail-price-large {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary-700);
  line-height: 1;
}

.detail-price-large__from {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.detail-price-large__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: var(--space-1);
}

/* Two-column body */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-10);
}

.detail-content {
  min-width: 0;
}

/* Sections that live below the two-column sticky-widget grid */
.detail-below-content {
  margin-bottom: 0;
}



.detail-section {
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.detail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.detail-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.detail-pre {
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.detail-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.detail-highlights-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
}

.detail-highlights-item__icon {
  flex-shrink: 0;
  margin-top: 0.3em;
  color: var(--color-primary-500);
}

.itinerary-day {
  padding: var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary-300);
  margin-bottom: var(--space-3);
}

.itinerary-day__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary-700);
  margin-bottom: var(--space-2);
}

/* ---- Inclusions / Exclusions switchable tabs ---- */
.incl-excl__tabs {
  display: inline-flex;
  gap: 3px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-5);
}

.incl-excl__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: calc(var(--radius-lg) - 2px);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.incl-excl__tab--active {
  background: var(--color-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
  font-weight: 600;
}

.incl-excl__tab--included.incl-excl__tab--active { color: var(--color-success); }
.incl-excl__tab--excluded.incl-excl__tab--active { color: var(--color-error); }

/* Both panels occupy the same grid cell — taller one sets height, no layout shift */
.incl-excl__panels {
  display: grid;
}

.incl-excl__panel {
  grid-area: 1 / 1;
  padding-left: var(--space-4);
  border-left: 3px solid transparent;
}

.incl-excl__panel--inactive {
  visibility: hidden;
  pointer-events: none;
}

.incl-excl__panel--included { border-left-color: var(--color-success); }
.incl-excl__panel--excluded { border-left-color: var(--color-error); }

@keyframes incl-excl-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.incl-excl__panel:not(.incl-excl__panel--inactive) {
  animation: incl-excl-in 0.2s ease;
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-section {
  max-width: 780px;
  margin-top: var(--space-10);
}

.faq-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::marker { content: none; }

.faq-item__question::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
}

.faq-item:hover .faq-item__question {
  background: var(--color-surface-alt, rgba(0, 0, 0, 0.025));
}

.faq-item[open] > .faq-item__question {
  color: var(--color-primary-700, var(--color-primary));
}

.faq-item[open] > .faq-item__question::after {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: var(--space-4) var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.incl-excl__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.incl-excl__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
}

.incl-excl__item-icon {
  flex-shrink: 0;
  margin-top: 0.3em;
  color: var(--color-success);
}

.incl-excl__item-icon--x { color: var(--color-error); }

.incl-excl__panel--included .incl-excl__item-icon { color: var(--color-success); }
.incl-excl__panel--excluded .incl-excl__item-icon { color: var(--color-error); }

.itinerary-day__addons {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.day-addon-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.day-addon-row__icon {
  flex-shrink: 0;
  width: 18px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.day-addon-row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.day-addon-row__type {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.day-addon-row__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.day-addon-upgrade-btn {
  flex-shrink: 0;
  padding: 4px var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1px solid var(--color-primary-500);
  border-radius: 999px;
  background: var(--color-primary-500);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

.day-addon-upgrade-btn:hover { background: var(--color-primary-700); border-color: var(--color-primary-700); }

/* After an upgrade is selected the button reads "Change" — lighter style */
.day-addon-upgrade-btn--active {
  background: var(--color-primary-50, #eff6ff);
  border-color: var(--color-primary-500);
  color: var(--color-primary-700);
}
.day-addon-upgrade-btn--active:hover { background: var(--color-primary-100, #dbeafe); border-color: var(--color-primary-600); }

.addon-card-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
}

.itinerary-addon-section {
  margin-top: var(--space-4);
}

.itinerary-addon-section + .itinerary-addon-section {
  margin-top: var(--space-3);
}

/* ---- Interactive itinerary section ---- */
.itin-section {
  margin-bottom: var(--space-8);
}

.itin-section__head {
  padding-bottom: var(--space-4);
}

/* 2-column body: left=day content, right=map */
.itin-body {
  display: flex;
  flex-direction: column;
}

.itin-content-col {
  min-width: 0;
}

.itin-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-900);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Pills — horizontally scrollable, scrollbar visible */
.itin-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-300) transparent;
  padding-bottom: 4px;
}
.itin-pills::-webkit-scrollbar { height: 4px; }
.itin-pills::-webkit-scrollbar-track { background: transparent; }
.itin-pills::-webkit-scrollbar-thumb {
  background: var(--color-primary-300);
  border-radius: 2px;
}

.itin-pill {
  padding: 6px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.itin-pill:hover:not(.itin-pill--active) {
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}
.itin-pill--active {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #fff;
  font-weight: 600;
}

.itin-map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  z-index: 0;
}
@media (max-width: 900px) {
  .itin-map {
    height: 260px;
  }
}

/* Day panels */
.itin-panel {
  padding: var(--space-3) 0;
}
.itin-panel--hidden { display: none; }

@keyframes itin-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.itin-panel:not(.itin-panel--hidden) {
  animation: itin-panel-in 0.2s ease;
}

.itin-panel__body { }

.itin-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.itin-panel__title-day {
  color: var(--color-primary-500);
}

.itin-panel__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

/* Addon columns — Meals / Transport / Accommodation as 3 equal columns */
.itin-panel__addons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* Column headers: Included / Upgrade */
.addon-grid-header,
.itin-addon-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.addon-grid-header {
  padding-bottom: var(--space-1);
}

.addon-grid-header__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding-left: calc(15px + var(--space-2));
}

.addon-grid-header__label--upgrade {
  color: var(--color-primary-500);
  margin-left: -16px;
}

.addon-grid-header__per-person {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary-600);
}

.addon-opt--upgrade {
  margin-left: -8px;
}

.itin-addon-col__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ── Addon option (radio + label) ─────────────────────────────────────────── */
.addon-opt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.addon-opt__radio {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.addon-opt__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.addon-opt__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.3;
  padding: 2px 8px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.addon-opt__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-500);
  padding-left: 8px;
}

/* Selected — radio dot fills teal, name gets the active-day-pill treatment */
.addon-opt:has(.addon-opt__radio:checked) .addon-opt__radio {
  border-color: var(--color-primary-500);
  background-color: var(--color-primary-500);
  background-image: radial-gradient(circle at center, #fff 38%, transparent 38%);
}

.addon-opt:has(.addon-opt__radio:checked) .addon-opt__name {
  background: var(--color-primary-500);
  color: #fff;
  font-weight: 600;
}

/* Hover on unselected */
.addon-opt:not(:has(.addon-opt__radio:checked)):hover .addon-opt__name {
  color: var(--color-text);
}

@media (max-width: 500px) {
  .addon-grid-header,
  .itin-addon-row {
    grid-template-columns: 80px 1fr 1fr;
    gap: var(--space-1) var(--space-3);
  }
}

/* Addon option description tooltip */
.addon-desc-wrap {
  position: relative;
  display: inline-block;
}
.addon-desc-tip {
  pointer-events: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  min-width: 200px;
  max-width: min(360px, 90vw);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text);
  white-space: normal;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 200;
}
.addon-desc-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-border);
}
.addon-desc-wrap:hover .addon-desc-tip { opacity: 1; }

/* Map pins (Leaflet divIcon) */
.itin-map-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-500);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.itin-map-pin--active {
  background: var(--color-primary-700);
  transform: scale(1.25);
}

/* Pickup details — map is primary content */
.pickup-map-main {
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: var(--space-3);
  position: relative;
  z-index: 0;
}

/* Leaflet popup — meeting point navigate */
.mpop-wrap .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: 0;
}
.mpop-wrap .leaflet-popup-content { margin: 0; }
.mpop-wrap .leaflet-popup-tip-container { margin-top: -1px; }

.mpop {
  padding: var(--space-3) var(--space-4);
  min-width: 160px;
}
.mpop__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  line-height: 1.4;
}
.mpop__nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
}
.mpop__nav:hover { text-decoration: underline; }

/* Permanent location name tooltip on meeting-point pin */
.mpop-tooltip.leaflet-tooltip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
}
.mpop-tooltip.leaflet-tooltip::before {
  border-top-color: var(--color-border);
}

.detail-pickup-item { flex: 1; min-width: 160px; }

.detail-pickup-item__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.detail-pickup-item__value {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* Booking widget */
.booking-widget-sticky {
  position: sticky;
  top: calc(72px + var(--space-6));
}

.booking-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.booking-widget__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.booking-widget__price-main {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary-700);
}

.booking-widget__price-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: var(--space-1);
}

.booking-widget__body {
  padding: var(--space-5) var(--space-6);
}

.booking-widget .form-group {
  margin-bottom: var(--space-4);
}

.upgrade-groups {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.upgrade-group {
  margin-bottom: var(--space-4);
}

.upgrade-group__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.upgrade-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s;
}

.upgrade-option:hover { background: var(--color-bg); }

.upgrade-option__radio { flex-shrink: 0; accent-color: var(--color-primary-500); }

.upgrade-option__label { flex: 1; font-size: var(--text-sm); }

.upgrade-option__price {
  flex-shrink: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.total-line__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.total-line__amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-700);
  letter-spacing: -0.02em;
}

.booking-widget__note {
  text-align: center;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.bw-inquiry-trigger {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.bw-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
}

.bw-group-row__left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bw-group-row__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.bw-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.bw-stepper__btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-primary-500);
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary-500);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.bw-stepper__btn:hover:not(:disabled) {
  background: var(--color-primary-500);
  color: #fff;
}

.bw-stepper__btn:active:not(:disabled) {
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
  color: #fff;
}

.bw-stepper__btn:disabled {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.bw-stepper__val {
  min-width: 1.75rem;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  user-select: none;
}

/* Book-now button: visually disabled until a departure date is selected */
a.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Group size stepper */
.group-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.group-stepper__btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  line-height: 1;
  user-select: none;
}

.group-stepper__btn:hover:not(:disabled) {
  background: var(--color-primary-100);
  border-color: var(--color-primary-400);
  color: var(--color-primary-700);
}

.group-stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }

.group-stepper__display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.group-stepper__val {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.group-stepper__unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Upgrade modal */
.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.upgrade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.upgrade-modal__box {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.upgrade-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.upgrade-modal__title { font-size: var(--text-base); font-weight: 700; }

.upgrade-modal__close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  line-height: 1;
}

.upgrade-modal__close:hover { background: var(--color-bg); color: var(--color-text); }

.upgrade-modal__options {
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
}

.upgrade-modal__option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upgrade-modal__option:hover {
  border-color: var(--color-primary-300);
  background: var(--color-bg);
}

.upgrade-modal__option:has(input:checked) {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50, #eff6ff);
}

.upgrade-modal__option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary-500);
  width: 16px;
  height: 16px;
}

.upgrade-modal__option-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.upgrade-modal__option-name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }

.upgrade-modal__option-price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.upgrade-modal__option-price--included { color: var(--color-text-muted); font-weight: 400; }

.upgrade-modal__footer {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Booking widget upgrade summary */
.bw-addon-summary {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bw-addon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--text-xs);
  gap: var(--space-2);
}

.bw-addon-row__type {
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.bw-addon-row__name { color: var(--color-text); font-weight: 500; text-align: right; }

.bw-addon-price-tag { color: var(--color-primary-600); font-weight: 700; white-space: nowrap; }


/* ---- Sticky price bar ---- */
.price-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 16px rgba(15, 61, 62, 0.1);
  z-index: 200;
  padding: var(--space-3) var(--space-6);
}

.price-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.price-bar__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-bar__note {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.price-bar__amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-700);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.price-bar__btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-6);
}

/* Business card */
.business-card-inline {
  margin-bottom: var(--space-8);
}

.business-card-inline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.business-card-inline__offered-by {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.business-card-inline__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.business-card-inline__location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.business-card-inline__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-1);
}

.bci-see-more {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.3em;
  font-size: inherit;
  font-weight: normal;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.overview-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.overview-desc--expanded {
  display: block;
  overflow: visible;
}
.overview-see-more {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.5em;
  font-size: var(--text-sm);
  font-weight: normal;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.itin-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.itin-desc--expanded {
  display: block;
  overflow: visible;
}
.itin-see-more {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.5em;
  font-size: var(--text-sm);
  font-weight: normal;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-info-callout__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
.detail-info-callout__text--expanded {
  display: block;
  overflow: visible;
}
.detail-info-see-more {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.5em;
  font-size: var(--text-sm);
  font-weight: normal;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.incl-excl__item--hidden {
  display: none;
}
.incl-excl-see-more {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.75em;
  font-size: var(--text-sm);
  font-weight: normal;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid > .booking-widget-sticky {
    order: -1;
  }

  .booking-widget-sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .detail-page {
    padding: var(--space-4) var(--space-4) var(--space-8);
  }

  .detail-meta-bar {
    flex-direction: column;
    gap: var(--space-3);
  }

  .detail-meta-bar__right {
    text-align: left;
  }

  .detail-meta-bar__title {
    font-size: var(--text-xl);
  }

}

/* ── Static content pages (About, Contact, Terms, Privacy) ────────────────── */

.content-hero {
  padding: var(--space-12) var(--space-6) var(--space-8);
  background: linear-gradient(160deg, var(--color-primary-100) 0%, var(--color-warm-200) 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.content-hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-700);
  margin: 0 0 var(--space-3);
}

.content-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}

.content-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-hero__actions {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.content-page--wide {
  max-width: 1200px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-8) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-6) 0 var(--space-2);
}

.prose p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0 0 var(--space-4);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
}

.prose li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--color-primary-900);
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary-300);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.about-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.about-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── How It Works page ───────────────────────────────────────────────────── */
.hiw-section {
  margin-bottom: var(--space-16);
}

.hiw-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 var(--space-4);
}
[data-theme="dark"] .hiw-section__title { color: var(--color-primary-300); }

.hiw-section__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--space-8);
}

/* Steps */
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.hiw-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.hiw-step__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-primary-300);
  line-height: 1;
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .hiw-step__num { color: rgba(20,184,166,0.35); }

.hiw-step__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .hiw-step__icon {
  background: rgba(20,184,166,0.12);
  color: rgba(110,231,183,0.85);
}

.hiw-step__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.hiw-step__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.hiw-requirements {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.hiw-req {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.hiw-req__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
[data-theme="dark"] .hiw-req__icon {
  background: rgba(20,184,166,0.12);
  color: rgba(110,231,183,0.85);
}

.hiw-req__title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.hiw-req__body {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Pricing */
.hiw-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hiw-pricing__headline {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 var(--space-4);
}
[data-theme="dark"] .hiw-pricing__headline { color: var(--color-primary-300); }

.hiw-pricing__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.hiw-pricing__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hiw-pricing__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

.hiw-pricing__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .hiw-pricing__check {
  background: rgba(20,184,166,0.6);
}

/* Bottom CTA row */
.hiw-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) 0 var(--space-10);
  border-top: 1px solid var(--color-border);
}

/* Legal disclaimer */
.hiw-disclaimer {
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

.hiw-disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hiw-disclaimer a {
  color: var(--color-primary-700);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}
.hiw-disclaimer a:hover { text-decoration-color: currentColor; }

/* Responsive */
@media (max-width: 768px) {
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-requirements { grid-template-columns: 1fr; }
  .hiw-pricing {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8) var(--space-6);
  }
}

.about-story {
  margin-top: var(--space-16);
  max-width: 680px;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.contact-info__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0 0 var(--space-6);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-info__value {
  font-size: var(--text-sm);
  color: var(--color-text);
}

@media (max-width: 767px) {
  .content-hero__title {
    font-size: var(--text-2xl);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.tag-chip-label {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tag-chip-label:has(input:checked) {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.tag-chip-label input[type="checkbox"] {
  display: none;
}

/* ── Tag landing ───────────────────────────────────────────────── */
.tag-landing {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-16);
}
.tag-landing__header {
  margin-bottom: var(--space-8);
}
.tag-landing__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}
.tag-landing__sub {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.tag-landing__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
}
.tag-landing__back:hover { text-decoration: underline; }
.tag-landing__empty {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  margin-top: var(--space-8);
}

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  max-width: 1000px;
  margin: var(--space-10) auto;
  padding: 0 var(--space-4);
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: var(--space-8);
}

.checkout-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.checkout-section__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.checkout-trip-card {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.checkout-trip-card__img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.checkout-trip-card__title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.checkout-trip-card__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.checkout-notes {
  resize: vertical;
  min-height: 100px;
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
}

.order-line__label {
  color: var(--color-text-muted);
}

.order-line__amount {
  font-weight: 500;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  font-weight: 700;
  font-size: var(--text-lg);
}

.order-total__label {
  font-size: var(--text-base);
}

/* Upgrades block inside the order summary */
.os-upgrades-wrap {
  background: rgba(184, 128, 74, 0.07);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-1) 0 var(--space-2);
}

.os-upgrades-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-warm-700);
  margin-bottom: var(--space-1);
}

.order-line--upgrade .order-line__label { color: var(--color-warm-700); }
.order-line--upgrade .order-line__amount { color: var(--color-warm-700); font-weight: 600; }

.checkout-error-summary {
  background: var(--color-error-subtle, #fef2f2);
  border: 1px solid var(--color-error, #ef4444);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--color-error, #b91c1c);
  font-size: var(--text-sm);
}

.checkout-error-summary ul {
  margin: var(--space-2) 0 0 var(--space-4);
  padding: 0;
}

.capacity-error-banner {
  background: var(--color-error-subtle, #fef2f2);
  border: 1px solid var(--color-error, #ef4444);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-4) auto;
  max-width: 1000px;
  color: var(--color-error, #b91c1c);
  font-size: var(--text-sm);
}

.addon-group {
  margin-bottom: var(--space-4);
}

.addon-group__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Checkout read-only addon display */
.checkout-addons-summary {
  margin-top: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checkout-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}

.checkout-addon-row:last-child { border-bottom: none; }

.checkout-addon-row__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.checkout-addon-row__value {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  text-align: right;
}

.checkout-addon-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary-600);
  background: var(--color-primary-50, #eff6ff);
  padding: 2px var(--space-2);
  border-radius: 999px;
}

/* Checkout success page */
.checkout-success-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-12) var(--space-4);
  min-height: 60vh;
}

.checkout-success-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.checkout-success-card--processing {
  border-color: var(--color-warm-500);
}

.checkout-success-card__icon {
  font-size: 3rem;
  line-height: 1;
}

.checkout-success-card__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.checkout-success-ref {
  background: var(--color-primary-100);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.checkout-success-ref__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.checkout-success-ref__number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: monospace;
  color: var(--color-primary-900);
  letter-spacing: 0.05em;
}

.checkout-success-details {
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}

.checkout-success-details dt {
  color: var(--color-text-muted);
  font-weight: 500;
}

.checkout-success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

@media (max-width: 767px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }
  .checkout-sidebar {
    position: static;
  }
}


/* ------------------------------------------------------------
   TRAVELER ACCOUNT — BOOKINGS
   ------------------------------------------------------------ */

/* Status pill variants for booking statuses */
.status-pill-confirmed {
  background-color: rgba(74, 124, 89, 0.12);
  color: var(--color-success);
  border-color: rgba(74, 124, 89, 0.3);
}

.status-pill-completed {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.status-pill-cancelled {
  background-color: rgba(163, 59, 59, 0.08);
  color: var(--color-error);
  border-color: rgba(163, 59, 59, 0.3);
}

.status-pill-cancellation-requested {
  background-color: rgba(201, 137, 58, 0.12);
  color: var(--color-warning);
  border-color: rgba(201, 137, 58, 0.3);
}

.status-pill-pending-payment {
  background-color: rgba(201, 137, 58, 0.08);
  color: var(--color-warning);
  border-color: rgba(201, 137, 58, 0.2);
}

.status-pill-refunded {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

/* Bookings list page */
.bookings-page {
  max-width: 1200px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-4);
}

.bookings-page__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.bookings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.bookings-tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.bookings-tab:hover {
  color: var(--color-text);
}

.bookings-tab--active {
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-600);
}

.bookings-tab-panel {
  display: none;
}

.bookings-tab-panel--active {
  display: block;
}

.bookings-empty {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
}

.bookings-empty__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.bookings-empty__text {
  font-size: var(--text-base);
}

.bookings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bookings-loading {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.booking-row:hover {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-md);
}

.booking-row__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.booking-row__ref {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-row__package {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-row__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.booking-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.booking-row__total {
  font-size: var(--text-base);
  font-weight: 700;
}

/* Booking detail page */
.booking-detail-page {
  max-width: 760px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-4);
}

.booking-detail-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.booking-detail-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.booking-detail-header__ref {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.booking-detail-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}

.booking-detail-section__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.booking-detail-dl {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: var(--space-2) var(--space-4);
}

.booking-detail-dl dt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.booking-detail-dl dd {
  font-size: var(--text-sm);
  margin: 0;
}

.booking-detail-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.booking-detail-total-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: var(--text-base);
  padding-top: var(--space-3);
}

.booking-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.booking-cancel-refund-preview {
  font-size: var(--text-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.booking-detail-contact-revealed {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.booking-detail-contact-hidden {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 599px) {
  .booking-detail-header {
    padding: var(--space-4) var(--space-5);
  }
  .booking-detail-dl {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .booking-detail-dl dt {
    margin-top: var(--space-2);
  }
}

/* Booking-detail cancel section */
.bk-cancel-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.bk-cancel-section__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}
.bk-cancel-section__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Booking-detail policy accordion */
.bk-policy-details { margin-top: var(--space-2); }
.bk-policy-details__summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  user-select: none;
}
.bk-policy-details__summary::-webkit-details-marker { display: none; }
.bk-policy-details__summary::before {
  content: '›';
  display: inline-block;
  font-size: 1.1em;
  transition: transform 0.15s;
}
.bk-policy-details[open] .bk-policy-details__summary::before { transform: rotate(90deg); }
.bk-policy-details__body { padding-top: var(--space-3); }

/* ── Business bookings page ───────────────────────────────────────────── */

/* Date strip */
.date-strip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.date-strip__nav-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.date-strip__nav-btn:hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-500);
  color: var(--color-primary-700);
}
.date-strip__chips {
  display: flex;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}
/* Default chip — subtle, clearly a button */
.date-strip__chip {
  flex: 1;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--space-1) var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.date-strip__chip:hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}
/* Today — distinct teal tint, prominent border */
.date-strip__chip--today {
  border: 2px solid var(--color-primary-500);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}
.date-strip__chip--today .date-strip__num {
  color: var(--color-primary-700);
}
.date-strip__chip--today .date-strip__abbr {
  color: var(--color-primary-700);
  opacity: 1;
}
.date-strip__chip--today .date-strip__count {
  background: rgba(46, 139, 140, 0.2);
  color: var(--color-primary-700);
}
/* Selected — solid teal, high contrast, shadow lift */
.date-strip__chip--active {
  background: var(--color-primary-500);
  border: 2px solid var(--color-primary-500);
  color: #fff;
  box-shadow: 0 3px 10px rgba(46, 139, 140, 0.45);
}
.date-strip__chip--active:hover {
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 139, 140, 0.5);
}
.date-strip__abbr {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  line-height: 1.4;
}
.date-strip__chip--active .date-strip__abbr { opacity: 0.85; }
.date-strip__chip--today .date-strip__abbr  { opacity: 1; }
.date-strip__num {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.date-strip__mon {
  font-size: 0.6rem;
  opacity: 0.55;
  line-height: 1.3;
}
.date-strip__mon--spacer {
  /* keeps chip heights consistent even when month label absent */
  visibility: hidden;
}
.date-strip__chip--active .date-strip__mon { opacity: 0.85; }
.date-strip__count {
  margin-top: 2px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  border-radius: 99px;
  text-align: center;
  background: rgba(46, 139, 140, 0.12);
  color: var(--color-primary-700);
}
.date-strip__chip--active .date-strip__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.date-strip__count--zero {
  opacity: 0.3;
  background: transparent;
  color: var(--color-text-muted);
}

/* Booking filter bar */
.biz-booking-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.biz-booking-filters .input,
.biz-booking-filters .select {
  font-size: var(--text-sm);
}
.biz-booking-filters__status {
  width: auto;
  flex-shrink: 0;
}
.biz-booking-filters__btn {
  flex-shrink: 0;
  align-self: stretch;
}
/* Day / Range mode toggle */
.biz-mode-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.biz-mode-toggle__btn {
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1.6;
}
.biz-mode-toggle__btn + .biz-mode-toggle__btn {
  border-left: 1px solid var(--color-border);
}
.biz-mode-toggle__btn--active {
  background: var(--color-primary-500);
  color: #fff;
}
.biz-mode-toggle__btn:not(.biz-mode-toggle__btn--active):hover {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

/* Compact inline range bar — styled to match .input/.select in the filter row */
.biz-range-bar {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  align-self: stretch;        /* match the row height set by the tallest sibling */
  min-width: 280px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.biz-range-bar:focus-within {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(46, 139, 140, 0.15);
}
.biz-range-bar__end {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  color: var(--color-text);
  line-height: 1.5;            /* match input/select line-height explicitly */
  transition: background 0.12s;
}
.biz-range-bar__end:first-child { border-radius: calc(var(--radius-md) - 1px) 0 0 calc(var(--radius-md) - 1px); }
.biz-range-bar__end:last-child  { border-radius: 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0; }
.biz-range-bar__end:hover       { background: var(--color-primary-100); }
.biz-range-bar__end--picking    { background: var(--color-primary-100); }
.biz-range-bar__lbl {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.biz-range-bar__val {
  color: var(--color-text-muted);
}
.biz-range-bar__end--set .biz-range-bar__val {
  color: var(--color-text);
  font-weight: 500;
}
.biz-range-bar__sep {
  display: flex;
  align-items: center;
  padding: 0 var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
  user-select: none;
}

/* Date-range picker popover */
.biz-drp__popover {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  z-index: 200;
  min-width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
}
.biz-drp__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-2);
}
.biz-drp__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.biz-booking-filters__search {
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}
.biz-booking-filters__search .input {
  padding-left: var(--space-8);
  width: 100%;
  font-size: var(--text-sm);
}
.biz-booking-filters__search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
}

/* Legacy toolbar (kept for any remaining refs) */
.biz-bookings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.biz-bookings-search {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.biz-bookings-search .input {
  padding-left: var(--space-8);
  font-size: var(--text-sm);
}

.biz-bookings-search__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  background-color: var(--color-border);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-left: var(--space-1);
  line-height: 1;
}

.tab-badge--warn {
  background-color: rgba(201, 137, 58, 0.15);
  color: var(--color-warning);
}

.ref-code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  white-space: nowrap;
}

.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 767px) {
  .date-strip__chip {
    min-width: 48px;
    padding: var(--space-1) var(--space-1);
  }
  .date-strip__abbr,
  .date-strip__mon {
    font-size: 0.6rem;
  }
  .biz-booking-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .biz-drp__popover {
    left: 0;
    right: 0;
    min-width: unset;
  }
  .biz-booking-filters__search {
    flex: 1;
    max-width: 100%;
  }
  .biz-bookings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .biz-bookings-search {
    max-width: 100%;
  }
}

/* ── View toggle (list / calendar switch) ────────────────────────────────── */
.view-toggle__group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.view-toggle__btn:hover {
  background: var(--color-primary-50, #f0f7ff);
  color: var(--color-primary-700);
  border-color: var(--color-primary-300, #93c5fd);
  text-decoration: none;
}
.view-toggle__btn--active {
  background: var(--color-primary-500);
  color: #fff;
  border-color: var(--color-primary-500);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* ── Departure clickable rows ─────────────────────────────────────────────── */
.dep-clickable-row { cursor: pointer; }
.dep-clickable-row:hover td {
  background-color: var(--color-primary-100) !important;
  color: var(--color-primary-700);
}

/* Traveler profile page */
.profile-page {
  max-width: 1200px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-4);
}

.profile-page__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.pref-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.pref-item:last-child {
  border-bottom: none;
}

.pref-item__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.pref-item__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: calc(1rem + var(--space-2));
}

/* Traveler privacy page */
.privacy-page {
  max-width: 1200px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-4);
}

.privacy-page__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.card--danger {
  border-color: rgba(163, 59, 59, 0.3);
}

.card--danger .card-header {
  color: var(--color-error);
  border-bottom-color: rgba(163, 59, 59, 0.2);
}

/* ── Single-card Checkout (co-*) ──────────────────────────────────────── */

.co-checkout {
  max-width: 480px;
  margin: var(--space-10) auto var(--space-12);
  padding: 0 var(--space-4);
}

.co-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.co-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-5);
  color: var(--color-text);
}

/* Trip header — photo + package name */
.co-trip-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.co-trip-header__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.co-trip-header__name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.35;
}

/* Divider */
.co-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-4) 0;
}

/* ── Experience Pack Cards ──────────────────────────────────────────────── */
.co-packs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.co-packs__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-2);
}

/* Tier accent colours — override via modifier class */
.co-pack-card--tier-0 { --pack-accent: var(--color-border);       --pack-accent-bg: transparent; }
.co-pack-card--tier-1 { --pack-accent: var(--color-warm-700);     --pack-accent-bg: color-mix(in srgb, var(--color-warm-700) 6%, var(--color-surface)); }
.co-pack-card--tier-2 { --pack-accent: var(--color-primary-500);  --pack-accent-bg: color-mix(in srgb, var(--color-primary-500) 5%, var(--color-surface)); }

.co-pack-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--pack-accent, var(--color-border));
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: var(--color-surface);
  position: relative;
  user-select: none;
}

.co-pack-card:hover {
  border-color: var(--pack-accent, var(--color-primary-400));
  background: var(--pack-accent-bg, var(--color-surface));
}

.co-pack-card--selected {
  border-color: var(--pack-accent, var(--color-primary-500));
  background: var(--pack-accent-bg, var(--color-surface));
  box-shadow: 0 1px 5px color-mix(in srgb, var(--pack-accent, var(--color-primary-500)) 18%, transparent);
}

/* Hide native radio — card click handles selection */
.co-pack-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Header row: title group left, price right */
.co-pack-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.co-pack-card__title-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.co-pack-card__name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.co-pack-card--selected .co-pack-card__name {
  color: var(--pack-accent, var(--color-primary-500));
}

.co-pack-card--tier-0.co-pack-card--selected .co-pack-card__name {
  color: var(--color-text);
}

/* "Popular" pill — shown on tier-1 */
.co-pack-card__popular {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--pack-accent) 14%, transparent);
  color: var(--pack-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.co-pack-card__price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.co-pack-card__per {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.co-pack-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Feature chips (Meals / Accommodation / Transport) */
.co-pack-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
  border-top: 1px solid var(--color-border);
}

.co-pack-card__feature {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--pack-accent, var(--color-primary-500));
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: color-mix(in srgb, var(--pack-accent, var(--color-primary-500)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pack-accent, var(--color-primary-500)) 25%, transparent);
  padding: 3px 9px;
  border-radius: 99px;
}

.co-pack-card__feature svg {
  flex-shrink: 0;
}

/* Detail rows — Start Date / Guests */
.co-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.co-detail-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.co-detail-row__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.co-detail-row__value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.co-edit-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.co-edit-btn:hover { color: var(--color-primary-700); }

/* Pricing */
.co-pricing {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.co-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-sm);
}

.co-price-row__label { color: var(--color-text-muted); }
.co-price-row__amount { font-weight: 500; color: var(--color-text); white-space: nowrap; }

.co-price-row--upgrade .co-price-row__label  { color: var(--color-warm-700); }
.co-price-row--upgrade .co-price-row__amount { color: var(--color-warm-700); font-weight: 600; }

.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-1);
}

.co-total-row__label {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}

.co-total-row__amount {
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
  color: var(--color-text);
}

/* Secure note below pay button — always in flow so card height stays constant */
.co-secure-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
}
.co-secure-note[hidden] {
  display: block !important;
  visibility: hidden;
}

/* Cancellation indicator in detail rows */
.co-detail-row__label--nr {
  color: var(--color-warning);
}
.co-detail-row__value--nr {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.co-details-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.co-details-btn:hover { color: var(--color-primary-700); }

/* Cancellation policy modal */
#co-policy-modal .co-modal__panel { max-width: 460px; }

.co-policy-section { padding: var(--space-4) 0; }
.co-policy-section:first-child { padding-top: 0; }
.co-policy-section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-2);
}
.co-policy-section__label--ok   { color: var(--color-success); }
.co-policy-section__label--warn { color: var(--color-warning); }
.co-policy-section__body {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}
.co-policy-divider { height: 1px; background: var(--color-border); }

.co-policy-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.co-policy-tier {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-2);
  align-items: baseline;
}
.co-policy-tier__pct {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.co-policy-tier__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.co-policy-tier--none .co-policy-tier__pct { color: var(--color-text-muted); }

/* Back button in Step 2 */
.co-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--space-4);
}
.co-back-btn:hover { color: var(--color-text); }

/* ── Modals ───────────────────────────────────────────────────────────── */
.co-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.co-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.co-modal__panel {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(15, 61, 62, 0.22);
}

.co-modal__panel--sm { max-width: 320px; }

.co-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.co-modal__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.co-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}
.co-modal__close:hover {
  color: var(--color-text);
  background: var(--color-primary-100);
}

.co-modal__body { padding: var(--space-5); }

/* Upgrades section label inside pricing */
.co-upgrades-section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
  margin-bottom: var(--space-1);
}

/* ×N day-count badge on upgrade lines */
.co-day-count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-warm-700);
  opacity: 0.8;
}

/* Guest stepper inside guests modal */
.co-guest-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-4) 0 var(--space-3);
}

.co-guest-stepper__val {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 3rem;
  text-align: center;
}

.co-guest-max-note {
  text-align: center;
  margin-bottom: var(--space-5);
}

/* Start Date modal — narrower than default 440px */
#co-date-modal .co-modal__panel { max-width: 340px; }

/* Experience pack modal — wide enough for pack cards */
#co-pack-modal .co-modal__panel { max-width: 480px; }

/* Phone input with fixed + and editable country code */
.phone-input-wrap {
  display: flex;
}

.phone-plus {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom-left-radius: var(--radius-md);
  user-select: none;
  line-height: 1;
}

.phone-code-input {
  width: 3.5rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  text-align: center;
  font-weight: 600;
  padding-left: var(--space-1);
  padding-right: var(--space-1);
}

.phone-input-wrap .input:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex: 1;
}

/* Required field star */
.required-star {
  color: var(--color-error, #e53e3e);
  margin-left: 2px;
}

/* Field-level validation errors */
.field-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-error, #e53e3e);
}

.input--error {
  border-color: var(--color-error, #e53e3e) !important;
}

/* Step 3 — compact booking recap */
.co-s3-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.co-s3-recap__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.co-s3-recap__img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.co-s3-recap__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.co-s3-recap__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-s3-recap__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.co-s3-recap__total {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .co-checkout { padding: 0 var(--space-3); }
  .co-card     { padding: var(--space-5) var(--space-4); }
}

/* ── Traveler messages page ─────────────────────────────────────────────── */

.messages-page {
  padding: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.messages-page__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .messages-page {
    padding: var(--space-4) var(--space-3);
  }
}

/* ── Messaging ──────────────────────────────────────────────────────────── */

.conversations-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 0;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
}

/* ── Left panel ──────────────────────────────────────────────────────────── */

.conversation-list {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow: hidden;
}

.conversation-list__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.conversation-list__header-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.conversation-list__filters {
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  flex-shrink: 0;
}

.conversation-list__filter-btn {
  padding: var(--space-1) var(--space-2);
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.conversation-list__filter-btn:hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
}

.conversation-list__filter-btn--active {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #fff;
}

.conversation-list__empty {
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  flex: 1;
}

/* Scrollable conversation items */
#conv-list-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.conversation-row {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: background 0.1s;
}

.conversation-row:hover { background: var(--color-surface); }

.conversation-row--selected {
  background: var(--color-surface);
  border-left-color: var(--color-primary-500);
}

.conversation-row--unread .conversation-row__title { font-weight: 700; }

.conversation-row__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-row__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.conversation-row__preview {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.conversation-row__time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.conversation-row__unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary-500);
  flex-shrink: 0;
}

.conv-type-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: var(--space-2);
}

.conv-type-badge--inquiry {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.conv-type-badge--booking {
  background: color-mix(in srgb, var(--color-primary-500) 12%, transparent);
  color: var(--color-primary-500);
}

/* ── Right panel: thread ────────────────────────────────────────────────── */

.conversation-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* conv-thread-active fills the thread and keeps compose pinned at the bottom */
#conv-thread-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.conversation-thread__header {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  flex-shrink: 0;
}

.conv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.conversation-thread__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.conversation-thread__subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Messages area: grows to fill, scrolls independently */
.conversation-thread__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-bg);
  min-height: 0;
  scroll-behavior: smooth;
}

.conversation-thread__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  background: var(--color-bg);
}

/* ── Message row wrappers ─────────────────────────────────────────────────── */

.msg-row {
  display: flex;
  flex-direction: column;
}

.msg-row--sent     { align-items: flex-end; }
.msg-row--received { align-items: flex-start; }
.msg-row--system   { align-items: center; }

/* ── Bubbles ─────────────────────────────────────────────────────────────── */

.message-bubble {
  max-width: 65%;
  padding: var(--space-2) var(--space-4);
  border-radius: 18px;
  font-size: var(--text-sm);
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.message-bubble--sent {
  background: var(--color-primary-500);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-bubble--received {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.message-bubble--system {
  max-width: 90%;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-style: italic;
  text-align: center;
  padding: var(--space-1) var(--space-3);
}

.message-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  padding: 0 var(--space-1);
}

.message-meta--sent     { text-align: right; }
.message-meta--received { text-align: left; }

/* ── Compose box — always pinned at bottom ───────────────────────────────── */

.compose-box {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  background: var(--color-surface);
  flex-shrink: 0;
}

.compose-box__input {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 140px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-y: auto;
  transition: border-color 0.15s;
}

.compose-box__input:focus {
  outline: none;
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-500-rgb, 13, 148, 136), 0.12);
}

.compose-box__send {
  flex-shrink: 0;
  align-self: flex-end;
  height: 38px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-lg);
}

/* ── Message report button ──────────────────────────────────────────────── */

.message-report-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  padding: 0 var(--space-1);
  margin-left: var(--space-1);
  opacity: 0;
  transition: opacity 0.15s;
  vertical-align: middle;
}

.message-bubble--received .message-report-btn { color: var(--color-text-muted); }
.message-bubble:hover .message-report-btn { opacity: 1; }

.message-deleted {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Admin conversations ─────────────────────────────────────────────────── */

.admin-conv-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}

.admin-conv-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid transparent;
}

.admin-conv-tab--active {
  color: var(--color-primary-600);
  border-color: var(--color-border);
  border-bottom-color: var(--color-surface);
  background: var(--color-surface);
  margin-bottom: -1px;
}

.admin-conv-preview {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.admin-conv-actions { white-space: nowrap; }

.admin-conv-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.admin-message-row {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-message-row--highlighted {
  background: var(--color-warning-50, #fffbe6);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border-bottom-color: var(--color-warning-200, #fde68a);
}

.admin-message-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.admin-message-body {
  font-size: var(--text-sm);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-message-hide-btn {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* Mobile: stack list above thread */
@media (max-width: 768px) {
  .app-main--flush {
    height: calc(100dvh - 60px);
  }
  .public-main--flush {
    height: calc(100dvh - 72px);
  }
  .traveler-conversations-wrapper {
    padding: 0 var(--space-3);
  }
  .conversations-shell {
    flex-direction: column;
  }
  .conversation-list {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    max-height: 45dvh;
    flex-shrink: 0;
  }
  .conversation-thread {
    flex: 1;
    min-height: 0;
  }
  .conversations-shell.thread-open .conversation-list { display: none; }
  .conversations-shell.thread-open .conversation-thread {
    flex: 1;
    min-height: 0;
  }
}

/* ── Pickup time widget (booking widget) ──────────────────────────────── */
.bw-pickup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.bw-pickup-row__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.bw-pickup-row .select {
  min-width: 7.5rem;
}

/* ── Tab navigation (admin queue pages) ──────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.tab-nav__item {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-nav__item:hover {
  color: var(--color-text);
}

.tab-nav__item--active {
  color: var(--color-primary-500);
  border-bottom-color: var(--color-primary-500);
}

/* ── Detail list (key/value pairs on detail pages) ───────────────────── */
.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-6);
  margin: 0;
}

.detail-list dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  align-self: start;
}

.detail-list dd {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
}

/* ── Review submission ───────────────────────────────────────────────── */

.review-form-card {
  max-width: 640px;
  margin: 0 auto;
}

.review-star-picker {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.review-star-picker__star {
  all: unset;
  cursor: pointer;
  color: var(--color-primary-500);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: transform 100ms ease;
}

.review-star-picker__star:hover,
.review-star-picker__star--active {
  color: var(--color-primary-500);
}

.review-star-picker__star svg {
  width: 2rem;
  height: 2rem;
}

.review-star-picker__star:hover {
  transform: scale(1.15);
}

.review-char-count {
  text-align: right;
  margin-top: var(--space-1);
}

.review-file-input {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.review-file-input::file-selector-button {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
  margin-right: var(--space-2);
}

.review-file-input::file-selector-button:hover {
  background: var(--color-primary-100);
}

/* ─── Review display (Step 7.3) ──────────────────────────────────────────────── */

.review-list {
  max-width: 720px;
  margin: var(--space-12) auto 0;
  padding: 0 var(--space-4);
}

.review-list__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.review-list__summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.review-list__all-link {
  display: inline-block;
  margin-top: var(--space-6);
}

.review-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.review-item:last-of-type {
  border-bottom: none;
}

.review-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.review-item__author {
  font-size: var(--text-sm);
  font-weight: 600;
}

.review-item--anonymized .review-item__author {
  font-style: italic;
}

.review-item__date {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review-item__text {
  margin: 0 0 var(--space-3);
  line-height: 1.65;
}

.review-stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
  vertical-align: middle;
}

.review-stars__star {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.review-stars__star--filled {
  color: var(--color-warm-500);
}

.review-stars__star--empty {
  color: var(--color-border);
}

.review-photos {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.review-photos__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.reviews-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.reviews-page__nav {
  margin-bottom: var(--space-6);
}

.reviews-page__title {
  margin-bottom: var(--space-2);
}

/* ── Recommendation strips ─────────────────────────────────────────────── */

.recommendations-strip {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.recommendations-strip__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

/* Carousel outer — positions the overlay buttons and fade edge */
.rec-strip-outer {
  position: relative;
}

/* Right-edge gradient dims the half-visible card and signals more content */
.rec-strip-outer::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18%;
  background: linear-gradient(to right, transparent, var(--color-surface, #fff));
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.25s;
}

.rec-strip-outer.is-end::after {
  opacity: 0;
}

/* Prev / Next buttons — float on the card images, set top via JS */
.rec-strip-btn {
  position: absolute;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.20);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: box-shadow 0.15s, transform 0.15s;
}

.rec-strip-btn:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.26);
  transform: translateY(-50%) scale(1.08);
}

.rec-strip-btn--prev { left: 10px; }
.rec-strip-btn--next { right: 10px; }

/* Scrollable card track */
.recommendations-strip__cards {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.recommendations-strip__cards::-webkit-scrollbar {
  display: none;
}

/* 3.5 cards visible — the half card creates the "more" affordance */
.recommendations-strip__cards .feat-card {
  flex: 0 0 calc((100% - 3 * var(--space-4)) / 3.5);
  min-width: 200px;
  scroll-snap-align: start;
}

/* Home-section carousel: 4.2 cards on desktop so the 5th peeks as overflow signal */
.home-section-track .feat-card {
  flex: 0 0 calc((100% - 3 * var(--space-4)) / 4.2);
  min-width: 180px;
  scroll-snap-align: start;
}

/* ── Audit log viewer ────────────────────────────────────────────────────── */
.audit-log__ts {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
}
.audit-log__detail {
  max-width: 360px;
}
.audit-log__meta {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-1);
}
.audit-json-toggle {
  margin-top: var(--space-1);
}
.audit-json-toggle > summary {
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  user-select: none;
}
.audit-json-pre {
  margin: var(--space-1) 0 0;
  padding: var(--space-2);
  background: var(--color-surface-alt, var(--color-border));
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
}
.admin-pill {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.pagination__info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Moderation queue ─────────────────────────────────────────────────────── */
.mod-review-row {
  padding: var(--space-4) 0;
}
.mod-review-row__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.mod-review-row__traveler {
  font-weight: 600;
}
.mod-review-row__package {
  color: var(--color-primary-600);
  text-decoration: none;
}
.mod-review-row__package:hover { text-decoration: underline; }
.mod-review-row__stars {
  color: var(--color-warning-500, #f59e0b);
  font-size: var(--text-sm);
}
.mod-review-row__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: var(--space-2) 0;
}
.mod-review-row__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.mod-photo-thumbs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-2) 0;
}
.mod-photo-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.mod-reject-form {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.mod-reject-form__btns {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.mod-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-4) 0 0;
}
.mod-report-reason {
  max-width: 300px;
  font-size: var(--text-sm);
}

/* ── Admin notes panel ──────────────────────────────────────────────────── */
.admin-notes-panel {
  display: flex;
  flex-direction: column;
}
.admin-note {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.admin-note:last-of-type {
  border-bottom: none;
}
.admin-note__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  flex-wrap: wrap;
}
.admin-note__author {
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: monospace;
}
.admin-note__body {
  font-size: var(--text-sm);
  white-space: pre-wrap;
  color: var(--color-text);
}
.admin-note__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.btn--danger-text {
  color: var(--color-error);
}
.note-edit-form textarea {
  width: 100%;
  margin-top: var(--space-2);
}

/* ── Admin notes list (row layout) ─────────────────────────────────────── */
.admin-notes-list {
  display: flex;
  flex-direction: column;
}
.admin-note-row {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.admin-note-row:last-child {
  border-bottom: none;
}
.admin-note-row__view {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.admin-note-row__content {
  flex: 1;
  min-width: 0;
}
.admin-note-row__text {
  font-size: var(--text-sm);
  white-space: pre-wrap;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.admin-note-row__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.admin-note-row__actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
  align-items: center;
}
.admin-notes-add-form {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* ── Traveler detail two-column layout ──────────────────────────────────── */
.traveler-detail-cols {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  align-items: start;
}
.traveler-notes-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.traveler-notes-card .admin-notes-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.traveler-notes-card .card-body {
  overflow-y: auto;
}
@media (max-width: 900px) {
  .traveler-detail-cols {
    grid-template-columns: 1fr;
  }
}

/* ── Cookie banner ───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  min-width: 200px;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ── Error page ─────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6);
  min-height: 60vh;
}
.error-page__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display), serif;
}
.error-page__heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}
.error-page__body {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-8);
  max-width: 36ch;
}
.error-page__ref {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin: 0 0 var(--space-8);
}
.error-page__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Checkbox form group ─────────────────────────────────────────────────── */
.form-group--checkbox {
  margin-top: var(--space-2);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.9375rem;
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.2em;
  flex-shrink: 0;
  accent-color: var(--color-primary-500);
  width: 1rem;
  height: 1rem;
}

/* ============================================================
   MOBILE / PHONE FIXES
   Traveller-facing views + public business views
   ============================================================ */

/* ── Hero section headings — classes used in HTML but had no CSS ─── */
@keyframes idx-slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.public-search-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  animation: idx-slide-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
[data-theme="dark"] .public-search-hero__heading {
  color: #fff;
}
.public-search-hero__heading-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.58);
  margin-top: var(--space-1);
  text-transform: none;
}
.public-search-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin: 0 auto var(--space-2);
  line-height: 1.6;
  animation: idx-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* ── Recently viewed packages strip ─────────────────────────────── */
.recent-pkg-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-5) auto 0;
  max-width: 640px;
  animation: idx-slide-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.recent-pkg-strip__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding-left: var(--space-2);
  border-left: 2px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}
.recent-pkg-strip__row {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (max-width: 600px) {
  .recent-pkg-strip {
    gap: var(--space-2);
  }
}
.recent-pkg-strip__row::-webkit-scrollbar { display: none; }
.recent-pkg-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  text-decoration: none;
  width: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.recent-pkg-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}
.recent-pkg-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.recent-pkg-card__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.1);
  display: block;
}
.recent-pkg-card__body {
  padding: var(--space-3);
  text-align: left;
}
.recent-pkg-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-pkg-card__meta {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}
.recent-pkg-card__remove {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 2px 5px;
  line-height: 1;
  font-size: 15px;
  transition: background 0.12s, color 0.12s;
}
.recent-pkg-card__remove:hover { background: rgba(0, 0, 0, 0.6); color: #fff; }

/* ── ≤ 600 px: hero section + stacked search bar ───────────────── */
@media (max-width: 600px) {
  /* Reduce hero padding so search bar has maximum width */
  .public-search-hero {
    padding: var(--space-10) var(--space-4) var(--space-10);
  }
  .public-search-hero--compact {
    padding: var(--space-4) var(--space-4);
    position: static;
    box-shadow: none;
  }
  .public-search-hero__heading {
    font-size: 2rem;
    color: #fff;
  }
  .public-search-hero__sub {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.72);
  }

  /* Stack the search bar vertically so date-btn doesn't crowd keyword */
  .hero-search__bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .hero-search__slot {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
  }
  .hero-search__divider {
    display: none;
  }
  .hero-search__date-btn {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .hero-search__submit {
    width: 100%;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0;
  }
}

/* ── ≤ 600 px: calendar popover — span full container, no overflow ─ */
@media (max-width: 600px) {
  .hero-search__cal {
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    min-width: unset;
  }
}

/* ── ≤ 640 px: detail page — fix padding + aspect ratio + internals  */
@media (max-width: 640px) {
  /* Bottom padding must clear the sticky price-bar (~60 px) */
  .detail-page {
    padding: var(--space-4) var(--space-3) 5rem;
  }
  /* Less squat image on phone: 16/7 → 16/9 */
  .detail-hero {
    aspect-ratio: 16 / 9;
  }
  /* Reduce inner padding so text doesn't hug walls */
  .detail-content {
    padding: var(--space-5);
  }
  .itin-section__head {
    padding: var(--space-5) var(--space-4);
  }
  .itin-panel {
    padding: var(--space-5) 0;
  }
  /* Allow inclusions / exclusions tab row to scroll if it overflows */
  .incl-excl__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  /* Booking detail header: stack for narrow phones */
  .booking-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
  }
  /* Business landing: reduce vertical section padding */
  .biz-section {
    padding: 56px var(--space-4);
  }
  /* Business hero: tighten side padding only (vertical already overridden above) */
  .biz-hero {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ── ≤ 480 px: booking detail definition list — single column ───── */
@media (max-width: 480px) {
  .booking-detail-dl {
    grid-template-columns: 1fr;
  }
  .booking-detail-dl dt {
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: var(--space-2);
  }
  .booking-detail-dl dt:first-child {
    margin-top: 0;
  }
}

/* ── Dashboard KPI delta ────────────────────────────────────────────────── */
.stat-card__delta {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-1);
}
.stat-card__delta--up     { color: var(--color-success); }
.stat-card__delta--down   { color: var(--color-error); }
.stat-card__delta--neutral{ color: var(--color-text-muted); }

/* ── Revenue trend chart ─────────────────────────────────────────────────── */
.revenue-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 100px;
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-1);
}
.chart-col {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  cursor: default;
}
.chart-col__fill {
  width: 100%;
  background: var(--color-primary-500);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 3px;
  transition: opacity 0.15s ease;
}
.chart-col:hover .chart-col__fill {
  opacity: 0.75;
}
.revenue-chart__labels {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) 0;
}
.chart-col__month {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Dashboard compact tier card ─────────────────────────────────────────── */
.dash-tier-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: #042C53;
  border-radius: 10px;
  margin-bottom: var(--space-4);
}
.dash-tier-card__medallion {
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #042C53;
  box-shadow: 0 0 0 5px #042C53;
}
.dash-tier-card__body { flex: 1; min-width: 0; }
.dash-tier-card__label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 1px;
}
.dash-tier-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.dash-tier-card__animal {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-primary-300);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 1px;
}
.dash-tier-card__link {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,.50);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.dash-tier-card__link:hover { color: rgba(255,255,255,.85); }
[data-theme="dark"] .dash-tier-card { background: #021E38; }
[data-theme="dark"] .dash-tier-card__medallion { background: #021E38; box-shadow: 0 0 0 5px #021E38; }

/* ── Dashboard header badge ───────────────────────────────────────────────── */
.dash-header-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 4px 12px 4px 4px; line-height: 1;
}
.dash-header-badge__ring {
  flex-shrink: 0; line-height: 0; border-radius: 50%;
  background: var(--color-surface); box-shadow: 0 0 0 3px var(--color-surface);
}
.dash-header-badge__name { font-size: .75rem; font-weight: 700; color: var(--color-text); }

/* ── Inline tier badge (package detail "Offered by") ─────────────────────── */
.tier-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: default;
  line-height: 1;
}
.tier-inline-badge__ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 0;
  flex-shrink: 0;
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-surface);
}
.tier-inline-badge__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.tier-inline-badge__animal {
  display: block;
  font-size: .625rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 1px;
}

/* ── ≤ 420 px: very narrow phones — trust strip + bookings title ───── */
@media (max-width: 420px) {
  /* Stack trust stats vertically */
  .trust-strip__inner {
    flex-direction: column;
    gap: var(--space-5);
    align-items: center;
  }
  /* Smaller bookings-page title on very narrow phones */
  .bookings-page__title {
    font-size: var(--text-xl);
  }
}


/* ------------------------------------------------------------
   UPGRADE OPTION CARD LIST (Meals / Transport / Hotels index)
   ------------------------------------------------------------ */
.upgrade-option-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.upgrade-option-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.upgrade-option-item__body {
  flex: 1;
  min-width: 0;
}

.upgrade-option-item__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}

.upgrade-option-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.upgrade-option-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.upgrade-option-item__aside {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.upgrade-option-item__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 4rem;
  text-align: right;
}

.badge-luxury {
  background-color: rgba(201, 137, 58, 0.15);
  color: var(--color-warning);
}


/* ------------------------------------------------------------
   CALENDAR — clickable day-number + package color pills
   ------------------------------------------------------------ */
.calendar-cell[role="button"] .calendar-cell__day {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background-color 0.1s, color 0.1s;
}
.calendar-cell[role="button"]:not(.calendar-cell--today) .calendar-cell__day:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}
.calendar-day-departure {
  border-left: 3px solid transparent;
}

/* ============================================================
   TIER & BADGE PAGE
   ============================================================ */

/* ── Page-level overrides ──────────────────────────────────────────────────── */
.tier-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.tier-section-gap { margin-bottom: 2.5rem; }

/* Section headers: small uppercase caps */
.tier-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ── Hero band ─────────────────────────────────────────────────────────────── */
.tier-hero {
  background: var(--color-primary-900);
  border-radius: 12px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
/* 3-column certificate: [medallion 180px] [divider] [text 1fr] [divider] [date 140px] */
.tier-hero__grid {
  display: grid;
  grid-template-columns: 180px 0.5px 1fr;
  gap: 0;
  align-items: stretch;
}
.tier-hero__grid--earned {
  grid-template-columns: 180px 0.5px 1fr 0.5px 140px;
}
.tier-hero__medallion-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
}
.tier-hero__vdivider {
  background: rgba(255,255,255,.10);
  align-self: stretch;
  margin: var(--space-4) 0;
}
.tier-hero__text {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}
.tier-hero__super {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 700;
  color: rgba(111,183,184,.80);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: var(--space-2);
}
.tier-hero__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.tier-hero__animal {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 700;
  color: var(--color-primary-300);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}
.tier-hero__tagline {
  font-family: var(--font-sans);
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 42ch;
}
.tier-hero__manual-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  border: 0.5px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 4px 10px;
}
/* Earned date — right column */
.tier-hero__date-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
}
.tier-hero__date-label {
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: rgba(255,255,255,.40);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.tier-hero__date-month {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.tier-hero__date-year {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--color-primary-300);
  margin-top: 3px;
}

/* Stats strip */
.th-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid rgba(255,255,255,.12);
}
.th-stat-strip__item {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,.08);
}
.th-stat-strip__item:nth-child(even) { background: rgba(15,61,62,.35); }
.th-stat-strip__item:last-child { border-right: none; }
.th-stat-strip__val {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
}
.th-stat-strip__label {
  display: block;
  font-size: .625rem;
  color: rgba(255,255,255,.40);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-top: 3px;
}

/* ── Tier ladder — subway map ─────────────────────────────────────────────── */
.tier-ladder-wrap {
  position: relative;
}
/* Single continuous line rendered FIRST — medallions sit on top via z-index */
.tier-ladder-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 29px;   /* ring-height/2 − 1 = (4px padding + 26px half-badge) − 1 */
  height: 2px;
  z-index: 0;
  pointer-events: none;
  border-radius: 1px;
}
/* Medallion row — sits above the line */
.tier-ladder-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  z-index: 1;
}
.tier-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-1);
}
/* Page-bg ring creates the gap between medallion and subway line */
.tier-stop__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-bg);
  flex-shrink: 0;
  margin-bottom: var(--space-2);
  box-shadow: 0 0 0 5px var(--color-bg);
}
/* Current tier: page-bg ring + navy outline ring */
.tier-stop--current .tier-stop__ring {
  box-shadow: 0 0 0 5px var(--color-bg), 0 0 0 7px var(--color-primary-700);
}
.tier-stop--future { opacity: .45; }
.tier-stop__labels {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tier-stop__name {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.tier-stop--current .tier-stop__name {
  color: var(--color-primary-700);
}
.tier-stop__sub {
  font-family: var(--font-sans);
  font-size: .6875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 1px;
}
.tier-stop__here {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: .5625rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--color-primary-700);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ── Progress metrics ────────────────────────────────────────────────────── */
.tier-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.tier-estimated-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary-700);
  background: var(--color-primary-100);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
.tier-metric__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.tier-metric__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.tier-metric__icon { flex-shrink: 0; color: var(--color-text-muted); }
.tier-metric__values {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.tier-metric__sep { opacity: .6; margin: 0 2px; }
.tier-metric__met-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  font-weight: 600;
  color: var(--color-primary-900);
  background: var(--color-primary-100);
  border-radius: 4px;
  padding: 1px 6px;
}
.tier-metric__bar-wrap { position: relative; }
.tier-metric__bar {
  height: 6px;
  border-radius: 8px;
  background: var(--color-border);
  overflow: visible;
  position: relative;
}
.tier-metric__fill {
  height: 100%;
  border-radius: 8px;
  background: var(--color-warm-700);
  transition: width .6s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.tier-metric__fill--met { background: var(--color-primary-700); }
.tier-metric__goal-tick {
  position: absolute;
  right: 0;
  top: -3px;
  width: 2px;
  height: 12px;
  background: var(--color-text-muted);
  border-radius: 1px;
  opacity: .4;
}
.tier-metric__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: 1.5;
}

/* ── Progress toward tier — vertical cards ───────────────────────────────── */
.tier-progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}
.tier-progress-card {
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-4);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.tier-progress-card--met {
  border-top-color: var(--color-primary-700);
}
.tier-progress-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: 8px;
  margin-bottom: var(--space-1);
  flex-shrink: 0;
}
.tier-progress-card--met .tier-progress-card__icon {
  color: var(--color-primary-700);
  background: var(--color-primary-100);
}
.tier-progress-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.tier-progress-card__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.tier-progress-card__target {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}
.tier-progress-card__bar { margin-top: auto; padding-top: var(--space-1); }

/* ── "What next tier unlocks" cards ─────────────────────────────────────── */
.tier-unlocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.tier-unlock-card {
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary-700);
  border-radius: 10px;
  padding: var(--space-5);
  background: var(--color-surface);
  position: relative;
}
.tier-unlock-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-700);
  background: var(--color-primary-100);
  border-radius: 50%;
  margin-bottom: var(--space-3);
}
.tier-unlock-card__chip {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--color-primary-700);
  background: var(--color-primary-100);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
  line-height: 1.4;
}
.tier-unlock-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.tier-unlock-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ── Social proof banner ────────────────────────────────────────────────── */
.tier-social-proof {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ── Badge preview card ──────────────────────────────────────────────────── */
.tier-badge-preview {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-5);
  background: var(--color-surface);
}
.tier-badge-preview__mock {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #FAFAFA;
  margin-bottom: var(--space-4);
}
.tier-badge-preview__thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--color-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-700);
}
.tier-badge-preview__trip-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 3px;
}
.tier-badge-preview__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary-900);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.tier-badge-preview__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.tier-badge-preview__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.tier-badge-preview__link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
}
.tier-badge-preview__link:hover { color: var(--color-primary-900); }

/* ── 3-surface preview grid ─────────────────────────────────────────────── */
.tier-preview-surfaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.tier-preview-surface__label {
  font-size: .6rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: var(--space-2);
}
.tier-preview-surface__mock {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-3);
  background: #FAFAFA;
  min-height: 88px;
}
.tier-preview-thumb--gradient {
  background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-700) 100%);
}
/* ── Download ghost button ──────────────────────────────────────────────── */
.tier-badge-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-700);
  border: 1.5px solid var(--color-primary-700);
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
  background: transparent;
  transition: background .15s;
}
.tier-badge-dl-btn:hover { background: var(--color-primary-100); color: var(--color-primary-700); }
.tier-badge-dl-caption {
  display: block;
  font-size: .625rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ── Milestones timeline ─────────────────────────────────────────────────── */
.tier-milestones { display: flex; flex-direction: column; }
.tier-ms {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0 var(--space-5);
  align-items: stretch;
}
.tier-ms__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tier-ms__ring {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--color-bg);
}
.tier-ms--current .tier-ms__ring {
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px var(--color-primary-700);
}
.tier-ms--next .tier-ms__ring {
  border: 2px dashed var(--color-border);
  background: transparent;
  box-shadow: none;
}
.tier-ms__seg {
  width: 2px;
  flex-grow: 1;
  min-height: 12px;
}
.tier-ms__seg--filled { background: var(--color-primary-700); }
.tier-ms__seg--dashed {
  background: repeating-linear-gradient(
    to bottom,
    #D4D2CA 0px, #D4D2CA 4px,
    transparent 4px, transparent 8px
  );
}
.tier-ms__body {
  padding: 4px 0 24px;
  min-width: 0;
}
.tier-ms__date {
  display: block;
  font-size: .625rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 4px;
}
.tier-ms__headline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  line-height: 1.4;
}
.tier-ms--current .tier-ms__headline { font-weight: 700; }
.tier-ms__current-pill {
  font-size: .5625rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary-700);
  border-radius: 3px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  line-height: 1.6;
}
.tier-ms__context {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}
.tier-ms--next { opacity: .70; }
.tier-ms__right {
  padding-top: 4px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.tier-ms__tag {
  font-size: .625rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
}
.tier-ms__stat {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.tier-ms__link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-700);
  text-decoration: none;
}
.tier-ms__link:hover { text-decoration: underline; }
.tier-ms__end {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: .625rem;
  color: var(--color-text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tier-ms__end::before,
.tier-ms__end::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Dark-mode adjustments ───────────────────────────────────────────────── */
[data-theme="dark"] .tier-hero { background: #091A1A; }
[data-theme="dark"] .th-stat-strip { border-top-color: rgba(255,255,255,.08); }
[data-theme="dark"] .th-stat-strip__item { border-right-color: rgba(255,255,255,.06); }
[data-theme="dark"] .th-stat-strip__item:nth-child(even) { background: rgba(255,255,255,.04); }
[data-theme="dark"] .tier-stop__ring { background: var(--color-bg); }
[data-theme="dark"] .tier-stop__here { background: var(--color-primary-500); color: #fff; }
[data-theme="dark"] .tier-badge-preview__mock { background: var(--color-surface); }
[data-theme="dark"] .tier-preview-surface__mock { background: var(--color-surface); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 840px) {
  /* Hide date column on tablets — keep medallion + text */
  .tier-hero__grid--earned { grid-template-columns: 180px 0.5px 1fr; }
  .tier-hero__date-col { display: none; }
}
@media (max-width: 720px) {
  /* Stack hero vertically */
  .tier-hero__grid,
  .tier-hero__grid--earned { grid-template-columns: 1fr; text-align: center; }
  .tier-hero__vdivider { display: none; }
  .tier-hero__medallion-col { padding: var(--space-6) var(--space-4) var(--space-4); }
  .tier-hero__text { padding: 0 var(--space-4) var(--space-6); }
  /* Hide subway line and fall back to 3-column grid */
  .tier-ladder-line { display: none; }
  .tier-ladder-row { grid-template-columns: repeat(3, 1fr); }
  .tier-unlocks-grid { grid-template-columns: 1fr; }
  .tier-preview-surfaces { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tier-ladder-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .th-stat-strip { grid-template-columns: 1fr; }
  .th-stat-strip__item { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,.08); }
  .th-stat-strip__item:last-child { border-bottom: none; }
}

/* ── Info tip ─────────────────────────────────────────────────────────────── */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-2);
  color: #0d9e8a;
  cursor: default;
  vertical-align: middle;
}
.info-tip svg { display: block; }
.info-tip__text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background: #1e2422;
  color: #f5f5f5;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  pointer-events: none;
  white-space: normal;
  text-align: left;
  z-index: 100;
  transition: opacity .15s ease, visibility .15s ease;
}
.info-tip__text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1e2422;
}
.info-tip:hover .info-tip__text,
.info-tip:focus-within .info-tip__text {
  visibility: visible;
  opacity: 1;
}
.info-tip--below .info-tip__text {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
}
.info-tip--below .info-tip__text::after {
  left: 50%;
  top: auto;
  bottom: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #1e2422;
  border-right-color: transparent;
}


/* ── Search suggestions dropdown ────────────────────────────────────────── */

.hero-search.is-suggesting ~ .recent-pkg-strip {
  visibility: hidden;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 600;
  margin: 0;
  padding: var(--space-1) 0;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
}

.search-suggest__item {
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__item:hover,
.search-suggest__item--active {
  background: var(--color-surface-alt, rgba(0, 0, 0, 0.04));
}
