/* Wayfinder. Tokens, base, then components. Logical properties only, so Hebrew (RTL) and English (LTR) share one sheet. */
:root {
  --ink: #151938;
  --ink-2: #3d4266;
  --ink-3: #6c7193;
  --blue: #2158e8;
  --blue-deep: #1743b8;
  --blue-tint: #e4ecff;
  --sun: #ffc93c;
  --sun-deep: #e8ad0f;
  --coral: #ff5a4e;
  --coral-ink: #b42a20;
  --coral-tint: #ffe3e0;
  --mint: #12b886;
  --mint-ink: #0a7a58;
  --mint-tint: #d8f5ec;
  --paper: #f5f6fb;
  --paper-2: #e9ebf6;
  --white: #fff;
  --line: #d6d9ec;
  --shadow: 0 1px 2px rgb(21 25 56 / 0.06), 0 10px 28px -14px rgb(21 25 56 / 0.28);

  --c-nature: #1b8a4c;
  --c-culture: #6844e8;
  --c-nightlife: #cf2a7e;
  --c-food: #c2570a;
  --c-adventure: #087a91;
  --c-family: #9c6a00;
  --c-relaxation: #3b6fe0;

  --display: "Suez One", "Rubik", "Segoe UI", Arial, sans-serif;
  --body: "Rubik", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --notch: var(--paper);
  --night: #1b1f4b;
  --night-2: #2a2f72;
  --sky: radial-gradient(120% 90% at 85% 0%, #343a8c 0%, #1b1f4b 55%, #12152f 100%);
}

[data-style="nature"] { --sc: var(--c-nature); }
[data-style="culture"] { --sc: var(--c-culture); }
[data-style="nightlife"] { --sc: var(--c-nightlife); }
[data-style="food"] { --sc: var(--c-food); }
[data-style="adventure"] { --sc: var(--c-adventure); }
[data-style="family"] { --sc: var(--c-family); }
[data-style="relaxation"] { --sc: var(--c-relaxation); }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* keeps hidden elements hidden even when a class sets display */
html { scroll-behavior: smooth; scroll-padding-block-start: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.band-ink :focus-visible, .hero :focus-visible, .cta :focus-visible { outline-color: var(--sun); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; cursor: pointer; text-decoration: none; font-weight: 600; background: var(--ink); color: var(--white); transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { background: #252a5e; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--sun); color: var(--ink); box-shadow: 0 2px 0 var(--sun-deep); }
.btn.primary:hover { background: #ffd763; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.danger { background: transparent; color: var(--coral-ink); box-shadow: inset 0 0 0 1.5px var(--coral); }
.btn.danger:hover { background: var(--coral-tint); }
.btn.small { padding: 7px 13px; font-size: 0.9rem; border-radius: 9px; }
.btn.wide { width: 100%; padding: 14px 20px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-block-end: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font: 400 1.5rem var(--display); color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 20px; margin-inline-end: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; line-height: 1.4; padding-block: 5px; box-shadow: inset 0 -2px 0 transparent; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-actions .btn { white-space: nowrap; }
.user-chip { color: var(--ink-2); font-weight: 500; max-inline-size: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { display: inline-flex; gap: 6px; padding-inline-end: 8px; margin-inline-end: 2px; border-inline-end: 1px solid var(--line); }
.lang button { display: grid; place-items: center; width: 38px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.15s; }
.lang button svg { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(21 25 56 / 0.25); }
.lang button:hover { opacity: 0.9; }
.lang button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2.5px var(--sun); }
@media (max-width: 1020px) { .nav { display: none; } .site-header .wrap { gap: 12px; } }
@media (max-width: 640px) { .user-chip, .hide-sm { display: none; } .brand { font-size: 1.25rem; } .lang { padding-inline-end: 6px; } .lang button { width: 34px; } }

/* ---------- hero: Stella under a night sky ---------- */
/* One orchestrated moment on load: the route draws itself between the stars, the guiding star
   lights up, then Stella's bubbles arrive. Each animation only sets its *starting* state, so with
   reduced motion (animations off) everything is simply shown. */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--sky); --notch: var(--night); padding-block: clamp(36px, 5.5vw, 84px) clamp(48px, 7vw, 96px); }
.night-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.route-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: route-draw 2.4s 0.3s cubic-bezier(0.55, 0.1, 0.3, 1) backwards; }
@keyframes route-draw { from { stroke-dashoffset: 1; } }
.sky-stop { transform-box: fill-box; transform-origin: center; animation: pop 0.4s calc(0.45s + var(--order) * 0.4s) backwards; }
.sky-goal { transform-box: fill-box; transform-origin: center; animation: pop 0.7s 2.4s cubic-bezier(0.3, 1.6, 0.5, 1) backwards; }
.hero-route { display: block; width: 100%; max-inline-size: 540px; margin-block-start: clamp(28px, 4vw, 56px); overflow: visible; }
[dir="rtl"] .hero-route { transform: scaleX(-1); }
@media (max-width: 979px) { .hero-route { display: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
.hero-grid { position: relative; display: grid; gap: clamp(32px, 4vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 480px; } }

.stella-id { display: flex; align-items: center; gap: 12px; margin-block-end: clamp(18px, 2.5vw, 28px); }
.stella-avatar { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 0 16px rgb(255 201 60 / 0.35)); }
.stella-id strong { display: block; font: 400 1.3rem/1.1 var(--display); }
.stella-id span { font-size: 0.9rem; color: #c3c6e8; }
.auth .stella-id { margin-block-end: 18px; }
.hero-copy h1 { display: grid; gap: 14px; }
.hero-copy .hello { font-size: clamp(3.1rem, 8.5vw, 6rem); line-height: 0.95; }
.hero-copy .role { font: 500 clamp(1.35rem, 2.6vw, 1.95rem)/1.3 var(--body); color: #dfe1fb; max-inline-size: 24ch; text-wrap: balance; }
.hero-copy .lede { margin-block-start: 20px; font-size: 1.08rem; color: #c3c6e8; max-inline-size: 52ch; }

.stella-says { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; justify-items: start; max-inline-size: 56ch; }
.stella-says li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; padding: 11px 16px 12px 13px; border-radius: 18px; border-start-start-radius: 5px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(6px); color: #eef0ff; line-height: 1.5;
  animation: bubble 0.5s calc(1.1s + var(--order) * 0.45s) cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.stella-says .ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 201 60 / 0.16); color: var(--sun); }
.stella-says svg { width: 17px; height: 17px; }

.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 22px; margin-block-start: 30px; padding-block-start: 22px; border-block-start: 1px solid rgb(255 255 255 / 0.2); max-inline-size: 520px; }
.stat b { display: block; font: 400 2rem/1 var(--display); color: var(--sun); }
.stat span { font-size: 0.85rem; color: #c3c6e8; line-height: 1.3; display: block; margin-block-start: 4px; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.hero .ticket { box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 40px 90px -40px rgb(0 0 0 / 0.75); }

/* ---------- planner ticket ---------- */
.ticket { background: var(--white); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.ticket-head { position: relative; padding: 20px 24px 18px; border-block-end: 2px dashed var(--line); display: flex; gap: 14px; align-items: center; }
/* boarding-pass cut-outs: a mask punches two half circles where the header ends (--cut, set in JS) */
.ticket { --cut: 86px; -webkit-mask: radial-gradient(circle 12px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat; }
.ticket-head .badge { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sun); color: var(--ink); }
.ticket-head .badge svg { width: 24px; height: 24px; }
.ticket-head h2 { font-size: 1.45rem; }
.ticket-head p { margin-block-start: 2px; color: var(--ink-3); font-size: 0.9rem; line-height: 1.4; }
.ticket form { padding: 20px 24px 24px; display: grid; gap: 17px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, fieldset > legend { font-weight: 600; font-size: 0.92rem; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="time"], select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color 0.15s, background 0.15s; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
input[disabled] { opacity: 0.5; cursor: not-allowed; }
.hint { font-size: 0.85rem; color: var(--ink-3); }
.form-error { color: var(--coral-ink); background: var(--coral-tint); padding: 10px 12px; border-radius: 10px; font-size: 0.93rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1.5px solid color-mix(in srgb, var(--sc, var(--ink)) 35%, white); background: color-mix(in srgb, var(--sc, var(--ink)) 9%, white); color: var(--sc, var(--ink)); font-weight: 500; font-size: 0.92rem; transition: background 0.15s, color 0.15s; }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip:hover { background: color-mix(in srgb, var(--sc, var(--ink)) 18%, white); }
.chip[aria-pressed="true"] { background: var(--sc); border-color: var(--sc); color: #fff; }
.chip .main-tag { font-size: 0.7rem; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 0 7px; font-weight: 700; }
.chip.static { cursor: default; }

.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.money { position: relative; }
.money span { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; }
.money input { padding-inline-start: 26px; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; white-space: nowrap; font-size: 0.93rem; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.15s; padding: 0; border: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start 0.15s; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }
.switch input:checked { background: var(--mint); }
.switch input:checked::after { inset-inline-start: 21px; }
.budget-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.87rem; color: var(--ink-2); background: var(--blue-tint); border-radius: 10px; padding: 9px 11px; }
.budget-note svg { width: 18px; height: 18px; flex: none; margin-block-start: 1px; color: var(--blue); }

.paces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pace { position: relative; }
.pace input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; }
.pace-card { display: grid; gap: 2px; padding: 10px 11px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); height: 100%; transition: border-color 0.15s, background 0.15s; }
.pace input:checked + .pace-card { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.pace input:focus-visible + .pace-card { outline: 3px solid var(--sun); outline-offset: 2px; }
.pace-card strong { font: 400 1.05rem var(--display); }
.pace-card span { font-size: 0.8rem; color: var(--ink-3); line-height: 1.35; }
.pace-meter { height: 6px; border-radius: 3px; background: var(--paper-2); margin-block-start: 6px; overflow: hidden; display: block; }
.pace-meter i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
@media (max-width: 440px) { .paces { grid-template-columns: 1fr; } }

.gauges { display: flex; align-items: flex-end; gap: 9px; padding: 14px 14px 10px; background: var(--paper); border-radius: 12px; overflow-x: auto; min-height: 150px; }
.gauge { flex: none; width: 34px; display: grid; justify-items: center; gap: 5px; }
.gauge-tube { position: relative; width: 28px; height: 104px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.gauge-fill { position: absolute; inset-inline: 0; bottom: 0; background: var(--blue); transition: height 0.5s cubic-bezier(0.3, 0.9, 0.3, 1); }
.gauge-limit { position: absolute; inset-inline: -2px; height: 0; border-block-start: 3px solid var(--sun); transition: bottom 0.5s cubic-bezier(0.3, 0.9, 0.3, 1); }
.gauge-label { font-size: 0.72rem; color: var(--ink-3); white-space: nowrap; }
.gauges-caption { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-3); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 14px; height: 0; border-block-start: 3px solid var(--sun); display: inline-block; }

/* ---------- demo result ---------- */
.auth-gate { border-block-start: 2px dashed var(--line); padding: 18px 24px 24px; }
.gate-box { background: var(--blue-tint); border-radius: 16px; padding: 18px 20px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.gate-box svg { width: 30px; height: 30px; color: var(--blue); }
.gate-box strong { font: 400 1.2rem var(--display); }
.gate-box .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-block-start: 4px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 6vw, 88px); }
.section.tint { background: var(--paper-2); }
.section.white { background: var(--white); }
.section-head { display: grid; gap: 10px; max-inline-size: 62ch; margin-block-end: clamp(24px, 3.5vw, 40px); }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

/* destinations */
.dests { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dest { position: relative; text-align: start; border: 0; cursor: pointer; border-radius: 18px; padding: 18px; min-height: 148px; color: #fff; background: var(--tile); display: grid; align-content: space-between; gap: 18px; overflow: hidden; transition: transform 0.15s; }
.dest::after { content: ""; position: absolute; inset-inline-end: -26px; inset-block-start: -26px; width: 100px; height: 100px; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.dest:hover { transform: translateY(-3px); }
.dest strong { font: 400 1.6rem/1.1 var(--display); display: block; }
.dest .country { font-size: 0.92rem; opacity: 0.92; }
.dest .go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; background: rgb(255 255 255 / 0.2); padding: 4px 11px; border-radius: 999px; justify-self: start; }
.dest svg { width: 15px; height: 15px; }
[dir="rtl"] .dest svg { transform: scaleX(-1); }

/* steps: a real sequence */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--white); border-radius: 18px; padding: 22px 22px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--sun); font: 400 1.4rem var(--display); margin-block-end: 14px; }
.step h3 { margin-block-end: 6px; }
.step p { color: var(--ink-2); }

/* bento features: different sizes on purpose */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.tile { border-radius: 20px; padding: 22px; display: grid; gap: 8px; align-content: start; background: var(--white); box-shadow: var(--shadow); }
.tile .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tint, var(--blue-tint)); color: var(--tone, var(--blue)); }
.tile .ico svg { width: 24px; height: 24px; }
.tile h3 { margin-block-start: 6px; }
.tile p { color: var(--ink-2); }
.tile.s3 { grid-column: span 3; }
.tile.s2 { grid-column: span 2; }
.tile.s6 { grid-column: span 6; }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark p { color: #c3c6e8; }
.tile.dark .ico { background: rgb(255 255 255 / 0.14); color: var(--sun); }
.tile.map-tile { grid-template-columns: auto 1fr; align-items: center; gap: 18px; background: var(--sky); color: #fff; }
.tile.map-tile h3 { margin: 0; }
.tile.map-tile p { color: #c3c6e8; }
.tile.map-tile .ico { background: rgb(255 201 60 / 0.16); color: var(--sun); }
@media (max-width: 860px) { .tile.s3, .tile.s2 { grid-column: span 6; } }

/* load (dark) */
.band-ink { background: var(--ink); color: #fff; }
.band-ink .section-head p { color: #c3c6e8; }
.load-demo { display: grid; gap: clamp(24px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .load-demo { grid-template-columns: 0.9fr 1.1fr; } }
.load-board { background: #222765; border-radius: 20px; padding: 22px; display: grid; gap: 16px; }
.load-board .pace-card { background: #151938; border-color: #3c4390; }
.load-board .pace input:checked + .pace-card { background: #0f1230; border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.load-board .pace-card span { color: #a5a9d6; }
.load-board .pace-meter { background: #30367a; }
.load-board .pace-meter i { background: var(--sun); }
.load-board .gauges { background: #151938; min-height: 170px; }
.load-board .gauge-tube { background: #222765; box-shadow: inset 0 0 0 1.5px #3c4390; height: 130px; }
.load-board .gauge-label { color: #a5a9d6; }
.load-board .gauge-fill { background: #5b8cff; }
.load-readout { font: 400 1.3rem var(--display); }
.load-readout small { display: block; font: 400 0.95rem var(--body); color: #a5a9d6; margin-block-start: 2px; }

/* budget */
.budget-split { display: grid; gap: clamp(24px, 5vw, 60px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .budget-split { grid-template-columns: 1fr 1fr; } }
.ledger { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.ledger h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 64px; gap: 12px; align-items: center; font-size: 0.95rem; }
.bar-row .bar { height: 12px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.bar-row b { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.excluded { border-block-start: 2px dashed var(--line); padding-block-start: 14px; display: grid; gap: 6px; color: var(--ink-3); font-size: 0.95rem; }
.excluded s { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* style tiles */
.style-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.style-tile { border-radius: 16px; padding: 16px; background: color-mix(in srgb, var(--sc) 11%, white); border: 1.5px solid color-mix(in srgb, var(--sc) 30%, white); display: grid; gap: 6px; }
.style-tile .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--sc); color: #fff; }
.style-tile .ico svg { width: 22px; height: 22px; }
.style-tile strong { font: 400 1.15rem var(--display); color: var(--sc); }
.style-tile span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.mix { display: grid; margin-block-start: 26px; }
.mix-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 12px; border-block-start: 1px solid var(--line); }
.mix-row:last-child { border-block-end: 1px solid var(--line); }
.mix-row p { flex: 1 1 260px; color: var(--ink-2); }
.plus { color: var(--ink-3); font-weight: 700; }

/* faq */
.faq { display: grid; gap: 10px; max-inline-size: 820px; }
.faq details { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--display); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); max-inline-size: 64ch; }

.cta { background: var(--night); color: #fff; padding-block: clamp(40px, 5vw, 64px); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { max-inline-size: 20ch; }
.cta p { color: #dfe1fb; margin-block-start: 8px; max-inline-size: 46ch; }

.site-footer { background: var(--ink); color: #c3c6e8; padding-block: 36px; font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { margin: 0 0 8px; color: #fff; font: 400 1rem var(--display); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c3c6e8; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; border-block-start: 1px solid #30367a; padding-block-start: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 66px); display: grid; align-items: center; padding-block: 40px; color: #fff; --notch: var(--night);
  background: radial-gradient(1.4px 1.4px at 12% 22%, #fff 60%, #0000), radial-gradient(1px 1px at 28% 70%, #fffc 60%, #0000), radial-gradient(1.6px 1.6px at 46% 14%, #ffc93c 60%, #0000), radial-gradient(1px 1px at 63% 82%, #fffb 60%, #0000), radial-gradient(1.3px 1.3px at 78% 36%, #fff 60%, #0000), radial-gradient(1px 1px at 90% 74%, #fffa 60%, #0000), radial-gradient(1px 1px at 6% 88%, #fff9 60%, #0000), var(--sky); }
.auth-grid { display: grid; gap: clamp(24px, 6vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .auth-grid { grid-template-columns: 1fr 440px; } }
.auth-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-inline-size: 13ch; }
.auth-copy p { margin-block-start: 14px; color: #dfe1fb; font-size: 1.1rem; max-inline-size: 40ch; }
.auth-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.auth-card form { display: grid; gap: 16px; }
.auth-switch { text-align: center; color: var(--ink-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 0.9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-box { display: grid; gap: 8px; justify-items: center; min-height: 44px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 500; }
.btn-google svg { width: 18px; height: 18px; }
.btn-google[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- app pages ---------- */
.page { padding-block: clamp(24px, 4vw, 44px) 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-block-end: 24px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.plan-grid { display: grid; gap: 28px; grid-template-columns: 1fr; max-inline-size: 720px; }

.trip-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.trip-card { background: var(--white); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; text-decoration: none; color: inherit; box-shadow: var(--shadow); border-block-start: 6px solid var(--sc, var(--blue)); transition: transform 0.15s; }
.trip-card:hover { transform: translateY(-3px); }
.trip-card h3 { font-size: 1.4rem; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 0.92rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sc, var(--blue)) 14%, white); color: var(--sc, var(--blue-deep)); font-size: 0.82rem; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.empty { border: 2px dashed var(--line); background: var(--white); border-radius: 20px; padding: 48px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--ink-2); }
.empty h2 { font-size: 1.6rem; color: var(--ink); }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #f3f6fb 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 16px; height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.banner { background: var(--coral-tint); color: var(--coral-ink); padding: 14px 16px; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block-end: 20px; }

.page.trip-page { padding-block-start: 0; }
.trip-hero { background: var(--blue); color: #fff; padding-block: 24px 30px; }
.trip-hero .btn.danger { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6); }
.trip-hero .btn.danger:hover { background: rgb(255 255 255 / 0.16); }
.trip-hero .tag { background: rgb(255 255 255 / 0.18); color: #fff; }
.trip-hero a { color: #dfe1fb; }
.trip-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-block-start: 22px; }
.trip-stats div { background: rgb(255 255 255 / 0.14); border-radius: 14px; padding: 12px 14px; }
.trip-stats b { display: block; font: 400 1.6rem/1.1 var(--display); color: var(--sun); }
.trip-stats span { font-size: 0.85rem; color: #dfe1fb; }
@media (max-width: 640px) { .trip-stats { grid-template-columns: repeat(2, 1fr); } }
.trip-top { display: grid; gap: 18px; grid-template-columns: 1fr; margin-block: 28px 32px; }
@media (min-width: 900px) { .trip-top { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.card { background: var(--white); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.budget-figure { font: 400 2.3rem var(--display); }
.budget-figure small { font: 400 1rem var(--body); color: var(--ink-3); }
.meter { height: 14px; border-radius: 7px; background: var(--paper-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--mint); border-radius: 7px; transition: width 0.4s; }
.meter.over i { background: var(--coral); }
.status-line { font-weight: 600; }
.status-line.over { color: var(--coral-ink); }
.status-line.within { color: var(--mint-ink); }

.days { display: grid; gap: 14px; }
.day { background: var(--white); border-radius: 18px; display: grid; grid-template-columns: 1fr; box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 820px) { .day { grid-template-columns: 240px 1fr; } }
.day-side { padding: 18px 20px; background: var(--blue-tint); display: grid; gap: 9px; align-content: start; }
.day.is-over .day-side { background: var(--coral-tint); }
.day-side h3 { font-size: 1.2rem; }
.load-bar { position: relative; height: 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.load-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--blue); }
.load-bar.over i { background: var(--coral); }
.load-bar b { position: absolute; top: -2px; bottom: -2px; width: 0; border-inline-start: 3px solid var(--sun-deep); }
.load-text { font-size: 0.88rem; color: var(--ink-2); }
.load-text.over { color: var(--coral-ink); font-weight: 600; }
.day-main { padding: 14px 20px 18px; display: grid; gap: 4px; align-content: start; }
.act { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-block: 10px; border-block-end: 1px solid var(--paper-2); }
.act time { font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.act-title { font-weight: 600; }
.act-sub { font-size: 0.88rem; color: var(--ink-3); }
.act-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.act-cost { font-variant-numeric: tabular-nums; color: var(--ink-2); margin-inline-end: 6px; }
@media (max-width: 560px) { .act { grid-template-columns: 56px 1fr; } .act-actions { grid-column: 1 / -1; justify-content: flex-start; } }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px -12px rgb(21 25 56 / 0.5); background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgb(21 25 56 / 0.6); }
.dialog-body { padding: 24px; display: grid; gap: 15px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.toast { position: fixed; inset-inline-start: 50%; translate: -50% 0; bottom: 24px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; }
[dir="rtl"] .toast { translate: 50% 0; }

/* ---------- type-ahead (country, city) ---------- */
.combo { position: relative; }
.combo-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 40; margin: 0; padding: 4px; list-style: none; max-height: 240px; overflow-y: auto; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.combo-option { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-option .alt { color: var(--ink-3); font-size: 0.85rem; direction: ltr; }
.combo-option:hover, .combo-option[aria-selected="true"] { background: var(--blue-tint); }
.combo-empty { padding: 8px 10px; color: var(--ink-3); font-size: 0.9rem; }

/* ---------- free searches ---------- */
.quota-note { font-size: 0.88rem; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 8px 12px; text-align: center; }
.quota-pill { background: var(--sun); color: var(--ink); font-weight: 600; font-size: 0.82rem; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.paywall { background: var(--sun); background: color-mix(in srgb, var(--sun) 24%, white); border: 1.5px solid var(--sun); }
.paywall svg { color: var(--ink); }
@media (max-width: 760px) { .quota-pill { display: none; } }

/* ---------- admin panel ---------- */
.tabs { display: flex; gap: 6px; margin-block-end: 20px; flex-wrap: wrap; }
.tab { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 500; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stat-card { background: var(--white); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.stat-card b { font: 400 2.2rem/1.1 var(--display); color: var(--blue); }
.stat-card span { color: var(--ink-2); }
.admin-search { max-inline-size: 420px; margin-block-end: 14px; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th { text-align: start; padding: 12px 14px; background: var(--paper-2); font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-block-start: 1px solid var(--paper-2); vertical-align: top; }
.admin-table select { padding: 5px 8px; min-inline-size: 100px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.pill.ok { background: var(--mint-tint); color: var(--mint-ink); }
.pill.off { background: var(--coral-tint); color: var(--coral-ink); }

/* the admin panel button only admins see */
.btn.admin-link { background: var(--ink); color: #fff; }
.btn.admin-link:hover { background: #252a5e; }

/* ---------- signed-in header ---------- */
.nav a.is-active { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.nav a.nav-admin { background: var(--ink); color: #fff; padding-inline: 12px; border-radius: 999px; }
.nav a.nav-admin.is-active { background: var(--blue); color: #fff; box-shadow: none; }
.user-wrap { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; max-inline-size: 200px; }
[dir="rtl"] .user-btn { padding: 4px 4px 4px 12px; }
.user-btn:hover { border-color: var(--ink-3); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.9rem; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 0.92rem; }
.user-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; min-inline-size: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 4px; }
.menu-who { display: grid; padding: 8px 10px; border-block-end: 1px solid var(--paper-2); }
.menu-who span { color: var(--ink-3); font-size: 0.85rem; overflow-wrap: anywhere; }
.menu-usage { padding: 6px 10px; }
.quota-pill-menu { display: inline-block; background: var(--paper-2); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; }
.menu-sm { display: none; }
.menu-sm a, .menu-item { display: block; width: 100%; text-align: start; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; }
.menu-sm a:hover, .menu-item:hover { background: var(--paper); }
.menu-item { color: var(--coral-ink); }
@media (max-width: 1020px) { .menu-sm { display: grid; border-block-end: 1px solid var(--paper-2); padding-block-end: 4px; } }
@media (max-width: 640px) { .user-name { display: none; } .user-btn, [dir="rtl"] .user-btn { padding: 3px; } }

/* ---------- destination photos ---------- */
.photo-credit { position: absolute; inset-inline-end: 14px; bottom: 8px; z-index: 2; font-size: 0.72rem; color: rgb(255 255 255 / 0.78); text-decoration: none; text-shadow: 0 1px 4px rgb(0 0 0 / 0.6); }
.photo-credit:hover { color: #fff; text-decoration: underline; }

.dests { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .dests { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dests { grid-template-columns: 1fr; } }
.dest { min-height: 210px; }
.dest.has-img { background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.05) 65%), var(--img) center / cover no-repeat, var(--tile); }
.dest.has-img::after { display: none; }
.dest.has-img strong, .dest.has-img .country { text-shadow: 0 1px 6px rgb(0 0 0 / 0.5); }
.dest { align-content: end; }
.dest .go { background: rgb(255 255 255 / 0.22); backdrop-filter: blur(4px); }
.dest:hover { transform: translateY(-3px) scale(1.01); }

.trip-hero { position: relative; background: var(--sky); }
.trip-hero.has-photo { min-height: clamp(380px, 52vh, 560px); display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgb(21 25 56 / 0.95) 0%, rgb(21 25 56 / 0.6) 35%, rgb(21 25 56 / 0) 70%), var(--photo) center 55% / cover no-repeat, var(--ink); padding-block-start: 40px; }
.trip-hero.has-photo .wrap { width: 100%; }
.trip-hero.has-photo h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-shadow: 0 2px 14px rgb(0 0 0 / 0.45); }
.trip-stats div { backdrop-filter: blur(6px); }

.trip-card { padding: 0; overflow: hidden; border-block-start: 0; }
.trip-card-body { padding: 16px 20px 18px; display: grid; gap: 10px; }
.trip-photo { height: 140px; background: linear-gradient(135deg, var(--sc, var(--blue)), #151938); position: relative; }
.trip-photo::after { content: ""; position: absolute; inset: 0; background: var(--photo) center / cover no-repeat; opacity: 0; transition: opacity 0.4s; }
.trip-photo.loaded::after { opacity: 1; }

.credits { grid-column: 1 / -1; font-size: 0.82rem; }
.credits summary { cursor: pointer; color: #fff; }
.credits p { margin-block: 8px 6px; }
.credits ul { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cta.has-photo { position: relative; padding-block: clamp(64px, 9vw, 120px); background: linear-gradient(rgb(21 25 56 / 0.55), rgb(21 25 56 / 0.78)), var(--photo) center 60% / cover no-repeat, var(--blue); }
.cta.has-photo h2, .cta.has-photo p { text-shadow: 0 1px 10px rgb(0 0 0 / 0.4); }

/* small phones: the logged-out header (logo, flags, two buttons) must fit in 360-375px */
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .site-header .brand-name { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn.small { padding: 6px 10px; font-size: 0.85rem; }
  .lang { gap: 3px; padding-inline-end: 6px; }
  .lang button { width: 30px; }
}

/* ---------- AI: choosing the model, building ---------- */
.tiers .pace-card strong { display: inline-flex; align-items: center; gap: 6px; }
.tiers .pace-card strong svg { width: 16px; height: 16px; color: var(--sun-deep); }
.tiers .pace.is-disabled { opacity: 0.55; }
.tiers .pace.is-disabled input { cursor: not-allowed; }
.tier-reason { color: var(--coral-ink) !important; font-weight: 500; }
.tier-field { margin-block-start: 4px; }

.building { position: fixed; inset: 0; z-index: 100; background: rgb(21 25 56 / 0.72); display: grid; place-items: center; padding: 20px; }
.building-box { background: var(--white); border-radius: 20px; padding: 28px 30px; max-inline-size: 420px; display: grid; gap: 10px; justify-items: center; text-align: center; box-shadow: var(--shadow); }
.building-box strong { font: 400 1.4rem var(--display); }
.building-box p { color: var(--ink-2); }
.stella-working { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.stella-working svg { width: 64px; height: 64px; }
.stella-working::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--paper-2); border-block-start-color: var(--sun-deep); animation: spin 1s linear infinite; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blue-tint); border-block-start-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ai-cta { display: grid; gap: 14px; background: var(--sky); color: #fff; border-radius: 22px; padding: 26px; margin-block-end: 32px; }
.ai-cta h2 { font-size: 1.6rem; }
.ai-cta p { color: #dfe1fb; margin-block-start: 6px; max-inline-size: 60ch; }
.ai-cta-icon { display: grid; place-items: center; width: 56px; height: 56px; }
.ai-cta-icon svg { width: 56px; height: 56px; filter: drop-shadow(0 0 14px rgb(255 201 60 / 0.35)); }
.ai-cta legend { color: #fff; }
.ai-cta .pace-card { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.25); color: #fff; }
.ai-cta .pace-card span { color: #cbcdef; }
.ai-cta .pace input:checked + .pace-card { background: rgb(255 255 255 / 0.16); border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
/* "Want to change something?": a square button beside the pace and budget cards */
@media (min-width: 1100px) { .trip-top.with-change { grid-template-columns: 1fr 1.2fr 232px; } }
@media (min-width: 900px) and (max-width: 1099px) { .trip-top.with-change .change-tile { grid-column: 1 / -1; } }
.change-tile { display: grid; align-content: space-between; justify-items: start; gap: 10px; text-align: start; padding: 22px; border: 0; border-radius: 20px; cursor: pointer; color: #fff; background: var(--sky); box-shadow: var(--shadow); font: inherit; transition: transform 0.15s, box-shadow 0.15s; }
@media (min-width: 1100px) { .change-tile { aspect-ratio: 1; } }
.change-tile:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 2px var(--sun); }
.change-tile[disabled] { cursor: not-allowed; opacity: 0.7; }
.change-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--sun); color: var(--ink); }
.change-ico svg { width: 24px; height: 24px; }
.change-tile strong { font: 400 1.45rem/1.15 var(--display); }
.change-sub { color: #c3c6e8; font-size: 0.92rem; }
.change-left { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--sun); }
.change-left i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--sun); }
.change-left i.on { background: var(--sun); }
.change-left i:last-of-type { margin-inline-end: 4px; }

.prefs-dialog { width: min(620px, calc(100vw - 32px)); }
.prefs-dialog form { padding: 20px 24px 24px; display: grid; gap: 17px; }
.prefs-dialog .ticket-head { border-block-end: 2px dashed var(--line); }
.prefs-dialog .ticket-head b { color: var(--ink); white-space: nowrap; }
/* getting there and staying: flights and a recommended hotel */
.travel { margin-block-end: 32px; }
.travel-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .travel-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.travel-card header { display: flex; align-items: center; gap: 10px; }
.travel-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.travel-ico svg { width: 22px; height: 22px; }
.hotel-card .travel-ico { background: color-mix(in srgb, var(--sun) 28%, white); color: var(--ink); }
.travel-route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 1.5rem/1.2 var(--display); }
.travel-route svg { width: 20px; height: 20px; color: var(--blue); }
[dir="rtl"] .travel-route svg { transform: scaleX(-1); }
.travel-legs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.travel-legs li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.travel-legs span { font-size: 0.82rem; color: var(--ink-3); }
.travel-card > .btn { justify-self: start; }
.hotel-body { display: grid; gap: 12px; }
.hotel-best { display: grid; gap: 2px; }
.hotel-best strong { font: 400 1.4rem/1.2 var(--display); }
.hotel-stars { color: var(--sun-deep); letter-spacing: 2px; }
.hotel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hotel-more { display: grid; gap: 6px; border-block-start: 1px solid var(--paper-2); padding-block-start: 10px; }
.hotel-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hotel-more li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.pin.hotel-pin { background: var(--sun); color: var(--ink); border-color: #fff; }

.dayby-title { margin-block-end: 16px; font-size: 1.6rem; }

/* ---------- a day: timeline next to its map ---------- */
.day-block { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.day-block.is-over { box-shadow: var(--shadow), inset 0 0 0 2px var(--coral-tint); }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--blue-tint); }
.day-block.is-over .day-head { background: var(--coral-tint); }
.day-title { display: grid; }
.day-title h3 { font-size: 1.25rem; }
.day-load { display: grid; gap: 4px; min-inline-size: 180px; flex: 1 1 180px; }
.day-cost { font-weight: 600; font-variant-numeric: tabular-nums; }
.day-body { padding: 18px 20px 22px; }
.day-title h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--d); margin-inline-end: 8px; vertical-align: middle; }

/* the days and, beside them (on the left in Hebrew), one map for the whole trip */
.trip-layout { display: grid; gap: 20px; grid-template-columns: 1fr; }
.trip-map-panel { order: -1; display: grid; gap: 10px; }
@media (min-width: 1000px) {
  .trip-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: start; }
  .trip-map-panel { order: 0; position: sticky; top: 84px; }
}
.map-days { display: flex; flex-wrap: wrap; gap: 6px; }
.map-day { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 600 0.85rem var(--body); cursor: pointer; }
.map-day[style*="--d"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--d); margin-inline-end: 6px; }
.map-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-empty { padding: 6px 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 79px; border-inline-start: 2px dashed var(--line); }
.stop { display: grid; grid-template-columns: 62px 34px 1fr; gap: 0 4px; align-items: start; position: relative; }
.stop-time { display: grid; text-align: end; padding-block-start: 8px; padding-inline-end: 6px; }
.stop-time b { font: 400 1.15rem var(--display); color: var(--ink); }
.stop-time span { font-size: 0.78rem; color: var(--ink-3); }
.stop-dot { z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-block-start: 8px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 0.82rem; box-shadow: 0 0 0 4px var(--white); }
.stop-card { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); }
.stop-card:hover { border-color: color-mix(in srgb, var(--c) 45%, white); }
.stop-thumb { width: 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); position: relative; overflow: hidden; }
.stop-thumb svg { width: 30px; height: 30px; }
.stop-thumb::after { content: ""; position: absolute; inset: 0; background: var(--photo) center / cover no-repeat; opacity: 0; transition: opacity 0.35s; }
.stop-thumb.loaded::after { opacity: 1; }
.stop-body { display: grid; gap: 3px; align-content: start; min-width: 0; }
.stop-body h4 { margin: 0; font-size: 1.02rem; }
.stop-place { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 0.88rem; }
.stop-place svg { width: 14px; height: 14px; flex: none; color: var(--c); }
.stop-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.85rem; }
.stop-cat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); font-weight: 600; }
.stop-cat svg { width: 14px; height: 14px; }
.stop-note { font-size: 0.85rem; color: var(--ink-3); }
.stop-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 32px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover:not([disabled]) { border-color: var(--ink); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 560px) {
  .timeline::before { inset-inline-start: 63px; }
  .stop { grid-template-columns: 48px 30px 1fr; }
  .stop-card { grid-template-columns: 64px 1fr; }
  .stop-thumb { width: 64px; height: 64px; }
}

.trip-map { height: 340px; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .trip-map { height: calc(100vh - 150px); min-height: 420px; max-height: 760px; } }
.stop-pin { background: none; border: 0; }
.pin { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c) center / cover no-repeat; color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 0.35); }
.pin svg { width: 20px; height: 20px; }
.pin b { position: absolute; inset-block-start: -8px; inset-inline-end: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 0.72rem/20px var(--body); text-align: center; border: 2px solid #fff; }
.pin.has-photo { border-color: var(--c); }
.map-popup { display: grid; gap: 4px; font-family: var(--body); min-width: 160px; }
.map-popup img { width: 180px; height: 110px; object-fit: cover; border-radius: 8px; }
.map-popup span { color: var(--ink-3); }

/* ---------- content rising into view while scrolling (js/reveal.js) ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
