/* Roadsum: soft pastel 3D ("clay") design system.
   Neutral cream/lavender chrome, colour lives in category tiles and the 3D icons.
   Motion is slow and eased; nothing loops fast. */

:root {
  --bg-top: #F3F1FB;
  --bg-mid: #FAF8F6;
  --bg-bot: #FCF5EE;
  --surface: #FFFFFF;
  --surface-2: #FBFAFF;
  --well: #F1EEFA;
  --well-2: #E9E5F7;
  --ink: #221E3A;
  --ink-2: #55516D;
  --ink-3: #8A86A0;
  --line: rgba(70, 60, 130, .10);
  --line-2: rgba(70, 60, 130, .16);
  --plum: #2E2858;
  --plum-2: #3F377A;
  --accent: #6E5FE0;
  --accent-soft: #EEEBFD;
  --coral: #EE6079;
  --coral-soft: #FDE7EB;

  /* category hues: c = strong, t = tint, i = ink on tint */
  --c-fuel: #F0955A;  --t-fuel: #FCEADC;  --i-fuel: #A4471D;
  --c-ev: #46B386;    --t-ev: #E0F3E9;    --i-ev: #1F7546;
  --c-toll: #7466E0;  --t-toll: #ECE9FC;  --i-toll: #4A3ABD;
  --c-vign: #5B8EE4;  --t-vign: #E4EDFC;  --i-vign: #2650B0;
  --c-ferry: #34A6CE; --t-ferry: #DFF1F8; --i-ferry: #12678A;
  --c-food: #EC6B83;  --t-food: #FCE6EA;  --i-food: #A5304E;
  --c-stay: #2FA78E;  --t-stay: #DCF2EC;  --i-stay: #12705C;
  --c-park: #DDAE48;  --t-park: #FBF0D4;  --i-park: #7A5706;
  --c-wear: #8AA85C;  --t-wear: #EBF1DF;  --i-wear: #4A6620;
  --c-time: #6197E8;  --t-time: #E3ECFB;  --i-time: #24539E;
  --c-people: #E386D5; --t-people: #FBE3F7; --i-people: #8E2D80;
  --c-other: #A9A3C9; --t-other: #EEECF7; --i-other: #4F4A72;

  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --clay: inset 0 1px 0 rgba(255,255,255,.9), 0 22px 44px -28px rgba(34,24,80,.24), 0 3px 10px -4px rgba(34,24,80,.08), 0 0 0 1px rgba(34,24,80,.04);
  --clay-sm: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px -16px rgba(34,24,80,.28), 0 2px 5px -2px rgba(34,24,80,.08), 0 0 0 1px rgba(34,24,80,.04);
  --clay-lift: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 32px -18px rgba(34,24,80,.32), 0 3px 8px -3px rgba(34,24,80,.1), 0 0 0 1px rgba(34,24,80,.05);
  --well-in: inset 0 2px 5px rgba(80,60,160,.10), inset 0 -1px 0 rgba(255,255,255,.85);
  --hair: 0 0 0 1px var(--line);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --press: .97;

  --f-display: "Literata", "Iowan Old Style", Georgia, serif;
  --f-num: "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --sec-y: clamp(64px, 9vw, 120px);
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-bot); overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--plum); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; margin: 0; text-wrap: balance; color: var(--ink); font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
.num, output, .tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); font-weight: 500; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.flipx { transform: scaleX(-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── sky: pastel blobs + grain, fixed and slow ── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 46vw; height: 46vw; left: -10vw; top: -8vw; background: radial-gradient(circle at 40% 40%, #D9D2FF, transparent 68%); }
.b2 { width: 40vw; height: 40vw; right: -8vw; top: 18vh; background: radial-gradient(circle at 50% 50%, #FFD9C7, transparent 66%); }
.b3 { width: 50vw; height: 50vw; left: 20vw; bottom: -22vw; background: radial-gradient(circle at 50% 50%, #C9F0E4, transparent 66%); }
@media (prefers-reduced-motion: no-preference) {
  .b1 { animation: drift1 48s ease-in-out infinite alternate; }
  .b2 { animation: drift2 56s ease-in-out infinite alternate; }
  .b3 { animation: drift1 64s ease-in-out infinite alternate-reverse; }
}
@keyframes drift1 { to { transform: translate3d(6vw, 4vh, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-5vw, 6vh, 0) scale(.94); } }
.grain { position: absolute; inset: 0; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.35 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ── shared surfaces ── */
.clay { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--clay); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pill--soft { background: rgba(255,255,255,.75); box-shadow: var(--clay-sm); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.note { font-size: 13px; color: var(--ink-3); }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.tile {
  --tc: var(--c-other); --tt: var(--t-other);
  flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fff 0%, var(--tt) 55%, color-mix(in oklab, var(--tt), var(--tc) 30%) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -3px 6px color-mix(in oklab, var(--tc), transparent 78%), 0 6px 12px -8px color-mix(in oklab, var(--tc), transparent 20%);
}
.tile img { width: 64%; height: auto; filter: drop-shadow(0 2px 2px rgba(60,40,120,.18)); }
.tile--fuel { --tc: var(--c-fuel); --tt: var(--t-fuel); }
.tile--ev { --tc: var(--c-ev); --tt: var(--t-ev); }
.tile--toll { --tc: var(--c-toll); --tt: var(--t-toll); }
.tile--vign { --tc: var(--c-vign); --tt: var(--t-vign); }
.tile--ferry { --tc: var(--c-ferry); --tt: var(--t-ferry); }
.tile--food { --tc: var(--c-food); --tt: var(--t-food); }
.tile--stay { --tc: var(--c-stay); --tt: var(--t-stay); }
.tile--park { --tc: var(--c-park); --tt: var(--t-park); }
.tile--wear { --tc: var(--c-wear); --tt: var(--t-wear); }
.tile--time { --tc: var(--c-time); --tt: var(--t-time); }
.tile--people { --tc: var(--c-people); --tt: var(--t-people); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--r-pill); padding: 14px 24px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:active { transform: scale(var(--press)); }
.btn--primary { color: #fff; background: linear-gradient(180deg, var(--plum-2), var(--plum)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), inset 0 -3px 6px rgba(20,10,60,.25), 0 14px 24px -12px rgba(61,53,118,.65); }
.btn--soft { color: var(--ink); background: var(--surface); box-shadow: var(--clay-sm); }
.btn--soft img { width: 20px; height: 20px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), inset 0 -3px 6px rgba(20,10,60,.25), 0 18px 30px -12px rgba(61,53,118,.7); transform: translateY(-1px); }
  .btn--primary:hover svg { transform: translateX(3px); }
  .btn--soft:hover { box-shadow: var(--clay-lift); transform: translateY(-1px); }
  .btn:active { transform: scale(var(--press)); }
}
.linkbtn { border: 0; background: none; padding: 6px 2px; font-weight: 700; font-size: 14px; color: var(--plum); display: inline-flex; gap: 6px; align-items: center; border-radius: 8px; transition: transform .15s var(--ease); }
.linkbtn:active { transform: scale(var(--press)); }
.linkbtn span { font-size: 17px; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--clay-sm); border: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.chip svg { width: 12px; height: 12px; }
.chip--btn { transition: transform .15s var(--ease); }
.chip--btn:active { transform: scale(var(--press)); }

/* ── form controls ── */
.input {
  width: 100%; min-width: 0; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--well); box-shadow: var(--well-in);
  font-size: 15px; font-weight: 600; color: var(--ink); transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.input::placeholder { color: var(--ink-3); font-weight: 500; }
.input:focus { outline: none; background: #fff; box-shadow: 0 0 0 2.5px var(--accent), 0 6px 16px -10px rgba(80,60,160,.5); }
.input[type=number] { font-variant-numeric: tabular-nums; }
.input--dd { text-align: left; display: flex; justify-content: space-between; align-items: center; }
.input--dd::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); }
.field2 { display: grid; gap: 7px; min-width: 0; }
.field2--inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.money-input { display: flex; align-items: center; gap: 6px; background: var(--well); box-shadow: var(--well-in); border-radius: 14px; padding-left: 12px; }
.money-input span { font-weight: 700; color: var(--ink-3); }
.money-input .input { background: transparent; box-shadow: none; padding-left: 0; }
.datetime { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
/* iOS: native date/time inputs have an intrinsic width that pushes the grid wider than the phone */
.input[type=date], .input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; display: block; min-height: 46px; text-align: left; }
.input[type=date]::-webkit-date-and-time-value, .input[type=time]::-webkit-date-and-time-value { text-align: left; }
/* iOS zooms into any input under 16px */
@media (max-width: 760px) { .input, .stop input, .search .input { font-size: 16px; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; width: 46px; height: 28px; border-radius: 99px; background: var(--well-2); box-shadow: var(--well-in); transition: background .3s var(--ease); flex: none; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(60,40,120,.28), inset 0 -2px 3px rgba(110,90,190,.12); transition: transform .4s var(--spring); }
.switch input:checked + .switch__track { background: linear-gradient(180deg, #A79BFF, var(--accent)); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2.5px solid var(--accent); outline-offset: 3px; }

/* segmented */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 4px; background: var(--well); box-shadow: var(--well-in); border-radius: 16px; }
.seg--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.seg button { position: relative; z-index: 1; min-width: 0; border: 0; background: none; border-radius: 12px; padding: 9px 8px; font-size: 13.5px; line-height: 1.25; font-weight: 700; color: var(--ink-3); transition: color .2s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease); text-wrap: balance; }
.seg button[aria-checked="true"] { color: var(--ink); background: #fff; box-shadow: var(--clay-sm); }
.seg button:active { transform: scale(var(--press)); }
.seg--sm button { padding: 7px 8px; font-size: 13px; }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper__lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--clay-sm); font-size: 18px; font-weight: 700; color: var(--plum); line-height: 1; display: grid; place-items: center; transition: transform .15s var(--ease); }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 26px; text-align: center; font-family: var(--f-num); font-weight: 700; font-size: 17px; }
.stepper--big { background: var(--surface-2); box-shadow: var(--hair); border-radius: 20px; padding: 10px 12px; gap: 10px; }
.stepper--big img { width: 36px; height: 36px; }
.stepper--big .stepper__lbl { flex: 1; font-size: 15px; color: var(--ink); }

/* slider */
.slider { display: grid; gap: 8px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; }
.slider output { font-family: var(--f-num); font-weight: 700; font-size: 15px; color: var(--ink); }
.slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; --p: 50%; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #B5ABFF, var(--accent)) 0 / var(--p) 100% no-repeat, var(--well-2); box-shadow: var(--well-in); }
.slider input[type=range]::-moz-range-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #B5ABFF, var(--accent)) 0 / var(--p) 100% no-repeat, var(--well-2); box-shadow: var(--well-in); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -7px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 8px rgba(60,40,120,.3), inset 0 -3px 4px rgba(110,90,190,.14), 0 0 0 4px rgba(124,108,242,.16); transition: transform .2s var(--spring); }
.slider input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 8px rgba(60,40,120,.3), inset 0 -3px 4px rgba(110,90,190,.14), 0 0 0 4px rgba(124,108,242,.16); }
.slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider input[type=range]:focus-visible { outline: none; }
.slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 3px 8px rgba(60,40,120,.3), 0 0 0 4px var(--accent); }

/* dropdown */
.dd { position: relative; }
.dd__menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 180px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--clay), 0 0 0 1px var(--line); transform-origin: top right; }
.dd--field .dd__menu { left: 0; right: auto; width: 100%; transform-origin: top left; }
.dd__menu:not([hidden]) { animation: pop .28s var(--spring); }
.dd__menu li { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.dd__menu li small { color: var(--ink-3); font-weight: 500; }
.dd__menu li[aria-selected="true"] { background: var(--accent-soft); color: var(--plum); }
.dd__menu li.is-active { background: var(--well); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); background: rgba(246, 243, 255, .72); box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 8px 24px -20px rgba(80,60,160,.4); }
.top__in { max-width: var(--wrap); margin: 0 auto; height: 100%; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__img { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 8px rgba(80,60,160,.22)); transition: transform .5s var(--spring); }
.logo__word { font-family: var(--f-display); font-weight: 600; font-size: 23px; letter-spacing: -.035em; }
.logo__word span { font-style: italic; padding-right: .05em; background: linear-gradient(100deg, #8B7BFF 10%, #E58BD8 55%, #FF7D97); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo__img { transform: rotate(-6deg) scale(1.06); } }
.logo--foot .logo__img { width: 36px; height: 36px; }
.logo--foot .logo__word { font-size: 19px; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 12px; transition: background .2s var(--ease), color .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .top__nav a:hover { background: rgba(255,255,255,.8); color: var(--ink); } }
.top__tools { display: flex; gap: 8px; }
@media (max-width: 760px) { .top__nav { display: none; } .top__tools { margin-left: auto; } }

/* ── hero ── */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gut) 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 18px; align-content: start; }
.hero__copy > .pill { justify-self: start; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.hl { font-style: italic; font-weight: 500; background: linear-gradient(100deg, #6E5FE0 0%, #EE6079 60%, #F0955A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lede { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.routecard { padding: 16px; display: grid; gap: 12px; max-width: 520px; }
.routecard__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; }
.presets { display: grid; gap: 10px; max-width: 560px; }
.presets__label { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.presets__row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .presets__row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 10px; scrollbar-width: none; } .presets__row::-webkit-scrollbar { display: none; } .preset { flex: none; scroll-snap-align: start; } }
.preset { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.85); box-shadow: var(--clay-sm); border-radius: var(--r-pill); padding: 5px 14px 5px 5px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: transform .2s var(--ease), box-shadow .25s var(--ease); }
.preset img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(60,40,120,.2); }
.preset:active { transform: scale(var(--press)); }
@media (hover: hover) and (pointer: fine) { .preset:hover { transform: translateY(-2px); box-shadow: var(--clay-lift); color: var(--ink); } }

.hero__stage { position: relative; overflow-x: clip; overflow-y: visible; padding: 10px 0; margin: -10px 0; }
.diorama { position: relative; aspect-ratio: 1 / .92; width: 100%; border-radius: 40px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, #FFFFFF 0%, #F1EDFF 45%, #E5F2FF 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -24px 40px rgba(110,90,190,.08), 0 40px 80px -40px rgba(80,60,160,.45); }
.diorama canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.diorama__tags { position: absolute; inset: 0; pointer-events: none; }
.dtag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 99px; background: rgba(255,255,255,.92); box-shadow: var(--clay-sm); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; will-change: transform; opacity: 0; transition: opacity .6s var(--ease); }
.dtag.is-on { opacity: 1; }
@media (max-width: 600px) { .dtag { font-size: 11px; padding: 4px 9px 4px 4px; } .dtag .long { display: none; } }
.dtag i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tt, var(--t-other)); }
.dtag img { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .diorama { aspect-ratio: 1 / .72; border-radius: 32px; }
  .routecard, .presets { max-width: none; }
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* stops list (hero + plan) */
.stops { display: grid; gap: 8px; position: relative; }
.stop { position: relative; display: flex; align-items: center; gap: 6px; background: var(--well); box-shadow: var(--well-in); border-radius: 16px; padding: 5px 6px 5px 5px; transition: box-shadow .2s var(--ease), background .2s var(--ease), transform .3s var(--ease); }
.stop:focus-within { background: #fff; box-shadow: 0 0 0 2.5px var(--accent), 0 8px 20px -12px rgba(80,60,160,.5); z-index: 5; }
.stop__ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--clay-sm); cursor: grab; touch-action: none; }
.stop__ico img { width: 22px; height: 22px; }
.stop input { flex: 1; border: 0; background: transparent; padding: 9px 4px; font-weight: 600; font-size: 15px; min-width: 0; width: 100%; }
.stop input:focus { outline: none; }
.stop__x { width: 30px; height: 30px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; transition: background .2s, color .2s, transform .15s; }
.stop__x:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .stop__x:hover { background: #fff; color: var(--i-food); } }
.stop__flag { font-size: 18px; padding: 0 4px; }
.stop__loc { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; transition: background .2s, transform .15s; }
.stop__loc img { width: 18px; height: 18px; opacity: .85; }
.stop__loc:active { transform: scale(.9); }
.stop__loc.is-busy img { animation: carbob 1s ease-in-out infinite alternate; }
@media (hover: hover) and (pointer: fine) { .stop__loc:hover { background: #fff; } }
.stop.is-drag { z-index: 10; box-shadow: var(--clay-lift); background: #fff; transition: none; }
.stop.is-in { animation: pop .45s var(--spring); }
.stop__swap { position: absolute; right: 44px; top: calc(50% - 4px); z-index: 6; }
.ac { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--clay), 0 0 0 1px var(--line); animation: pop .25s var(--spring); }
.ac li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.ac li.is-active { background: var(--accent-soft); }
.ac li b { font-weight: 700; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac li small { font-size: 12px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac li span.f { font-size: 20px; text-align: center; }
.ac__empty { padding: 10px; font-size: 13px; color: var(--ink-3); }

/* ── three steps strip ── */
.steps3 { max-width: var(--wrap); margin: 8px auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3__item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(255,255,255,.6); }
.steps3__item b { display: block; font-size: 15px; }
.steps3__item span:not(.tile) { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; gap: 10px; } }

/* ── planner ── */
.plan { max-width: var(--wrap); margin: 0 auto; padding: var(--sec-y) var(--gut) 0; }
.plan__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.plan__head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.plan__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tripchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; min-height: 32px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 99px; background: rgba(255,255,255,.85); box-shadow: var(--clay-sm); font-size: 13px; font-weight: 700; color: var(--ink-2); animation: pop .4s var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms); }
.tchip img { width: 20px; height: 20px; }
.tchip .flags { letter-spacing: 2px; font-size: 15px; }
.plan__grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 24px; align-items: start; }
.plan__steps { display: grid; gap: 14px; }
.plan__side { display: grid; gap: 16px; align-content: start; }
@media (max-width: 1060px) {
  .plan__grid { grid-template-columns: 1fr; }
  .plan__side { position: relative; top: 0; order: -1; }
}

/* step accordion */
.step { overflow: clip; }
.step__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; background: none; text-align: left; border-radius: var(--r-lg); }
.step__head:active .tile { transform: scale(.94); }
.step__head .tile { transition: transform .3s var(--spring); }
.step__title { flex: 1; min-width: 0; display: grid; }
.step__title b { font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.step__sum { font-size: 13px; color: var(--ink-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step__chev { width: 30px; height: 30px; border-radius: 50%; background: var(--well); box-shadow: var(--well-in); position: relative; flex: none; transition: transform .45s var(--spring), background .3s; }
.step__chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translate(-50%, -70%) rotate(45deg); }
.step.is-open .step__chev { transform: rotate(180deg); background: var(--accent-soft); }
.step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.step.is-open .step__body { grid-template-rows: 1fr; }
.step__inner { min-height: 0; overflow: hidden; display: grid; gap: 16px; padding: 0 18px; }
.step.is-open .step__inner { padding-bottom: 20px; overflow: visible; }
.step:not(.is-open) .step__inner { visibility: hidden; transition: visibility 0s .55s; }
@media (hover: hover) and (pointer: fine) { .step:not(.is-open) .step__head:hover .tile { transform: translateY(-2px) rotate(-3deg); } }
.sub { display: grid; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.sub__title { font-weight: 700; font-size: 14px; }
.sub__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* compare card */
.compare { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, var(--t-toll), #fff); box-shadow: var(--hair); animation: pop .5s var(--spring); }
.compare img { width: 34px; height: 34px; }
.compare b { font-size: 14px; }
.compare p { font-size: 13px; color: var(--ink-2); }
.compare button { margin-top: 4px; }

/* car search */
.search { position: relative; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 42px; }
.search__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--clay), 0 0 0 1px var(--line); animation: pop .25s var(--spring); }
.search__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.search__list li.is-active { background: var(--accent-soft); }
.search__list li img { width: 30px; height: 30px; }
.search__list li b { font-size: 14px; }
.search__list li small { display: block; color: var(--ink-3); font-size: 12px; }
.search__list li em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.search__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.variant { border: 0; text-align: left; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); box-shadow: var(--hair); display: grid; gap: 2px; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s; }
.variant b { font-size: 13.5px; }
.variant small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.variant[aria-checked="true"] { background: #fff; box-shadow: 0 0 0 2.5px var(--accent), var(--clay-sm); }
.variant:active { transform: scale(var(--press)); }
.variant--more { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.variant--more b { color: var(--plum); }
.fuelbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--fi, var(--i-fuel)); }
.fuelbadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fc, var(--c-fuel)); }

/* 3D studio */
.studio { position: relative; height: 270px; border-radius: 24px; overflow: hidden; background: radial-gradient(90% 80% at 50% 30%, #FFFFFF 0%, #F3F0FF 55%, #E9E4FB 100%); box-shadow: var(--well-in); }
.studio canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.studio canvas:active { cursor: grabbing; }
.studio__hud { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.studio__hint { font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: rgba(255,255,255,.7); padding: 4px 9px; border-radius: 99px; }
.paints { display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.82); box-shadow: var(--clay-sm); pointer-events: auto; }
.paint { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--pc); box-shadow: inset 0 -3px 4px rgba(0,0,0,.12), inset 0 2px 2px rgba(255,255,255,.6); transition: transform .3s var(--spring); }
.paint[aria-checked="true"] { transform: scale(1.18); box-shadow: inset 0 -3px 4px rgba(0,0,0,.12), inset 0 2px 2px rgba(255,255,255,.6), 0 0 0 2.5px #fff, 0 0 0 4.5px var(--accent); }
.paint:active { transform: scale(.9); }
.dims { position: absolute; top: 10px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.dims span { font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,.82); padding: 3px 8px; border-radius: 99px; box-shadow: var(--clay-sm); }
.dims span i { font-style: normal; color: var(--ink-3); }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.spec { padding: 10px 12px; border-radius: 16px; background: var(--surface-2); box-shadow: var(--hair); min-width: 0; }
.spec dt { font-size: 11.5px; font-weight: 700; color: var(--ink-3); display: flex; gap: 4px; align-items: center; }
.spec dd { margin: 2px 0 0; font-family: var(--f-num); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--i-park); background: var(--t-park); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 420px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* load toggles */
.loadgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.loadbtn { position: relative; cursor: pointer; }
.loadbtn input { position: absolute; opacity: 0; pointer-events: none; }
.loadbtn__face { display: grid; justify-items: start; gap: 4px; padding: 10px 12px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--hair); transition: transform .3s var(--spring), box-shadow .25s var(--ease), background .25s; height: 100%; }
.loadbtn__face img { width: 34px; height: 34px; transition: transform .45s var(--spring); }
.loadbtn__face b { font-size: 13px; }
.loadbtn__face small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; min-height: 1em; }
.loadbtn input:checked + .loadbtn__face { background: #fff; box-shadow: 0 0 0 2.5px var(--accent), var(--clay-sm); }
.loadbtn input:checked + .loadbtn__face img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.loadbtn input:focus-visible + .loadbtn__face { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.loadbtn:active .loadbtn__face { transform: scale(var(--press)); }

/* speed curve */
.curve { margin: 0; position: relative; display: grid; gap: 4px; }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve__cap { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }

/* fuel prices */
.prices { display: grid; gap: 6px; }
.price { display: grid; grid-template-columns: 26px minmax(0, 1fr) 108px; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--hair); }
.price .f { font-size: 18px; }
.price b { font-size: 13.5px; display: block; }
.price small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; display: block; }
.price .money-input { padding-left: 10px; }
.price .input { padding: 8px 8px 8px 0; font-size: 14px; }
.cheapest { color: var(--i-stay); font-weight: 800; }

/* people */
.people { display: grid; gap: 8px; }
.seats { display: flex; gap: 6px; flex-wrap: wrap; min-height: 34px; }
.seat { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--t-people); box-shadow: inset 0 1px 0 #fff, 0 3px 8px -5px rgba(142,45,128,.6); animation: pop .45s var(--spring) both; }
.seat img { width: 24px; height: 24px; }
.seat--kid { background: var(--t-park); }

/* meals */
.meals { display: grid; gap: 10px; }
.meal { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; }
.meal img { width: 34px; height: 34px; }
.meal__top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; }
.meal__top small { color: var(--ink-3); font-weight: 600; }
.meal .seg { margin-top: 6px; }

/* basket */
.basket { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.snack { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--hair); transition: background .25s, box-shadow .25s; }
.snack.is-on { background: #fff; box-shadow: var(--clay-sm); }
.snack__img { width: 42px; height: 42px; border: 0; background: none; padding: 0; transition: transform .45s var(--spring); }
.snack__img img { width: 42px; height: 42px; }
.snack.is-on .snack__img { transform: translateY(-2px) scale(1.06); }
.snack:not(.is-on) .snack__img { filter: grayscale(.6) opacity(.55); }
.snack b { font-size: 12px; text-align: center; line-height: 1.2; }
.snack small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.snack__qty { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.snack__qty button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--well); box-shadow: var(--well-in); font-weight: 800; font-size: 13px; line-height: 1; color: var(--plum); transition: transform .15s; }
.snack__qty button:active { transform: scale(.88); }
.snack__qty output { min-width: 14px; text-align: center; font-weight: 800; font-size: 13px; }
.snack__mode { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 8px; padding: 2px; background: var(--t-stay); box-shadow: inset 0 1px 0 #fff; transition: transform .3s var(--spring), background .25s; }
.snack__mode img { width: 18px; height: 18px; }
.snack__mode.is-buy { background: var(--t-fuel); }
.snack__mode:active { transform: scale(.85); }
.snack .fly { position: absolute; left: 50%; top: 18px; width: 28px; pointer-events: none; animation: fly .8s var(--ease) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(.6); } }

/* stays */
.stays { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .stays { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stay { border: 0; display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--hair); transition: transform .3s var(--spring), box-shadow .25s; }
.stay img { width: 36px; height: 36px; transition: transform .45s var(--spring); }
.stay b { font-size: 12.5px; }
.stay small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.stay[aria-checked="true"] { background: #fff; box-shadow: 0 0 0 2.5px var(--c-stay), var(--clay-sm); }
.stay[aria-checked="true"] img { transform: translateY(-3px) scale(1.08); }
.stay:active { transform: scale(var(--press)); }

/* generic money lines (tolls, ferries, nights, custom) */
.lines { display: grid; gap: 6px; }
.line { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--surface-2); box-shadow: var(--hair); }
.line > img, .line > .f { width: 28px; height: 28px; font-size: 20px; text-align: center; }
.line b { font-size: 13.5px; display: block; }
.line small { font-size: 12px; color: var(--ink-3); font-weight: 600; display: block; }
.line__amt { font-family: var(--f-num); font-weight: 700; font-size: 15px; white-space: nowrap; }
.line .money-input { width: 112px; padding-left: 10px; }
.line .input { padding: 8px 8px 8px 0; font-size: 14px; }
.line--empty { grid-template-columns: 32px 1fr; color: var(--ink-3); font-size: 13px; }
.line .mini-dd { margin-top: 4px; }
.vchoice { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.vchoice button { border: 0; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--well); color: var(--ink-2); box-shadow: var(--well-in); transition: transform .15s; }
.vchoice button[aria-checked="true"] { background: var(--t-vign); color: var(--i-vign); box-shadow: inset 0 0 0 1.5px var(--c-vign); }
.vchoice button:active { transform: scale(.94); }
.custom { grid-template-columns: minmax(0, 1fr) 112px 30px; }
.custom .input { padding: 8px 10px; font-size: 14px; }
.custom .stop__x { width: 28px; height: 28px; }

/* nights list */
.nights { display: grid; gap: 6px; }

/* ── map ── */
.mapcard { position: relative; height: min(62vh, 560px); min-height: 380px; overflow: hidden; border-radius: 30px; isolation: isolate; }
.map { position: absolute; inset: 0; }
.map__tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; z-index: 3; }
.mapbtn { display: inline-flex; align-items: center; gap: 8px; border: 0; height: 40px; padding: 0 14px 0 10px; border-radius: 99px; background: rgba(255,255,255,.92); box-shadow: var(--clay-sm); font-weight: 700; font-size: 13px; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s; }
.mapbtn img { width: 22px; height: 22px; }
.mapbtn svg { width: 18px; height: 18px; }
.mapbtn--icon { width: 40px; padding: 0; justify-content: center; }
.mapbtn:active { transform: scale(var(--press)); }
.mapbtn.is-on { background: var(--plum); color: #fff; }
@media (hover: hover) and (pointer: fine) { .mapbtn:hover { box-shadow: var(--clay-lift); } }
.map__legend { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.map__legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,.9); padding: 4px 9px; border-radius: 99px; box-shadow: var(--clay-sm); }
.map__legend i { width: 18px; height: 5px; border-radius: 3px; background: var(--lc); }
.map__legend i.dash { background: repeating-linear-gradient(90deg, var(--lc) 0 5px, transparent 5px 8px); }
.map__pending { position: absolute; z-index: 5; left: 12px; right: 12px; top: 62px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--clay), 0 0 0 2px var(--accent); animation: rise .45s var(--spring); }
.map__pending b { display: block; font-size: 14px; }
.map__pending small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
@media (max-width: 460px) { .map__pending { grid-template-columns: auto minmax(0, 1fr); } .map__pending .btn { grid-column: 1 / -1; } }
.is-stale { opacity: .5; filter: saturate(.6); transition: opacity .3s var(--ease), filter .3s var(--ease); }
#planUpdate:not([hidden]) { animation: rise .45s var(--spring); }
.map__loading { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(246,243,255,.66); backdrop-filter: blur(4px); font-weight: 700; color: var(--ink-2); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.roadload { position: relative; width: 180px; height: 44px; }
.roadload i { position: absolute; left: 0; right: 0; bottom: 6px; height: 8px; border-radius: 99px; background: repeating-linear-gradient(90deg, #fff 0 14px, transparent 14px 26px), var(--well-2); background-size: 26px 100%, 100% 100%; box-shadow: var(--well-in); }
.roadload img { position: absolute; bottom: 10px; left: 0; width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .roadload i { animation: roadmove .6s linear infinite; }
  .roadload img { animation: carbob 2.4s var(--ease) infinite alternate; }
}
@keyframes roadmove { to { background-position: -26px 0, 0 0; } }
@keyframes carbob { 0% { transform: translateX(0) translateY(0); } 50% { transform: translateX(73px) translateY(-2px); } 100% { transform: translateX(146px) translateY(0); } }

/* map markers */
.mk { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: #fff; box-shadow: var(--clay-sm); border: 0; padding: 0; cursor: pointer; animation: mkin .55s var(--spring) both; animation-delay: calc(var(--i, 0) * 40ms); }
.mk img { width: 26px; height: 26px; }
.mk--sm { width: 30px; height: 30px; border-radius: 11px; }
.mk--sm img { width: 19px; height: 19px; }
.mk--end { background: linear-gradient(160deg, #fff, var(--t-toll)); }
.mk--pill { width: auto; height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 0 5px; border-radius: 99px; }
.mk--pill img { width: 20px; height: 20px; }
.mk--pill::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; box-shadow: 2px 2px 3px -1px rgba(40,30,100,.12); }
.mk__val { position: relative; z-index: 1; font-size: 12px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.mk--plaza { background: #FBFAFF; }
.mk__tag { position: absolute; top: -10px; left: 70%; font-size: 10.5px; font-weight: 800; color: var(--ink); background: #fff; padding: 2px 6px; border-radius: 99px; box-shadow: var(--clay-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes mkin { from { opacity: 0; transform: translateY(-10px) scale(.6); } to { opacity: 1; transform: none; } }
.carmk { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #fff, #EAE5FF); box-shadow: var(--clay-lift), 0 0 0 4px rgba(124,108,242,.18); }
.carmk img { width: 30px; height: 30px; }
.maplibregl-popup-content { border-radius: 16px !important; padding: 10px 14px !important; box-shadow: var(--clay) !important; font-family: var(--f-body); font-size: 13px; }
.maplibregl-popup-content b { display: block; font-size: 14px; }
.maplibregl-popup-tip { display: none; }
.maplibregl-ctrl-attrib { font-size: 10px; border-radius: 10px 0 0 0; background: rgba(255,255,255,.75) !important; }
.maplibregl-ctrl-group { border-radius: 14px !important; box-shadow: var(--clay-sm) !important; overflow: hidden; }

/* ── receipt ── */
.receipt { filter: drop-shadow(0 22px 26px rgba(80,60,160,.20)) drop-shadow(0 3px 5px rgba(80,60,160,.10)); }
.receipt__paper { position: relative; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 20px 32px;
  /* scalloped tear-off edge */
  -webkit-mask: radial-gradient(circle 8px at 50% calc(100% + 1px), #0000 97%, #000 100%) 0 0 / 20px 100% repeat-x;
  mask: radial-gradient(circle 8px at 50% calc(100% + 1px), #0000 97%, #000 100%) 0 0 / 20px 100% repeat-x; }
.receipt__head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line-2); }
.receipt__head b { font-family: var(--f-display); font-weight: 500; font-size: 18px; display: block; }
.receipt__head small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.receipt__lines { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 2px; font-family: var(--f-mono); font-size: 13.5px; }
.rline { display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 10px; transition: background .6s var(--ease); }
.rline img { width: 20px; height: 20px; }
.rline span.dots { border-bottom: 2px dotted var(--line-2); height: 0; align-self: center; margin-top: 4px; }
.rline b { font-weight: 500; font-variant-numeric: tabular-nums; }
.rline.is-zero { color: var(--ink-3); }
.rline.flash { background: var(--accent-soft); transition: background 0s; }
.rline.is-new { animation: printin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes printin { from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1.5px dashed var(--line-2); }
.receipt__total span { font-weight: 700; color: var(--ink-2); }
.receipt__total b { font-family: var(--f-num); font-weight: 800; font-size: 32px; letter-spacing: -.03em; }
.receipt__pp { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; gap: 8px; flex-wrap: wrap; }
.receipt__pp b { color: var(--ink); }

/* ── results ── */
.results, .how { max-width: var(--wrap); margin: 0 auto; padding: var(--sec-y) var(--gut) 0; display: grid; gap: 18px; }
.sechead { display: grid; gap: 6px; margin-bottom: 8px; max-width: 720px; }
.sechead h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sechead__lede { color: var(--ink-2); font-size: 16px; }
.res-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .res-top { grid-template-columns: 1fr; } }
.bigtotal { padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 18px; align-items: center; position: relative; overflow: hidden; }
.sketch { margin: 0; }
.sketch svg { width: 100%; height: auto; display: block; }
.sk-line { transition: stroke-dashoffset 1.8s var(--ease); }
@media (max-width: 560px) { .bigtotal { grid-template-columns: 1fr; } .sketch { max-width: 280px; justify-self: center; margin-top: -8px; } }

.bigtotal__main { display: grid; gap: 18px; min-width: 0; }
.bigtotal__label { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.bigtotal__num { font-family: var(--f-num); font-weight: 800; font-size: clamp(50px, 7vw, 78px); line-height: 1; letter-spacing: -.045em; }
.bigtotal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--hair); min-width: 0; }
.kpi small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.kpi b { font-family: var(--f-num); font-weight: 800; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.polaroid { margin: 0; width: 170px; padding: 9px 9px 12px; background: #fff; border-radius: 16px; box-shadow: 0 18px 30px -16px rgba(80,60,160,.45), 0 0 0 1px var(--line); transform: rotate(3deg); transition: transform .5s var(--spring); animation: pop .6s var(--spring) both; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; outline: 1px solid rgba(0,0,0,.06); outline-offset: -1px; }
.polaroid figcaption { display: grid; gap: 2px; padding: 8px 2px 0; }
.polaroid figcaption b { font-family: var(--f-display); font-weight: 500; font-size: 15px; }
.polaroid figcaption a { font-size: 10px; color: var(--ink-3); text-decoration: none; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .polaroid:hover { transform: rotate(0deg) scale(1.03); } }
@media (max-width: 720px) { .bigtotal { grid-template-columns: 1fr; padding: 20px; } .polaroid { width: 100%; transform: none; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; } .polaroid img { aspect-ratio: 1; } .polaroid figcaption { padding: 0; } .bigtotal__grid { grid-template-columns: 1fr 1fr; } }
.donutcard { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 520px) { .donutcard { grid-template-columns: 1fr; } }
.donut { position: relative; aspect-ratio: 300 / 228; max-width: 320px; width: 100%; margin: 0 auto; }
.donut svg { width: 100%; height: 100%; overflow: visible; }
.donut__seg { transition: transform .45s var(--spring), opacity .3s; transform-origin: 50% 50%; cursor: pointer; }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut__center { padding-bottom: 10.5%; }
.donut__center b { font-family: var(--f-num); font-weight: 800; font-size: clamp(19px, 2.3vw, 26px); letter-spacing: -.03em; }
.donut__cap { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-top: -4px; }
.donut__center small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.donut__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.donut__legend li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; cursor: default; transition: background .2s; font-size: 13.5px; font-weight: 700; }
.donut__legend li.is-hot { background: var(--well); }
.donut__legend li img { width: 24px; height: 24px; }
.donut__legend li span.pct { color: var(--ink-3); font-weight: 600; font-size: 12px; margin-left: 6px; }
.donut__legend li b { font-weight: 600; font-variant-numeric: tabular-nums; }

.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tips:empty { display: none; }
.tip { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 22px; background: linear-gradient(150deg, #fff 30%, var(--tt, var(--t-stay))); box-shadow: var(--clay-sm); animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.tip img { width: 40px; height: 40px; }
.tip b { font-size: 14.5px; display: block; }
.tip p { font-size: 13px; color: var(--ink-2); }
.tip .save { font-family: var(--f-num); font-weight: 800; color: var(--i-stay); font-size: 17px; }

.panel { padding: 22px; display: grid; gap: 16px; min-width: 0; }
.panel__head { display: flex; gap: 14px; align-items: center; }
.panel__head h3 { font-size: 20px; }
.panel__head p { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.res-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .res-two { grid-template-columns: 1fr; } }
.chart { margin: 0; position: relative; min-height: 200px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__tip { position: absolute; pointer-events: none; background: #fff; border-radius: 12px; box-shadow: var(--clay); padding: 7px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s; z-index: 3; }
.chart__tip b { display: block; font-size: 13px; }
.chart__tip.is-on { opacity: 1; }
.empty { padding: 30px 10px; text-align: center; color: var(--ink-3); font-weight: 600; font-size: 14px; display: grid; justify-items: center; gap: 10px; }
.empty img { width: 52px; height: 52px; opacity: .8; }

/* timeline */
.timeline { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 8px; scrollbar-width: thin; }
.tl { display: flex; gap: 14px; min-width: min-content; }
.tl--one .tlday { width: 100%; }
.tl--one .tlev { display: block; columns: 2 300px; column-gap: 40px; }
.tl--one .ev { break-inside: avoid; }
.ribbon { margin: 0 0 16px; border-radius: 20px; overflow: hidden; }
.ribbon svg { width: 100%; height: auto; display: block; }
.rpin { animation: mkin .55s var(--spring) both; animation-delay: calc(var(--i) * 45ms + 200ms); transform-box: fill-box; transform-origin: center; }
.tlday { flex: none; width: 320px; border-radius: 24px; background: var(--surface-2); box-shadow: var(--hair); overflow: hidden; }
.tlday__sky { position: relative; height: 64px; padding: 12px 14px; color: #fff; display: flex; justify-content: space-between; align-items: flex-start; }
.tlday__sky b { font-family: var(--f-display); font-weight: 500; font-size: 18px; text-shadow: 0 1px 6px rgba(40,20,80,.25); }
.tlday__sky small { font-size: 12px; font-weight: 700; opacity: .92; text-shadow: 0 1px 4px rgba(40,20,80,.3); }
.tlday__sky .sunarc { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.tlev { list-style: none; margin: 0; padding: 10px 12px 14px; display: grid; gap: 0; }
.ev { position: relative; display: grid; grid-template-columns: 44px 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 2px; }
.ev::before { content: ""; position: absolute; left: 66px; top: -6px; bottom: -6px; width: 3px; background: var(--well-2); border-radius: 2px; z-index: 0; }
.ev:first-child::before { top: 50%; }
.ev:last-child::before { bottom: 50%; }
.ev time { font-size: 12px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ev__ico { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--clay-sm); }
.ev__ico img { width: 22px; height: 22px; }
.ev b { font-size: 13px; display: block; line-height: 1.3; }
.ev small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; display: block; }
.ev .amt { font-family: var(--f-num); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.ev--drive .ev__ico { background: var(--well); box-shadow: none; width: 26px; height: 26px; border-radius: 9px; margin-left: 4px; }
.ev--drive .ev__ico img { width: 16px; height: 16px; opacity: .8; }

/* by country */
.bycountry { display: grid; gap: 10px; }
.bc { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 12px; align-items: center; }
.bc__name { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; min-width: 0; }
.bc__name span.f { font-size: 20px; }
.bc__name small { color: var(--ink-3); font-weight: 600; font-size: 12px; display: block; }
.bc__bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--well); box-shadow: var(--well-in); }
.bc__bar i { height: 100%; background: var(--sc); transform-origin: left; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.08); }
@keyframes grow { from { transform: scaleX(0); } }
.bc__none { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.bc__amt { font-family: var(--f-num); font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bc { grid-template-columns: 1fr 80px; } .bc__bar { grid-column: 1 / -1; order: 3; } }

/* ── how ── */
.howgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .howgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .howgrid { grid-template-columns: 1fr; } }
.howcard { padding: 20px; display: grid; gap: 10px; align-content: start; }
.howcard h3 { font-size: 18px; }
.howcard p { font-size: 14px; color: var(--ink-2); }
.howcard code { font-family: var(--f-mono); font-size: 12.5px; background: var(--well); padding: 2px 6px; border-radius: 6px; }
.sources { padding: 20px 22px; display: grid; gap: 10px; }
.sources h3 { font-size: 17px; }
.sources ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 20px; font-size: 13px; color: var(--ink-2); }
.sources li b { color: var(--ink); }

/* ── footer ── */
.foot { margin-top: var(--sec-y); padding: 36px var(--gut) calc(40px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.5); box-shadow: 0 -1px 0 rgba(255,255,255,.8); }
.foot__in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); }
.foot__credits { font-size: 12px; color: var(--ink-3); }
.foot__credits a { color: var(--ink-2); }

/* ── mobile bar ── */
.mobilebar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); box-shadow: var(--clay), 0 0 0 1px var(--line); animation: rise .5s var(--ease); }
.mobilebar small { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.mobilebar b { font-family: var(--f-num); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
@media (min-width: 1061px) { .mobilebar { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.mobilebar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mobilebar { transition: transform .45s var(--ease), opacity .3s var(--ease); }
@media (max-width: 1060px) { body { padding-bottom: 84px; } }

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 16px; border-radius: 99px; background: var(--plum); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 14px 30px -12px rgba(61,53,118,.7); animation: rise .4s var(--spring); }

/* counting numbers keep width steady */
.num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .mobilebar, .map__loading { backdrop-filter: none; -webkit-backdrop-filter: none; background: #F6F3FF; }
}
@media (prefers-contrast: more) {
  :root { --ink-3: #5D5880; --line: rgba(40, 30, 90, .3); --line-2: rgba(40, 30, 90, .4); }
}


/* ── hero link to the gallery ── */
.ideas-link { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(255,255,255,.7); box-shadow: var(--clay-sm); text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s; }
.ideas-link b { color: var(--plum); }
.ideas-link svg { width: 16px; height: 16px; color: var(--plum); transition: transform .3s var(--ease); }
.ideas-link:active { transform: scale(var(--press)); }
@media (hover: hover) and (pointer: fine) { .ideas-link:hover { box-shadow: var(--clay-lift); } .ideas-link:hover svg { transform: translateY(3px); } }

/* ── trip ideas gallery ── */
.ideas { padding: clamp(40px, 6vw, 72px) 0 0; }
.ideas__head { max-width: var(--wrap); margin: 0 auto 20px; padding: 0 var(--gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ideas__head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.ideas__lede { color: var(--ink-2); margin-top: 6px; }
.ideas__nav { display: flex; gap: 8px; }
.navbtn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--clay-sm); color: var(--plum); display: grid; place-items: center; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; }
.navbtn svg { width: 20px; height: 20px; }
.navbtn:active { transform: scale(.92); }
.navbtn:disabled { opacity: .35; }
@media (hover: hover) and (pointer: fine) { .navbtn:hover { box-shadow: var(--clay-lift); } }
@media (max-width: 700px) { .ideas__nav { display: none; } }
.ideas__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); padding: 10px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 34px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ideas__track::-webkit-scrollbar { display: none; }
.idea { --rx: 0deg; --ry: 0deg; flex: none; width: clamp(260px, 24vw, 318px); display: grid; grid-template-rows: auto 1fr; padding: 8px; border: 0; border-radius: 30px; background: #fff; text-align: left; color: var(--ink); scroll-snap-align: start;
  box-shadow: 0 26px 46px -30px rgba(30,20,80,.42), 0 4px 12px -6px rgba(30,20,80,.1), 0 0 0 1px rgba(34,24,80,.04);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s var(--ease); animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.idea__photo { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 23px; overflow: hidden; background: #E4DFF4; }
.idea__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.idea__credit { position: absolute; right: 10px; bottom: 8px; left: 10px; text-align: right; font-size: 9px; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea__info { display: grid; gap: 4px; padding: 14px 10px 6px; align-content: start; }
.idea__from { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.idea__title { font-family: var(--f-display); font-weight: 500; font-size: 23px; line-height: 1.12; letter-spacing: -.02em; }
.idea__meta { font-size: 12.5px; color: var(--ink-2); font-weight: 600; min-height: 1.4em; }
.idea__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.idea__price b { font-family: var(--f-num); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.idea__price small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.idea__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); transition: transform .35s var(--spring), background .3s, color .3s; }
.idea__go svg { width: 18px; height: 18px; }
.idea:active { transform: perspective(900px) scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .idea:hover { box-shadow: 0 36px 56px -30px rgba(30,20,80,.5), 0 6px 14px -6px rgba(30,20,80,.12), 0 0 0 1px rgba(34,24,80,.05); }
  .idea:hover .idea__img { transform: scale(1.05); }
  .idea:hover .idea__go { background: var(--coral); color: #fff; transform: translateX(3px); }
}
.idea.is-current { box-shadow: 0 0 0 2.5px var(--accent), 0 26px 46px -30px rgba(30,20,80,.42); }
@media (prefers-reduced-motion: reduce) { .ptag { animation: none; } .idea { transform: none !important; } }

/* ── trip banner ── */
.banner { position: relative; min-height: clamp(230px, 30vw, 360px); border-radius: 34px; overflow: hidden; margin-bottom: 22px; display: grid; align-items: end; isolation: isolate; background: linear-gradient(180deg, #CFE3FF, #EDE7FF 55%, #FFE6DA);
  box-shadow: 0 34px 60px -34px rgba(60,40,140,.55), 0 10px 22px -14px rgba(60,40,140,.3); }
.banner__media { position: absolute; inset: 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; opacity: 0; transition: opacity .9s var(--ease); }
.banner__media img.is-in { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .banner__media img.is-in { animation: kenburns 28s ease-in-out infinite alternate; } }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.banner__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,30,72,0) 25%, rgba(36,30,72,.66) 100%), linear-gradient(90deg, rgba(36,30,72,.35), rgba(36,30,72,0) 60%); }
.banner__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: clamp(18px, 3vw, 30px); color: #fff; }
.banner h2 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); text-shadow: 0 2px 20px rgba(20,10,50,.35); }
.eyebrow--light { color: rgba(255,255,255,.88); }
.banner .tripchips .tchip { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.btn--glass { color: #fff; background: rgba(255,255,255,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 20px -12px rgba(20,10,50,.5); }
.btn--glass img { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .btn--glass:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); } }
.banner__credit { position: absolute; right: 14px; top: 12px; font-size: 10px; color: rgba(255,255,255,.8); text-decoration: none; max-width: 50%; text-align: right; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.banner--plain .banner__scrim { background: linear-gradient(180deg, rgba(36,30,72,0) 35%, rgba(36,30,72,.45) 100%); }

/* ── big total: who pays what ── */
.split { display: flex; flex-wrap: wrap; gap: 8px; }
.payer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-2); box-shadow: var(--hair); animation: pop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 60ms); }
.payer i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--t-people); }
.payer i img { width: 20px; height: 20px; }
.payer b { font-family: var(--f-num); font-weight: 800; font-size: 15px; }
.payer small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.payer--free { opacity: .7; }
.payer--free i { background: var(--t-stay); }
.bigtotal__sub { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-top: -8px; }

/* ── breakdown visuals ── */
.vizrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .vizrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vizrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.viz { position: relative; padding: 16px 16px 18px; border-radius: 24px; background: #fff; box-shadow: var(--clay-sm); display: grid; gap: 6px; align-content: start; min-width: 0; overflow: hidden; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.viz__head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.viz__head img { width: 26px; height: 26px; padding: 4px; border-radius: 9px; background: var(--vt, var(--t-other)); }
.viz svg { width: 100%; height: 92px; display: block; overflow: visible; }
.viz__val { font-family: var(--f-num); font-weight: 800; font-size: 23px; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz__cap { font-size: 12px; color: var(--ink-3); font-weight: 600; line-height: 1.35; }
.viz .draw { transition: stroke-dashoffset 1.4s var(--ease); }
.viz .needle { transition: transform 1.6s var(--spring); transform-box: view-box; }
.viz .bub { animation: pop .6s var(--spring) both; transform-box: fill-box; transform-origin: center; }
@media (max-width: 640px) {
  .vizrow { grid-template-columns: 1fr; gap: 12px; }
  .viz { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); grid-template-areas: "h h" "v val" "v cap"; column-gap: 16px; row-gap: 4px; padding: 18px; align-items: center; }
  .viz__head { grid-area: h; margin-bottom: 6px; }
  .viz > svg, .viz > .vizlist { grid-area: v; height: 96px; }
  .viz__val { grid-area: val; align-self: end; font-size: 22px; white-space: normal; }
  .viz__cap { grid-area: cap; align-self: start; }
}
.vizlist { display: grid; gap: 7px; height: 92px; align-content: center; }
.vizlist__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.vizlist__row span { font-size: 16px; }
.vizlist__row i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #8FD3EE, #3FB4DE); width: var(--w); transform-origin: left; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 200ms); }
.vizlist__row small { font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .vizlist { height: 78px; gap: 5px; } }


/* ── hero showcase: real trips, real numbers, big photos ── */
.showcase { position: relative; aspect-ratio: 1 / .98; width: 100%; }
.showcase__main { position: absolute; margin: 0; inset: 2% 4% 8% 14%; border-radius: 34px; overflow: hidden; background: #DCD6F0;
  box-shadow: 0 40px 70px -36px rgba(30,20,80,.5), 0 12px 26px -14px rgba(30,20,80,.25), inset 0 0 0 1px rgba(255,255,255,.4); z-index: 2; }
.showcase__imgs { position: absolute; inset: 0; }
.showcase__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 7s linear; }
.showcase__imgs img.is-in { opacity: 1; transform: scale(1); }
.showcase__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,24,60,.0) 50%, rgba(30,24,60,.55) 100%); pointer-events: none; }
.showcase__place { position: absolute; z-index: 2; right: 26px; bottom: 22px; text-align: right; color: #fff; display: grid; text-shadow: 0 2px 14px rgba(10,5,40,.4); }
.showcase__place span { font-size: 13px; font-weight: 700; opacity: .9; }
.showcase__place b { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.showcase__credit { position: absolute; z-index: 2; left: 16px; top: 12px; font-size: 9.5px; color: rgba(255,255,255,.75); text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.5); max-width: 60%; }
.showcase__back { position: absolute; inset: 6% 0 14% 26%; border-radius: 30px; overflow: hidden; background: #E4DFF4; box-shadow: 0 30px 50px -30px rgba(30,20,80,.4); transition: transform 1.2s var(--ease); }
.showcase__back img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: opacity .8s; }
.sb1 { transform: rotate(5deg) translate(4%, 2%); z-index: 1; }
.sb2 { transform: rotate(10deg) translate(9%, 4%); z-index: 0; opacity: .85; }
.showcase__receipt { position: absolute; z-index: 4; left: 0; bottom: 3%; width: min(56%, 300px); padding: 16px 18px 22px; background: #fff; border-radius: 20px 20px 4px 4px;
  box-shadow: 0 30px 50px -24px rgba(30,20,80,.45), 0 6px 14px -6px rgba(30,20,80,.18); transform: rotate(-2.5deg);
  -webkit-mask: radial-gradient(circle 6px at 50% calc(100% + 1px), #0000 97%, #000 100%) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 6px at 50% calc(100% + 1px), #0000 97%, #000 100%) 0 0 / 14px 100% repeat-x; }
@media (prefers-reduced-motion: no-preference) { .showcase__receipt { animation: floaty 7s ease-in-out infinite alternate; } .showcase__route { animation: floaty 8s ease-in-out -3s infinite alternate; } }
@keyframes floaty { from { translate: 0 0; } to { translate: 0 -8px; } }
.scr__head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--line-2); }
.scr__head small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
.scr__lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.scr__lines li { display: grid; grid-template-columns: 20px auto 1fr auto; gap: 7px; align-items: center; animation: printin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.scr__lines img { width: 18px; height: 18px; }
.scr__lines .dots { border-bottom: 2px dotted var(--line-2); align-self: center; margin-top: 3px; }
.scr__lines b { font-weight: 700; font-variant-numeric: tabular-nums; }
.scr__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.scr__total > b { font-family: var(--f-num); font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--ink); }
.showcase__route { position: absolute; z-index: 3; right: 0; top: 0; width: min(40%, 232px); padding: 6px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 22px; box-shadow: 0 24px 40px -24px rgba(30,20,80,.45); transform: rotate(3deg); }
.showcase__route svg { width: 100%; height: auto; display: block; border-radius: 17px; overflow: hidden; aspect-ratio: 260 / 200; }
.showcase__route .sk-line { transition: stroke-dashoffset 1.6s var(--ease); }
.showcase__dots { position: absolute; z-index: 5; left: 50%; bottom: -2%; transform: translateX(-30%); display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.85); box-shadow: var(--clay-sm); }
.showcase__dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: #CFC9E6; transition: width .4s var(--ease), background .3s; }
.showcase__dots button[aria-selected="true"] { width: 24px; background: var(--plum); }
@media (max-width: 900px) {
  .showcase { aspect-ratio: 1 / 1.02; max-width: 520px; margin: 0 auto; }
  .showcase__main { inset: 0 2% 12% 8%; }
  .showcase__receipt { width: min(64%, 270px); padding: 12px 14px 18px; }
  .scr__total > b { font-size: 24px; }
}
@media (max-width: 600px) {
  .showcase__route { display: none; }
  .scr__lines li:nth-child(n+4) { display: none; }
  .showcase__place { top: 34px; bottom: auto; right: 20px; }
  .showcase__credit { top: auto; bottom: 12px; left: auto; right: 14px; text-align: right; }
  .showcase__main::after { background: linear-gradient(180deg, rgba(30,24,60,.45) 0%, rgba(30,24,60,0) 40%); }
}

/* ── day by day: a journey line per day ── */
.jdays { display: grid; gap: 16px; }
.jday { border-radius: 24px; background: var(--surface-2); box-shadow: var(--hair); padding: 18px 20px 20px; }
.jday__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.jday__n { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.jday__head b { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.jday__meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.jday__eur { margin-left: auto; font-family: var(--f-num); font-weight: 800; font-size: 17px; }
.jtrack { display: flex; align-items: flex-start; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.jnode { position: relative; flex: none; width: 112px; display: grid; justify-items: center; text-align: center; gap: 3px; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.jnode time { font-size: 12px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.jnode__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--clay-sm); margin: 2px 0 4px; position: relative; z-index: 1; }
.jnode__ico img { width: 24px; height: 24px; }
.jnode b { font-size: 12.5px; line-height: 1.25; font-weight: 700; }
.jnode small { font-size: 11px; color: var(--ink-3); font-weight: 600; line-height: 1.3; }
.jnode__amt { margin-top: 3px; font-size: 11.5px; font-weight: 800; color: var(--ink); background: #fff; padding: 2px 8px; border-radius: 99px; box-shadow: var(--hair); }
.jnode--start .jnode__ico, .jnode--arrive .jnode__ico { width: 48px; height: 48px; background: var(--accent-soft); }
.jnode--night .jnode__ico { background: #E9E6FB; }
.jgap { position: relative; flex: var(--g) 1 70px; min-width: 70px; height: 70px; }
.jgap--short { flex: 0 0 26px; min-width: 26px; }
.jgap__line { position: absolute; left: -14px; right: -14px; top: 41px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #C9C1EE 0 10px, transparent 10px 16px); }
.jgap__lbl { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; color: var(--ink-3); font-weight: 600; background: var(--surface-2); padding: 0 6px; }
.jgap__lbl b { color: var(--ink); font-weight: 800; }
.jgap__flags { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); font-size: 13px; white-space: nowrap; }
@media (max-width: 700px) {
  .jday { padding: 16px; }
  .jtrack { flex-direction: column; align-items: stretch; overflow: visible; }
  .jnode { width: auto; grid-template-columns: 46px 42px minmax(0, 1fr) auto; grid-template-areas: "t i b a" "t i s a"; justify-items: start; text-align: left; column-gap: 10px; align-items: center; }
  .jnode time { grid-area: t; }
  .jnode__ico { grid-area: i; margin: 0; }
  .jnode b { grid-area: b; align-self: end; }
  .jnode small { grid-area: s; align-self: start; }
  .jnode__amt { grid-area: a; margin: 0; }
  .jnode--start .jnode__ico, .jnode--arrive .jnode__ico { width: 42px; height: 42px; }
  .jgap, .jgap--short { flex: none; min-width: 0; height: auto; min-height: 22px; margin-left: 56px; padding: 4px 0 4px 26px; display: flex; align-items: center; gap: 8px; }
  .jgap__line { left: 19px; right: auto; top: -4px; bottom: -4px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, #C9C1EE 0 8px, transparent 8px 13px); }
  .jgap__lbl, .jgap__flags { position: static; transform: none; background: none; padding: 0; }
}

.sketch--photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1.08; box-shadow: 0 24px 40px -26px rgba(30,20,80,.5), inset 0 0 0 1px rgba(255,255,255,.4); }
.sketch--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sketch--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30,24,60,.6)); }
.sketch--photo figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; display: grid; gap: 2px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.sketch--photo figcaption b { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.sketch--photo figcaption small { font-size: 9.5px; opacity: .75; }
@media (max-width: 560px) { .sketch--photo { aspect-ratio: 16 / 10; max-width: none; width: 100%; } }

.banner__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(10,5,40,.35); }
.banner__flags { letter-spacing: 3px; font-size: 16px; }
.tripbar { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 22px; }
.tripbar .btn--primary img { width: 20px; height: 20px; }
@media (max-width: 520px) { .tripbar .btn { flex: 1 1 auto; } .tripbar #inviteBtn { flex-basis: 100%; } }

.donut__ico { pointer-events: none; animation: pop .55s var(--spring) both; animation-delay: calc(var(--i) * 70ms + 300ms); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 2px 2px rgba(30,20,80,.25)); }

.map__retry { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(246,244,251,.85); font-weight: 700; color: var(--ink-2); }
.map__retry img { width: 40px; height: 40px; }
.maplibregl-ctrl-attrib.maplibregl-compact { margin: 0 8px 8px 0 !important; }
.map__legend { bottom: 44px; }
@media (max-width: 700px) { .map__legend { left: 10px; bottom: 10px; max-width: calc(100% - 80px); } .map__legend span { font-size: 10.5px; padding: 3px 7px; } .studio__hint { display: none; } }

/* ── invite panel ── */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; background: rgba(34,30,58,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s var(--ease); }
.modal.is-out { animation: fade .25s var(--ease) reverse forwards; }
.modal__box { position: relative; min-width: 0; width: min(940px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; padding: 28px; border-radius: 32px; background: #fff; box-shadow: 0 40px 80px -30px rgba(20,10,60,.5); animation: rise .45s var(--spring); }
.modal__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--well); font-size: 22px; line-height: 1; color: var(--ink-2); z-index: 2; }
.modal__form { display: grid; gap: 14px; align-content: start; }
.modal__form h3 { font-size: 28px; }
.modal__form textarea.input { resize: vertical; min-height: 84px; font-weight: 500; line-height: 1.45; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.modal__actions .btn--primary { flex-basis: 100%; }
.modal__actions img { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__box { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; max-height: 92vh; }
  .modal__preview { order: 2; }
}
.invcard { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 24px 44px -26px rgba(30,20,80,.45), 0 0 0 1px var(--line); }
.invcard__photo { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #CFE3FF, #EDE7FF); }
.invcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.invcard__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(30,24,60,.45)); }
.invcard__chip { position: absolute; z-index: 1; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; background: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 800; color: var(--ink); }
.invcard__chip img { width: 18px; height: 18px; }
.invcard__chip--dark { position: static; background: var(--coral-soft); color: var(--i-food); }
.invcard__body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.invcard__host { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.invcard h4 { font-family: var(--f-display); font-weight: 500; font-size: 24px; margin: 0; letter-spacing: -.02em; }
.invcard__when { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.invcard blockquote { margin: 8px 0 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--accent-soft); font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--ink); }
.invcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.invcard__price b { font-family: var(--f-num); font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.invcard__price span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ── the page a friend lands on ── */
body.has-invite .hero { display: none; }
.invpage { max-width: var(--wrap); margin: 18px auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.invpage__photo { min-height: 460px; border-radius: 34px 0 0 34px; overflow: hidden; background: linear-gradient(180deg, #CFE3FF, #EDE7FF 55%, #FFE6DA); }
.invpage__photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade 1s var(--ease); }
.invpage__card { padding: clamp(24px, 4vw, 44px); border-radius: 0 34px 34px 0; background: #fff; box-shadow: var(--clay); display: grid; gap: 12px; align-content: center; }
.invpage__card .invcard__chip--dark { justify-self: start; }
.invpage h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -.03em; }
.invpage__host { font-weight: 700; color: var(--ink-2); }
.invpage__when { color: var(--ink-3); font-weight: 600; }
.invpage__msg { margin: 4px 0; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--accent-soft); font-family: var(--f-display); font-style: italic; font-size: 18px; }
.invpage__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.invpage__cell { padding: 12px 14px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--hair); display: grid; gap: 2px; }
.invpage__cell small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.invpage__cell b { font-family: var(--f-num); font-weight: 800; font-size: 22px; }
.invpage__cell span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.invpage__cell--big { grid-column: 1 / -1; background: var(--coral-soft); box-shadow: none; }
.invpage__cell--big b { font-size: 40px; letter-spacing: -.04em; }
.invpage__cell--lines { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.invpage__cell--lines span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.invpage__cell--lines img { width: 18px; height: 18px; }
.invpage__cell--lines b { font-size: 13px; }
.invpage__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.invpage__actions img { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .invpage { grid-template-columns: 1fr; padding: 0; margin-top: 0; }
  .invpage__photo { min-height: 300px; border-radius: 0; }
  .invpage__card { border-radius: 30px 30px 0 0; margin-top: -30px; position: relative; padding: 24px 18px 28px; box-shadow: 0 -20px 40px -30px rgba(30,20,80,.3); }
  .invpage__actions .btn { flex: 1 1 auto; }
}

/* no trip (start or destination emptied): the report steps aside for one clear prompt */
.res-empty { display: none; align-items: center; gap: 18px; padding: 26px 28px; margin-top: 8px; }
.res-empty img { flex: none; }
.res-empty b { font-family: var(--f-display); font-weight: 600; font-size: 22px; display: block; }
.res-empty p { margin: 4px 0 0; color: var(--ink-2); }
body.no-trip .res-empty { display: flex; animation: rise .5s var(--ease) both; }
body.no-trip .results > :not(.sechead):not(.res-empty) { display: none; }

/* trip length callout on the map line */
.rlabel { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 8px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1px rgba(70,60,130,.10), 0 10px 22px -10px rgba(40,30,100,.45); white-space: nowrap; animation: rise .6s var(--ease) .9s both; }
.rlabel::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; box-shadow: 3px 3px 4px -2px rgba(40,30,100,.15); }
.rlabel--dock { position: absolute; z-index: 3; }
.rlabel--dock::after { display: none; }
.rlabel--left::after { left: -6px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); border-radius: 0 0 0 3px; box-shadow: -3px 3px 4px -2px rgba(40,30,100,.15); }
.rlabel--right::after { left: auto; right: -6px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); border-radius: 0 3px 0 0; box-shadow: 3px -3px 4px -2px rgba(40,30,100,.15); }
.rlabel img { width: 24px; height: 24px; }
.rlabel__t { display: grid; line-height: 1.1; }
.rlabel__t b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.rlabel__t small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rlabel__spark { width: 64px; height: 18px; margin-left: 2px; }
.rlabel--compact .rlabel__spark { display: none; }

/* food not counted: the choices stay visible (and kept) but step back */
.food-count { margin-bottom: 14px; }
[data-step="food"].is-off .meals, [data-step="food"].is-off .sub { opacity: .38; filter: saturate(.4); pointer-events: none; transition: opacity .3s var(--ease), filter .3s var(--ease); }

/* toll plazas listed under their motorway */
.plazas { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.plazas span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; background: var(--well); font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.plazas b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Open in maps: menu grows from the button (same path out: fade + shrink back to it) */
.navmenu { position: absolute; z-index: 80; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(70,60,130,.08), 0 24px 48px -20px rgba(30,20,80,.4); opacity: 0; transform: scale(.96) translateY(-4px); transition: opacity .16s var(--ease), transform .16s var(--ease); pointer-events: none; }
.navmenu.is-open { opacity: 1; transform: none; pointer-events: auto; transition-duration: .22s; }
.navmenu__head { margin: 4px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.navmenu__foot { margin: 6px 10px 4px; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.navopt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .15s; }
.navopt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.navopt b { display: block; font-size: 14.5px; font-weight: 700; }
.navopt small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.navopt__ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, #fff, var(--well)); box-shadow: inset 0 1.5px 0 #fff, 0 4px 10px -6px rgba(60,40,140,.35); }
.navopt__ico img { width: 24px; height: 24px; }
.navopt:active { background: var(--well); }
@media (hover: hover) and (pointer: fine) { .navopt:hover { background: var(--surface-2); } }

/* Drive or take the train? */
.railcard { padding: 20px 22px; display: grid; gap: 12px; margin-top: 18px; }
.railcard[hidden] { display: none; }
.railcard__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.railcard__head h3 { font-family: var(--f-display); font-weight: 600; font-size: 21px; margin: 0; }
.railcard__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.railrow { display: grid; grid-template-columns: 32px minmax(150px, 220px) minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.railrow img { width: 30px; height: 30px; }
.railrow__lbl b { display: block; font-size: 15px; }
.railrow__lbl small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.railrow__bar { position: relative; height: 12px; border-radius: 99px; background: var(--well); box-shadow: var(--well-in); }
.railrow__bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; transform-origin: left; animation: grow .9s var(--ease) both; }
.railrow__bar i.is-car { background: linear-gradient(90deg, #8B7BFF, #E58BD8); }
.railrow__bar i.is-range { background: repeating-linear-gradient(135deg, var(--c-time) 0 6px, color-mix(in oklab, var(--c-time), #fff 35%) 6px 12px); }
.railrow__val { text-align: right; font-size: 16px; font-weight: 800; white-space: nowrap; }
.railcard__verdict { margin: 4px 0 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.railcard__note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) {
  .railrow { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "i l v" "b b b"; row-gap: 8px; }
  .railrow img { grid-area: i; } .railrow__lbl { grid-area: l; } .railrow__val { grid-area: v; } .railrow__bar { grid-area: b; }
}

/* No car? Share a rental */
.rentcard { padding: 20px 22px; display: grid; gap: 14px; margin-top: 18px; }
.rentcard[hidden] { display: none; }
.gtgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .gtgrid { grid-template-columns: 1fr; } }
.gtchart { width: 100%; min-height: 200px; }
.gtchart svg { width: 100%; height: auto; display: block; }
.gtlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); font-weight: 650; margin-top: 4px; }
.gtlegend span { display: inline-flex; align-items: center; gap: 6px; }
.gtlegend i { width: 18px; height: 8px; border-radius: 4px; }
.gtlegend i.is-rent { background: linear-gradient(90deg, #F7A3B3, #8B7BFF); }
.gtlegend i.is-transit { background: color-mix(in oklab, var(--c-time), transparent 70%); box-shadow: inset 0 0 0 1.5px var(--c-time); }
.gtlegend i.is-own { height: 0; border-top: 2px dotted var(--ink-3); border-radius: 0; }
.gtchips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.gtchip { padding: 8px 6px; border-radius: 14px; background: var(--well); text-align: center; display: grid; gap: 1px; }
.gtchip small { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.gtchip b { font-size: 15px; font-weight: 800; }
.gtchip.is-win { background: color-mix(in oklab, var(--c-stay), #fff 82%); }
.gtchip.is-win b { color: var(--i-stay); }
.gtchip.is-now { box-shadow: inset 0 0 0 2px #E2516C; background: var(--surface); }
.gtparts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--well); font-size: 14px; }
.gtparts dt { color: var(--ink-2); font-weight: 650; }
.gtparts dd { margin: 0; text-align: right; font-weight: 800; color: var(--ink); }
.gtparts .gtparts__sub { grid-column: 1 / -1; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: -2px; }
.gtparts .gtparts__tot { padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.gtoneway { margin-top: 10px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 18px; background: color-mix(in oklab, var(--accent-soft), #fff 30%); }
.gtoneway.is-border { background: color-mix(in oklab, var(--coral-soft), #fff 30%); }
.gtoneway img { width: 32px; height: 32px; }
.gtoneway b { font-size: 14.5px; display: block; }
.gtoneway p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.gtrules summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.gtrules ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.gtacts { display: flex; flex-wrap: wrap; gap: 10px; }
.gtacts .btn img { width: 20px; height: 20px; }
.gtpost { display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--well); }
.gtpost[hidden] { display: none; }
.gtpost__lead { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.gtpost__text { width: 100%; border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 14px; line-height: 1.5; background: var(--surface); color: var(--ink); resize: vertical; box-shadow: var(--hair); }
.gtpost__acts { display: flex; flex-wrap: wrap; gap: 8px; }
