/* ==========================================================================
   Voyager — design tokens + component library
   Source of truth: design_png/*.png (402pt iPhone 16 Pro frames)
   v1  = absolute helpers for pixel-matched originals (.screen canvas)
   v2  = flow components for extended screens (.page + .phead + .psheet)
   ========================================================================== */

:root {
  /* Brand */
  --navy: #14213D;
  --navy-2: #2A364E;
  --navy-3: #1F2C46;
  --orange: #FCA311;
  --orange-press: #E8940A;
  --orange-tint: #FFE7C1;
  --orange-tint-2: #FFF3E1;
  --signup: #FBA313;

  /* Neutrals */
  --white: #FFFFFF;
  --grey-1: #F6F6F6;     /* cards, notification cards */
  --grey-2: #F4F4F4;     /* grey sheets */
  --grey-3: #F2F2F2;     /* search pill */
  --grey-4: #F7F7F7;     /* add-on card */
  --chip: #E5E5E5;
  --chip-2: #E7E7E7;
  --slate: #7E8492;
  --guest: #717171;
  --line: #D0D0D0;       /* dividers */
  --line-2: #E0E0E0;
  --stroke: #C5C5C5;     /* card borders */

  /* Text */
  --ink: #000000;
  --ink-2: #1A1A1A;
  --text-2: #555555;
  --text-3: #6B6B6B;
  --text-4: #8A8A8A;
  --text-5: #A9A9A9;
  --card-sub: #C4C7CF;

  /* Semantic */
  --toggle-off: #BEBEBE;
  --tab-active: #69A9F5;
  --tab-idle: #333333;
  --star: #FFBF00;
  --valid-bg: #CAF9BE;   --valid: #2E9B2E;
  --warn-bg: #FFE0CC;    --warn: #E0592A;
  --online: #3CD33C;
  --danger: #E53935;     --danger-bg: #FDECEC;
  --info: #69A9F5;       --info-bg: #EAF3FE;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-2: 'Poppins', 'Inter', system-ui, sans-serif;

  /* Radii */
  --r-frame: 40px;
  --r-sheet: 32px;
  --r-card: 16px;
  --r-md: 8px;
  --r-sm: 6px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 4px 8px rgba(0, 0, 0, .15);
  --shadow-2: 0 10px 30px rgba(20, 33, 61, .18);
  --glow-avatar: 0 0 40px 10px rgba(252, 163, 17, .35);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur: 200ms;

  /* Layout */
  --frame-inset: 14px;
  --gutter: 17px;        /* sheet inner padding → content starts at x31 */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.capture { background: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
p, h1, h2, h3, h4, h5, ul, ol, figure { margin: 0; font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.pop { font-family: var(--font-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Interaction primitives
   -------------------------------------------------------------------------- */
.tap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out), background-color var(--dur), box-shadow var(--dur), opacity var(--dur);
}
.tap:hover { filter: brightness(1.04); }
.tap:active { transform: scale(.97); filter: brightness(.94); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tab-active); outline-offset: 3px; border-radius: 6px; }
.hit { position: relative; }
.hit::after { content: ''; position: absolute; inset: -10px; }   /* extends touch target to ≥44 */

/* --------------------------------------------------------------------------
   v1 — absolute canvas for pixel-matched originals
   -------------------------------------------------------------------------- */
.screen {
  position: relative;
  width: 402px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.screen--white { background: #fff; }
body.capture .screen { border-radius: var(--r-frame); margin: 0; min-height: 0; }
.abs { position: absolute !important; }
/* Text line: line-height 1. Inter cap-top ≈ top + 0.14×size; Poppins ≈ top + 0.19×size */
.t { position: absolute; line-height: 1; white-space: nowrap; }
/* Inset white sheet on the navy frame (absolute) — left/right/bottom 14, radius 32 */
.vsheet { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; border-radius: var(--r-sheet); }
.vsheet--flat-top { border-top-left-radius: 0; border-top-right-radius: 0; }
.vsheet--grey { background: var(--grey-2); }

/* --------------------------------------------------------------------------
   v2 — flow page shell: navy frame + header + inset sheet
   -------------------------------------------------------------------------- */
.page {
  position: relative; width: 402px; min-height: 100vh; margin: 0 auto;
  background: var(--navy); display: flex; flex-direction: column;
  overflow-x: clip;
}
.page--white { background: #fff; }                /* plain white screens (confirmation) */
body.capture .page { border-radius: var(--r-frame); margin: 0; min-height: 874px; overflow: clip; }

/* Header with back arrow + title + orange underline (Customise Trip, Settings…) */
.phead { position: relative; display: flex; align-items: flex-start; gap: 0; padding: 50px 20px 0 14px; min-height: 104px; color: #fff; flex-shrink: 0; }
.phead__back { width: 44px; height: 44px; margin-top: -7px; display: grid; place-items: center; color: #fff; border-radius: 12px; flex-shrink: 0; }
.phead__titles { flex: 1; min-width: 0; }
.phead__title { display: inline-block; position: relative; font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: -.1px; white-space: nowrap; }
.phead__title::after { content: ''; position: absolute; left: -2px; bottom: -6px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(1.18); transform-origin: left; border-radius: 1px; }
.phead--sub { padding-top: 43px; }                /* title + subtitle: title sits 7px higher (Rewards / Support PNGs) */
.phead--sub .phead__title::after { display: none; }
.phead--sub .phead__sub { display: table; }        /* own line, underline hugs the text */
.phead__sub { display: inline-block; position: relative; font-size: 12px; line-height: 15px; color: #D3D6DD; margin-top: 1px; padding-bottom: 5px; }
.phead--sub .phead__sub::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); }
.phead__subline { display: block; }
.phead__action { flex-shrink: 0; min-width: 44px; height: 44px; margin-top: -2px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--orange); font-size: 13px; font-weight: 600; border-radius: 10px; }
.phead__icon { flex-shrink: 0; width: 44px; height: 44px; margin-top: -4px; display: grid; place-items: center; }
.phead__icon > span { width: 34px; height: 30px; border-radius: var(--r-sm); background: #fff; display: grid; place-items: center; color: var(--orange); }
.phead--plain { padding-left: 26px; }             /* no back button: title at x26 */
.phead--plain .phead__title::after { display: none; }
.phead--plain .phead__title { font-size: 24px; }

/* Greeting header (Dashboard / My Trips) */
.ghead { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 38px 17px 0 28px; min-height: 144px; color: #fff; flex-shrink: 0; }
.ghead__title { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.1px; margin-top: 12px; }
.ghead__title em { font-style: normal; color: var(--orange); display: block; }
.ghead__sub { font-family: var(--font-2); font-size: 18px; line-height: 24px; margin-top: 8px; color: #fff; }
.avatar-glow { width: 74px; height: 74px; border-radius: 50%; position: relative; flex-shrink: 0; background: #D9B98A; box-shadow: var(--glow-avatar); overflow: hidden; display: block; }
.avatar-glow img { width: 100%; height: 100%; object-fit: cover; }
.avatar-glow--lg { width: 110px; height: 110px; }

/* Inset content sheet */
.psheet { position: relative; flex: 1; margin: 0 var(--frame-inset) var(--frame-inset); background: #fff; border-radius: 0 0 var(--r-sheet) var(--r-sheet); padding: 26px var(--gutter) 40px; min-height: 300px; }
.psheet--round { border-radius: var(--r-sheet); }
.psheet--grey { background: var(--grey-2); }
.psheet--flush { padding-left: 0; padding-right: 0; }
/* Bars are the LAST children of .page: sticky to the viewport foot while scrolling, in flow at the end (full-page captures) */
.page:has(> .cta-bar) > .psheet, .page:has(> .tabbar) > .psheet { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 8px; }
.page > .tabbar, .page > .cta-bar { position: sticky; left: auto; margin-left: 0; flex-shrink: 0; }
body.capture:not(.embedded) .page > .tabbar, body.capture:not(.embedded) .page > .cta-bar { position: relative; }   /* full-length design-frame renders */
.page--white .psheet { margin: 0; border-radius: 0; }
.page--white .cta-bar::before { display: none; }
.page--white .cta-bar { padding: 0; }
.page--white .cta-bar__in { border-radius: 0; padding: 20px 40px 44px; }

/* Layout helpers */
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.muted { color: var(--text-4); } .c-orange { color: var(--orange); } .c-navy { color: var(--navy); } .c-danger { color: var(--danger); } .c-valid { color: var(--valid); }

/* --------------------------------------------------------------------------
   Typography roles
   -------------------------------------------------------------------------- */
.h-display { font-size: 28px; line-height: 34px; font-weight: 700; }
.h-title { font-size: 26px; line-height: 32px; font-weight: 700; }
.h-sec { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--ink); }        /* "Add Extras" */
.h-card { font-size: 16px; line-height: 20px; font-weight: 600; }
.body { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.small { font-size: 12px; line-height: 1.4; color: var(--text-4); }
.caps { font-size: 14px; line-height: 17px; text-transform: uppercase; color: var(--ink); letter-spacing: 0; }   /* "FLIGHT CLASS" */
.caps--grey { color: var(--text-2); font-size: 13px; }

/* Section label: orange tracked caps + optional See All */
.sec { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin: 26px 0 14px; }
.sec:first-child { margin-top: 0; }
.sec__label { font-family: var(--font-2); font-size: 12.5px; line-height: 1; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }
.sec__more { font-family: var(--font-2); font-size: 12px; font-weight: 600; color: var(--navy); padding: 12px 0 12px 12px; margin: -12px 0; }
.sec--grey .sec__label { font-family: var(--font); color: var(--text-2); letter-spacing: 0; font-weight: 500; font-size: 13px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 20px; border-radius: var(--r-md);
  font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur), box-shadow var(--dur), filter var(--dur);
}
.btn:not(.abs) { width: 100%; }
.btn--inline:not(.abs) { width: auto; }
.btn:active { transform: scale(.975); }
.btn svg { transition: transform var(--dur) var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: #000; }
.btn--primary:hover { background: #FDAE2E; }
.btn--primary:active { background: var(--orange-press); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1C2D52; }
.btn--outline { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }
.btn--outline-soft { background: #fff; color: #000; box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--outline-orange { background: #fff; color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); border-radius: 12px; }
.btn--outline-orange:hover { background: var(--orange-tint-2); }
.btn--white { background: #fff; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--orange); height: 44px; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn--sm { height: 40px; font-size: 14px; padding: 0 14px; }
.btn--xs { height: 32px; font-size: 13px; padding: 0 12px; border-radius: var(--r-md); }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin 700ms linear infinite; }
.btn--navy.is-loading::after, .btn--danger.is-loading::after { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
.btn--outline-orange.is-loading::after { border-color: rgba(252,163,17,.25); border-top-color: var(--orange); }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.link { color: var(--orange); font-weight: 600; font-size: 13px; padding: 10px 2px; margin: -10px -2px; display: inline-block; }
.link--dark { color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Small square icon button (white, 34×30, r6) used on photos/headers */
.icon-btn { width: 34px; height: 30px; border-radius: var(--r-sm); background: #fff; color: var(--navy); display: grid; place-items: center; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.icon-btn::after { content: ''; position: absolute; inset: -7px; }
.icon-btn--orange { color: var(--orange); }

/* --------------------------------------------------------------------------
   Search pill
   -------------------------------------------------------------------------- */
.search { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 20px 0 18px; border-radius: 27px; background: var(--grey-3); color: #000; transition: box-shadow var(--dur); }
.search:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.search__text, .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; font-weight: 500; color: #000; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search input::placeholder { color: #000; opacity: .9; }
.search input::-webkit-search-cancel-button { display: none; }
.search__filter { width: 40px; height: 40px; margin-right: -12px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.search--white { background: #fff; }

/* --------------------------------------------------------------------------
   Destination card (photo + heart + navy info panel)  142×168
   -------------------------------------------------------------------------- */
.dcard { position: relative; display: block; width: 142px; height: 168px; border-radius: var(--r-md); overflow: hidden; background: var(--navy); color: #fff; font-family: var(--font-2); isolation: isolate; }
.dcard__img { position: relative; height: 92px; overflow: hidden; }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.dcard:hover .dcard__img img { transform: scale(1.05); }
.dcard__body { padding: 8px 11px 0 11px; }
.dcard__name { display: block; font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard__meta { display: block; font-size: 10px; line-height: 12px; color: var(--card-sub); margin-top: 2px; white-space: nowrap; }
.dcard__price { display: block; font-size: 12px; line-height: 16px; color: var(--orange); margin-top: 0; white-space: nowrap; }
.dcard { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.dcard__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.dcard__link:focus-visible { outline-offset: 2px; }
.dcard:has(.dcard__link:active) { transform: scale(.97); }
.dcard:has(.dcard__link:hover) { box-shadow: 0 8px 20px rgba(20,33,61,.22); }
.dcard .heart { position: absolute; top: 9px; right: 7px; z-index: 2; }
.dgrid { display: grid; grid-template-columns: repeat(2, 142px); column-gap: 28px; row-gap: 22px; justify-content: center; }
.dgrid--wide { grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
.dgrid--wide .dcard { width: auto; }

/* Heart toggle (white 25×23 r4; filled orange when saved) */
.heart { position: relative; width: 25px; height: 23px; border-radius: 4px; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; transition: transform 240ms var(--ease-spring); -webkit-tap-highlight-color: transparent; }
.heart::after { content: ''; position: absolute; inset: -11px; }
.heart svg { width: 15px; height: 15px; }
.heart .h-fill { display: none; }
.heart[aria-pressed="true"] { color: var(--orange); }
.heart[aria-pressed="true"] .h-fill { display: block; }
.heart[aria-pressed="true"] .h-line { display: none; }
.heart.pop { animation: heartpop 360ms var(--ease-spring); }
@keyframes heartpop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Image containers: tinted fallback while photos load / if missing */
.ph { background: linear-gradient(135deg, #3B4A6B 0%, #6A7896 55%, #9AA5BC 100%); position: relative; }
.ph--warm { background: linear-gradient(135deg, #C98E4A, #E9C38E); }
.ph--sea { background: linear-gradient(135deg, #2F6F86, #86C3CF); }
.ph--dusk { background: linear-gradient(135deg, #3A2E5C, #D9885A); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img.is-broken { opacity: 0; }

/* --------------------------------------------------------------------------
   Promo banner (gradient slate → navy)
   -------------------------------------------------------------------------- */
.promo { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; color: #fff; padding: 18px 16px 15px; background: linear-gradient(104deg, #7A8292 0%, #5B6477 30%, #3B4660 62%, #1B2844 100%); isolation: isolate; }
.promo__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--orange); text-transform: uppercase; line-height: 1; }
.promo__title { font-size: 28px; line-height: 34px; font-weight: 700; margin-top: 18px; }
.promo__cta { margin-top: 18px; width: 188px !important; justify-content: flex-start; padding-left: 22px; gap: 10px; font-size: 16px; }
.promo__art { position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(252,163,17,.22), rgba(252,163,17,0) 70%); z-index: -1; pointer-events: none; }

/* --------------------------------------------------------------------------
   Chips + segmented pills
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px 11px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 19px; border-radius: var(--r-pill); background: var(--chip); color: #000; font-size: 13px; font-weight: 400; white-space: nowrap; cursor: pointer; transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.chip:hover { background: #DADADA; }
.chip:active { transform: scale(.96); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--orange); color: #000; }
.chip--lg { height: 36px; font-size: 14px; padding: 0 20px; }
.chip--on-navy.is-active { color: #fff; }
.chip--outline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }
.chip--outline:hover { background: var(--orange-tint-2); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.seg button { height: 34px; border-radius: var(--r-pill); background: var(--chip); color: #000; font-size: 13px; font-weight: 500; transition: background var(--dur), color var(--dur); }
.seg button[aria-selected="true"] { background: var(--orange); color: #000; }
.seg--navy button[aria-selected="true"] { background: var(--navy); color: #fff; }

/* Content tabs with orange underline (Overview · Itinerary · Reviews) */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid #E4E4E4; }
.tabs button { position: relative; padding: 8px 0 10px; font-size: 18px; font-weight: 600; color: #A0A0A0; transition: color var(--dur); }
.tabs button[aria-selected="true"] { color: var(--text-2); }
.tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); }

/* --------------------------------------------------------------------------
   Stepper (4 steps) — rendered by app.js from <div class="steps" data-step="2">
   -------------------------------------------------------------------------- */
.steps { display: flex; align-items: center; height: 28px; }
.steps__dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: #fff; background: #BDBDBD; transition: background 300ms var(--ease-out); }
.steps__dot.is-done { background: var(--orange); }
.steps__dot.is-active { background: var(--navy); }
.steps__dot:not(.is-done):not(.is-active) { color: #8E8E8E; }
.steps__line { flex: 1; height: 3px; margin: 0 10px; border-radius: 2px; background: #888; position: relative; overflow: hidden; }
.steps__line.is-done { background: var(--orange); }
.steps__line.is-active-navy { background: var(--navy); }
.step-cap { font-size: 12px; color: var(--text-4); margin-top: 8px; }

/* --------------------------------------------------------------------------
   Toggle 40×17 (role=switch)
   -------------------------------------------------------------------------- */
.toggle { position: relative; width: 41px; height: 17px; border-radius: 9px; background: var(--toggle-off); cursor: pointer; flex-shrink: 0; transition: background 220ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.toggle::before { content: ''; position: absolute; inset: -14px -4px; }            /* 44px hit area */
.toggle::after { content: ''; position: absolute; top: 2px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #F3F1F1; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform 260ms var(--ease-spring); }
.toggle[aria-checked="true"] { background: var(--navy); }
.toggle[aria-checked="true"]::after { transform: translateX(22px); background: #E9E6E6; }
.toggle[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------------------
   Range slider (single) + dual range (budget)
   -------------------------------------------------------------------------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--p, 50%), #C8C8C8 var(--p, 50%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #555; border: 0; cursor: pointer; box-shadow: 0 0 0 10px transparent; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #555; border: 0; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(252,163,17,.35); }
.drange { position: relative; height: 28px; }
.drange__track { position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 3px; background: #C8C8C8; }
.drange__fill { position: absolute; top: 0; bottom: 0; background: var(--orange); border-radius: 3px; }
.drange input { position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.drange input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #555; cursor: grab; box-shadow: 0 0 0 8px rgba(0,0,0,0); }
.drange input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #555; border: 0; }
.drange input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(252,163,17,.4); }
.drange__vals { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Calendar (rendered by Voyager.calendar)
   -------------------------------------------------------------------------- */
.cal { background: var(--chip-2); border-radius: var(--r-card); padding: 20px 9px 12px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 12px; }
.cal__month { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.cal__nav { display: flex; }
.cal__nav button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #000; }
.cal__nav button:hover { background: rgba(0,0,0,.06); }
.cal__nav button[disabled] { opacity: .3; pointer-events: none; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow span { height: 34px; display: grid; place-items: center; font-size: 15px; color: var(--text-3); }
.cal__grid { row-gap: 0; }
.cal__grid > * { height: 51px; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--ink-2); border-top: 1px solid rgba(255,255,255,.85); position: relative; }
.cal__day { cursor: pointer; background: none; border-radius: 0; transition: background var(--dur); }
.cal__day:hover { background: rgba(252,163,17,.14); }
.cal__day[disabled] { color: #B3B3B3; pointer-events: none; }
.cal__day.is-range { background: var(--orange-tint); }
.cal__day.is-start, .cal__day.is-end { background: var(--orange); border-radius: var(--r-md); color: #000; }
.cal__day.is-start.has-range { box-shadow: 20px 0 0 var(--orange-tint); }
.cal__day.is-today::before { content: ''; position: absolute; bottom: 8px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.datebox { height: 42px; border-radius: var(--r-md); background: var(--orange-tint); box-shadow: inset 0 0 0 1px var(--orange); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #000; width: 100%; }
.datebox.is-empty { background: #fff; box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text-4); font-weight: 500; }
.datebox.is-focus { box-shadow: inset 0 0 0 2px var(--orange); }

/* --------------------------------------------------------------------------
   Counter (± circles) — [data-counter] rendered/wired by app.js
   -------------------------------------------------------------------------- */
.counter { display: inline-flex; align-items: center; gap: 10px; }
.counter button { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--guest); display: grid; place-items: center; position: relative; }
.counter button::after { content: ''; position: absolute; inset: -13px; }
.counter button[disabled] { opacity: .45; pointer-events: none; }
.counter output { min-width: 14px; text-align: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.guests { background: var(--guest); color: #fff; border-radius: var(--r-sm); padding: 12px 16px; }
.guests__row { display: flex; align-items: center; justify-content: space-between; height: 27px; font-size: 14px; font-weight: 500; }
.counter--lg button { width: 32px; height: 32px; background: var(--grey-1); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-2); }
.counter--lg output { font-size: 16px; min-width: 22px; }

/* --------------------------------------------------------------------------
   Selectable option cards (Economy / Business) — radio semantics
   -------------------------------------------------------------------------- */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.opt { position: relative; display: block; text-align: left; min-height: 58px; padding: 10px 10px 8px; border-radius: var(--r-md); background: #FAFAFA; box-shadow: inset 0 0 0 1px var(--stroke); cursor: pointer; transition: background var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out); }
.opt:active { transform: scale(.98); }
.opt[aria-checked="true"] { background: var(--orange-tint); box-shadow: inset 0 0 0 1px var(--orange); }
.opt__title { display: block; font-size: 16px; line-height: 19px; font-weight: 600; color: #000; }
.opt__sub { display: block; font-size: 14px; line-height: 19px; margin-top: 1px; color: var(--orange); }
.opt[aria-checked="true"] .opt__sub { color: #B4A58D; }
.opt__check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; display: none; place-items: center; }
.opt[aria-checked="true"] .opt__check { display: grid; }

/* Radio list inside sheets / forms */
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; border-radius: 12px; background: var(--grey-1); text-align: left; width: 100%; box-shadow: inset 0 0 0 1px transparent; cursor: pointer; transition: box-shadow var(--dur), background var(--dur); }
.option:hover { background: #F0F0F0; }
.option[aria-checked="true"] { background: var(--orange-tint-2); box-shadow: inset 0 0 0 1.5px var(--orange); }
.option__radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #B8B8B8; flex-shrink: 0; transition: box-shadow var(--dur); }
.option[aria-checked="true"] .option__radio { box-shadow: inset 0 0 0 6px var(--orange); }
.option__body { flex: 1; min-width: 0; }
.option__title { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.option__sub { display: block; font-size: 12px; color: var(--text-4); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.fg { display: block; }
.fg + .fg { margin-top: 16px; }
.label { display: block; font-size: 15px; line-height: 18px; color: var(--text-3); margin: 0 0 8px 1px; }
.label--sm { font-size: 13px; color: var(--text-4); }
.req { color: var(--danger); margin-left: 2px; }
.field { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 0; outline: 0; background: #fff; color: #000; font-size: 16px; font-weight: 400; box-shadow: inset 0 0 0 1px var(--stroke); transition: box-shadow var(--dur); appearance: none; -webkit-appearance: none; }
.field::placeholder { color: var(--text-5); }
.field:focus, .field:focus-within { box-shadow: inset 0 0 0 2px var(--orange); }
.field--fill { background: var(--grey-1); box-shadow: none; }
.field--plain { box-shadow: none; }
textarea.field { height: 146px; padding: 16px 12px; resize: none; line-height: 1.45; font-size: 15px; box-shadow: inset 0 0 0 1px #C9C9C9; }
.field-wrap { position: relative; display: flex; align-items: center; }
.field-wrap .field { padding-right: 48px; }
.field-wrap__btn { position: absolute; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-4); }
.field-wrap__lead { position: absolute; left: 14px; color: var(--text-4); pointer-events: none; }
.field-wrap--lead .field { padding-left: 44px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.helper { display: block; font-size: 12px; line-height: 16px; color: var(--text-4); margin: 6px 0 0 1px; }
.error-text { display: none; font-size: 12px; line-height: 16px; color: var(--danger); margin: 6px 0 0 1px; }
.fg.has-error .field { box-shadow: inset 0 0 0 1.5px var(--danger); }
.fg.has-error .error-text { display: flex; gap: 6px; align-items: flex-start; }
.fg.has-error .helper { display: none; }
.fg.is-valid .field { box-shadow: inset 0 0 0 1px var(--valid); }
.picker { justify-content: space-between; cursor: pointer; text-align: left; }
.counter-hint { text-align: right; font-size: 11px; color: var(--text-5); margin-top: 6px; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.strength i { height: 4px; border-radius: 2px; background: #E3E3E3; transition: background var(--dur); }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--orange); }
.strength[data-level="4"] i { background: var(--valid); }
.strength-label { font-size: 12px; color: var(--text-4); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #9A9A9A; flex-shrink: 0; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: background var(--dur), box-shadow var(--dur); }
.check input:checked { background: var(--orange); box-shadow: none; }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: solid #000; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { outline: 2px solid var(--tab-active); outline-offset: 2px; }

/* OTP */
.otp { display: flex; justify-content: space-between; gap: 8px; }
.otp input { width: 48px; height: 56px; border-radius: 10px; border: 0; outline: 0; background: #fff; color: #000; text-align: center; font: 700 22px var(--font); box-shadow: inset 0 0 0 1px var(--stroke); caret-color: var(--orange); transition: box-shadow var(--dur), background var(--dur), transform 200ms var(--ease-spring); }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.otp input.filled { background: var(--orange-tint); box-shadow: inset 0 0 0 1px var(--orange); }
.otp.is-error input { box-shadow: inset 0 0 0 2px var(--danger); background: var(--danger-bg); animation: shake 360ms; }
.otp.is-ok input { background: var(--valid-bg); box-shadow: inset 0 0 0 1px var(--valid); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* PIN dots + keypad (optional) */
.pin-dots { display: flex; justify-content: center; gap: 18px; margin: 8px 0; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px #BDBDBD; transition: background 160ms, box-shadow 160ms, transform 220ms var(--ease-spring); }
.pin-dots i.on { background: var(--orange); box-shadow: none; transform: scale(1.1); }
.pin-dots.is-error i { box-shadow: inset 0 0 0 2px var(--danger); animation: shake 360ms; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.keypad button { height: 58px; border-radius: 14px; font: 500 24px var(--font); color: var(--ink); display: grid; place-items: center; transition: background 120ms; }
.keypad button:active { background: rgba(0,0,0,.06); }
.keypad button.key-muted { color: var(--text-4); }

/* --------------------------------------------------------------------------
   List rows (settings/profile menus)
   -------------------------------------------------------------------------- */
.list { background: #fff; border-radius: var(--r-card); padding: 4px 17px; }
.list--grey { background: var(--grey-4); border-radius: var(--r-md); }
.list__item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 2px; width: 100%; text-align: left; color: #000; }
.list__item + .list__item { border-top: 1px solid var(--line); }
.list__item:is(a, button):active { background: rgba(0,0,0,.025); }
.list__icon { width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; color: #000; }
.list__body { flex: 1; min-width: 0; }
.list__title { display: block; font-size: 15px; line-height: 19px; font-weight: 600; color: #000; }
.list__sub { display: block; font-size: 12px; line-height: 16px; color: var(--text-4); margin-top: 2px; }
.list__meta { font-size: 13px; color: var(--text-4); flex-shrink: 0; }
.list__chev { flex-shrink: 0; color: #000; }
.list__item--danger .list__title, .list__item--danger .list__icon { color: var(--danger); }
.ic-red { color: #E8262B; } .ic-yellow { color: #FFC21A; } .ic-orange { color: var(--orange); } .ic-navy { color: var(--navy); } .ic-grey { color: #8C8C8C; }

/* Add-on / toggle rows in a grey card (book-extras add-ons, filter inclusions) */
.addons { background: var(--grey-4); border-radius: var(--r-md); padding: 0 8px 18px 8px; }
.addon { position: relative; display: flex; align-items: center; gap: 9px; padding: 31.5px 0 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.addon:first-child { padding-top: 27.5px; }
.addon + .addon::before { content: ''; position: absolute; top: 0; left: -2px; right: 0; height: 1px; background: var(--line); }
.addon__icon { width: 25px; display: grid; place-items: center; color: #000; flex-shrink: 0; }
.addon__body { flex: 1; min-width: 0; }
.addon__title { display: block; font-size: 14px; line-height: 17px; font-weight: 600; color: var(--text-2); }
.addon__sub { display: block; font-size: 12px; line-height: 15px; color: var(--text-4); margin-top: 4px; }
.addon__right { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 44px; margin-right: -2px; }
.addon__price { font-size: 11px; line-height: 13px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; margin: 1px 5px 0 0; }
.addon:active .addon__title { color: #000; }
.addons--compact .addon { padding: 12px 0; }
.addons--compact .addon:first-child { padding-top: 14px; }

/* Tier banner row (GOLD MEMBER) */
.tier { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px 0 20px; border-radius: var(--r-md); background: var(--navy); color: #fff; }
.tier__title { display: block; font-size: 14px; font-weight: 600; color: var(--orange); line-height: 17px; }
.tier__sub { display: block; font-size: 10.5px; font-weight: 500; line-height: 13px; }

/* Status badges */
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 20px; padding: 0 9px; border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge--valid, .badge--points { background: var(--valid-bg); color: var(--valid); }
.badge--expiring, .badge--points-2 { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: #2F74C7; }
.badge--navy { background: var(--navy); color: #fff; }
.badge--upcoming { height: 36px; padding: 0 12px; border-radius: 8px; background: #fff; color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .3em; }
.dot-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font: 600 10px/16px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; }

/* Stats row card (7 Days | 4.9 Rating | 2.4k Booked) */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #EEEEEE; border-radius: var(--r-card); padding: 16px 0; box-shadow: var(--shadow-1); }
.stats > div { text-align: center; position: relative; }
.stats > div + div::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: #333; }
.stats b { display: block; font-size: 18px; line-height: 22px; font-weight: 600; color: var(--text-2); }
.stats span { display: block; font-size: 13px; line-height: 16px; color: var(--text-3); margin-top: 2px; }
.stats--navy { background: transparent; box-shadow: none; padding: 0; }
.stats--navy b { color: var(--orange); font-size: 22px; line-height: 27px; }
.stats--navy span { color: #D3D6DD; font-size: 14px; }
.stats--navy > div + div::before { display: none; }

/* Icon pills (Flights Included / Hotel Included) */
.ipill { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px 0 10px; border-radius: 21px; background: var(--chip); color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.ipill svg { color: var(--text-2); }
.ipills { display: flex; flex-wrap: wrap; gap: 20px; }

/* --------------------------------------------------------------------------
   Payment card visual
   -------------------------------------------------------------------------- */
.paycard { position: relative; overflow: hidden; height: 190px; border-radius: var(--r-md); background: var(--navy); color: #fff; padding: 22px 19px; isolation: isolate; }
.paycard::before { content: ''; position: absolute; right: -36px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(252,163,17,.95) 0%, rgba(252,163,17,.55) 22%, rgba(252,163,17,.12) 52%, rgba(252,163,17,0) 70%); z-index: -1; }
.paycard__chip { width: 36px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #F7C542, #E0A612); position: relative; }
.paycard__chip::after { content: ''; position: absolute; inset: 5px 7px; border: 1px solid rgba(120,80,0,.35); border-left: 0; border-right: 0; box-shadow: inset 7px 0 0 -6px rgba(120,80,0,.35), inset -7px 0 0 -6px rgba(120,80,0,.35); }
.paycard__num { margin-top: 38px; font-size: 14px; letter-spacing: .32em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paycard__row { display: flex; gap: 42px; margin-top: 26px; }
.paycard__k { display: block; font-size: 14px; color: #C4C7CF; text-transform: uppercase; line-height: 17px; }
.paycard__v { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; line-height: 20px; }
.paycard__brand { position: absolute; right: 19px; bottom: 22px; font: italic 800 20px var(--font); letter-spacing: -.5px; color: #fff; opacity: .9; }
.paycard--sm { height: 150px; padding: 16px; }
.paycard--sm .paycard__num { margin-top: 24px; }
.paycard--sm .paycard__row { margin-top: 16px; }

/* Price summary rows */
.summary { background: var(--grey-2); border-radius: var(--r-md); padding: 14px 10px 18px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; font-weight: 600; color: #3C3C3C; line-height: 20px; }
.summary__row.is-muted { color: var(--text-4); font-weight: 500; }
.summary__row.is-discount span:last-child { color: var(--valid); }
.summary__div { height: 1px; background: #8E8E8E; margin: 6px 0 8px; }
.summary__total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--text-2); }
.summary__total span:last-child { color: var(--orange); }

/* Trip card (photo + status badge + navy panel + two buttons) */
.tcard { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--navy); color: #fff; font-family: var(--font-2); }
.tcard__img { position: relative; height: 118px; overflow: hidden; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; }
.tcard__img .badge--upcoming { position: absolute; top: 9px; right: 10px; font-family: var(--font); }
.tcard__body { padding: 16px 13px 10px; }
.tcard__name { font-size: 15px; line-height: 19px; }
.tcard__meta { font-size: 10px; color: var(--card-sub); line-height: 13px; margin-top: 2px; }
.tcard__price { font-size: 13px; color: var(--orange); line-height: 17px; margin-top: 2px; }
.tcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; margin-top: 9px; }
.tcard__actions .btn { height: 32px; font-size: 13px; font-family: var(--font); border-radius: var(--r-md); }
.btn--manage { background: transparent; color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.btn--manage:hover { background: rgba(252,163,17,.1); }
.tcard--past .tcard__img img { filter: grayscale(.35); }

/* --------------------------------------------------------------------------
   Timeline (itinerary)
   -------------------------------------------------------------------------- */
.tl { position: relative; }
.tl__item { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 26px; align-items: center; padding-bottom: 38px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot { width: 28px; height: 28px; border-radius: 50%; background: #BCBCBC; position: relative; z-index: 1; }
.tl__item.is-done .tl__dot { background: var(--orange); }
.tl__item.is-now .tl__dot { background: var(--navy); }
.tl__item::before { content: ''; position: absolute; left: 13px; top: calc(50% + 24px); height: calc(100% - 48px - 0px); width: 3px; background: #A8A8A8; border-radius: 2px; }
.tl__item.is-done::before { background: var(--orange); }
.tl__item:last-child::before { display: none; }
.tl__card { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 16px 10px 18px; background: #fff; border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(0,0,0,.03); text-align: left; width: 100%; }
.tl__icon { width: 30px; display: grid; place-items: center; flex-shrink: 0; color: var(--ink-2); }
.tl__meta { display: block; font-size: 10.5px; line-height: 13px; color: var(--text-3); }
.tl__item.is-done .tl__meta { color: var(--orange); }
.tl__title { display: block; font-size: 15px; line-height: 19px; font-weight: 600; color: #000; }
.tl__sub { display: block; font-size: 12px; line-height: 16px; color: var(--text-3); }

/* Day chips (Day 1 / Aug 12) */
.days { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex-shrink: 0; width: 64px; height: 36px; border-radius: var(--r-sm); background: var(--slate); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; transition: background var(--dur), color var(--dur); }
.day b { font-size: 12px; line-height: 14px; font-weight: 600; }
.day small { font-size: 10px; line-height: 12px; }
.day[aria-selected="true"], .day[aria-checked="true"] { background: var(--orange); color: #000; }

/* --------------------------------------------------------------------------
   Reviews: rating summary, bars, review card, stars
   -------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 14px; height: 14px; }
.stars--lg svg { width: 18px; height: 18px; }
.stars .is-off { color: #D9D9D9; }
.rating { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 12px; }
.rating__big { text-align: center; }
.rating__num { font-size: 40px; line-height: 46px; font-weight: 700; color: #000; }
.rating__count { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.bars { display: flex; flex-direction: column; gap: 5px; }
.bars__row { display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.bars__track { height: 4px; border-radius: 2px; background: #BDBDBD; overflow: hidden; }
.bars__fill { height: 100%; background: var(--orange); border-radius: 2px; transform-origin: left; animation: fillx 700ms var(--ease-out) both; }
@keyframes fillx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.review { background: var(--grey-1); border-radius: var(--r-card); padding: 22px 22px 20px; }
.review__head { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; }
.review__avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; }
.review__name { font-size: 15px; font-weight: 600; line-height: 19px; color: var(--ink-2); }
.review__time { align-self: start; font-size: 11px; color: var(--text-3); }
.review__text { font-size: 11px; line-height: 15px; color: #222; margin-top: 12px; }

/* --------------------------------------------------------------------------
   Chat (support)
   -------------------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: 4px; }
.bubble { max-width: 245px; padding: 14px 20px 14px 26px; border-radius: var(--r-card); background: var(--grey-1); color: #111; font-size: 12px; line-height: 15px; }
.bubble--me { align-self: flex-end; background: var(--navy); color: #fff; max-width: 246px; padding: 18px 22px 18px 24px; }
.bubble-time { font-size: 10px; color: #333; margin: 6px 0 16px 6px; }
.bubble-time--me { align-self: flex-end; margin-right: 6px; }
.bubble--typing { display: inline-flex; gap: 4px; padding: 14px 18px; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: #A0A0A0; animation: typing 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; } .bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.quick-replies { display: flex; flex-wrap: wrap; gap: 11px; }
.composer { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-top: 1px solid #D6D6D6; background: #fff; }
.composer__input { flex: 1; min-width: 0; height: 34px; border-radius: 17px; border: 0; outline: 0; padding: 0 18px; font-size: 13px; box-shadow: inset 0 0 0 1.5px #BDBDBD; background: #fff; }
.composer__input:focus { box-shadow: inset 0 0 0 1.5px var(--orange); }
.composer__send { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.composer__attach { width: 32px; height: 40px; display: grid; place-items: center; color: #555; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); margin-right: 4px; }

/* Notification card */
.notif { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 20px 18px 24px; border-radius: var(--r-card); background: var(--grey-1); text-align: left; width: 100%; position: relative; }
.notif__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; }
.notif__title { font-size: 14px; font-weight: 600; line-height: 18px; color: #222; }
.notif__body { font-size: 11px; line-height: 14px; color: #111; margin-top: 8px; }
.notif__time { font-size: 11px; color: var(--text-3); margin-top: 10px; }
.notif.is-unread::after { content: ''; position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.notif + .notif { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Result hero (Booking Confirmed) + reference box
   -------------------------------------------------------------------------- */
.hero-check { position: relative; width: 166px; height: 166px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 60% 88%, #FF7A3D 0%, rgba(255,122,61,0) 55%), radial-gradient(circle at 85% 35%, #FFD9A0 0%, rgba(255,217,160,0) 45%), linear-gradient(160deg, #F2C9C0 0%, #F4B49E 45%, #FF9960 100%);
  box-shadow: 0 6px 6px rgba(0,0,0,.18); }
.hero-check svg path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 600ms 250ms var(--ease-out) forwards; }
.hero-check--fail { background: radial-gradient(circle at 60% 88%, #E53935 0%, rgba(229,57,53,0) 55%), linear-gradient(160deg, #F6C9C6, #F28B83 60%, #E53935); }
.hero-check--info { background: radial-gradient(circle at 60% 88%, #1F2C46 0%, rgba(31,44,70,0) 55%), linear-gradient(160deg, #C9D6EA, #69A9F5 60%, #3C6FB0); }
body.capture .hero-check svg path { stroke-dashoffset: 0; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.result { text-align: center; }
.result__title { font-size: 26px; line-height: 32px; font-weight: 700; color: #000; margin-top: 44px; }
.result__msg { font-size: 13px; line-height: 17px; color: var(--text-3); margin: 8px auto 0; max-width: 300px; }
.refbox { width: 298px; height: 56px; margin: 24px auto 0; border-radius: var(--r-md); background: var(--orange-tint); box-shadow: inset 0 0 0 1px var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.refbox__k { font-size: 10px; letter-spacing: .3em; color: #9A9A9A; text-transform: uppercase; }
.refbox__v { font-size: 16px; font-weight: 700; color: #000; letter-spacing: .02em; }
.refbox--btn { cursor: pointer; }

/* Empty state */
.empty { text-align: center; padding: 42px 16px; }
.empty__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; margin: 0 auto 16px; }
.empty__title { font-size: 17px; font-weight: 700; color: #000; }
.empty__msg { font-size: 14px; line-height: 1.5; color: var(--text-3); margin: 6px auto 18px; max-width: 280px; }

/* Banner (inline info / warning) */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.banner svg { flex-shrink: 0; margin-top: 1px; }
.banner--info { background: var(--info-bg); color: #1E4E86; }
.banner--warn { background: var(--orange-tint-2); color: #7A4A00; }
.banner--danger { background: var(--danger-bg); color: #9E1F1C; }
.banner--ok { background: #E8F8E3; color: #1F6B1F; }

/* Skeleton shimmer */
.skeleton { background: linear-gradient(90deg, #ECECEC 0%, #F7F7F7 50%, #ECECEC 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--r-md); }
.skeleton--navy { background: linear-gradient(90deg, #1C2A48 0%, #2A3A5E 50%, #1C2A48 100%); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Key-value rows */
.kvs > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 14px; }
.kvs > div + div { border-top: 1px solid var(--line-2); }
.kvs .k { color: var(--text-4); }
.kvs .v { color: #000; font-weight: 600; text-align: right; }

/* Surface card */
.card { background: #fff; border-radius: var(--r-card); padding: 18px; }
.card--grey { background: var(--grey-1); }
.card--shadow { box-shadow: var(--shadow-1); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 124px; z-index: 1000; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; max-width: 340px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(20,33,61,.35); display: flex; align-items: center; gap: 8px; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__action { color: var(--orange); font-weight: 700; margin-left: 6px; padding: 6px 2px; }
body.capture .toast { position: absolute; }

/* --------------------------------------------------------------------------
   Bottom sheets + dialogs
   -------------------------------------------------------------------------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(8,14,28,.55); opacity: 0; transition: opacity 260ms var(--ease-out); }
.sheet-scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 901; bottom: 0; left: 50%; width: 402px; margin-left: -201px; max-height: calc(100vh - 56px); overflow-y: auto; scrollbar-width: none;
  background: #fff; border-radius: 28px 28px 0 0; padding: 10px 24px 34px; box-shadow: 0 -20px 60px rgba(8,14,28,.25);
  transform: translateY(105%); transition: transform 340ms cubic-bezier(.32,.72,0,1); visibility: hidden; }
.sheet::-webkit-scrollbar { display: none; }
.sheet.open { transform: none; visibility: visible; }
.sheet.dragging { transition: none; }
.sheet[hidden] { display: block !important; }
.sheet__grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #D5D5D5; margin: 0 auto 14px; cursor: grab; touch-action: none; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet__title { font-size: 19px; line-height: 24px; font-weight: 700; color: #000; }
.sheet__sub { font-size: 13px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.sheet__close { width: 32px; height: 32px; border-radius: 50%; background: var(--grey-1); display: grid; place-items: center; color: #333; flex-shrink: 0; position: relative; }
.sheet__close::after { content: ''; position: absolute; inset: -6px; }
.sheet .sheet__foot { margin-top: 20px; }
body.capture .sheet, body.capture .sheet-scrim { position: absolute; }
body.capture .sheet { left: 0; margin-left: 0; }
body.capture .sheet:not(.open), body.capture .sheet-scrim:not(.open) { display: none !important; }

.dialog-wrap { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 24px; background: rgba(8,14,28,.55); opacity: 0; transition: opacity 200ms var(--ease-out); }
.dialog-wrap.open { opacity: 1; }
.dialog { width: 318px; background: #fff; border-radius: 24px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 30px 80px rgba(8,14,28,.35); transform: scale(.92); transition: transform 260ms var(--ease-spring); }
.dialog-wrap.open .dialog { transform: none; }
.dialog__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.dialog__title { font-size: 18px; font-weight: 700; line-height: 1.3; color: #000; }
.dialog__msg { font-size: 14px; color: var(--text-3); line-height: 1.5; margin-top: 8px; }
.dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dialog__actions .btn { height: 46px; font-size: 15px; }
.btn--neutral { background: var(--grey-1); color: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
body.capture .dialog-wrap { position: absolute; width: 402px; height: 874px; inset: 0 auto auto 0; }

/* --------------------------------------------------------------------------
   Tab bar (injected into <nav data-tabbar>) — mimics the sheet's rounded foot
   -------------------------------------------------------------------------- */
.tabbar { position: fixed; z-index: 50; bottom: 0; left: 50%; width: 402px; margin-left: -201px; height: 103px; padding: 0 14px 14px; pointer-events: none; }
.tabbar::before, .cta-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: var(--navy); }   /* navy frame foot + corners */
.tabbar__in { position: relative; z-index: 1; height: 100%; background: #fff; border-radius: 0 0 var(--r-sheet) var(--r-sheet); pointer-events: auto; }
.tabbar__in::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.tabbar--grey .tabbar__in { background: var(--grey-2); }
.tabbar--grey .tabbar__in::before { background: linear-gradient(to bottom, rgba(244,244,244,0), var(--grey-2)); }
.tab { position: absolute; top: 11px; width: 64px; margin-left: -32px; height: 56px; display: flex; flex-direction: column; align-items: center; font-family: var(--font-2); font-size: 12px; line-height: 16px; color: var(--tab-idle); border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.tab svg { width: 28px; height: 28px; margin-bottom: 5px; transition: transform 260ms var(--ease-spring); }
.tab:hover svg { transform: translateY(-2px); }
.tab:active svg { transform: scale(.9); }
.tab[aria-current="page"] { color: var(--tab-active); }
.tab__badge { position: absolute; top: -2px; left: 38px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; }
.home-indicator { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #CBD0D7; pointer-events: none; }

/* Sticky bottom CTA area (flows without tab bar) */
.cta-bar { position: fixed; z-index: 45; bottom: 0; left: 50%; width: 402px; margin-left: -201px; padding: 0 14px 14px; pointer-events: none; }
.cta-bar__in { position: relative; z-index: 1; padding: 20px 23px 25px; background: #fff; border-radius: 0 0 var(--r-sheet) var(--r-sheet); pointer-events: auto; }
.cta-bar__in::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.cta-bar--grey .cta-bar__in { background: var(--grey-2); }
.cta-bar--grey .cta-bar__in::before { background: linear-gradient(to bottom, rgba(244,244,244,0), var(--grey-2)); }
.cta-bar__in > * + * { margin-top: 10px; }
.cta-bar--bare { padding: 0; }
.cta-bar--bare::before { display: none; }
.cta-bar--bare .cta-bar__in { border-radius: 0; padding: 16px 38px 30px; }

/* Buy bar: price + CTA (destination / hotel) */
.buybar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 14px 20px 15px !important; border-top: 1px solid #DCDCDC; }
.buybar__k { font-size: 11px; color: var(--text-3); }
.buybar__v { font-size: 20px; font-weight: 700; color: #000; margin-top: 6px; }
.buybar__v small { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.buybar .btn { width: 136px; height: 42px; }

/* --------------------------------------------------------------------------
   Onboarding: photo mosaic + page dots + step label
   -------------------------------------------------------------------------- */
.mosaic { position: relative; display: grid; gap: 1px; background: #fff; border-radius: var(--r-frame) var(--r-frame) 0 0; overflow: hidden; }
.mosaic__tile { position: relative; overflow: hidden; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic::after { content: ''; position: absolute; inset: 0; background: rgba(20,33,61,.35); pointer-events: none; }
.mosaic__back { position: absolute; left: 38px; top: 38px; z-index: 2; width: 34px; height: 34px; border-radius: var(--r-sm); background: #fff; color: var(--orange); display: grid; place-items: center; }
.mosaic__back::after { content: ''; position: absolute; inset: -5px; }
.pill-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--orange); color: #000; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
/* Page dots (onboarding): <nav class="pdots"><a href…><i class="on"></i></a>…</nav> — <i> may be bare or wrapped in links */
.pdots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.pdots > a { position: relative; display: block; border-radius: 5px; }
.pdots > a::after { content: ''; position: absolute; inset: -17px -4px; }   /* 44pt hit area */
.pdots > a:focus-visible { outline-offset: 4px; }
.pdots i { display: block; width: 9px; height: 9px; border-radius: 5px; background: #D9D9D9; transition: width 300ms var(--ease-out), background 300ms; }
.pdots i.on { width: 50px; background: var(--navy); }
.step-label { font-size: 12px; font-weight: 500; letter-spacing: .3em; color: var(--orange); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Brand: logo monogram + topographic pattern
   -------------------------------------------------------------------------- */
.logo { width: 172px; height: 172px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.logo svg { width: 100%; height: 100%; }
.logo--navy { background: var(--navy); color: var(--orange); }
.logo--sm { width: 64px; height: 64px; }
.topo { position: relative; isolation: isolate; }
.topo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('topo.svg') center top / 402px 874px repeat-y; opacity: var(--topo-o, .16); pointer-events: none; }
.topo--light::before { opacity: .3; }
.glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(252,163,17,.55) 0%, rgba(252,163,17,.18) 30%, rgba(252,163,17,0) 65%); pointer-events: none; z-index: 0; }

/* --------------------------------------------------------------------------
   Map pins (map view)
   -------------------------------------------------------------------------- */
.pin { position: absolute; width: 32px; height: 40px; margin: -40px 0 0 -16px; color: var(--orange); filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); cursor: pointer; transition: transform 240ms var(--ease-spring); }
.pin:hover, .pin.is-active { transform: scale(1.15) translateY(-2px); }
.pin.is-active { color: var(--navy); }

/* --------------------------------------------------------------------------
   Motion — entrance choreography (disabled in capture + reduced motion)
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.enter { animation: rise 480ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.fade-in { animation: fade 300ms var(--ease-out) both; }
body.capture .enter, body.capture *, body.capture *::before, body.capture *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* Embedded in showcase iframe: hide scrollbars */
html:has(body.embedded) { scrollbar-width: none; }
body.embedded::-webkit-scrollbar, html::-webkit-scrollbar { width: 0; height: 0; display: none; }
body.embedded { overscroll-behavior: contain; }
body.capture.embedded { background: var(--navy); }
body.capture.embedded .screen, body.capture.embedded .page { border-radius: 0; }
/* Inside a phone (the demo stage's handset or a full-bleed phone viewport) the device draws the corners: the onboarding mosaic's own frame radius would show white wedges */
body.embedded .mosaic { border-radius: 0; }
body.capture .screen > .tabbar { position: absolute; left: 0; margin-left: 0; }
body.capture.embedded .sheet, body.capture.embedded .sheet-scrim { position: fixed; }
body.capture.embedded .sheet { left: 50%; margin-left: -201px; }
