:root {
  color-scheme: light;

  /* Glacier light: a white page, ice-blue actions, and Malbec and ochre for warnings. */
  --straw: #f4f7f9;
  --paper: #ffffff;
  --ink: #13232e;
  --ink-soft: #4a5b66;
  --ink-faint: #5f6e78;
  --rule: rgba(19, 35, 46, 0.12);
  --clay: #1d6a8a;
  --clay-deep: #155470;
  --glacier: #1f6a78;
  --ochre: #8a5a00;
  --malbec: #7a1f3d;
  --sign: #13232e;
  --sign-text: #ffffff;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-s: 6px;
  --radius-m: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--straw);
  color: var(--ink);
  font: 400 16px/1.5 'Familjen Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { cursor: not-allowed; opacity: 0.4; }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 2px; }

.demo-label {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  text-align: center;
}

/* The trip starts with the place, not a form: a full-screen glacier video with the title over it. */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(560px, calc(100svh - 37px));
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero-photo,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* The video fades in over the still frame once it is actually playing. */
.hero-video { opacity: 0; transition: opacity 900ms ease; }
.hero-video.is-playing { opacity: 1; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 22, 30, 0.62), rgba(10, 22, 30, 0) 70%),
    linear-gradient(to top, rgba(10, 22, 30, 0.85) 0%, rgba(10, 22, 30, 0.35) 45%, rgba(10, 22, 30, 0) 75%);
}
.intro {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-7);
}
.hero .lede { color: rgba(255, 255, 255, 0.9); font-size: 19px; }
.hero-credit {
  position: absolute;
  z-index: 1;
  right: var(--space-3);
  top: var(--space-2);
  max-width: calc(100% - var(--space-6));
  padding: 2px var(--space-2);
  border-radius: 4px;
  background: rgba(10, 22, 30, 0.5);
  font-size: 11px;
  text-align: right;
  color: rgba(255, 255, 255, 0.9);
}
.hero-credit a { color: inherit; }
.brand { font-weight: 600; color: var(--paper); text-transform: uppercase; font-size: 13px; margin-bottom: var(--space-3); letter-spacing: 0.14em; }
h1 {
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.hero-cta:hover { background: #dceef3; transform: translateY(-1px); }
#plan { scroll-margin-top: var(--space-4); }
.hero-toggle {
  position: absolute;
  z-index: 1;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 22, 30, 0.35);
  color: var(--paper);
}
/* Two bars while playing, a triangle while paused. */
.hero-toggle-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero-toggle.is-paused .hero-toggle-pause { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* The title rises in once, on load. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.intro > * { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro > :nth-child(2) { animation-delay: 120ms; }
.intro > :nth-child(3) { animation-delay: 260ms; }
.intro > :nth-child(4) { animation-delay: 400ms; }
.lede { margin-top: var(--space-3); font-size: 18px; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }

.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

h2 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.25; font-weight: 600; }

.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-5);
}
.field-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: var(--space-2); }

.stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(84px, auto) 44px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
}
.stepper button { height: 44px; background: none; border: 0; font-size: 20px; border-radius: var(--radius-s); }
.stepper button:hover { background: var(--straw); }
.stepper output { text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.stepper output strong { color: var(--ink); font-size: 17px; }

.pace { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 3px; }
.pace button { min-height: 38px; min-width: 76px; padding: 0 var(--space-3); background: none; border: 0; border-radius: 4px; font-weight: 500; }
.pace button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.route { margin: var(--space-4) 0 var(--space-6); }
.route-empty {
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-m);
  color: var(--ink-soft);
}

.stop {
  background: var(--paper);
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px rgba(19, 35, 46, 0.08), 0 1px 2px rgba(19, 35, 46, 0.05);
  padding: var(--space-3) var(--space-4) var(--space-4);
}
.stop-head { display: flex; align-items: center; gap: var(--space-3); }

/* The stop number takes the shape of an Argentine route sign. */
.stop-number {
  flex: none;
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
  background: var(--sign);
  color: var(--sign-text);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.stop-head h3 { flex: 1; min-width: 0; }
.stop-tools { display: flex; }
.stop-tools button {
  width: 36px;
  height: 40px;
  background: none;
  border: 0;
  border-radius: var(--radius-s);
  font-size: 17px;
  color: var(--ink-soft);
}
.stop-tools button:hover:not(:disabled) { background: var(--straw); }

.stop-body { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-3); }
/* Floating booking checklist: a pill button and a panel above it (a bottom sheet on phones). */
.checklist-toggle {
  position: fixed;
  z-index: 1600;
  right: var(--space-5);
  bottom: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(10, 22, 30, 0.3);
  transition: opacity 200ms ease, transform 200ms ease;
}
.checklist-toggle[hidden] { display: none; }
.hero-in-view .checklist-toggle { opacity: 0; pointer-events: none; transform: translateY(12px); }
.checklist-count {
  padding: 2px var(--space-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-variant-numeric: tabular-nums;
}
.checklist-toggle.is-complete .checklist-count { background: var(--clay); }

.checklist-panel {
  position: fixed;
  z-index: 1500;
  right: var(--space-5);
  bottom: 84px;
  width: 340px;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(19, 35, 46, 0.08), 0 12px 40px rgba(10, 22, 30, 0.25);
  animation: rise 200ms ease-out both;
}
.checklist-panel[hidden] { display: none; }
.checklist-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.checklist-head h2 { font-size: 18px; }
.checklist-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--straw);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}
.checklist-note { margin: var(--space-1) 0 var(--space-3); font-size: 13px; color: var(--ink-faint); }
.checklist-group { padding: var(--space-3) 0 var(--space-1); border-top: 1px solid var(--rule); }
.checklist-group h3 { display: flex; align-items: center; gap: var(--space-2); font-size: 16px; font-weight: 600; }
.checklist-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--sign);
  color: var(--sign-text);
  font-size: 12px;
  font-weight: 700;
}
.checklist-item { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; font-size: 15px; cursor: pointer; }
.checklist-item input { width: 20px; height: 20px; margin: 0; accent-color: var(--glacier); cursor: pointer; }
.checklist-item input:checked + span { color: var(--ink-faint); text-decoration: line-through; }

@media (max-width: 859px) {
  .checklist-toggle { right: var(--space-4); bottom: var(--space-4); }
  .checklist-panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; border-radius: var(--radius-m) var(--radius-m) 0 0; padding-bottom: 88px; }
}

.route-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.start-over {
  padding: var(--space-1) var(--space-2);
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.start-over:hover { color: var(--malbec); }
.start-over[hidden] { display: none; }

.toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: calc(100% - var(--space-6));
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 24px rgba(10, 22, 30, 0.3);
  animation: toast-in 240ms ease-out both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.toast[hidden] { display: none; }
.toast button {
  padding: var(--space-1) var(--space-3);
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.booking-progress { display: grid; gap: var(--space-2); margin-top: var(--space-2); font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.booking-progress:empty { display: none; }
.progress-line { display: block; }
.progress-line strong { display: block; font-size: 15px; font-weight: 600; }
.progress-line.is-missing strong { color: var(--clay-deep); }
.progress-line.is-complete strong { color: var(--glacier); }

.mode-setting { margin-bottom: var(--space-5); }
[data-mode='tours'] .route-only { display: none; }

.stop-check { flex: 1 1 180px; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.stop-check strong { display: block; font-size: 15px; font-weight: 600; }
.status-ok .stop-check strong { color: var(--glacier); }
.status-tight .stop-check strong { color: var(--ochre); }
.status-short .stop-check strong { color: var(--malbec); }

/* The flight between stops is the route line itself. */
.leg {
  position: relative;
  margin-left: 28px;
  padding: var(--space-3) 0 var(--space-3) var(--space-4);
  border-left: 3px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.leg-time { color: var(--ink-faint); font-weight: 400; }
.leg-time::before { content: '· '; }
.leg-some { border-left-style: dashed; border-left-color: var(--ochre); }
.leg-connection { border-left-style: dotted; border-left-color: var(--malbec); }

.add-stop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-6);
}
/* Each destination is a photo tile, so choosing a stop feels like choosing a place. */
.add-stop button {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 76px;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius-m);
  color: var(--paper);
  font-weight: 600;
  text-align: left;
}
.add-stop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.add-stop button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 30, 0.78), rgba(10, 22, 30, 0.05) 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: inherit;
}
.tile-text { position: relative; z-index: 1; padding: var(--space-2) var(--space-3); line-height: 1.25; }
.add-stop button:hover:not(:disabled) img { transform: scale(1.04); }
.add-stop button:disabled { opacity: 0.35; }
.add-stop small { display: block; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.85); }

.stop-photo {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-s);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

/* The route diagram: cities by real position, no country outline. */
.route-map {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: var(--paper);
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px rgba(19, 35, 46, 0.08);
}
.map-canvas { height: 420px; border-radius: var(--radius-s); background: #dceef3; overflow: hidden; z-index: 0; }
.route-map figcaption { margin-top: var(--space-2); font-size: 12px; color: var(--ink-faint); text-wrap: pretty; }
.map-unavailable { padding: var(--space-5) var(--space-4); color: var(--ink-soft); }
.map-pin { display: grid; place-items: center; }
.map-pin span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  background: var(--sign);
  color: var(--sign-text);
  box-shadow: 0 0 0 2px var(--paper), 0 1px 3px rgba(0, 0, 0, 0.3);
  font: 700 12px/1 'Familjen Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
}
.leaflet-tooltip.map-name {
  padding: 1px 6px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  color: var(--ink);
  font: 600 12px 'Familjen Grotesk', sans-serif;
}
.leaflet-tooltip.map-name::before { display: none; }

/* A stop in the list and its pin on the map light up together. */
.map-pin.is-highlighted { z-index: 1000 !important; }
.map-pin.is-highlighted span { background: var(--clay); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--clay); }
.leaflet-tooltip.map-name.is-highlighted { background: var(--clay); }
.stop-item.is-linked .stop { box-shadow: 0 0 0 2px var(--clay), 0 1px 2px rgba(19, 35, 46, 0.05); }
.leaflet-tooltip.map-name.is-faint { color: var(--clay); font-weight: 600; cursor: pointer; }
.leaflet-tooltip.map-name.is-faint:hover { background: var(--clay); color: var(--paper); }

.slot-photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: var(--space-4);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.credits {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-faint);
}
.credits h2 { font-size: 15px; color: var(--ink-soft); margin-bottom: var(--space-1); }
/* Credits flow side by side, separated by a dot, so they take two or three lines instead of six. */
.credits ul { display: flex; flex-wrap: wrap; gap: var(--space-1) 0; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.credits li:not(:last-child)::after { content: '·'; margin: 0 var(--space-2); }
.credits a { color: var(--ink-soft); }

.result { display: grid; gap: var(--space-4); align-content: start; }

.verdict {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-m);
  padding: var(--space-5);
}
.verdict h2 { font-size: 28px; line-height: 1.1; margin: var(--space-2) 0; text-wrap: balance; }
.verdict p { color: rgba(255, 255, 255, 0.86); text-wrap: pretty; }
.verdict-count { font-size: 14px; font-variant-numeric: tabular-nums; }
.verdict-count strong { color: var(--paper); }
.verdict-spare { margin-top: var(--space-2); }
.verdict-ok { background: var(--glacier); }
.verdict-care { background: #6f4a00; }
.verdict-no { background: var(--malbec); }

.notes { padding-top: var(--space-2); }
.notes h3 { font-size: 15px; margin-bottom: var(--space-2); }
.notes li {
  font-size: 15px;
  line-height: 1.4;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.notes-check li { color: var(--ink-soft); }

.feedback {
  min-height: 44px;
  display: grid;
  place-items: center;
  margin-top: var(--space-4);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}
.feedback:hover { background: var(--paper); }

.fine + .fine { margin-top: var(--space-2); }
.fine { margin-top: var(--space-5); font-size: 13px; line-height: 1.45; color: var(--ink-faint); text-wrap: pretty; }

/* On a phone one tap switches between the route and the bookings. */
.tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--straw);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.tabs button {
  min-height: 48px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--ink-soft);
}
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--clay); }
.panel:not(.is-active) { display: none; }

.verdict { margin-bottom: var(--space-5); }

/* Three per row, so all six cities fit in two rows on a phone. */
/* Stop chips sized to their names, so all six destinations fit in one row on wide screens. */
.stop-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-3) 0 var(--space-4); }
.stop-strip button {
  min-height: 40px;
  padding: 0 var(--space-2);
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.2;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  font-weight: 500;
}
.stop-strip button[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Phones: one row that scrolls sideways instead of wrapping. */
@media (max-width: 859px) {
  .stop-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--space-4)); padding-right: var(--space-4); }
  .stop-strip::-webkit-scrollbar { display: none; }
  .stop-strip button { flex: none; }
}

.bookings-empty {
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-m);
  color: var(--ink-soft);
}

/* Holds the place of the booking widgets of the full version. */
.slot {
  padding: var(--space-5) var(--space-4);
  border: 1px dashed rgba(19, 35, 46, 0.32);
  border-radius: var(--radius-m);
}
.slot h3 { font-size: 22px; font-weight: 700; }
.slot > p { margin-top: var(--space-1); color: var(--ink-soft); }
.widget-preview { margin-top: var(--space-5); }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.widget-head h4 { margin: 0; font-size: 16px; font-weight: 600; }
.flight-lines { display: grid; gap: var(--space-1); margin: 0 0 var(--space-3); padding: 0; list-style: none; font-size: 14px; }
.flight-lines strong { font-weight: 600; }
.flight-lines span { color: var(--ink-soft); }
.widget-head button {
  min-height: 44px;
  padding: 0 var(--space-4);
  background: var(--clay);
  color: #fff;
  border: 0;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.widget-head button:hover { background: var(--clay-deep); }

/* Flight search form placeholder: three fields and a button, stacked on phones. */
.mock-search { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-s); }
.mock-field { display: grid; gap: 6px; padding: var(--space-2) var(--space-3); border-radius: 4px; background: rgba(19, 35, 46, 0.05); }
.mock-field span { height: 8px; width: 40%; border-radius: 4px; background: rgba(19, 35, 46, 0.12); }
.mock-field span + span { height: 12px; width: 70%; }
.mock-go { min-height: 44px; border-radius: 4px; background: rgba(19, 35, 46, 0.16); }
@media (min-width: 600px) { .mock-search { grid-template-columns: 1fr 1fr 1fr auto; } .mock-go { width: 110px; } }

/* Hotel map placeholder: the real map needs at least 450 px of height to show its list. */
.mock-map {
  position: relative;
  height: 450px;
  border-radius: var(--radius-s);
  background:
    linear-gradient(rgba(19, 35, 46, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(19, 35, 46, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    rgba(19, 35, 46, 0.06);
  overflow: hidden;
}
.mock-pin { position: absolute; width: 52px; height: 24px; border-radius: 999px; background: rgba(19, 35, 46, 0.18); }
.mock-list {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: var(--space-2);
}
.mock-list span { height: 96px; border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }

.mock-cards { display: grid; gap: var(--space-2); }
.mock-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-2);
  background: var(--paper);
  border-radius: var(--radius-s);
  box-shadow: 0 0 0 1px rgba(19, 35, 46, 0.08);
}
.mock-image { min-height: 72px; background: rgba(19, 35, 46, 0.1); border-radius: 4px; }
.mock-lines { display: grid; align-content: center; gap: var(--space-2); }
.mock-lines span { height: 10px; background: rgba(19, 35, 46, 0.1); border-radius: 4px; }
.mock-lines span:nth-child(2) { width: 75%; }
.mock-lines span:nth-child(3) { width: 40%; }

.widget-modal {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink);
}
.widget-modal::backdrop { background: rgba(19, 35, 46, 0.55); }
.widget-modal-body { padding: var(--space-5); }
.widget-modal p { margin-top: var(--space-2); color: var(--ink-soft); text-wrap: pretty; }
.widget-modal button {
  width: 100%;
  min-height: 44px;
  margin-top: var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.slot > .slot-note { margin-top: var(--space-3); font-size: 13px; color: var(--ink-faint); }

@media (min-width: 860px) {
  .tabs { display: none; }
  .panel:not(.is-active) { display: block; }
  .layout { grid-template-columns: 400px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
  .slot { padding: var(--space-5) var(--space-6); }
  .mock-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mock-card { grid-template-columns: minmax(0, 1fr); }
  .mock-image { min-height: 84px; }
  .mock-lines { padding: 0 var(--space-1) var(--space-1); }
  .panel-bookings .route-map { margin-bottom: var(--space-6); }
  .panel-bookings .map-canvas { height: 480px; }
}

/* Wide screens: plan, route and bookings side by side, so nothing needs a long scroll. */
@media (min-width: 1200px) {
  .intro, .layout, .credits { max-width: 1440px; padding-left: var(--space-6); padding-right: var(--space-6); }
  .layout { grid-template-columns: 712px minmax(0, 1fr); gap: var(--space-6); }
  .panel-itinerary { display: grid; grid-template-columns: 340px 340px; gap: var(--space-6); align-items: start; }
  .route { margin-bottom: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: background-color 120ms ease; }
  button:active:not(:disabled) { transform: none; }
  .add-stop img { transition: none; }
  .intro > * { animation: none; }
  .toast { animation: none; }
  .checklist-panel { animation: none; }
  .checklist-toggle { transition: none; }
  .hero-video { transition: none; }
  .hero-cta:hover { transform: none; }
}
