/* Travel page: trip map, boarding passes, fare watch and the car calculator (Beach Club look) */

.page-travel { --stripe-sm: 14px; --board: #1f3b2c; --board-2: #284a38; --cream: #fffaf0; --butter: #f6d985; --red: #c23a2b; }

/* ---------- Your trip ---------- */

.trip { margin-top: clamp(32px, 4.5vw, 52px); display: grid; gap: 18px; }
.trip-from { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.trip-from .from-label { font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.trip-from .from-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.from-search { position: relative; flex: 1 1 240px; max-width: 340px; }
.from-search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.from-search input { width: 100%; min-height: 44px; padding: 10px 16px 10px 42px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 15px/1.2 var(--sans); }
.from-search input::placeholder { color: var(--muted); font-weight: 400; }
.from-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 80%, transparent); }
.from-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; margin: 0; padding: 6px; overflow: auto; list-style: none; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px color-mix(in srgb, var(--ink) 55%, transparent); }
.from-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.from-list li b { flex: none; width: 46px; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--accent); }
.from-list li span { display: grid; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.from-list li small { font-size: 12px; font-weight: 400; color: var(--muted); }
.from-list li[aria-selected="true"], .from-list li:hover { background: var(--alt); }
.from-list .from-none { cursor: default; font-size: 14px; color: var(--muted); }

/* The map: a real, zoomable map under a striped awning */
.trip-map { position: relative; height: clamp(440px, 56vw, 660px); margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 50% 45%, #fbf5e6 0%, #e7efe6 45%, #cfe0d6 100%); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px color-mix(in srgb, var(--ink) 60%, transparent); }
.trip-map::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--red) 0 var(--stripe-sm), #fbf2df var(--stripe-sm) calc(var(--stripe-sm) * 2)); pointer-events: none; }
.trip-map .trip-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trip-map .trip-canvas canvas { opacity: 0; transition: opacity 0.7s var(--ease); }
.trip-map.is-ready .trip-canvas canvas { opacity: 1; }
.trip-map:not(.is-ready) .maplibregl-marker { visibility: hidden; }
.trip-map::after { content: "Loading the map"; position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); animation: breathe 1.6s ease-in-out infinite alternate; pointer-events: none; }
.trip-map.is-ready::after, .trip-map.is-static::after { display: none; }
@keyframes breathe { from { opacity: 0.35; } to { opacity: 0.9; } }
.trip-canvas .maplibregl-canvas:focus-visible { outline: 3px solid var(--glow); outline-offset: -3px; }
.trip-hud { position: absolute; z-index: 4; left: clamp(12px, 2vw, 22px); top: clamp(24px, 3vw, 34px); display: grid; gap: 4px; max-width: calc(100% - 24px); padding: 12px 16px 13px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 16px 32px -20px color-mix(in srgb, var(--ink) 60%, transparent); pointer-events: none; }
.trip-hud b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: -0.01em; }
.trip-hud b i { color: var(--red); }
.trip-hud span { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.trip-replay { position: absolute; z-index: 4; left: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font: 500 13.5px/1 var(--sans); cursor: pointer; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--ink) 80%, transparent); transition: transform 0.3s var(--ease), background 0.3s; }
.trip-replay:hover { transform: translateY(-2px); background: var(--red); }
.trip-replay svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trip-replay:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.trip-static { display: none; position: absolute; inset: 0; z-index: 2; place-content: center; margin: 0; padding: 40px; text-align: center; font-size: 17px; color: var(--ink-soft); }
.trip-map.is-static .trip-static { display: grid; }
.trip-map.is-static .trip-canvas, .trip-map.is-static .trip-replay { display: none; }
.trip-map .maplibregl-ctrl-attrib { font-size: 10.5px; }
.trip-map .maplibregl-ctrl-group { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -12px color-mix(in srgb, var(--ink) 50%, transparent); }
.trip-map .maplibregl-cooperative-gesture-screen { font: 500 15px/1.4 var(--sans); background: color-mix(in srgb, var(--ink) 55%, transparent); }

/* Map pins */
.mk { font-family: var(--sans); }
.mk--port { display: grid; justify-items: center; gap: 1px; margin-bottom: 8px; padding: 6px 11px 6px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -10px color-mix(in srgb, var(--ink) 60%, transparent); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.mk--port::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.mk--port b { position: relative; z-index: 1; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1; }
.mk--port small { position: relative; z-index: 1; font-size: 9.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.mk--port:hover { transform: translateY(-2px); }
.mk--port.is-on { background: var(--red); color: var(--cream); }
.mk--port.is-on small { color: var(--cream); }
.mk--port[data-code="GUF"]:not(.is-on) { display: none; }
.mk--origin { display: grid; justify-items: center; margin-bottom: 8px; padding: 6px 11px; border-radius: 12px; background: var(--ink); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5); }
.mk--origin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.mk--origin b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1; }
.mk--origin small { font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.mk--spot { position: relative; width: 18px; height: 18px; }
.mk--spot i { position: absolute; inset: 0; border: 3px solid var(--cream); border-radius: 50%; background: var(--red); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
.mk--spot i::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: color-mix(in srgb, var(--red) 35%, transparent); animation: ping 2.4s var(--ease) infinite; }
.mk--spot span { position: absolute; left: 24px; top: 50%; display: grid; padding: 5px 10px 6px; border-radius: 10px; background: var(--surface); white-space: nowrap; transform: translateY(-50%); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(0, 0, 0, 0.45); }
.mk--spot b { font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.05; }
.mk--spot small { font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mk--ceremony span { left: auto; right: 24px; }
.mk--spot.is-pop span { animation: pop-in 0.6s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; scale: 0.85; } }
.mk--plane { width: 34px; height: 34px; pointer-events: none; }
.mk--plane svg { width: 100%; height: 100%; fill: var(--red); stroke: var(--cream); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25)); opacity: 0; transition: opacity 0.3s; }
.mk--plane.is-on svg { opacity: 1; }
.mk--car { width: 16px; height: 16px; pointer-events: none; }
.mk--car span { display: block; width: 100%; height: 100%; border: 3px solid var(--cream); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 25%, transparent), 0 4px 10px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.3s; }
.mk--car.is-on span { opacity: 1; }
/* Quieter pins: other airports show just their code, and zoomed far out only the trip itself is labelled */
.mk--port:not(.is-on) { padding: 5px 9px; }
.mk--port:not(.is-on) small { display: none; }
.mk--port:not(.is-on) b { font-size: 15px; }
.is-far .mk--port:not(.is-on), .is-far .mk--spot span { opacity: 0; visibility: hidden; }
.is-far .mk--port.is-on small { display: none; }

/* Boarding passes */
.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pass { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; padding: 22px 20px 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.3s, transform 0.3s var(--ease); overflow: hidden; }
.pass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--red) 40%, transparent) 0 var(--stripe-sm), transparent var(--stripe-sm) calc(var(--stripe-sm) * 2)); transition: background 0.3s; }
.pass:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent), 0 18px 34px -22px color-mix(in srgb, var(--ink) 60%, transparent); }
.pass[aria-selected="true"] { box-shadow: 0 0 0 2px var(--ink), 0 24px 44px -26px color-mix(in srgb, var(--ink) 70%, transparent); }
.pass[aria-selected="true"]::before { background: repeating-linear-gradient(90deg, var(--red) 0 var(--stripe-sm), #fbf2df var(--stripe-sm) calc(var(--stripe-sm) * 2)); }
.pass:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pass-code { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: 0.95; letter-spacing: -0.02em; color: var(--red); }
.pass-badge { padding: 5px 10px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.pass-city { margin-top: 6px; font-size: 17px; font-weight: 600; }
.pass-flight { margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pass-stub { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; margin: 18px -20px 0; padding: 14px 20px 16px; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--alt) 45%, transparent); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pass-stub::before { left: -9px; }
.pass-stub::after { right: -9px; }
.pass-price { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.pass-stub small { font-size: 12px; color: var(--muted); }
.pass-drive { grid-column: 1 / -1; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pass[aria-selected="true"] .pass-price { color: var(--red); }

.port-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--radius); background: var(--alt); }
.pp-head h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; }
.pp-head .meta { margin: 0 !important; }
.pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pp-stats div { padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.pp-stats dt { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pp-stats dd { margin: 3px 0 0; font-family: var(--display); font-size: 19px; line-height: 1.15; }
.pp-body { grid-column: 1 / 3; display: grid; gap: 8px; }
.pp-airlines, .pp-note { margin: 0; font-size: 15px; color: var(--ink-soft); }
.pp-airlines span:first-child { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.port-panel > .btn { grid-column: 3; grid-row: 1 / 3; align-self: end; white-space: nowrap; }

/* ---------- Fare watch: a departures board ---------- */

.fares { padding-top: clamp(40px, 6vw, 80px); }
.board { position: relative; margin-top: clamp(32px, 4.5vw, 52px); padding: clamp(22px, 3.6vw, 44px); border-radius: calc(var(--radius) + 8px); background: radial-gradient(120% 80% at 85% 0%, #2b5440 0%, var(--board) 55%), var(--board); color: var(--cream); box-shadow: 0 40px 80px -40px rgba(16, 32, 24, 0.7); overflow: hidden; isolation: isolate; }
.board::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px); pointer-events: none; }
/* before a city is picked the board is one slim bar: the question on the left, the cities on the right */
.board-empty { display: none; align-items: center; gap: 12px 32px; grid-template-columns: auto minmax(0, 1fr); }
.board-empty > p:first-child { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.board-pick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.board-or { grid-column: 1 / -1; margin: 0; font-size: 14px; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.board-or a { color: var(--butter); }
.chip--dark { border-color: color-mix(in srgb, var(--cream) 45%, transparent); background: transparent; color: var(--cream); }
.chip--dark:hover { border-color: var(--butter); color: var(--butter); }
.board[data-state="empty"] { padding-block: clamp(20px, 2.6vw, 30px); }
.board[data-state="empty"] .board-empty { display: grid; }
.board[data-state="empty"] .board-full { display: none; }
@media (max-width: 760px) {
  .board-empty { grid-template-columns: 1fr; text-align: center; }
  .board-pick { justify-content: center; }
}

.board-full { display: grid; gap: clamp(22px, 3vw, 34px); }
.board-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 68%, transparent); }
.board-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.board-code { margin: 0; font-family: var(--display); font-size: clamp(40px, 5.6vw, 72px); line-height: 0.95; letter-spacing: 0.01em; color: var(--butter); }
.board-code i { color: var(--red); font-family: var(--sans); font-weight: 300; }
.board-sub { margin: 8px 0 0; font-size: 14px; color: color-mix(in srgb, var(--cream) 78%, transparent); }
.board-to, .board-ret { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.board-to button, .board-ret button { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: color-mix(in srgb, var(--cream) 82%, transparent); font: 500 13.5px/1 var(--sans); cursor: pointer; transition: background 0.25s, color 0.25s; }
.board-to button:hover, .board-ret button:hover { color: var(--cream); }
.board-to button[aria-pressed="true"], .board-ret button[aria-pressed="true"] { background: var(--butter); color: var(--board); }
.board button:focus-visible, .board a:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }
.board-ret { align-items: center; }
.board-ret span { padding: 0 6px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 62%, transparent); }

.board-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.board-now { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.board-price { display: flex; gap: 4px; margin: 2px 0 8px; font-family: var(--display); font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--cream); }
.flap { position: relative; display: inline-grid; place-items: center; min-width: 0.66em; padding: 0.06em 0.04em 0.02em; border-radius: 6px; background: linear-gradient(180deg, #2f5a45 0 49.5%, #23463a 50.5% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 10px -6px rgba(0, 0, 0, 0.6); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.45); }
.flap--fixed { min-width: 0; padding: 0; background: none; box-shadow: none; color: var(--butter); }
.flap--fixed::after { display: none; }
.flap.is-flip { animation: flip 0.09s linear; }
@keyframes flip { 50% { transform: scaleY(0.2); } }
.board-when { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--cream) 74%, transparent); }
.board-flight { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.meter { margin-top: 18px; }
.meter-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.meter-level { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: var(--butter); color: var(--board); }
.meter-level[data-level="low"] { background: #9fd3a8; }
.meter-level[data-level="high"] { background: var(--red); color: var(--cream); }
.meter-bar { position: relative; height: 10px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, #9fd3a8 0 calc(var(--lo) * 100%), var(--butter) calc(var(--lo) * 100%) calc(var(--hi) * 100%), #e2735f calc(var(--hi) * 100%) 100%); }
.meter-at { position: absolute; top: 50%; left: calc(var(--at) * 100%); width: 20px; height: 20px; border: 4px solid var(--board); border-radius: 50%; background: var(--cream); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--cream); transition: left 0.8s var(--ease); }
.meter-scale { position: relative; height: 18px; margin-top: 6px; font-size: 11.5px; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.meter-scale span { position: absolute; transform: translateX(-50%); }
.meter-scale span:first-child { left: calc(var(--lo) * 100%); }
.meter-scale span:last-child { left: calc(var(--hi) * 100%); }
.board-verdict { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--cream) 88%, transparent); }
.board-verdict strong { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; color: var(--butter); }
.board-verdict .fw-alt { color: var(--cream); font-weight: 600; }
.board[data-state="guf"] .board-now, .board[data-state="guf"] .board-chart, .board[data-state="nodata"] .board-now, .board[data-state="nodata"] .board-chart { display: none; }
.board[data-state="guf"] .board-grid, .board[data-state="nodata"] .board-grid { grid-template-columns: 1fr; }
.board:not([data-state="data"]) .board-source { display: none; }

.board-chart { padding-top: clamp(18px, 2.4vw, 26px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.board-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.board-chart h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); color: var(--cream); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 12.5px; color: color-mix(in srgb, var(--cream) 75%, transparent); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg::before { content: ""; width: 22px; height: 0; border-top: 2.5px solid var(--cream); }
.lg--proj::before { border-top: 2.5px dashed var(--butter); }
.board.no-hist .lg--hist { display: none; }
.days-note small { display: block; margin-top: 4px; font-size: 12.5px; color: color-mix(in srgb, var(--cream) 62%, transparent); }
.board-foot .btn, .port-panel > .btn { line-height: 1.3; }

.curve { position: relative; touch-action: pan-y; }
.curve-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.c-grid { stroke: rgba(255, 255, 255, 0.08); }
.c-tick { stroke: rgba(255, 255, 255, 0.3); }
.c-axis { fill: color-mix(in srgb, var(--cream) 62%, transparent); font-size: 11.5px; }
.c-axis--today { fill: var(--cream); font-weight: 600; }
.c-sweet rect { fill: rgba(159, 211, 168, 0.13); }
.c-sweet text { fill: #b9e3bf; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.c-late rect { fill: rgba(226, 115, 95, 0.18); }
.c-late text { fill: #f0a594; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.c-band { fill: rgba(246, 217, 133, 0.16); }
.c-proj { fill: none; stroke: var(--butter); stroke-width: 2.2; stroke-dasharray: 6 6; stroke-linecap: round; }
.c-hist { fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.c-today { stroke: var(--cream); stroke-width: 1.2; stroke-dasharray: 2 4; }
.c-dep { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.2; }
.c-dot { fill: var(--red); }
.c-dot-ring { fill: var(--cream); }
.c-tag rect { fill: var(--red); }
.c-tag text { fill: var(--cream); font-size: 12.5px; font-weight: 600; }
.c-guide { stroke: var(--butter); stroke-width: 1; }
.c-tip { position: absolute; top: 0; z-index: 2; display: grid; gap: 1px; min-width: 150px; padding: 8px 12px; border-radius: 10px; background: var(--cream); color: var(--board); font-size: 13.5px; line-height: 1.3; transform: translate(-50%, -6px); pointer-events: none; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6); }
.c-tip b { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.c-tip small { font-size: 11.5px; color: #4b5f52; }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: clamp(6px, 1.4vw, 16px); height: 230px; margin: 0; padding: 0; list-style: none; }
.days li { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.days b { align-self: end; font-size: clamp(12.5px, 1.3vw, 15px); font-weight: 600; color: var(--cream); }
.days .bar { align-self: end; width: 100%; max-width: 92px; height: calc(var(--h) * 150px); border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--butter) 30%, transparent); transform-origin: bottom; animation: rise 0.8s var(--ease) both; }
.days li:nth-child(2) .bar { animation-delay: 0.05s; }
.days li:nth-child(3) .bar { animation-delay: 0.1s; }
.days li:nth-child(4) .bar { animation-delay: 0.15s; }
.days li:nth-child(5) .bar { animation-delay: 0.2s; }
@keyframes rise { from { transform: scaleY(0.05); } }
.days small { display: grid; justify-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 82%, transparent); }
.days small span { font-weight: 400; letter-spacing: 0; text-transform: none; color: color-mix(in srgb, var(--cream) 62%, transparent); }
.days li.is-plan .bar { background: color-mix(in srgb, var(--butter) 55%, transparent); box-shadow: inset 0 0 0 2px var(--butter); }
.days li.is-low .bar { background: repeating-linear-gradient(90deg, #9fd3a8 0 10px, #84c491 10px 20px); }
.days li.is-low b { color: #b9e3bf; }
.days-note { margin: 16px 0 0; font-size: 15px; color: color-mix(in srgb, var(--cream) 85%, transparent); }
.days-note strong { color: var(--butter); font-weight: 600; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: clamp(18px, 2.4vw, 26px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.board-source { flex: 1 1 320px; margin: 0; font-size: 12.5px; line-height: 1.5; color: color-mix(in srgb, var(--cream) 62%, transparent); }

.hacks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; list-style: none; counter-reset: hack; }
.hacks li { position: relative; padding: 46px 20px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); counter-increment: hack; }
.hacks li::before { content: counter(hack, decimal-leading-zero); position: absolute; left: 20px; top: 16px; font-family: var(--display); font-size: 20px; line-height: 1; color: var(--red); }
.hacks b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }

/* ---------- Rent a car, or don't ---------- */

.cars { padding-top: clamp(40px, 6vw, 80px); }
.calc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); margin-top: clamp(32px, 4.5vw, 52px); padding: clamp(22px, 3.6vw, 44px); border-radius: calc(var(--radius) + 8px); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px color-mix(in srgb, var(--ink) 60%, transparent); }
.calc-inputs { display: grid; align-content: start; gap: 26px; }
.calc-field { display: grid; gap: 12px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.calc-label output { font-family: var(--display); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--alt); }
.seg button { min-height: 40px; padding: 6px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 14px/1 var(--sans); cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.seg button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.calc input[type="range"] { width: 100%; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--red) 30%, transparent) 0 10px, color-mix(in srgb, var(--red) 12%, transparent) 10px 20px); }
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--red) 22%, transparent); }
.calc input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -9px; border: 4px solid var(--cream); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent), 0 6px 12px -4px rgba(0, 0, 0, 0.4); -webkit-appearance: none; appearance: none; }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--cream); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.calc input[type="range"]:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 999px; }
.calc-out { display: grid; align-content: start; gap: 20px; }
.calc-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-row-head b { font-size: 16px; font-weight: 600; }
.calc-row-head span { display: flex; align-items: baseline; gap: 8px; }
.calc-row-head strong { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.calc-row-head small { font-size: 13px; color: var(--muted); }
.calc-bar { height: 22px; margin-top: 10px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.calc-bar span { display: block; width: calc(var(--w, 0.5) * 100%); height: 100%; border-radius: 8px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width 0.7s var(--ease); }
.calc-row.is-win .calc-bar span { background: repeating-linear-gradient(90deg, var(--red) 0 12px, #fbf2df 12px 24px); box-shadow: inset 0 0 0 2px var(--red); }
.calc-row.is-win strong { color: var(--red); }
.calc-row p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.calc-verdict { margin: 4px 0 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--alt); font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.calc-verdict strong { color: var(--ink); }
.calc-source { margin: 0; font-size: 12px; color: var(--muted); }
.cars .travel-tips { margin-top: clamp(20px, 3vw, 32px); }

/* ---------- Phones and tablets ---------- */

@media (max-width: 1100px) {
  .port-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-body { grid-column: 1 / -1; }
  .port-panel > .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}

@media (max-width: 1020px) {
  .hacks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .port-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-body { grid-column: 1 / -1; }
  .port-panel > .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}

@media (max-width: 760px) {
  .trip-map { height: min(74svh, 560px); min-height: 420px; border-radius: var(--radius); }
  .mk--port:not(.is-on) { display: none; }
  .trip-replay { bottom: 58px; }
  .pass-top { flex-wrap: wrap; row-gap: 6px; }
  .port-panel > .btn { white-space: normal; max-width: 100%; text-align: center; }
  .from-list { max-height: 44svh; }
  .page-travel:has(.from-search input:focus) .tabbar { visibility: hidden; }
  .mk--spot span { left: 50%; right: auto; transform: translateX(-50%); padding: 4px 9px 5px; }
  .mk--reception span { top: auto; bottom: 24px; }
  .mk--ceremony span { top: 24px; }
  .mk--spot b { font-size: 14px; }
  .mk--spot small, .mk--port small { display: none; }
  .mk--spot span { padding: 4px 9px; }
  .trip-hud { right: 12px; top: 22px; padding: 10px 13px 11px; }
  .trip-hud span { font-size: 12.5px; }
  .from-search { flex-basis: 100%; max-width: none; }
  .passes { grid-template-columns: 1fr; gap: 10px; }
  .pass { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 12px; padding: 16px 0 14px 18px; }
  .pass-top { grid-column: 1; }
  .pass-code { font-size: 36px; }
  .pass-city, .pass-flight { grid-column: 1; }
  .pass-stub { grid-column: 2; grid-row: 1 / 4; align-content: center; grid-template-columns: auto; justify-items: end; margin: -16px 0 -14px; padding: 14px 18px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); text-align: right; }
  .pass-stub::before { left: -10px; top: -9px; }
  .pass-stub::after { left: -10px; right: auto; top: auto; bottom: -9px; }
  .pass-price { font-size: 28px; }
  .pass-drive { font-size: 10px; letter-spacing: 0.1em; }
  .port-panel { grid-template-columns: 1fr; gap: 14px; }
  .board { border-radius: var(--radius); }
  .board-grid { grid-template-columns: 1fr; }
  .board-to { width: 100%; }
  .board-to button { flex: 1; padding: 6px 8px; }
  .board-ret { width: 100%; }
  .board-ret button { flex: 1; padding: 6px 8px; }
  .board-ret span { flex-basis: 100%; padding: 4px 8px 2px; }
  .days { height: 200px; }
  .days .bar { height: calc(var(--h) * 120px); border-radius: 8px 8px 3px 3px; }
  .days small { font-size: 10.5px; letter-spacing: 0.04em; }
  .hacks { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; border-radius: var(--radius); }
}

@media (orientation: landscape) and (max-height: 500px) {
  .trip-map { height: calc(100svh - 120px); min-height: 240px; }
  .trip-hud { padding: 8px 12px 9px; }
  .trip-hud b { font-size: 20px; }
}

@media (max-width: 360px) {
  .board-to button, .seg button { padding-inline: 4px; font-size: 12.5px; }
  .pass-code { font-size: 30px; }
  .pass-price { font-size: 24px; }
  .board-code { font-size: 36px; }
  .days b { font-size: 11px; }
}

.still .days .bar, .still .mk--spot i::before, .still .mk--spot.is-pop span { animation: none; }
