/* ──────────────────────────────────────────────────────────────
   voyager.css — shared site styles for ALL pages
   Includes: dark-mode overrides, focus rings, gold-button rules,
   skeleton shimmer, modern nav components, glass utility, toast
   stack, and the locale dropdown.
   ──────────────────────────────────────────────────────────────

   COMPONENT INDEX — single source of truth for repeated UI patterns.
   If you need to style one of these, edit it HERE — every page picks
   the change up automatically. Do NOT duplicate the styling inline
   on individual pages.

     .nav-pill / .nav-pill-group     primary nav links (Destinations, Packages, …)
     .nav-action-btn                 secondary nav buttons (theme, account, locale)
     .nav-dropdown / .nav-dd-*       generic dropdown chrome (head, items, dividers)
     .nav-dd-role-badge[.is-super|.is-admin|.is-agent|.is-content|.is-support]
                                     role indicator pill used in account dropdowns
                                     and the admin nav header. Single canonical
                                     definition — used by index.php, partials/nav.php,
                                     and admin.php.
     .nav-locale-btn / .nav-locale-* country + currency + language picker
     .section-label                  small uppercase amber kicker text used above
                                     section headings ("Popular right now",
                                     "Curated", "Stays", "AI Travel Planner", …)
     .grad-gold                      gold button gradient + hover lift
     .browse-all-link                "Browse all →" link with hover slide
     .field-error / .field-success / .field-hint
                                     form validation states (Phase 13 P2)
     .pwd-strength-meter / .pwd-strength-bars
                                     password strength indicator (Phase 13 P2)
     .security-banner                grandfathered-password warning banner
     .promo-input-wrap               inline input + button pill
     .toast / #toast-stack           top-right toast notifications

   Note: search-page accents live in landing.css (per-page); admin chrome
   inherits everything here.
   ────────────────────────────────────────────────────────────── */

/* ── Base ────────────────────────────────────────────────────── */
body { font-family: var(--font-body, 'Inter', -apple-system, system-ui, sans-serif); }
[x-cloak] { display: none !important; }

/* ── .section-label — small uppercase kicker text used above many
   headings across the site. Previously defined inline 20+ times as
   `text-xs uppercase tracking-widest text-amber-600 font-medium`.
   Consolidated here so the colour can be tweaked globally. */
.section-label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(var(--c-primary-600));                           /* amber-600 */
}
.dark .section-label { color: rgb(var(--c-primary-400)); }    /* amber-400 — readable on slate-950 */

/* Variant for hero sections that sit on dark photo backgrounds
   (the AI Planner block, dark hero, etc.) — lighter amber default
   so it doesn't need a per-page override. */
.section-label.on-dark {
  color: rgb(var(--c-primary-300));                           /* amber-300 */
}
.dark .section-label.on-dark { color: rgb(var(--c-primary-200)); }  /* amber-200 */
.font-display { font-family: var(--font-display, 'Playfair Display', Georgia, serif); }
/* CRO F1 (2026-10-17): figures that line up. Measured in the browser on 17 October: Inter's digits are proportional
   by default ("1111" 65px, "8888" 99px at 40px) and tabular on request (all 104px), so prices, times and counts stack
   in even columns. Playfair Display's default figures are old-style (they dip below the line and vary in size); it has
   lining figures but no tabular set, so it gets lining, and tabular too should a theme give the headings a font that
   has them. Lining, not old-style, is what a price wants. */
body          { font-variant-numeric: tabular-nums; }
.font-display { font-variant-numeric: lining-nums tabular-nums; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ── Brand gold button (one source of truth, used on every page) ──
   Colours come from CSS variables so admin Branding can retheme the whole
   site (see partials/branding.php). Defaults preserve the original gold. */
:root {
  --brand-1: #C9A84C;
  --brand-2: #E8CC80;
  --brand-3: #B8913A;
  /* The same three as space-separated RGB, for see-through shades (rgb(var(--brand-1-rgb) / .4)),
     and the ink drawn on the gradient: dark or white, whichever reads better on the brand colours
     (partials/branding.php works both out when the colours change; docs/UI_PHASE_B_CHECKLIST.md). */
  --brand-1-rgb: 201 168 76;
  --brand-2-rgb: 232 204 128;
  --brand-3-rgb: 184 145 58;
  --brand-ink: 15 23 42;
  /* Two hand-tuned colours on brand/grey utilities, as variables so a theme can move them too:
     small brand text on light surfaces (.text-amber-600, below) and the warm hover wash on light
     rows (.hover:bg-slate-100). The theme sets them from its own scale. */
  --c-primary-text: 161 98 7;
  --c-hover-tint: 254 215 170;
  --c-primary-ink: 15 23 42;   /* text on the brand's own mid steps (light chips in dark mode) */
}
.grad-gold {
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  color: rgb(var(--brand-ink));
  font-weight: 600;
  letter-spacing: .01em;
  transition: filter .18s ease, box-shadow .22s ease, transform .12s ease;
  box-shadow: 0 4px 12px -4px rgb(var(--brand-1-rgb) / .40), 0 1px 3px rgb(var(--c-neutral-900) / .10);
}
.grad-gold:hover  { filter: brightness(1.06); box-shadow: 0 8px 22px -6px rgb(var(--brand-1-rgb) / .55), 0 2px 6px rgb(var(--c-neutral-900) / .14); }
.grad-gold:active { transform: translateY(1px); filter: brightness(.97); }
.grad-gold:disabled, .grad-gold[disabled] { filter: grayscale(.15) brightness(.96); cursor: not-allowed; box-shadow: none; }
/* Dark, readable label in BOTH themes — compound selectors raise specificity past `.dark .text-slate-900`. */
.grad-gold, .grad-gold *, .grad-gold.text-slate-900, .grad-gold .text-slate-900,
.dark .grad-gold, .dark .grad-gold *, .dark .grad-gold.text-slate-900, .dark .grad-gold .text-slate-900 { color: rgb(var(--brand-ink)) !important; }
.grad-gold-text {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Skeleton shimmer — theme-aware ── */
.skeleton { background: linear-gradient(90deg,rgb(var(--c-neutral-100)) 0%,rgb(var(--c-neutral-200)) 50%,rgb(var(--c-neutral-100)) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.dark .skeleton { background: linear-gradient(90deg,rgb(var(--c-neutral-800)) 0%,rgb(var(--c-neutral-700)) 50%,rgb(var(--c-neutral-800)) 100%); background-size: 200% 100%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Glass surface ── */
.glass { backdrop-filter: blur(14px) saturate(160%); background: rgba(255,255,255,.72); }
.dark .glass { background: rgb(var(--c-neutral-900) / .78); border-color: rgba(255,255,255,.06); }

/* ── Hide scrollbar utility ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES — covers every Tailwind utility used inline
   ═══════════════════════════════════════════════════════════════ */
.dark { color-scheme: dark; }
.dark body { background: rgb(var(--c-neutral-950)); color: rgb(var(--c-neutral-200)); }

/* Backgrounds */
/* Each blanket remap below skips an element that states its OWN dark background
   (`dark:bg-*`): these rules are !important and Tailwind's dark:bg-* is not, so
   they used to discard it silently — 182 elements, e.g. 36 `bg-white
   dark:bg-slate-800` cards drawn #0f172a instead of #1e293b. Same fix as the
   bg-slate-900 rule further down (2026-09-24), extended to its siblings on
   2026-09-25; see RESPONSIVE_AUDIT.md §7. */
.dark .bg-white:not([class*="dark:bg-"])                                     { background-color: rgb(var(--c-neutral-900)) !important; }
.dark .bg-slate-50:not([class*="dark:bg-"])                                  { background-color: rgb(var(--c-neutral-950)) !important; }
.dark .bg-slate-100:not([class*="dark:bg-"])                                 { background-color: rgb(var(--c-neutral-800)) !important; }
/* Sections/footers using `bg-slate-900` fade into the body bg in dark mode for
   a flat (no-nested-panel) look. Buttons keep their own slate-700 lift via
   `.dark button.bg-slate-900` further down. */
/* :not([class*="dark:bg-"]) — an element that states its OWN dark background
   must keep it. This rule is `!important` and Tailwind's `dark:bg-*` is not,
   so it silently discarded the author's intent. Seven elements combine
   `bg-slate-900` with a `dark:bg-*`, all of them wanting a LIGHT or GOLD
   surface with dark text in dark mode — hotel.php's review badge
   (`dark:bg-amber-500`) and six `dark:bg-slate-100` buttons. They were saved
   only by `.dark .text-slate-900` whitening their labels, i.e. white text on
   a surface that was never meant to be dark. Once the ALWAYS-LIGHT block
   correctly pinned the badge's label dark, that accident stopped rescuing it
   and it measured 1.13:1 on beta. Honouring `dark:bg-*` fixes the cause:
   the badge is 8.37:1 on #f59e0b, the buttons 16.6:1 on #f1f5f9.
   ⚠ The same flaw remains in the sibling rules below — see RESPONSIVE_AUDIT. */
.dark .bg-slate-900:not([class*="dark:bg-"])          { background-color: rgb(var(--c-neutral-950)) !important; }
/* BUG 6 — When a <footer> blends into the body it loses any visible boundary.
   Restore a hairline top border so the footer still feels like a distinct band. */
.dark footer.bg-slate-900,
.dark footer.bg-slate-900\/95 { border-top: 1px solid rgb(var(--c-neutral-800)); }
.dark .bg-amber-50:not([class*="dark:bg-"]), .dark .bg-amber-50\/30:not([class*="dark:bg-"]), .dark .bg-amber-50\/50:not([class*="dark:bg-"]),
.dark .bg-amber-50\/60:not([class*="dark:bg-"]) { background-color: rgb(var(--c-primary-700) / .18) !important; }
.dark .bg-warn-50:not([class*="dark:bg-"]), .dark .bg-warn-50\/30:not([class*="dark:bg-"]), .dark .bg-warn-50\/50:not([class*="dark:bg-"]),
.dark .bg-warn-50\/60:not([class*="dark:bg-"]) { background-color: rgba(180,83,9,.18) !important; }
.dark .bg-gold-50:not([class*="dark:bg-"]), .dark .bg-gold-50\/30:not([class*="dark:bg-"]), .dark .bg-gold-50\/50:not([class*="dark:bg-"]),
.dark .bg-gold-50\/60:not([class*="dark:bg-"]) { background-color: rgba(180,83,9,.18) !important; }   /* /60 added 2026-09-24 — the rule-engine active tab */
.dark .bg-emerald-50:not([class*="dark:bg-"])                                { background-color: rgba(4,120,87,.18) !important; }
.dark .bg-red-50:not([class*="dark:bg-"])                                    { background-color: rgba(185,28,28,.18) !important; }
.dark .bg-blue-50:not([class*="dark:bg-"])                                   { background-color: rgba(30,64,175,.18) !important; }

/* Borders + rings — BUG 5 fix: bumped from #1e293b to #334155 (slate-700) so cards
   carry a visible outline against the dark body instead of a hairline that disappears
   on dim monitors. Affects card containers, panel dividers, modal frames. */
.dark .border-slate-100, .dark .border-slate-200, .dark .border-slate-200\/60 { border-color: rgb(var(--c-neutral-700)) !important; }
.dark .border-slate-300                               { border-color: rgb(var(--c-neutral-600)) !important; }
/* CRO B1 (2026-10-16): the home search card's fields carry a stronger edge, in dark too. */
.dark #search-card .border-slate-400                  { border-color: rgb(var(--c-neutral-500)) !important; }
.dark .border-amber-200                               { border-color: rgb(var(--c-primary-300) / .30) !important; }
.dark .border-warn-200 { border-color: rgba(252,211,77,.30) !important; }
.dark .border-gold-200 { border-color: rgba(252,211,77,.30) !important; }
.dark .border-emerald-200                             { border-color: rgba(110,231,183,.30) !important; }
.dark .border-red-200                                 { border-color: rgba(252,165,165,.30) !important; }
.dark .ring-slate-200\/60                             { --tw-ring-color: rgb(var(--c-neutral-800) / .60) !important; }
.dark .ring-white\/30, .dark .ring-white\/20, .dark .ring-white\/10, .dark .ring-white\/5 { --tw-ring-color: rgba(255,255,255,.10) !important; }

/* Text */
.dark .text-slate-900 { color: rgb(var(--c-neutral-100)) !important; }
.dark .text-slate-800 { color: rgb(var(--c-neutral-200)) !important; }
.dark .text-slate-700 { color: rgb(var(--c-neutral-300)) !important; }
/* 600, 500 and 400 all read #cbd5e1 in dark. They were declared twice: here as
   #94a3b8 / #94a3b8 / #64748b, and again ~900 lines down lifting 500 and 400 to
   #cbd5e1 for WCAG AA. The later pair won, so these two were dead — and the
   survivors left text-slate-600 DIMMER than 500 and 400, an inverted hierarchy.
   One declaration now, and 600 brought up rather than 500/400 brought down, so
   no text anywhere loses contrast. Always-light surfaces pin these dark again
   (ALWAYS-LIGHT block). tests/rules_page_theme_test.php compares admin-rules.php's
   copy against these values. */
.dark .text-slate-600 { color: rgb(var(--c-neutral-300)) !important; }
.dark .text-slate-500 { color: rgb(var(--c-neutral-300)) !important; }
.dark .text-slate-400 { color: rgb(var(--c-neutral-300)) !important; }
.dark .text-slate-300 { color: rgb(var(--c-neutral-400)) !important; }   /* was #475569 — see SLATE-300 block */
.dark .text-amber-700, .dark .text-amber-800, .dark .text-amber-900 { color: rgb(var(--c-primary-400)) !important; }
.dark .text-warn-700, .dark .text-warn-800, .dark .text-warn-900 { color: #fbbf24 !important; }
.dark .text-gold-700, .dark .text-gold-800, .dark .text-gold-900 { color: #fbbf24 !important; }
.dark .text-emerald-600, .dark .text-emerald-700 { color: #34d399 !important; }
.dark .text-red-600, .dark .text-red-700          { color: #f87171 !important; }
.dark .text-blue-600                              { color: #60a5fa !important; }

/* ═══════════════════════════════════════════════════════════════
   GLOBAL HOVER ENHANCEMENTS — make every hoverable surface
   noticeably react in BOTH themes. The previous values
   (`bg-slate-50` on hover ≈ #f8fafc on #ffffff) were almost
   imperceptible. Now: warm amber tint in light, gold tint in dark.
   ═══════════════════════════════════════════════════════════════ */

/* Light-mode Tailwind hover utilities — replace pale slates with a
   warm amber wash so the hover state is actually visible against
   white cards. Subtle gold accent border via inset shadow on items
   that already have a border. */
.hover\:bg-slate-50:hover  { background-color: rgb(var(--c-primary-100) / .55) !important; box-shadow: inset 0 0 0 1px rgb(var(--brand-1-rgb) / .15); }
.hover\:bg-slate-100:hover { background-color: rgb(var(--c-hover-tint) / .50) !important; box-shadow: inset 0 0 0 1px rgb(var(--brand-1-rgb) / .22); }
.hover\:bg-white:hover     { background-color: #ffffff !important; box-shadow: 0 4px 12px -4px rgb(var(--c-neutral-900) / .10), inset 0 0 0 1px rgb(var(--brand-1-rgb) / .18); }
.hover\:bg-amber-50:hover  { background-color: rgb(var(--c-primary-100) / .95) !important; }
.hover\:bg-warn-50:hover { background-color: rgba(254,243,199,.95) !important; }
.hover\:bg-gold-50:hover { background-color: rgba(254,243,199,.95) !important; }

/* Dark-mode hovers — previously slate-on-slate (barely visible). Now
   a warm amber wash that pops against the navy panels. */
.dark .hover\:bg-slate-50:hover  { background-color: rgb(var(--c-primary-700) / .32) !important; box-shadow: inset 0 0 0 1px rgb(var(--c-primary-300) / .20); }
.dark .hover\:bg-slate-100:hover { background-color: rgb(var(--c-primary-700) / .40) !important; box-shadow: inset 0 0 0 1px rgb(var(--c-primary-300) / .25); }
.dark .hover\:bg-slate-200:hover { background-color: rgb(var(--c-primary-700) / .45) !important; box-shadow: inset 0 0 0 1px rgb(var(--c-primary-300) / .28); }
.dark .hover\:bg-slate-800:hover { background-color: rgb(var(--c-primary-700) / .30) !important; }
.dark .hover\:bg-amber-50:hover  { background-color: rgb(var(--c-primary-700) / .45) !important; }
.dark .hover\:bg-warn-50:hover { background-color: rgba(180,83,9,.45) !important; }
.dark .hover\:bg-gold-50:hover { background-color: rgba(180,83,9,.45) !important; }
.dark .hover\:bg-white:hover     { background-color: rgb(var(--c-neutral-800)) !important; box-shadow: 0 4px 12px -4px rgba(0,0,0,.40), inset 0 0 0 1px rgb(var(--c-primary-300) / .25); }

/* Text hovers — keep strong contrast in both modes */
.hover\:text-slate-900:hover { color: rgb(var(--c-neutral-900)) !important; }
.hover\:text-amber-500:hover { color: rgb(var(--c-primary-600)) !important; }
.hover\:text-warn-500:hover { color: #d97706 !important; }
.hover\:text-gold-500:hover { color: #d97706 !important; }
.dark .hover\:text-slate-900:hover { color: rgb(var(--c-primary-100)) !important; }
.dark .hover\:text-slate-700:hover { color: rgb(var(--c-primary-200)) !important; }
.dark .hover\:text-white:hover     { color: rgb(var(--c-primary-100)) !important; }
.dark .hover\:text-amber-500:hover { color: rgb(var(--c-primary-400)) !important; }
.dark .hover\:text-warn-500:hover { color: #fbbf24 !important; }
.dark .hover\:text-gold-500:hover { color: #fbbf24 !important; }

/* Opacity-only hovers feel dead — give them a subtle lift instead */
.hover\:opacity-80:hover, .hover\:opacity-90:hover, .hover\:opacity-95:hover {
  opacity: 1 !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
  transition: filter .15s ease, transform .15s ease;
}
.dark .hover\:opacity-80:hover, .dark .hover\:opacity-90:hover, .dark .hover\:opacity-95:hover {
  opacity: 1 !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   ATTACHED INPUT + INLINE ACTION BUTTON (e.g. promo-code apply)
   Pattern keeps the action button visually nested INSIDE the input
   pill so it never overflows the parent card, regardless of the
   card width or padding. Used on booking.php and reusable anywhere
   you need an inline "Apply / Submit / Go" action on a text field.
   ═══════════════════════════════════════════════════════════════ */
.promo-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgb(var(--c-neutral-200));
  border-radius: calc(0.625rem * var(--radius-k, 1));
  transition: border-color .15s ease, box-shadow .15s ease;
}
.promo-input-wrap:focus-within {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgb(var(--brand-1-rgb) / .15);
}
/* `!important` here so the global `input` rule below doesn't reapply a solid bg
   and a slate-300 border — this input is intentionally borderless inside the
   promo-input-wrap pill (the wrap supplies the visible border). */
.promo-input {
  flex: 1; min-width: 0;
  padding: .55rem .75rem;
  padding-right: 4.5rem;       /* leave room for the absolute action button */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--c-neutral-900)) !important;
}
.promo-input:focus { box-shadow: none !important; }
.promo-input::placeholder { color: rgb(var(--c-neutral-400)) !important; letter-spacing: .08em; }
.dark .promo-input { color: rgb(var(--c-neutral-50)) !important; }
.promo-apply-btn {
  position: absolute;
  right: 4px; top: 4px; bottom: 4px;
  padding: 0 .9rem;
  border-radius: calc(.375rem * var(--radius-k, 1));
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  color: rgb(var(--c-neutral-900)) !important;
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 3px rgba(180,145,58,.30);
  white-space: nowrap;
}
.promo-apply-btn:hover { filter: brightness(1.06); box-shadow: 0 3px 8px -1px rgba(180,145,58,.45); }
.promo-apply-btn:active { filter: brightness(.96); }
.promo-apply-btn:disabled { opacity: .6; cursor: not-allowed; filter: grayscale(.2); }

.dark .promo-input-wrap { background: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-700)); }
.dark .promo-input-wrap:focus-within { border-color: rgb(var(--c-primary-400)); box-shadow: 0 0 0 3px rgb(var(--c-primary-300) / .18); }
.dark .promo-input::placeholder { color: rgb(var(--c-neutral-400)) !important; }   /* 6.96:1 on #0f172a — same token as every other field */

/* ═══════════════════════════════════════════════════════════════
   DARK-FILLED BUTTONS in DARK MODE
   `bg-slate-900` (#0f172a) on a `<button>` or `<a>` becomes nearly
   invisible against the dark body (#020617). Lift to slate-700 so
   the CTA reads, with a faint gold inset ring + brighter hover so
   the interaction stays tactile. Targets buttons/links ONLY —
   `<section>`, `<header>`, `<footer>`, and `bg-slate-900/40`
   overlays keep their original dark fill on purpose.
   ═══════════════════════════════════════════════════════════════ */
.dark button.bg-slate-900,
.dark a.bg-slate-900,
.dark input[type="submit"].bg-slate-900,
.dark input[type="button"].bg-slate-900 {
  background-color: rgb(var(--c-neutral-700)) !important;   /* slate-700: stands out from #020617 body */
  color: rgb(var(--c-neutral-50)) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.40), inset 0 0 0 1px rgb(var(--c-primary-300) / .14);
}
.dark button.bg-slate-900:hover,
.dark a.bg-slate-900:hover,
.dark input[type="submit"].bg-slate-900:hover,
.dark input[type="button"].bg-slate-900:hover {
  background-color: rgb(var(--c-neutral-600)) !important;   /* slate-600 on hover */
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.50), inset 0 0 0 1px rgb(var(--c-primary-300) / .30);
}
/* LIGHT-mode counterpart: keep current dark-button look but add a softer
   shadow + subtle hover lift to feel like the rest of the buttons. */
button.bg-slate-900,
a.bg-slate-900 {
  box-shadow: 0 2px 6px -1px rgb(var(--c-neutral-900) / .18);
  transition: background-color .15s ease, box-shadow .2s ease, transform .12s ease;
}
button.bg-slate-900:hover,
a.bg-slate-900:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgb(var(--c-neutral-900) / .30);
}
button.bg-slate-900:active,
a.bg-slate-900:active { transform: translateY(0); }
/* Disabled state — slightly faded, no hover effects */
.dark button.bg-slate-900:disabled,
.dark a.bg-slate-900[disabled] { background-color: rgb(var(--c-neutral-800)) !important; opacity: .65; }

/* Focus rings — keyboard a11y in dark mode */
.dark .focus\:ring-amber-500:focus,
.dark .focus\:border-amber-500:focus { --tw-ring-color: rgb(var(--c-primary-300) / .55) !important; }
.dark .focus\:ring-warn-500:focus,
.dark .focus\:border-warn-500:focus { --tw-ring-color: rgba(252,211,77,.55) !important; }
.dark .focus\:ring-gold-500:focus,
.dark .focus\:border-gold-500:focus { --tw-ring-color: rgba(252,211,77,.55) !important; }
.dark input:focus, .dark select:focus, .dark textarea:focus { outline-color: rgb(var(--c-primary-300) / .55); }

/* ═══════════════════════════════════════════════════════════════
   FORM CONTROLS — uniform background + visible border in BOTH themes
   ───────────────────────────────────────────────────────────────
   Matches every <input>/<select>/<textarea> EXCEPT those that should
   keep native UI (checkbox, radio, file, colour picker, range slider,
   submit/button/reset). The previous selector only targeted inputs
   with an *explicit* `type` attribute — so plain `<input>` (which
   defaults to text but has no attribute) stayed browser-default
   white, producing the bug where From/To stayed white in dark mode
   while Departure/Return/Travelers correctly darkened.
   ═══════════════════════════════════════════════════════════════ */
/* Common selector reused below */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([class*="bg-white/"]),
select,
textarea {
  background-color: #ffffff !important;
  border: 1px solid rgb(var(--c-neutral-300)) !important;   /* slate-300 — more pronounced than Tailwind's default slate-200 */
  color: rgb(var(--c-neutral-900)) !important;
}
/* Placeholder contrast. Measured on a real field, not chosen by eye: the two
   values were the wrong way round. Light mode had slate-400 on white at
   2.56:1 — under the 3:1 floor where text stops being readable — while dark
   mode had the darker slate-500 on slate-800 at 3.07:1, barely over it.
   Swapped, they are 4.76:1 and 5.71:1: still clearly secondary to a real
   value, no longer a guess at what the field wants.

   One pair of tokens covers every input and textarea on every page — no
   page carries a dark: utility for fields, by design. */
input::placeholder, textarea::placeholder { color: rgb(var(--c-neutral-500)) !important; }   /* 4.76:1 on white */

.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([class*="bg-white/"]),
.dark select,
.dark textarea {
  background-color: rgb(var(--c-neutral-800)) !important;   /* slate-800 — distinct from body #020617 */
  border-color: rgb(var(--c-neutral-600)) !important;       /* slate-600 — visibly stands proud */
  color: rgb(var(--c-neutral-100)) !important;
}
.dark input::placeholder, .dark textarea::placeholder { color: rgb(var(--c-neutral-400)) !important; }   /* 5.71:1 on #1e293b */

/* Focus state — gold border + soft amber glow. Higher specificity needed
   to win against the global !important input rule above. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus,
select:focus,
textarea:focus {
  border-color: var(--brand-1) !important;
  box-shadow: 0 0 0 3px rgb(var(--brand-1-rgb) / .18) !important;
  outline: none !important;
}
.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus,
.dark select:focus,
.dark textarea:focus {
  border-color: rgb(var(--c-primary-400)) !important;
  box-shadow: 0 0 0 3px rgb(var(--c-primary-300) / .22) !important;
}

/* Native date / time / datetime pickers — BUG 7. `color-scheme` covers Firefox + Edge
   (their native UI adapts automatically). The webkit-prefixed filter covers Chrome /
   Safari which respect color-scheme less reliably for the picker icon. */
input[type="date"], input[type="time"], input[type="datetime-local"] { color-scheme: light; }
.dark input[type="date"], .dark input[type="time"], .dark input[type="datetime-local"] { color-scheme: dark; }
.dark input[type="date"]::-webkit-calendar-picker-indicator,
.dark input[type="time"]::-webkit-calendar-picker-indicator,
.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(.7);
  cursor: pointer;
}

/* BUG 8 — Disabled inputs: bump contrast in dark mode (was slate-700 on slate-900, failed AA) */
input:disabled, select:disabled, textarea:disabled { background-color: rgb(var(--c-neutral-100)) !important; color: rgb(var(--c-neutral-500)) !important; cursor: not-allowed; }
.dark input:disabled, .dark select:disabled, .dark textarea:disabled { background-color: rgb(var(--c-neutral-900)) !important; color: rgb(var(--c-neutral-400)) !important; }

/* BUG 1 — Form controls with explicit `bg-white` class were ending up at #0f172a (from
   `.dark .bg-white`) while other form controls landed on #1e293b (from `.dark input`).
   This higher-specificity rule forces all form controls onto the SAME slate-800 in dark
   mode regardless of their Tailwind background utility. */
.dark input.bg-white,
.dark select.bg-white,
.dark textarea.bg-white {
  background-color: rgb(var(--c-neutral-800)) !important;
}

/* BUG 10 — Read-only inputs get a subtle slate tint so users can tell at a glance the
   field isn't editable. Excludes date pickers (which open a popup) and the promo-input. */
input[readonly]:not(.flatpickr-input):not([type="date"]):not([type="time"]):not(.promo-input) {
  background-color: rgb(var(--c-neutral-50)) !important;     /* slate-50 — slightly off from white */
  cursor: default;
}
.dark input[readonly]:not(.flatpickr-input):not([type="date"]):not([type="time"]):not(.promo-input) {
  background-color: rgb(var(--c-neutral-900)) !important;     /* slate-900 vs editable's slate-800 */
}

/* BUGS 2 + 3 — Custom `<select>` arrow + padding to match `<input>`. Browsers paint the
   native arrow in OS colours, which becomes nearly invisible (dark triangle on dark
   slate) in dark mode. Replacing it with an inline SVG chevron lets it follow the
   theme. The reserved padding-right also lines selects up with sibling inputs. */
select:not([multiple]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 12px;
  padding-right: 2.25rem !important;        /* room for the arrow + visual parity with inputs */
}
.dark select:not([multiple]) {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
}
/* ── `<select>` option styling ─────────────────────────────────────
   `<option>` rendering is partly OS-controlled (especially on macOS Safari),
   but Chrome/Edge/Firefox on Windows + Linux respect background-color and
   color. Make options match the site theme as much as the browser allows. */
select option {
  background-color: #ffffff;
  color: rgb(var(--c-neutral-900));
  padding: .5rem .75rem;
  font-family: inherit;
}
select option:checked {
  background: linear-gradient(rgb(var(--c-primary-100) / .95), rgb(var(--c-primary-100) / .95));
  color: rgb(var(--c-primary-800));
  font-weight: 600;
}
.dark select option { background-color: rgb(var(--c-neutral-800)); color: rgb(var(--c-neutral-100)); }
.dark select option:checked {
  background: linear-gradient(rgb(var(--c-primary-700) / .50), rgb(var(--c-primary-700) / .50));
  color: rgb(var(--c-primary-300));
  font-weight: 600;
}

/* ── Browse-all link (used on landing-page section headers) ───────
   Replaces the bare `text-slate-500 hover:text-amber-600` styling with a
   button-shaped pill that visibly lights up + nudges right on hover so
   users can tell it's an interactive link, not a decorative label. */
.browse-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgb(var(--c-neutral-500));
  padding: 6px 12px;
  border-radius: calc(9px * var(--radius-k, 1));
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.browse-all-link:hover {
  color: rgb(var(--c-primary-800));
  background: rgb(var(--c-primary-100) / .92);
  box-shadow: 0 2px 6px -1px rgba(180,145,58,.25), inset 0 0 0 1px rgb(var(--brand-1-rgb) / .35);
  transform: translateX(2px);
}
.browse-all-link:hover .browse-arrow { transform: translateX(3px); }
.browse-all-link .browse-arrow { display: inline-block; transition: transform .15s ease; }
.dark .browse-all-link { color: rgb(var(--c-neutral-400)); }
.dark .browse-all-link:hover {
  color: rgb(var(--c-primary-300));
  background: rgb(var(--c-primary-700) / .42);
  box-shadow: 0 2px 6px -1px rgba(0,0,0,.40), inset 0 0 0 1px rgb(var(--c-primary-300) / .30);
}
/* On-dark variant — same link sitting on a dark section (e.g. Cheap Flights) */
.browse-all-link.on-dark { color: rgb(var(--c-neutral-300)); }
.browse-all-link.on-dark:hover {
  color: rgb(var(--c-primary-300));
  background: rgb(var(--c-primary-300) / .18);
  box-shadow: 0 2px 6px -1px rgba(0,0,0,.40), inset 0 0 0 1px rgb(var(--c-primary-300) / .30);
}

/* BUG 4 — Number-input spinners look out of place. Hide them everywhere; the keyboard
   arrow keys still increment / decrement the value. */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* BUG 13 — Tailwind `text-*-500` shades were missing dark-mode overrides. Without these,
   required-field asterisks, error chips and similar elements stay at the standard
   muddy-red / blue tones that fail AA on dark backgrounds. */
.dark .text-red-500     { color: #f87171 !important; }
.dark .text-emerald-500 { color: #34d399 !important; }
.dark .text-amber-500   { color: rgb(var(--c-primary-400)) !important; }
.dark .text-warn-500 { color: #fbbf24 !important; }
.dark .text-gold-500 { color: #fbbf24 !important; }
.dark .text-blue-500    { color: #60a5fa !important; }
.dark .text-rose-500    { color: #fb7185 !important; }
.dark .text-yellow-500  { color: #fbbf24 !important; }
.dark .text-green-500   { color: #4ade80 !important; }

/* ── Opt-out: translucent inputs (e.g. search.php hero search bar) keep their
   `bg-white/10`-on-dark look. The selector targets inputs whose author CSS
   class explicitly includes the white-opacity utility, restoring the design. */
input.bg-white\/10,
input.bg-white\/5,
input.bg-white\/20,
.dark input.bg-white\/10,
.dark input.bg-white\/5,
.dark input.bg-white\/20 {
  background-color: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #ffffff !important;
}
/* Was `rgba(255,255,255,.40)`. On this field's own background —
   `rgba(255,255,255,.10)` over the panel's #0f172a, i.e. rgb(39,46,63) —
   that measured 1.00:1 in light theme: white on white, a placeholder that
   simply was not there. #94a3b8 is 5.34:1 on the same field, and is the
   token every other placeholder on the site already uses. */
input.placeholder-white\/40::placeholder { color: rgb(var(--c-neutral-400)) !important; }

/* Tables — stronger row hover in both themes */
.dark table { color: rgb(var(--c-neutral-300)); }
.dark table.adm th { background: rgb(var(--c-neutral-950)) !important; color: rgb(var(--c-neutral-500)) !important; border-bottom-color: rgb(var(--c-neutral-800)) !important; }
.dark table.adm td { border-bottom-color: rgb(var(--c-neutral-800)) !important; }
table.adm tbody tr { transition: background-color .12s ease; }
table.adm tbody tr:hover { background-color: rgb(var(--c-primary-100) / .55) !important; box-shadow: inset 3px 0 0 0 var(--brand-1); }
.dark table.adm tbody tr:hover { background-color: rgb(var(--c-primary-700) / .28) !important; box-shadow: inset 3px 0 0 0 rgb(var(--c-primary-400)); }

/* Divides (e.g. divide-y divide-slate-200) */
.dark .divide-slate-200 > * + *, .dark .divide-slate-100 > * + * { border-top-color: rgb(var(--c-neutral-800)) !important; }

/* Shadows look anemic on dark — boost */
.dark .shadow-sm  { box-shadow: 0 1px 2px rgba(0,0,0,.40) !important; }
.dark .shadow     { box-shadow: 0 1px 3px rgba(0,0,0,.50), 0 1px 2px rgba(0,0,0,.30) !important; }
.dark .shadow-md  { box-shadow: 0 4px 6px -1px rgba(0,0,0,.55), 0 2px 4px -1px rgba(0,0,0,.35) !important; }
.dark .shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,.60), 0 4px 6px -2px rgba(0,0,0,.30) !important; }
.dark .shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,.65), 0 10px 10px -5px rgba(0,0,0,.30) !important; }
.dark .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.85) !important; }

/* ═══════════════════════════════════════════════════════════════
   MODERN NAVIGATION (shared across pages — backport target)
   ═══════════════════════════════════════════════════════════════ */
.nav-pill-group {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgb(var(--c-neutral-900) / .06);
  border-radius: calc(14px * var(--radius-k, 1));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.dark .nav-pill-group { background: rgb(var(--c-neutral-800) / .45); border-color: rgba(255,255,255,.06); }

.nav-pill {
  font-size: 13px; font-weight: 500; color: rgb(var(--c-neutral-600));
  padding: 7px 13px; border-radius: calc(10px * var(--radius-k, 1));
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
  white-space: nowrap;
}
/* Hover — uses a warm amber tint that clearly contrasts the near-white nav-pill-group
   surface in light mode (the previous `rgba(255,255,255,.95)` was invisible against it).
   The 1 px inset ring + soft drop shadow + 1 px lift make the active link unmistakable. */
.nav-pill:hover {
  background: rgb(var(--c-primary-100) / .92);
  color: rgb(var(--c-primary-800));
  box-shadow: 0 2px 6px -1px rgba(180, 145, 58, .25), inset 0 0 0 1px rgb(var(--brand-1-rgb) / .35);
  transform: translateY(-1px);
}
.nav-pill:active { transform: translateY(0); }
.dark .nav-pill { color: rgb(var(--c-neutral-400)); }
.dark .nav-pill:hover {
  background: rgb(var(--c-primary-700) / .42);
  color: rgb(var(--c-primary-300));
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgb(var(--c-primary-300) / .30);
  transform: translateY(-1px);
}

.nav-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: rgb(var(--c-neutral-700));
  padding: 7px 12px;
  border: 1px solid rgb(var(--c-neutral-900) / .10);
  border-radius: calc(11px * var(--radius-k, 1));
  background: rgba(255,255,255,.70);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.nav-action-btn:hover {
  border-color: rgb(var(--brand-1-rgb) / .55);
  color: rgb(var(--c-primary-800));
  background: rgb(var(--c-primary-100) / .85);
  box-shadow: 0 4px 10px -2px rgba(180,145,58,.22), inset 0 0 0 1px rgb(var(--brand-1-rgb) / .30);
  transform: translateY(-1px);
}
.nav-action-btn:active { transform: translateY(0); }
.nav-action-btn svg.chev { width: 12px; height: 12px; opacity: .55; transition: transform .15s; }
.nav-action-btn[aria-expanded="true"] svg.chev { transform: rotate(180deg); opacity: .85; }
.dark .nav-action-btn { background: rgb(var(--c-neutral-800) / .55); border-color: rgba(255,255,255,.10); color: rgb(var(--c-neutral-300)); }
.dark .nav-action-btn:hover {
  background: rgb(var(--c-primary-700) / .40);
  border-color: rgb(var(--c-primary-300) / .45);
  color: rgb(var(--c-primary-300));
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.45), inset 0 0 0 1px rgb(var(--c-primary-300) / .30);
  transform: translateY(-1px);
}

/* Locale button — wider two-line label (country + currency·language) */
.nav-locale-btn { padding: 5px 12px; gap: 8px; }
.nav-locale-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.nav-locale-country { font-size: 12.5px; font-weight: 600; color: inherit; }
/* The two tokens were the wrong way round — the same swap the input
   placeholders had. Light got the LIGHTER value on a white glass nav
   (2.56:1) and dark got the darker one (3.78:1); at 10.5px that is the
   smallest text in the nav. Swapped, and onto the site's standard pair. */
.nav-locale-meta { font-size: 10.5px; font-weight: 500; color: rgb(var(--c-neutral-500)); letter-spacing: .03em; display: inline-flex; align-items: center; gap: 4px; margin-top: 1px; }   /* 4.76:1 on the light nav */
.dark .nav-locale-meta { color: rgb(var(--c-neutral-400)); }   /* 7.07:1 on the dark nav */
.nav-locale-dot { opacity: .55; }

/* .nav-user-name — the signed-in display name in the account button. The cap
   lives here rather than as a Tailwind max-w-[] on the element: the CDN injects
   its utilities after this file, so an equal-specificity media-query override
   further down silently lost the cascade. One home for the value, no !important. */
.nav-user-name { max-width: 120px; }

/* ── nav-locale-label at lg ─────────────────────────────────────────────
   The top bar runs out of room at exactly 1024px, and only there. Below
   1024 the primary links row is hidden (`hidden lg:flex`) so everything
   fits; by 1280 there is space again. At 1024 the logo (107px), the links
   row (406px) and the actions row (481px) need 994px inside a 960px
   content box — a 2px page overflow, and a horizontal scrollbar on an
   iPad in landscape.

   The locale button is the compressible one: dropping its text label frees
   ~70px and still shows the flag, so the control keeps its meaning and its
   dropdown. Raising the links row to `xl` instead would have hidden the
   primary navigation with no way back to it — the hamburger is `md:hidden`,
   so 1024–1279 would have had no navigation at all. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav-locale-label { display: none; }
  /* The signed-in name is dropped entirely in this band, not just shortened.
     On 2026-09-21 the brand logo grew from a 36px square to 40px tall (80px
     wide at its 2:1 aspect) and spent the slack here: at 1024 the three nav
     groups ended up flush against one another with a zero right gutter, and a
     64px name stub still left it cramped. Hiding the text keeps the avatar,
     its initials and the dropdown that carries the full name - the same trade
     already made for .nav-locale-label directly above. */
  .nav-user-name { display: none; }
}

.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 252px; max-width: calc(100vw - 16px);
  background: #ffffff;
  border: 1px solid rgb(var(--c-neutral-900) / .08);
  border-radius: calc(14px * var(--radius-k, 1));
  box-shadow: 0 24px 48px -16px rgb(var(--c-neutral-900) / .20), 0 8px 20px -8px rgb(var(--c-neutral-900) / .10);
  z-index: 60; overflow: hidden;
}
.nav-dropdown.wide { min-width: 300px; }
.dark .nav-dropdown { background: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-800)); box-shadow: 0 24px 48px -16px rgba(0,0,0,.65), 0 8px 20px -8px rgba(0,0,0,.45); }

.nav-dd-head { padding: 14px 16px 12px; border-bottom: 1px solid rgb(var(--c-neutral-900) / .06); }
.dark .nav-dd-head { border-bottom-color: rgba(255,255,255,.06); }
.nav-dd-head-title { font-size: 13px; font-weight: 600; color: rgb(var(--c-neutral-900)); line-height: 1.3; }
.nav-dd-head-sub   { font-size: 11.5px; color: rgb(var(--c-neutral-500)); margin-top: 2px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dark .nav-dd-head-title { color: rgb(var(--c-neutral-100)); }
.dark .nav-dd-head-sub   { color: rgb(var(--c-neutral-400)); }

/* ── Role badge in the account dropdown header ──
   Each role gets its own pill colour. Super-admin gets the brand gold
   gradient for instant recognition. Badge sits on its own line under
   the email so neither truncates the other. */
.nav-dd-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  /* Default fallback (unknown role) */
  background: rgb(var(--c-neutral-100));
  color: rgb(var(--c-neutral-600));
  border-color: rgb(var(--c-neutral-200));
}
.dark .nav-dd-role-badge {
  background: rgb(var(--c-neutral-400) / .18);
  color: rgb(var(--c-neutral-300));
  border-color: rgb(var(--c-neutral-400) / .25);
}

.nav-dd-role-badge .nav-dd-role-icon {
  font-size: 11px;
  line-height: 1;
}

/* Super admin — brand gold gradient with bulletproof contrast.
   The earlier `color: #1e293b` rule was losing to `.dark .text-amber-*`
   global overrides further up this file. !important + a darker shade +
   a subtle dark text-shadow guarantee WCAG-AA readability regardless
   of cascade order. */
.nav-dd-role-badge.is-super {
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  color: #0b0f1e !important;                             /* slate-950 — almost black */
  border-color: rgb(var(--brand-3-rgb) / .45);
  box-shadow: 0 1px 4px rgb(var(--brand-1-rgb) / .35), inset 0 1px 0 rgba(255,255,255,.45);
  font-weight: 800;                                       /* extra bold to defeat thin glyphs */
  text-shadow: 0 1px 0 rgba(255,255,255,.35);             /* subtle lift off the gold */
}
.nav-dd-role-badge.is-super .nav-dd-role-icon {
  color: #0b0f1e !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.4));
}

.dark .nav-dd-role-badge.is-super {
  /* Brighter / more saturated gradient in dark mode so the dark text
     still has room to contrast properly. */
  background: linear-gradient(135deg, #D4AF37 0%, #F0D27A 50%, var(--brand-1) 100%);
  color: #0b0f1e !important;
  border-color: rgba(212,175,55,.7);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.dark .nav-dd-role-badge.is-super .nav-dd-role-icon {
  color: #0b0f1e !important;
}

/* Admin — slate-indigo */
.nav-dd-role-badge.is-admin {
  background: #e0e7ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.dark .nav-dd-role-badge.is-admin {
  background: rgba(99,102,241,.22);
  color: #c7d2fe;
  border-color: rgba(99,102,241,.4);
}

/* Booking / travel agent — emerald */
.nav-dd-role-badge.is-agent {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}
.dark .nav-dd-role-badge.is-agent {
  background: rgba(16,185,129,.22);
  color: #a7f3d0;
  border-color: rgba(16,185,129,.4);
}

/* Content manager — violet */
.nav-dd-role-badge.is-content {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.dark .nav-dd-role-badge.is-content {
  background: rgba(139,92,246,.22);
  color: #ddd6fe;
  border-color: rgba(139,92,246,.4);
}

/* Support staff — sky */
.nav-dd-role-badge.is-support {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}
.dark .nav-dd-role-badge.is-support {
  background: rgba(14,165,233,.22);
  color: #bae6fd;
  border-color: rgba(14,165,233,.4);
}

.nav-dd-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 16px; text-align: left; transition: background .12s; cursor: pointer; color: inherit;
}
.nav-dd-item:hover {
  background: rgb(var(--c-primary-100) / .95);
  box-shadow: inset 3px 0 0 0 var(--brand-1);  /* gold left bar — clearly marks the hovered row */
}
.nav-dd-item:hover .nav-dd-title { color: rgb(var(--c-primary-800)); }
.dark .nav-dd-item:hover {
  background: rgb(var(--c-primary-700) / .35);
  box-shadow: inset 3px 0 0 0 rgb(var(--c-primary-400));
}
.dark .nav-dd-item:hover .nav-dd-title { color: rgb(var(--c-primary-300)); }
.nav-dd-item.primary { background: linear-gradient(90deg, rgb(var(--c-primary-100) / .45) 0%, rgb(var(--c-primary-100) / .10) 70%, transparent 100%); }
.nav-dd-item.primary:hover { background: linear-gradient(90deg, rgb(var(--c-primary-100) / .95) 0%, rgb(var(--c-primary-100) / .40) 70%, transparent 100%); box-shadow: inset 3px 0 0 0 var(--brand-3); }
.dark .nav-dd-item.primary { background: linear-gradient(90deg, rgb(var(--c-primary-700) / .22) 0%, rgb(var(--c-primary-700) / .06) 70%, transparent 100%); }
.dark .nav-dd-item.primary:hover { background: linear-gradient(90deg, rgb(var(--c-primary-700) / .55) 0%, rgb(var(--c-primary-700) / .18) 70%, transparent 100%); box-shadow: inset 3px 0 0 0 rgb(var(--c-primary-400)); }
.nav-dd-icon { font-size: 18px; line-height: 1; flex-shrink: 0; width: 22px; text-align: center; }
.nav-dd-text { flex: 1; min-width: 0; }
.nav-dd-title { font-size: 13px; font-weight: 500; color: rgb(var(--c-neutral-900)); line-height: 1.25; }
.nav-dd-sub   { font-size: 11px; color: rgb(var(--c-neutral-500)); margin-top: 1px; }
.dark .nav-dd-title { color: rgb(var(--c-neutral-200)); }
.dark .nav-dd-sub   { color: rgb(var(--c-neutral-400)); }

/* ── One settings button (the owner, 2026-11-17; partials/nav_settings.php) ────────────────────────────────────────────
   The theme, the trip cart, Help, region and language (and the bell, signed in) behind one button that shows them as icons:
   a panel of tiles under it on a computer, a sheet from the bottom on a phone. The tiles take the dropdown's text colours
   (.nav-dd-title, .nav-dd-sub), so both themes need nothing more than the tile's own wash. */
.nav-set-pill { gap: 10px; height: 40px; padding: 0 12px; border-radius: 999px; }
.nav-set-ico { display: inline-flex; align-items: center; }
.nav-set-grp { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 639.98px) { .nav-set-xs-hide { display: none !important; } }
.nav-set-sep { width: 1px; height: 18px; background: rgb(var(--c-neutral-900) / .12); }
.dark .nav-set-sep { background: rgba(255,255,255,.14); }
.nav-set-badge { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
                 font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.nav-set-loc { font-size: 12.5px; font-weight: 500; white-space: nowrap; color: rgb(var(--c-neutral-500)); }
.dark .nav-set-loc { color: rgb(var(--c-neutral-400)); }
.nav-set-chev { display: inline-flex; opacity: .6; transition: transform .15s; }
.nav-set-up { transform: rotate(180deg); }
.nav-set-panel { width: 344px; padding: 12px; border-radius: calc(20px * var(--radius-k, 1)); }
.nav-set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.nav-set-tile { display: block; width: 100%; padding: 10px 12px; border-radius: calc(14px * var(--radius-k, 1)); text-align: left;
                background: rgb(var(--c-neutral-100) / .8); transition: background .15s ease; }
.nav-set-tile:hover { background: rgb(var(--c-neutral-200) / .8); }
.dark .nav-set-tile { background: rgba(255,255,255,.06); }
.dark .nav-set-tile:hover { background: rgba(255,255,255,.10); }
.nav-set-wide { grid-column: span 2; }
.nav-set-row { display: flex; align-items: center; gap: 10px; }
.nav-set-label { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--c-neutral-500)); }
.dark .nav-set-label { color: rgb(var(--c-neutral-400)); }
.nav-set-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.nav-set-seg button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: calc(10px * var(--radius-k, 1)); border: 1.5px solid transparent; }
.nav-set-seg button .nav-dd-title { font-size: 12px; }
.nav-set-seg button.on { border-color: var(--brand-1); background: rgb(var(--brand-1-rgb) / .14); }
.nav-set-chev-r { display: inline-flex; transform: rotate(-90deg); opacity: .6; }
.nav-set-chev-l { display: inline-flex; transform: rotate(90deg); }
.nav-set-back { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 2px 8px; font-size: 14px; font-weight: 600; text-align: left; }
.nav-set-list { max-height: 330px; overflow-y: auto; }
.nav-set-note { padding: 6px 4px 0; font-size: 11px; color: rgb(var(--c-neutral-500)); }
.nav-set-scrim { position: fixed; inset: 0; z-index: 70; background: rgb(var(--c-neutral-900) / .45); }
.nav-set-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 85vh; overflow-y: auto;
                 padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: calc(22px * var(--radius-k, 1)) calc(22px * var(--radius-k, 1)) 0 0;
                 background: #ffffff; box-shadow: 0 -12px 40px -12px rgb(var(--c-neutral-900) / .35); }
.dark .nav-set-sheet { background: rgb(var(--c-neutral-900)); }
.nav-set-grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 999px;background: rgb(var(--c-neutral-300)); }
.dark .nav-set-grab { background: rgba(255,255,255,.22); }
.nav-set-signin { width: 100%; justify-content: center; margin-top: 10px; }
.nav-dd-check { color: var(--brand-3); font-weight: 700; flex-shrink: 0; }
.dark .nav-dd-check { color: rgb(var(--c-primary-400)); }
.nav-dd-list { max-height: 320px; overflow-y: auto; }
.nav-dd-list::-webkit-scrollbar { width: 6px; }
.nav-dd-list::-webkit-scrollbar-thumb { background: rgb(var(--c-neutral-900) / .18); border-radius: calc(3px * var(--radius-k, 1)); }
.dark .nav-dd-list::-webkit-scrollbar-thumb { background: rgb(var(--c-neutral-700)); }
.nav-dd-section-label {
  padding: 10px 16px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: rgb(var(--c-neutral-400));
}
.dark .nav-dd-section-label { color: rgb(var(--c-neutral-500)); }
.nav-dd-divider { height: 1px; background: rgb(var(--c-neutral-900) / .06); margin: 4px 0; }
.dark .nav-dd-divider { background: rgba(255,255,255,.06); }

/* Mobile responsive: locale dropdown clips on tiny screens */
@media (max-width: 640px) {
  .nav-dropdown, .nav-dropdown.wide {
    right: 8px;
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   TOAST STACK (top-right, theme-aware) — shared
   ═══════════════════════════════════════════════════════════════ */
.toast-stack {
  position: fixed; top: 16px; right: 16px;
  z-index: 70;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  pointer-events: auto;
  padding: 10px 14px;
  border-radius: calc(10px * var(--radius-k, 1));
  font-size: 13px; font-weight: 500;
  background: rgb(var(--c-neutral-900)); color: rgb(var(--c-neutral-100));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px -10px rgb(var(--c-neutral-900) / .50);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .25s ease;
}
.toast.success { background: #065f46; border-color: rgba(110,231,183,.30); }
.toast.warn    { background: #78350f; border-color: rgba(252,211,77,.30); }
.toast.error   { background: #7f1d1d; border-color: rgba(252,165,165,.30); }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   FINAL HOVER POLISH — destination/package/hotel card hover, gold
   button glow boost, and generic clickable surfaces. All animations
   respect prefers-reduced-motion at the bottom.
   ═══════════════════════════════════════════════════════════════ */

/* `hover:shadow-lg`, `hover:shadow-md`, `hover:shadow-xl` — Tailwind's
   defaults are timid. Replace with warmer, deeper shadows that read in
   both themes, and add a subtle gold border so the card "wakes up". */
.hover\:shadow-md:hover  { box-shadow: 0 8px 20px -6px rgba(180,145,58,.22), 0 4px 8px -2px rgb(var(--c-neutral-900) / .08) !important; }
.hover\:shadow-lg:hover  { box-shadow: 0 14px 28px -8px rgba(180,145,58,.25), 0 6px 12px -4px rgb(var(--c-neutral-900) / .10) !important; }
.hover\:shadow-xl:hover  { box-shadow: 0 20px 38px -10px rgba(180,145,58,.30), 0 8px 16px -6px rgb(var(--c-neutral-900) / .12) !important; }
.dark .hover\:shadow-md:hover { box-shadow: 0 8px 20px -6px rgba(0,0,0,.55),  0 4px 8px -2px rgb(var(--c-primary-300) / .10) !important; }
.dark .hover\:shadow-lg:hover { box-shadow: 0 14px 28px -8px rgba(0,0,0,.65), 0 6px 12px -4px rgb(var(--c-primary-300) / .14) !important; }
.dark .hover\:shadow-xl:hover { box-shadow: 0 20px 38px -10px rgba(0,0,0,.75), 0 8px 16px -6px rgb(var(--c-primary-300) / .18) !important; }

/* `transition-all` on hovered cards: amplify the lift so it's clearly tactile */
article.group:hover, .group:hover { transform: translateY(-2px); }

/* Generic clickable border-card hover (admin-style cards, settings rows, etc.):
   any element with `border` + `rounded-*` that's also focusable/clickable gets
   a subtle gold border on hover. */
.dark button:hover, .dark a:hover {
  /* dark mode: amplify whatever native hover styling exists */
}

/* Gold button — punchier active state (was barely visible) */
.grad-gold:hover {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 10px 26px -6px rgb(var(--brand-1-rgb) / .65), 0 4px 10px -2px rgb(var(--c-neutral-900) / .18);
  transform: translateY(-1px);
}
.grad-gold:active { transform: translateY(0); filter: brightness(.96); }

/* Theme-dropdown / locale-dropdown / account-dropdown buttons inside admin's
   little ad-hoc dropdowns (which use Tailwind `hover:bg-slate-50` inline) —
   those already pick up the warm tint via the global override above. */

/* Respect users who prefer reduced motion — kill the transforms */
@media (prefers-reduced-motion: reduce) {
  .nav-pill:hover, .nav-action-btn:hover, .grad-gold:hover, article.group:hover,
  .group:hover, .qp-tile:hover, .hover\:opacity-80:hover, .hover\:opacity-90:hover,
  .hover\:opacity-95:hover { transform: none !important; }
  * { transition-duration: .01s !important; animation-duration: .01s !important; }
}

/* ──────────────────────────────────────────────────────────────
   Phase 13 — Validation & Security UI
   Designed for voyager-validator.js. WCAG AA contrast in both themes.
   Accessible: ARIA live regions get a visible icon + colour cue, and
   colour alone is never the only signal (text + symbol present too).
   ────────────────────────────────────────────────────────────── */

/* Error / success state on the input wrapper. Avoid restyling the input
   itself too aggressively — the existing form-input rules handle
   background / text. We only add a border tint + the hint region. */
[data-field].field-error > input,
[data-field].field-error > select,
[data-field].field-error > textarea,
label.field-error input,
label.field-error select,
label.field-error textarea {
  border-color: #dc2626 !important;          /* red-600 */
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .15);
}
.dark [data-field].field-error > input,
.dark [data-field].field-error > select,
.dark [data-field].field-error > textarea,
.dark label.field-error input,
.dark label.field-error select,
.dark label.field-error textarea {
  border-color: #f87171 !important;          /* red-400 */
  box-shadow: 0 0 0 2px rgba(248, 113, 113, .2);
}

[data-field].field-success > input,
label.field-success input {
  border-color: #16a34a !important;          /* green-600 */
}
.dark [data-field].field-success > input,
.dark label.field-success input {
  border-color: #4ade80 !important;          /* green-400 */
}

/* The inline hint paragraph (aria-live region). Default state is hidden
   visually but readable by AT; an error/ok class makes it visible. */
.field-hint {
  margin-top: 4px;
  min-height: 1.1em;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  transition: color .15s ease;
}
.field-hint:empty { display: none; }

.field-hint.is-error {
  color: #b91c1c;                            /* red-700 */
}
.field-hint.is-error::before {
  content: "⚠";
  font-size: 13px;
  line-height: 1;
  margin-top: 1px;
}
.dark .field-hint.is-error { color: #fca5a5; } /* red-300 */

.field-hint.is-ok {
  color: #16a34a;                            /* green-600 */
}
.field-hint.is-ok::before {
  content: "";                               /* the JS injects ✓ in text */
}
.dark .field-hint.is-ok { color: #4ade80; }

/* ─── Password strength meter ────────────────────────────── */
.pwd-strength-meter {
  margin-top: 8px;
  user-select: none;
}
.pwd-strength-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  height: 6px;
  margin-bottom: 4px;
}
.pwd-strength-bars > span {
  background: rgb(var(--c-neutral-200));                       /* slate-200 */
  border-radius: calc(3px * var(--radius-k, 1));
  transition: background-color .2s ease;
}
.dark .pwd-strength-bars > span { background: rgb(var(--c-neutral-700)); }  /* slate-700 */

/* Score-driven colours. Each `.on` bar inherits a colour from the
   meter root's data-score attr, so 4 weak bars all stay red even
   when filled. */
.pwd-strength-meter[data-score="0"] .pwd-strength-bars > span.on { background: #dc2626; } /* red-600 */
.pwd-strength-meter[data-score="1"] .pwd-strength-bars > span.on { background: #ea580c; } /* orange-600 */
.pwd-strength-meter[data-score="2"] .pwd-strength-bars > span.on { background: #ca8a04; } /* yellow-600 */
.pwd-strength-meter[data-score="3"] .pwd-strength-bars > span.on { background: #16a34a; } /* green-600 */
.pwd-strength-meter[data-score="4"] .pwd-strength-bars > span.on { background: #15803d; } /* green-700 */

.dark .pwd-strength-meter[data-score="0"] .pwd-strength-bars > span.on { background: #f87171; }
.dark .pwd-strength-meter[data-score="1"] .pwd-strength-bars > span.on { background: #fb923c; }
.dark .pwd-strength-meter[data-score="2"] .pwd-strength-bars > span.on { background: #facc15; }
.dark .pwd-strength-meter[data-score="3"] .pwd-strength-bars > span.on { background: #4ade80; }
.dark .pwd-strength-meter[data-score="4"] .pwd-strength-bars > span.on { background: #22c55e; }

.pwd-strength-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgb(var(--c-neutral-600));                            /* slate-600 */
  margin: 0;
}
.dark .pwd-strength-label { color: rgb(var(--c-neutral-400)); } /* slate-400 */

.pwd-strength-score {
  font-weight: 600;
}
.pwd-strength-meter[data-score="0"] .pwd-strength-score { color: #b91c1c; }
.pwd-strength-meter[data-score="1"] .pwd-strength-score { color: #c2410c; }
.pwd-strength-meter[data-score="2"] .pwd-strength-score { color: #a16207; }
.pwd-strength-meter[data-score="3"] .pwd-strength-score { color: #15803d; }
.pwd-strength-meter[data-score="4"] .pwd-strength-score { color: #166534; }
.dark .pwd-strength-meter[data-score="0"] .pwd-strength-score { color: #fca5a5; }
.dark .pwd-strength-meter[data-score="1"] .pwd-strength-score { color: #fdba74; }
.dark .pwd-strength-meter[data-score="2"] .pwd-strength-score { color: #fde68a; }
.dark .pwd-strength-meter[data-score="3"] .pwd-strength-score { color: #86efac; }
.dark .pwd-strength-meter[data-score="4"] .pwd-strength-score { color: #bbf7d0; }

/* ─── Banner: soft-prompt for grandfathered passwords ──── */
.security-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: calc(10px * var(--radius-k, 1));
  font-size: 13px;
  font-weight: 500;
  background: #fef3c7;                       /* amber-100 */
  color: #78350f;                            /* amber-900 */
  border: 1px solid #fde68a;                 /* amber-200 */
}
.security-banner a, .security-banner button {
  color: #b45309;                            /* amber-700 */
  text-decoration: underline;
  font-weight: 600;
}
.dark .security-banner {
  background: rgba(146, 64, 14, .25);        /* amber-700 @25% */
  color: #fde68a;                            /* amber-200 */
  border-color: rgba(180, 83, 9, .55);       /* amber-700 */
}
.dark .security-banner a, .dark .security-banner button {
  color: #fcd34d;                            /* amber-300 */
}

@media (prefers-reduced-motion: reduce) {
  .pwd-strength-bars > span,
  .field-hint {
    transition: none !important;
  }
}

/* ── A6 accessibility ──────────────────────────────────────── */
/* Skip-to-content link: off-screen until keyboard-focused. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: calc(0.5rem * var(--radius-k, 1));
  background: rgb(var(--c-neutral-900));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: top .15s ease;
}
.skip-link:focus { top: 0.5rem; outline: 2px solid rgb(var(--c-primary-500)); outline-offset: 2px; }

/* (The dark slate-500/400 lift for WCAG AA now lives with the other text
   tokens near the top of this file — one declaration, not two.) */

/* Always give keyboard focus a visible ring (some resets removed it). */
:focus-visible { outline: 2px solid rgb(var(--c-primary-500)); outline-offset: 2px; }

/* ── Search progress panel ──────────────────────────────────────────────────
   Shown while a live supplier search runs. One travelling highlight plus a
   determinate-looking bar: enough motion to read as "working" without the
   panel becoming a fairground. Everything here respects reduced-motion. */
.search-sweep {
  background: linear-gradient(100deg, transparent 20%, rgb(var(--c-primary-500) / .10) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: search-sweep 2.4s infinite linear;
}
@keyframes search-sweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* The bar deliberately never reaches 100% — it is progress we cannot measure,
   and a bar that completes while the user is still waiting is a broken promise. */
.search-bar { width: 15%; animation: search-bar 2.8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes search-bar {
  0%   { width: 8%;  margin-left: 0; }
  55%  { width: 62%; margin-left: 12%; }
  100% { width: 18%; margin-left: 82%; }
}

.search-plane { display: inline-block; animation: search-plane 2.6s ease-in-out infinite; }
@keyframes search-plane {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(2px, -2px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .search-sweep, .search-bar, .search-plane { animation: none; }
  .search-bar { width: 45%; }
}

/* ── Route trace ────────────────────────────────────────────────────────────
   The flight variant of the progress panel. A plane flies the arc between the
   two airports the user actually searched, and the arc fills behind it.

   WHY an arc rather than the bobbing plane it replaces: a plane hovering in a
   circle reads as "stuck", which is the opposite of what a three-second wait
   needs. Travel toward a destination is the one progress metaphor that is
   honest here — it conveys movement without claiming a percentage we cannot
   measure, because the loop restarts rather than completing.

   Flights only. Hotels and packages have no route to draw, so they keep the
   original icon treatment (see search.php). */
.search-arc-dash {
  stroke-dasharray: 6 7;
  animation: search-arc-dash 1.1s linear infinite;
}
@keyframes search-arc-dash { to { stroke-dashoffset: -13; } }

/* 520 is comfortably longer than the path, so the wipe always clears it. */
.search-arc-fill {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: search-arc-fill 3s ease-in-out infinite;
}
@keyframes search-arc-fill {
  0%        { stroke-dashoffset: 520; }
  70%, 100% { stroke-dashoffset: 0; }
}

.search-arc-plane {
  offset-path: path('M34,60 Q280,6 526,60');
  offset-rotate: auto;
  animation: search-arc-plane 3s ease-in-out infinite;
}
@keyframes search-arc-plane { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* Safari before 16 and Firefox before 72 have no offset-path: the plane would
   pile up at the origin. Park it on the destination instead — the arc and its
   moving dashes still carry the motion. */
@supports not (offset-path: path('M0,0 L1,1')) {
  .search-arc-plane { transform: translate(526px, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .search-arc-dash, .search-arc-fill, .search-arc-plane { animation: none; }
  .search-arc-fill { stroke-dashoffset: 180; }
  .search-arc-plane { offset-distance: 65%; }
}


/* ── Touch targets ──────────────────────────────────────────────────────
   Some icon controls are deliberately small: the mobile menu toggle draws
   22x32 and the save hearts 11x24. That is comfortable with a mouse and a
   miss with a thumb — Apple asks for 44px, Android for 48dp.

   This expands what can be TAPPED without changing what is DRAWN, so no
   layout moves and nothing reflows. Coarse pointers only: a 44px invisible
   box sitting next to other controls is a good way to swallow clicks that
   were meant for a neighbour, and a mouse does not need the help. */
@media (pointer: coarse) {
  .tap-target { position: relative; }
  .tap-target::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}

/* ── Dialogs on short screens ───────────────────────────────────────────
   Every modal in the app is a full-screen flex overlay that centres its
   card: `fixed inset-0 … flex items-center justify-center`. That is correct
   until the card is taller than the screen — a phone in landscape is only
   ~360px tall, and the sign-in card is 441px. Centring then pushes the top
   of the card to a NEGATIVE offset, and with the default `overflow: visible`
   there is no way to scroll to it: the tabs at the top and the submit button
   at the bottom are simply unreachable. Measured at 740x360: card top -40,
   bottom 401, in a 360px viewport.

   `safe center` is the standard answer — centre while it fits, fall back to
   flex-start when it does not — and the scroll makes the overflow reachable.
   Browsers without `safe` ignore that one declaration and keep the scroll.

   Applied by utility combination rather than by editing twelve overlays,
   so a thirteenth written the same way is covered too. */
.fixed.inset-0.flex.items-center.justify-center {
  overflow-y: auto;
  align-items: safe center;
}

/* Release C2 (2 December 2026): My trips on a phone. The row of actions under each trip did not wrap, and the card cut
   off Cancel, Correct a name and Get help: a phone customer could not cancel from My trips. Here, phones only, every
   action (.trip-act) is a button a finger can hit, the row wraps, its groups open (display: contents, so their buttons
   wrap with the rest) and the dots between them go. On a computer nothing here applies: the row is as it was.
   The selectors are a step more specific than one class because tailwind.css comes last in <head>. */
@media (max-width: 639px) {
  [data-trip-bar].trip-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .trip-bar .trip-bar-group { display: contents; }
  .trip-bar .trip-sep { display: none; }
  .trip-bar .trip-act { display: inline-flex; align-items: center; min-height: 38px; margin: 0; padding: 0 11px; border-radius: calc(10px * var(--radius-k, 1)); font-weight: 600; background-color: #ffffff; border: 1px solid rgb(226 232 240); }
  .trip-bar .trip-act[data-trip-checkin-hint] { font-weight: 500; border-style: dashed; }
  .dark .trip-bar .trip-act { background-color: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-700)); }
}

/* ── Brand logo backdrop ────────────────────────────────────────────────────
   A wordmark is drawn in one ink, but this site has two themes, so one of them
   will always be the wrong background for it. The shipped logo is 97% LIGHT ink:
   perfect on the dark header, invisible on the light one, which is why it looked
   fine in every dark-mode screenshot and vanished in light mode.

   So the backdrop is applied by INK, not by theme: a light-inked logo gets a dark
   plate only where the surface is light, and vice versa. `mixed` and unknown get
   nothing, because a plate behind a full-colour logo is worse than none.
   LogoImage::inkTone() decides the value at upload time. */
.brand-logo { border-radius: calc(8px * var(--radius-k, 1)); }

/* Light theme is the default (no .dark on <html>). */
.brand-logo[data-ink="light"] {
  background: rgb(var(--c-neutral-900));
  padding: 4px 8px;
}
.dark .brand-logo[data-ink="light"] { background: transparent; padding: 0; }

.dark .brand-logo[data-ink="dark"] {
  background: rgb(var(--c-neutral-50));
  padding: 4px 8px;
}
.brand-logo[data-ink="dark"] { background: transparent; padding: 0; }

/* The footer sits on a dark band in BOTH themes, so a light-inked logo never
   needs a plate there and a dark-inked one always does. */
footer .brand-logo[data-ink="light"] { background: transparent; padding: 0; }
footer .brand-logo[data-ink="dark"] { background: rgb(var(--c-neutral-50)); padding: 4px 8px; }

/* Two logos (Admin → Branding, "Logo for light backgrounds"; the owner, 2026-11-17: "Different logo based on
   different themes"). Where the second one is uploaded, a header carries both and the theme shows one: the light
   one in the light theme, the other in the dark. The light one was made for a light surface, so it never gets a
   plate (it carries no data-ink). The footer is dark in both themes and carries only the other. With one logo,
   none of this applies and the plates above do the work. */
html:not(.dark) .brand-logo-on-dark { display: none; }
.dark .brand-logo-on-light { display: none; }

/* ═══════════════════════════════════════════════════════════════
   ALWAYS-DARK SURFACES — 2026-09-24

   `.bg-slate-900` is NOT remapped by the dark theme; only `.bg-white` is. So
   a panel painted with it is dark in BOTH themes, and the dark-mode text
   inversions above — `.dark .text-slate-300 { color: #475569 }` — do the
   exact opposite of what they are for. Those exist to darken grey text
   sitting on a light card; on a surface that was already dark they push it
   into the background.

   Measured on the shared footer (`bg-slate-900 text-slate-300`, on 16 pages):
   its column links read 11:1 in light theme and **2.66:1 in dark**, entirely
   from that one inversion. And its copyright bar, `text-slate-500`, reads
   **3.75:1 in LIGHT** — under AA on a surface that never changes at all.

   So inside an always-dark surface the grey tokens are pinned to their
   light-on-dark values in both themes. The compound selectors
   (`.bg-slate-900.text-slate-300`) are needed because the footer carries the
   surface class and the text class on the SAME element, where a descendant
   selector would never match.
   ═══════════════════════════════════════════════════════════════ */
.bg-slate-800.text-slate-300, .dark .bg-slate-800.text-slate-300,
.bg-slate-900.text-slate-300, .dark .bg-slate-900.text-slate-300,
.bg-slate-950.text-slate-300, .dark .bg-slate-950.text-slate-300,
.bg-slate-800.text-slate-400, .dark .bg-slate-800.text-slate-400,
.bg-slate-900.text-slate-400, .dark .bg-slate-900.text-slate-400,
.bg-slate-950.text-slate-400, .dark .bg-slate-950.text-slate-400,
.bg-slate-800 .text-slate-300, .dark .bg-slate-800 .text-slate-300,
.bg-slate-900 .text-slate-300, .dark .bg-slate-900 .text-slate-300,
.bg-slate-950 .text-slate-300, .dark .bg-slate-950 .text-slate-300 {
  color: rgb(var(--c-neutral-300)) !important;        /* 11.6:1 on #0f172a, 13.5:1 on #020617 */
}

.bg-slate-800 .text-slate-400, .dark .bg-slate-800 .text-slate-400,
.bg-slate-900 .text-slate-400, .dark .bg-slate-900 .text-slate-400,
.bg-slate-950 .text-slate-400, .dark .bg-slate-950 .text-slate-400,
.bg-slate-800 .text-slate-500, .dark .bg-slate-800 .text-slate-500,
.bg-slate-900 .text-slate-500, .dark .bg-slate-900 .text-slate-500,
.bg-slate-950 .text-slate-500, .dark .bg-slate-950 .text-slate-500 {
  color: rgb(var(--c-neutral-400)) !important;        /* 7.07:1 on #0f172a, 8.2:1 on #020617 */
}


/* ═══════════════════════════════════════════════════════════════
   ALWAYS-LIGHT SURFACES — 2026-09-24

   The mirror of the always-dark block above, and the same root cause: the
   dark-mode text inversions assume every surface flips with the theme. Gold
   chips do not. `.bg-amber-400` and friends are never remapped — only
   `.bg-amber-50` is (line ~125, to a dark tint) — so a chip written as
   `bg-amber-400 text-slate-900` keeps its gold background in dark mode while
   `.dark .text-slate-900 { color: #f1f5f9 }` turns its label near-white.

   Measured on search.php's trip-mode pills ("One way" / "Round trip") and the
   product tabs: **1.52:1 in dark theme**, near-white on gold.

   `.grad-gold` was already handled this way at line ~88. This extends the
   same treatment to the amber chip family, which was simply never added.
   ═══════════════════════════════════════════════════════════════ */
.dark .bg-amber-100.text-slate-900, .dark .bg-amber-100 .text-slate-900, .dark .bg-amber-100.text-slate-800, .dark .bg-amber-100 .text-slate-800, .dark .bg-amber-100.text-slate-700, .dark .bg-amber-100 .text-slate-700,
.dark .bg-amber-200.text-slate-900, .dark .bg-amber-200 .text-slate-900, .dark .bg-amber-200.text-slate-800, .dark .bg-amber-200 .text-slate-800, .dark .bg-amber-200.text-slate-700, .dark .bg-amber-200 .text-slate-700,
.dark .bg-amber-300.text-slate-900, .dark .bg-amber-300 .text-slate-900, .dark .bg-amber-300.text-slate-800, .dark .bg-amber-300 .text-slate-800, .dark .bg-amber-300.text-slate-700, .dark .bg-amber-300 .text-slate-700,
.dark .bg-amber-400.text-slate-900, .dark .bg-amber-400 .text-slate-900, .dark .bg-amber-400.text-slate-800, .dark .bg-amber-400 .text-slate-800, .dark .bg-amber-400.text-slate-700, .dark .bg-amber-400 .text-slate-700,
.dark .bg-amber-500.text-slate-900, .dark .bg-amber-500 .text-slate-900, .dark .bg-amber-500.text-slate-800, .dark .bg-amber-500 .text-slate-800, .dark .bg-amber-500.text-slate-700, .dark .bg-amber-500 .text-slate-700 {
  color: rgb(var(--c-primary-ink)) !important;   /* the theme's ink for its own mid steps: dark on the default gold (9.1:1 on #fbbf24) */
}
/* The same chips as fixed warnings and stars keep today's dark ink. */
.dark .bg-warn-100.text-slate-900, .dark .bg-warn-100 .text-slate-900, .dark .bg-warn-100.text-slate-800, .dark .bg-warn-100 .text-slate-800, .dark .bg-warn-100.text-slate-700, .dark .bg-warn-100 .text-slate-700,
.dark .bg-warn-200.text-slate-900, .dark .bg-warn-200 .text-slate-900, .dark .bg-warn-200.text-slate-800, .dark .bg-warn-200 .text-slate-800, .dark .bg-warn-200.text-slate-700, .dark .bg-warn-200 .text-slate-700,
.dark .bg-warn-300.text-slate-900, .dark .bg-warn-300 .text-slate-900, .dark .bg-warn-300.text-slate-800, .dark .bg-warn-300 .text-slate-800, .dark .bg-warn-300.text-slate-700, .dark .bg-warn-300 .text-slate-700,
.dark .bg-warn-400.text-slate-900, .dark .bg-warn-400 .text-slate-900, .dark .bg-warn-400.text-slate-800, .dark .bg-warn-400 .text-slate-800, .dark .bg-warn-400.text-slate-700, .dark .bg-warn-400 .text-slate-700,
.dark .bg-warn-500.text-slate-900, .dark .bg-warn-500 .text-slate-900, .dark .bg-warn-500.text-slate-800, .dark .bg-warn-500 .text-slate-800, .dark .bg-warn-500.text-slate-700, .dark .bg-warn-500 .text-slate-700,
.dark .bg-gold-100.text-slate-900, .dark .bg-gold-100 .text-slate-900, .dark .bg-gold-100.text-slate-800, .dark .bg-gold-100 .text-slate-800, .dark .bg-gold-100.text-slate-700, .dark .bg-gold-100 .text-slate-700,
.dark .bg-gold-200.text-slate-900, .dark .bg-gold-200 .text-slate-900, .dark .bg-gold-200.text-slate-800, .dark .bg-gold-200 .text-slate-800, .dark .bg-gold-200.text-slate-700, .dark .bg-gold-200 .text-slate-700,
.dark .bg-gold-300.text-slate-900, .dark .bg-gold-300 .text-slate-900, .dark .bg-gold-300.text-slate-800, .dark .bg-gold-300 .text-slate-800, .dark .bg-gold-300.text-slate-700, .dark .bg-gold-300 .text-slate-700,
.dark .bg-gold-400.text-slate-900, .dark .bg-gold-400 .text-slate-900, .dark .bg-gold-400.text-slate-800, .dark .bg-gold-400 .text-slate-800, .dark .bg-gold-400.text-slate-700, .dark .bg-gold-400 .text-slate-700,
.dark .bg-gold-500.text-slate-900, .dark .bg-gold-500 .text-slate-900, .dark .bg-gold-500.text-slate-800, .dark .bg-gold-500 .text-slate-800, .dark .bg-gold-500.text-slate-700, .dark .bg-gold-500 .text-slate-700,
.dark .bg-yellow-400.text-slate-900, .dark .bg-yellow-400 .text-slate-900, .dark .bg-yellow-400.text-slate-800, .dark .bg-yellow-400 .text-slate-800, .dark .bg-yellow-400.text-slate-700, .dark .bg-yellow-400 .text-slate-700,
.dark .bg-white\/95.text-slate-900, .dark .bg-white\/95 .text-slate-900, .dark .bg-white\/95.text-slate-800, .dark .bg-white\/95 .text-slate-800, .dark .bg-white\/95.text-slate-700, .dark .bg-white\/95 .text-slate-700,
.dark .bg-white\/95.text-slate-600, .dark .bg-white\/95 .text-slate-600, .dark .bg-white\/90.text-slate-900, .dark .bg-white\/90 .text-slate-900, .dark .bg-white\/90.text-slate-800, .dark .bg-white\/90 .text-slate-800,
.dark .bg-white\/90.text-slate-700, .dark .bg-white\/90 .text-slate-700, .dark .bg-white\/90.text-slate-600, .dark .bg-white\/90 .text-slate-600, .dark .bg-white\/85.text-slate-900, .dark .bg-white\/85 .text-slate-900,
.dark .bg-white\/85.text-slate-800, .dark .bg-white\/85 .text-slate-800, .dark .bg-white\/85.text-slate-700, .dark .bg-white\/85 .text-slate-700, .dark .bg-white\/85.text-slate-600, .dark .bg-white\/85 .text-slate-600,
.dark .bg-white\/80.text-slate-900, .dark .bg-white\/80 .text-slate-900, .dark .bg-white\/80.text-slate-800, .dark .bg-white\/80 .text-slate-800, .dark .bg-white\/80.text-slate-700, .dark .bg-white\/80 .text-slate-700,
.dark .bg-white\/80.text-slate-600, .dark .bg-white\/80 .text-slate-600, .dark .bg-white\/60.text-slate-900, .dark .bg-white\/60 .text-slate-900, .dark .bg-white\/60.text-slate-800, .dark .bg-white\/60 .text-slate-800,
.dark .bg-white\/60.text-slate-700, .dark .bg-white\/60 .text-slate-700, .dark .bg-white\/60.text-slate-600, .dark .bg-white\/60 .text-slate-600 {
  color: #0f172a !important;        /* 9.1:1 on #fbbf24, 8.0:1 on #f59e0b */
}

/* Amber TEXT on a light amber chip — the same root cause, a different token.
   `.dark .text-amber-700/800/900 { color: #fbbf24 }` assumes the surface went
   dark; bg-amber-100/200 never do, so the label turned gold on pale gold:
   1.5:1 on search.php's "Live fares updated" pill (found 2026-09-25 by the
   contrast probe), and the same on 20 chips across 10 pages — support.php's
   request status badges among them. A chip that brings its own dark:bg-* is
   left alone: it does go dark, and gold is right there. */
.dark .bg-amber-100:not([class*="dark:bg-"]).text-amber-700,
.dark .bg-amber-100:not([class*="dark:bg-"]) .text-amber-700,
.dark .bg-amber-100:not([class*="dark:bg-"]).text-amber-800,
.dark .bg-amber-100:not([class*="dark:bg-"]) .text-amber-800,
.dark .bg-amber-100:not([class*="dark:bg-"]).text-amber-900,
.dark .bg-amber-100:not([class*="dark:bg-"]) .text-amber-900,
.dark .bg-amber-200:not([class*="dark:bg-"]).text-amber-700,
.dark .bg-amber-200:not([class*="dark:bg-"]) .text-amber-700,
.dark .bg-amber-200:not([class*="dark:bg-"]).text-amber-800,
.dark .bg-amber-200:not([class*="dark:bg-"]) .text-amber-800,
.dark .bg-amber-200:not([class*="dark:bg-"]).text-amber-900,
.dark .bg-amber-200:not([class*="dark:bg-"]) .text-amber-900 {
  color: rgb(var(--c-primary-800)) !important;        /* 6.4:1 on #fef3c7, 5.7:1 on #fde68a */
}
.dark .bg-warn-100:not([class*="dark:bg-"]).text-warn-700,
.dark .bg-warn-100:not([class*="dark:bg-"]) .text-warn-700,
.dark .bg-warn-100:not([class*="dark:bg-"]).text-warn-800,
.dark .bg-warn-100:not([class*="dark:bg-"]) .text-warn-800,
.dark .bg-warn-100:not([class*="dark:bg-"]).text-warn-900,
.dark .bg-warn-100:not([class*="dark:bg-"]) .text-warn-900,
.dark .bg-warn-200:not([class*="dark:bg-"]).text-warn-700,
.dark .bg-warn-200:not([class*="dark:bg-"]) .text-warn-700,
.dark .bg-warn-200:not([class*="dark:bg-"]).text-warn-800,
.dark .bg-warn-200:not([class*="dark:bg-"]) .text-warn-800,
.dark .bg-warn-200:not([class*="dark:bg-"]).text-warn-900,
.dark .bg-warn-200:not([class*="dark:bg-"]) .text-warn-900 {
  color: #92400e !important;        /* 6.4:1 on #fef3c7, 5.7:1 on #fde68a */
}
.dark .bg-gold-100:not([class*="dark:bg-"]).text-gold-700,
.dark .bg-gold-100:not([class*="dark:bg-"]) .text-gold-700,
.dark .bg-gold-100:not([class*="dark:bg-"]).text-gold-800,
.dark .bg-gold-100:not([class*="dark:bg-"]) .text-gold-800,
.dark .bg-gold-100:not([class*="dark:bg-"]).text-gold-900,
.dark .bg-gold-100:not([class*="dark:bg-"]) .text-gold-900,
.dark .bg-gold-200:not([class*="dark:bg-"]).text-gold-700,
.dark .bg-gold-200:not([class*="dark:bg-"]) .text-gold-700,
.dark .bg-gold-200:not([class*="dark:bg-"]).text-gold-800,
.dark .bg-gold-200:not([class*="dark:bg-"]) .text-gold-800,
.dark .bg-gold-200:not([class*="dark:bg-"]).text-gold-900,
.dark .bg-gold-200:not([class*="dark:bg-"]) .text-gold-900 {
  color: #92400e !important;        /* 6.4:1 on #fef3c7, 5.7:1 on #fde68a */
}


/* ═══════════════════════════════════════════════════════════════
   BRAND GOLD AS TEXT — 2026-09-24

   Gold SURFACES are untouched: `grad-gold` buttons, amber chips and the logo
   keep the brand exactly as it is. This is only about amber used as TEXT on a
   light background, where Tailwind's own shades fall short of AA:

     .text-amber-500  #f59e0b  →  2.15:1 on white   (star ratings)
     .text-amber-600  #d97706  →  3.04:1 on #f8fafc ("POPULAR RIGHT NOW")

   `.text-amber-700` (#b45309, 109 uses) already measures 5.01:1 and is left
   alone — so this only moves the two shades that were actually failing.

   Dark theme is deliberately NOT changed: `.dark .text-amber-500` at line ~493
   keeps #fbbf24, which reads at 8:1+ on a dark surface and is the gold the
   brand should look like there.

   ⚠ One honest consequence: #b45309 (L 0.1596) and #a16207 (L 0.1641) are
   within 0.005 of each other, so in light theme the visual step between
   amber-500 text and amber-600 text effectively disappears. That is the price
   of clearing AA without turning the gold brown, and it is recorded here
   rather than discovered later.
   ═══════════════════════════════════════════════════════════════ */
.text-amber-500 { color: rgb(var(--c-primary-700)) !important; }
.text-warn-500 { color: #b45309 !important; }
.text-gold-500 { color: #b45309 !important; }   /* 5.01:1 on #ffffff */
.text-amber-600 { color: rgb(var(--c-primary-text)) !important; }
.text-warn-600 { color: #a16207 !important; }
.text-gold-600 { color: #a16207 !important; }   /* 4.90:1 on #ffffff, 4.66:1 on #f8fafc */

/* …except on an always-dark surface, where the gold was never the problem and
   darkening it would repeat exactly the mistake the two blocks above fix. */
.bg-slate-900 .text-amber-500, .bg-slate-950 .text-amber-500,
.bg-slate-900 .text-amber-600, .bg-slate-950 .text-amber-600 {
  color: rgb(var(--c-primary-400)) !important;                     /* 9.9:1 on #0f172a */
}
.bg-slate-900 .text-warn-500, .bg-slate-950 .text-warn-500,
.bg-slate-900 .text-warn-600, .bg-slate-950 .text-warn-600 {
  color: #fbbf24 !important;                     /* 9.9:1 on #0f172a */
}
.bg-slate-900 .text-gold-500, .bg-slate-950 .text-gold-500,
.bg-slate-900 .text-gold-600, .bg-slate-950 .text-gold-600 {
  color: #fbbf24 !important;                     /* 9.9:1 on #0f172a */
}


/* ═══════════════════════════════════════════════════════════════
   SLATE-400 AS BODY TEXT — 2026-09-24

   Tailwind's `.text-slate-400` (#94a3b8) is 2.56:1 on a white card — it reads
   as a placeholder rather than as content. Measured on search.php's flight
   rows ("Delhi", "from", "per traveller", "32N") and on hotel.php ("total
   rooms across all types", the reviews note).

   #64748b is 4.76:1 on white: still clearly secondary, now actually legible,
   and it is the same token the site already uses for input placeholders, so
   the muted scale stays consistent.

   The always-dark block above wins over this on specificity (0,2,0 against
   0,1,0), so slate-400 on the footer and on any `bg-slate-800/900/950` panel
   keeps its light value and is NOT darkened.
   ═══════════════════════════════════════════════════════════════ */
.text-slate-400 { color: rgb(var(--c-neutral-500)) !important; }   /* 4.76:1 on #ffffff */


/* ═══════════════════════════════════════════════════════════════
   COMPLETING THE DARK OVERRIDE TABLE — 2026-09-24

   The `.dark .text-<hue>-<shade>` table further up covers 500/600/700 for
   some hues and then stops. Every shade below is used in the templates with
   NO dark counterpart, so it keeps its dark-on-dark light-theme value:

     .text-rose-600    46 uses      .text-emerald-800   8 uses
     .text-rose-700    34 uses      .text-rose-800      6 uses
     .text-amber-600   60 uses      .text-red-800       5 uses
     .text-blue-700     5 uses      .text-emerald-900   4 uses
     .text-sky-700      2 uses      .text-red-900       2 uses
     .text-sky-800      1 use       .text-rose-900      1 use

   `rose` is the worst of it: 87 uses across four shades and not one dark rule.
   Measured on hotel.php's fare-calendar day chip, `text-emerald-800` on its
   own tinted background: **1.99:1 in dark**.

   ⚠ `.text-amber-600` is in that list because *I* put it there. The
   light-theme darkening below assumed a dark counterpart existed the way
   `.text-amber-500` has one at line ~493. It did not, so the darkened value
   leaked into dark theme and the home-page eyebrows went from passing to
   3.63:1. Caught by re-measuring after the change, not before.
   ═══════════════════════════════════════════════════════════════ */
.dark .text-amber-600                             { color: rgb(var(--c-primary-400)) !important; }
.dark .text-warn-600 { color: #fbbf24 !important; }
.dark .text-gold-600 { color: #fbbf24 !important; }
.dark .text-emerald-800, .dark .text-emerald-900  { color: #34d399 !important; }
.dark .text-red-800,     .dark .text-red-900      { color: #f87171 !important; }
.dark .text-rose-600,    .dark .text-rose-700,
.dark .text-rose-800,    .dark .text-rose-900     { color: #fb7185 !important; }
.dark .text-blue-700                              { color: #60a5fa !important; }
.dark .text-sky-700,     .dark .text-sky-800      { color: #38bdf8 !important; }

/* Light theme: emerald-600 (#059669) is 3.77:1 on white — measured on
   search.php's "Direct" badge and hotel.php's "Available" chip. emerald-700 is
   5.55:1. The other deep semantic shades were checked and already pass on
   white: rose-600 4.71:1, red-600 4.83:1, blue-600 5.17:1 — so they are left
   exactly as they are rather than swept along. */
.text-emerald-600 { color: #047857 !important; }   /* 5.55:1 on #ffffff */

/* Star ratings. `hotel.php` carried its own `.stars { color: #f59e0b }`, which
   is the same shade — and the same 2.05:1 problem — as `.text-amber-500` had.
   Same tokens, so ratings look identical wherever they are rendered. */
.stars      { color: #b45309 !important; }         /* 5.01:1 on #ffffff */
.dark .stars { color: #fbbf24 !important; }        /* 9.9:1 on #0f172a */


/* ═══════════════════════════════════════════════════════════════
   STATUS-CHIP TINTS + SLATE-300 AS A LABEL — 2026-09-24 (admin sweep)

   ── Status chips ──
   Six light tints are remapped for dark theme (`bg-slate-50/100`,
   `bg-amber-50`, `bg-emerald-50`, `bg-red-50`, `bg-blue-50`). Eleven more are
   used in the templates and were never added, so those chips keep a LIGHT
   background in dark mode while their label goes light. Measured in admin:

     Organizations "active"  `bg-emerald-100 text-emerald-700`  **1.70:1**
     Suppliers "TJ", Hotels "Tripjack"  `bg-sky-50 text-sky-700`  **2.01:1**
     Suppliers "Off" + switch button  `bg-rose-50 text-rose-700`  **2.45:1**

   ⚠ Two of those are regressions **this work introduced**. Before
   `4b3c180` completed the dark override table, `text-sky-700` and
   `text-rose-700` had no dark rule, so they stayed dark on their light chips
   and read fine. Lightening the text was right for a chip on a DARK tint and
   wrong for one that was never remapped. Completing the surface table is what
   makes the text table safe — the two have to move together.

   ── `text-slate-300` ──
   66 uses, but most are the `dark:` half of a pair (`text-slate-700
   dark:text-slate-300`), which compiles to a different class and is correct.
   The BARE utility is used as a real label — admin's nav group counters, the
   Branding "none" placeholders, the Suppliers "sync" chip — where #cbd5e1 is a
   border tone standing in for text: **1.42:1** on `#f8fafc`, **1.48:1** on
   white, and **2.36:1** in dark once `.dark .text-slate-300` darkened it to
   #475569 on a dark surface.

   The always-dark block still wins on `bg-slate-800/900/950` (0,2,0 against
   0,1,0), so genuinely light-on-dark text such as cart.php's hero keeps
   #cbd5e1 and is not touched.
   ═══════════════════════════════════════════════════════════════ */
.dark .bg-emerald-100 { background-color: rgba(4,120,87,.18) !important; }
.dark .bg-rose-50,
.dark .bg-rose-100    { background-color: rgba(190,18,60,.18) !important; }
.dark .bg-sky-50,
.dark .bg-sky-100     { background-color: rgba(3,105,161,.18) !important; }
.dark .bg-purple-50,
.dark .bg-purple-100  { background-color: rgba(126,34,206,.18) !important; }
.dark .bg-violet-100  { background-color: rgba(109,40,217,.18) !important; }
.dark .bg-blue-100    { background-color: rgba(29,78,216,.18) !important; }
.dark .bg-red-100     { background-color: rgba(185,28,28,.18) !important; }
.dark .bg-fuchsia-50,
.dark .bg-fuchsia-100 { background-color: rgba(162,28,175,.18) !important; }   /* the last unremapped tint — Hotels' "Bulk enrich" */
/* `bg-amber-100` is deliberately NOT here: it is handled by the ALWAYS-LIGHT
   block, which pins its label dark. Remapping it too would put dark text on a
   dark tint — the exact fault this block exists to remove. */

.text-slate-300 { color: rgb(var(--c-neutral-500)) !important; }   /* 4.76:1 on #ffffff, 4.52:1 on #f8fafc */

/* emerald-600 was darkened for light theme earlier for the same reason; rose
   sits a hair under AA on a slate-50 card (payments' "11 refunds", 4.49:1), so
   it moves with it. `.dark .text-rose-600` already exists, so nothing leaks. */
.text-rose-600 { color: #be123c !important; }    /* 6.01:1 on #f8fafc */

/* slate-500 on a slate-100 chip is 4.34:1 — CMS "system", Push/SMS "queued". */
.bg-slate-100 .text-slate-500,
.bg-slate-100.text-slate-500 { color: rgb(var(--c-neutral-600)) !important; }   /* 6.9:1 on #f1f5f9 */


/* ═══════════════════════════════════════════════════════════════
   PURPLE, VIOLET, FUCHSIA + A LEAK OF MY OWN — 2026-09-24

   Remapping a surface and lightening its text token are ONE change, and this
   is the third time that has bitten. Having added `.dark .bg-purple-50/100`,
   `.bg-violet-100` above, their text tokens had to move too — and they were
   the only hues in the whole table with no `.dark` rule at all:
   `text-purple-700` (5 uses), `text-violet-700` (2), `text-fuchsia-700` (2),
   `text-fuchsia-900` (2). Measured in admin dark after the surface remap:
   Hotels' "Sync from Travelport" button and the TVPT / Travelport supplier
   badges at **2.31–2.63:1**.

   ⚠ And a leak that was mine: `.bg-slate-100 .text-slate-500 { #475569 }` was
   written for a LIGHT slate-100 chip and carries no theme scope, so it also
   fired on `.dark .bg-slate-100` (#1e293b) and drove the CMS "system" chip
   from 4.34:1 down to **1.93:1** — worse than the problem it fixed. A
   light-theme colour rule needs a dark counterpart or it is a regression
   waiting for the right surface.
   ═══════════════════════════════════════════════════════════════ */
.dark .text-purple-700,  .dark .text-purple-800,
.dark .text-purple-900   { color: #c084fc !important; }   /* 6.12:1 on the purple tint */
.dark .text-violet-700,  .dark .text-violet-800,
.dark .text-violet-900   { color: #a78bfa !important; }
.dark .text-fuchsia-700, .dark .text-fuchsia-800,
.dark .text-fuchsia-900  { color: #e879f9 !important; }

.dark .bg-slate-100 .text-slate-500,
.dark .bg-slate-100.text-slate-500 { color: rgb(var(--c-neutral-300)) !important; }   /* 9.8:1 on #1e293b */

/* A `<code>` chip on slate-100 INHERITS its colour, so it carries no
   `text-*` class for the rule above to match — admin's Push/SMS "queued"
   and the booking reference chip sat at 4.34:1. */
code.bg-slate-100       { color: rgb(var(--c-neutral-600)) !important; }   /* 6.9:1 on #f1f5f9 */
.dark code.bg-slate-100 { color: rgb(var(--c-neutral-300)) !important; }   /* 9.8:1 on #1e293b */

/* ═══════════════════════════════════════════════════════════════
   One on/off switch and one set of move arrows for the admin's CMS
   screens (docs/UI_ENHANCEMENTS_PLAN.md A7). The Menus screen alone had
   three idioms: an "On/Off" text button, a smaller bordered one, and
   ◉/○ glyphs. Markup: <button role="switch" aria-checked="true|false"
   class="v-switch [sm]"><span class="v-switch-knob"></span></button>.
   The state is the aria attribute, so a screen reader and the paint can
   never disagree. Tracks meet 3:1 against their card in both themes
   (WCAG 1.4.11): off #94a3b8 is identified by the knob and its border,
   on #059669 is 3.77:1 on white; dark: #64748b 3.75:1, #10b981 7.0:1.
   ═══════════════════════════════════════════════════════════════ */
.v-switch {
  position: relative; display: inline-flex; flex-shrink: 0; align-items: center;
  width: 2.5rem; height: 1.5rem; border-radius: 9999px; padding: 0;
  background: rgb(var(--c-neutral-400)); border: 1px solid rgb(var(--c-neutral-500)); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.v-switch[aria-checked="true"] { background: #059669; border-color: #047857; }
.v-switch-knob {
  position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem;
  border-radius: 9999px; background: #fff; box-shadow: 0 1px 2px rgb(var(--c-neutral-900) / .35);
  transition: transform .15s ease;
}
.v-switch[aria-checked="true"] .v-switch-knob { transform: translateX(1rem); }
.v-switch.sm { width: 2rem; height: 1.25rem; }
.v-switch.sm .v-switch-knob { width: .875rem; height: .875rem; }
.v-switch.sm[aria-checked="true"] .v-switch-knob { transform: translateX(.75rem); }
.v-switch:focus-visible { outline: 2px solid rgb(var(--c-primary-500)); outline-offset: 2px; }
.v-switch:disabled { opacity: .5; cursor: not-allowed; }
.dark .v-switch { background: rgb(var(--c-neutral-500)); border-color: rgb(var(--c-neutral-400)); }
.dark .v-switch[aria-checked="true"] { background: #10b981; border-color: #34d399; }
.dark .v-switch-knob { background: rgb(var(--c-neutral-50)); }

/* Move up/down (or left/right): the keyboard and touch way to reorder, since
   drag-and-drop needs a mouse. 24px targets (WCAG 2.5.8). */
.v-move {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 24px; min-height: 24px; border-radius: calc(6px * var(--radius-k, 1));
  font-size: 10px; line-height: 1; color: rgb(var(--c-neutral-500)); background: transparent;
}
.v-move:hover:not(:disabled) { color: rgb(var(--c-neutral-900)); background: rgb(var(--c-neutral-100)); }
.v-move:focus-visible { outline: 2px solid rgb(var(--c-primary-500)); outline-offset: 1px; }
.v-move:disabled { opacity: .3; cursor: default; }
.dark .v-move { color: rgb(var(--c-neutral-400)); }
.dark .v-move:hover:not(:disabled) { color: rgb(var(--c-neutral-50)); background: rgb(var(--c-neutral-800)); }

@media (prefers-reduced-motion: reduce) {
  .v-switch, .v-switch-knob { transition: none; }
}

/* ── Maps (Leaflet) stay under the page's windows, drawers and header (2026-10-01) ──
   Leaflet gives its panes and controls z-indexes of 200–1000. Without a stacking context of
   its own, the map put those in the page's top level, above the sign-in window (z-50), the
   sticky header (z-40) and the phone's filter drawer: on beta the hotel map covered the
   sign-in window. `isolation: isolate` keeps them inside the map, which then sits in the page
   like any other block. */
.leaflet-container { isolation: isolate; }

/* ── "Back to home" and its kin, in dark mode (2026-10-01, checklist item 32) ──
   The slate button on the page-not-found, not-available, subscription-confirmed and payment-return
   pages sank into the dark page around it. In dark mode it takes the brand's gradient and the ink
   chosen for it (Colour::ink: 4.5:1 or better on every stop, whatever the theme). Light mode is
   unchanged. The selectors outrank Tailwind's bg-/hover:/text- utilities, which load later. */
.dark .btn-home.bg-slate-900, .dark .btn-home.bg-slate-900:hover {
  background-image: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  /* !important: the dark slate-button lift above (.dark a.bg-slate-900) forces near-white text with !important. */
  color: rgb(var(--brand-ink)) !important;
  font-weight: 600;
}
.dark .btn-home.bg-slate-900:hover { filter: brightness(1.06); }
/* CRO F2 (2026-10-19): the site's icons, Lucide drawn from assets/icons/sprite.svg (icon() / Voyager.icon()). They take
   the text's colour, so the themes and dark mode need nothing more; .icon-fill fills one (a saved heart). */
.icon { display: inline-block; flex-shrink: 0; vertical-align: -0.125em; fill: none; stroke: currentColor;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill .icon, .icon.icon-fill { fill: currentColor; }
.icon-emoji { display: inline-block; line-height: 1; }

/* Checklist item 73 (2026-10-21), behind layout_cro_airline_badges (Voyager.AirlineMark): an airline's mark. Its logo
   sits on white in either theme, since logos are drawn for white (the dark theme turned the tile's white dark, the
   "black images"); without a logo, a badge in a soft colour of the airline's own (--am-h, a hue from its code) with
   the code in that colour's dark shade. Stronger than the dark theme's own `.dark .bg-white` and text rules. */
html .airline-mark.airline-mark--logo, html.dark .airline-mark.airline-mark--logo { background-color: #fff !important; border-color: rgb(226 232 240) !important; }
html .airline-mark.airline-mark--badge { background-color: hsl(var(--am-h, 210) 70% 93%) !important; border: 1px solid hsl(var(--am-h, 210) 45% 80%) !important; }
html .airline-mark.airline-mark--badge, html .airline-mark.airline-mark--badge > span { color: hsl(var(--am-h, 210) 55% 28%) !important; }
html.dark .airline-mark.airline-mark--badge { background-color: hsl(var(--am-h, 210) 45% 30%) !important; border-color: hsl(var(--am-h, 210) 40% 42%) !important; }
html.dark .airline-mark.airline-mark--badge, html.dark .airline-mark.airline-mark--badge > span { color: hsl(var(--am-h, 210) 80% 88%) !important; }

/* Multi-city (the owner, 2026-11-09: "Style issue"): on a phone a further flight's To field is the right-hand column, and
   its airport list (.ac-dd, at least 280px, from the field's left edge) ran off the screen. There it opens leftwards,
   from the column's right edge. index.php and search.php mark that list `data-mc-to`. */
@media (max-width: 767.98px) { [data-mc-leg] .ac-dd[data-mc-to] { left: auto; } }
