:root {
  color-scheme: light;
  /* Skiplagged palette */
  --navy: #062543;
  --navy-2: #0c3460;
  --blue: #0077c8;
  --blue-press: #005f9e;
  --blue-text: #0071bc;
  --bright: #24a9ff;
  --sky: #eaf3fc;
  --mist: #f4f7fb;
  --line: #e2e8f0;
  --line-2: #cbd6e4;
  --text: #2c2c2c;
  --muted: #5f7080;
  --coral: #e75b5f;
  --cream: #fff8ea;
  --cream-text: #6b4a12;
  --white: #fff;

  --radius: 14px;
  --radius-s: 10px;
  --lift: 0 1px 2px rgba(6, 37, 67, 0.06), 0 8px 24px rgba(6, 37, 67, 0.08);
  --float: 0 2px 4px rgba(6, 37, 67, 0.08), 0 18px 40px rgba(6, 37, 67, 0.22);
  --font: 'Avenir Next', 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--blue-text); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: var(--white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.3125rem; }
.logo svg { width: 28px; height: 28px; fill: var(--bright); stroke: var(--bright); }
.topnav { display: flex; gap: 24px; }
.topnav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--white); }
.topnav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--bright); }

/* ---------- Hero: copy left, the journey drawn right ---------- */
.hero { background: var(--navy); color: var(--white); padding: 24px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; max-width: 21ch; }
.hero-copy p { margin-top: 16px; font-size: 1.125rem; color: rgba(255, 255, 255, 0.78); max-width: 44ch; }

.hero-art { width: 100%; height: auto; overflow: visible; }
.hero-art path { fill: none; stroke-linecap: round; }
.a-fly { stroke: var(--bright); stroke-width: 2.5; stroke-dasharray: 0.5 9; }
.a-return { stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; stroke-dasharray: 0.5 9; }
.a-rail { stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; stroke-dasharray: 7 6; }
.a-plane path { stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
.a-node text { fill: var(--white); font-size: 17px; font-weight: 600; font-family: var(--font); }
.a-node .a-sub, .a-rail-label { fill: rgba(255, 255, 255, 0.6); font-size: 14px; font-weight: 500; font-family: var(--font); }
.a-uk circle { fill: var(--navy); stroke: var(--white); stroke-width: 2.5; }
.a-med circle { fill: var(--bright); }
.a-mkk circle { fill: var(--white); }
.a-mkk .a-ring { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .a-fly, .a-rail, .a-return, .a-plane, .a-node, .a-rail-label { animation: appear 600ms ease-out both; }
  .a-uk { animation-delay: 100ms; }
  .a-fly { animation-delay: 250ms; }
  .a-plane { animation-delay: 450ms; }
  .a-med { animation-delay: 600ms; }
  .a-rail, .a-rail-label { animation-delay: 800ms; }
  .a-mkk { animation-delay: 950ms; }
  .a-return { animation-delay: 1150ms; }
  @keyframes appear { from { opacity: 0; } }
}

/* ---------- Search card, floating over the hero edge ---------- */
.search-wrap { margin-top: -64px; position: relative; z-index: 5; }
.search { background: var(--white); border-radius: var(--radius); box-shadow: var(--float); padding: 8px; }
.fields { display: grid; grid-template-columns: 1.5fr 1.15fr 0.95fr 1.05fr 1.1fr auto; align-items: stretch; }
.field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; border-radius: var(--radius-s); min-height: 64px; cursor: pointer; }
.field:hover { background: var(--mist); }
.field + .field::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.field:hover::before, .field:hover + .field::before { opacity: 0; }
.field-label { font-size: 0.8125rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field-btn {
  border: 0; background: transparent; padding: 2px 0 0; font-size: 1rem; color: var(--muted); width: 100%; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; appearance: none;
}
.field:focus-within { background: var(--mist); box-shadow: inset 0 0 0 2px var(--bright); }
.field input:focus-visible, .field select:focus-visible, .field-btn:focus-visible { outline: none; }
.search-btn { margin-left: 8px; background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius-s); padding: 0 32px; font-weight: 600; font-size: 1.0625rem; cursor: pointer; }
.search-btn:hover { background: var(--blue-press); }

.search-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 6px; padding: 10px 8px 4px; border-top: 1px solid var(--line); }
.order-pick { border: 0; padding: 3px; margin: 0; display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--mist); border-radius: var(--radius-s); }
.order-pick label { position: relative; padding: 6px 14px; border-radius: 8px; font-weight: 500; font-size: 0.9375rem; color: var(--muted); cursor: pointer; }
.order-pick input { position: absolute; opacity: 0; }
.order-pick label:has(input:checked) { background: var(--white); color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(6, 37, 67, 0.15); }
.order-pick label:has(input:focus-visible) { outline: 3px solid var(--bright); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9375rem; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.sample-note { margin-top: 14px; text-align: center; font-size: 0.875rem; color: var(--muted); }
.search-summary { display: none; }

/* Popovers */
.pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: 300px; background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: var(--float); padding: 16px; cursor: default; }
.pop-right { left: auto; right: 0; }
.pop-title { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.pop-note { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.pop-done { margin-top: 14px; width: 100%; background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius-s); padding: 10px; font-weight: 600; cursor: pointer; }
.check-list { display: grid; }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.check-list label:hover { background: var(--mist); }
.check-list input { width: 18px; height: 18px; accent-color: var(--blue); }
.check-list small { margin-left: auto; color: var(--muted); font-weight: 600; }
.stepper { display: grid; grid-template-columns: 1fr 36px 32px 36px; align-items: center; gap: 4px; padding: 10px 0; }
.stepper + .stepper { border-top: 1px solid var(--line); }
.stepper div { display: flex; flex-direction: column; }
.stepper span { font-size: 0.875rem; color: var(--muted); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--navy); }
.stepper button:hover:not(:disabled) { border-color: var(--navy); }
.stepper button:disabled { color: var(--line-2); border-color: var(--line); cursor: default; }
.stepper output { text-align: center; font-weight: 600; }

main { padding: 48px 24px 72px; flex: 1; }

/* ---------- Section headings ---------- */
.popular h2, .results h2, .newsletter h2 { font-size: 1.75rem; line-height: 1.2; font-weight: 500; color: var(--navy); letter-spacing: -0.005em; }
.section-sub { margin-top: 6px; color: var(--muted); }

/* ---------- Popular searches: each card draws its route ---------- */
.popular-list { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pop-card { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 12px; }
.pop-art { background: var(--sky); border-radius: var(--radius); height: 132px; display: flex; align-items: center; padding: 0 22px; transition: background 150ms; }
.pop-card:hover .pop-art { background: #deecfa; }
.pop-card strong { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--navy); }
.pop-card .pop-text span { display: block; font-size: 0.9375rem; color: var(--muted); }
.pop-card .pop-text .from { margin-top: 4px; color: var(--text); }
.pop-card .from b { font-weight: 600; }

.mini { display: flex; align-items: center; width: 100%; }
.mini-stop { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--navy); min-width: 0; }
.mini-stop i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--navy); }
.mini-stop.madinah i { background: var(--bright); border-color: var(--bright); }
.mini-stop.makkah i { width: 16px; height: 16px; background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(6, 37, 67, 0.12); }
.mini-line { flex: 1; height: 0; border-top: 2.5px dotted var(--blue); margin: 0 8px 26px; }
.mini-line.rail { border-top: 2px dashed var(--muted); flex: 0.6; }

/* ---------- Results ---------- */
.results-head p { margin-top: 6px; color: var(--muted); }
.notice { margin-top: 16px; background: var(--cream); color: var(--cream-text); border-radius: var(--radius-s); padding: 12px 16px; font-size: 0.9375rem; }

/* Price by day: Skyscanner-style bars */
.days { margin-top: 28px; }
.days-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.days-head h3 { font-size: 1rem; font-weight: 600; color: var(--navy); }
.days-head p { font-size: 0.9375rem; color: var(--muted); }
.days-head b { color: var(--coral); font-weight: 600; }
.dates { margin-top: 12px; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.date-cell { flex: 1 0 84px; background: none; border: 0; border-radius: var(--radius-s); padding: 8px 6px; cursor: pointer; display: grid; grid-template-rows: 64px auto auto; gap: 4px; text-align: center; }
.date-cell:hover:not(:disabled) { background: var(--mist); }
.date-cell .bar { align-self: end; justify-self: center; width: 70%; max-width: 56px; border-radius: 6px 6px 2px 2px; background: #cfe0f1; }
.date-cell span { font-size: 0.8125rem; color: var(--muted); }
.date-cell b { font-size: 0.9375rem; font-weight: 600; }
.date-cell.cheapest .bar { background: var(--blue); }
.date-cell.cheapest b { color: var(--blue-text); }
.date-cell[aria-pressed="true"] { background: var(--sky); }
.date-cell[aria-pressed="true"] .bar { background: var(--navy); }
.date-cell:disabled { cursor: default; }
.date-cell:disabled .bar { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); height: 30%; }
.date-cell:disabled b { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }

.results-body { margin-top: 28px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }

/* Filters */
.filters { font-size: 0.9375rem; position: sticky; top: 16px; }
.filters summary { display: none; }
.filter-group + .filter-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.filter-group h3 { font-size: 0.9375rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.filter-group label { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.filter-group .fp { margin-left: auto; color: var(--muted); font-size: 0.875rem; }
.filter-group input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.filter-group select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--white); }
.filter-hint { color: var(--muted); font-size: 0.875rem; margin-top: 6px; }

/* Sort tabs */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tab { border: 0; background: var(--white); padding: 14px 18px 12px; text-align: left; cursor: pointer; display: grid; gap: 1px; box-shadow: inset 0 -3px 0 transparent; }
.tab + .tab { border-left: 1px solid var(--line); }
.tab:hover { background: var(--mist); }
.tab strong { font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.tab b { font-size: 1.25rem; font-weight: 600; }
.tab span { font-size: 0.875rem; color: var(--muted); }
.tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--blue); }
.tab[aria-selected="true"] b { color: var(--blue-text); }

.trip-list { margin-top: 16px; display: grid; gap: 16px; }
.empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.empty h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

/* ---------- Trip card ---------- */
.trip { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 220px; transition: box-shadow 150ms; }
.trip:hover { box-shadow: var(--lift); }
.trip-main { padding: 20px 24px; min-width: 0; }
.trip-side { border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; }

/* Route: dots and lines, sized by nights */
.route { display: grid; align-items: start; margin-bottom: 18px; }
.r-cell { display: grid; grid-template-rows: 20px 14px 18px; align-items: center; min-width: 0; }
.r-top { font-size: 0.875rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sub { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.r-end { justify-items: center; padding: 0 2px; }
.r-end .dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--navy); background: var(--white); }
.r-hop .line { position: relative; height: 0; border-top: 2.5px dotted var(--blue); margin: 0 6px; }
.r-hop.rail .line { border-top: 2px dashed var(--muted); }
.r-hop svg { position: absolute; left: 50%; top: -9px; width: 16px; height: 16px; transform: translateX(-50%); background: var(--white); padding: 0 3px; box-sizing: content-box; fill: var(--blue); }
.r-hop.rail svg { fill: var(--muted); }
.r-stay { padding: 0 2px; }
.r-stay .bar { height: 8px; border-radius: 4px; }
.r-stay.madinah .bar { background: var(--bright); }
.r-stay.makkah .bar { background: var(--navy); }

.legs { display: grid; gap: 12px; }
.leg { display: grid; grid-template-columns: 140px 1fr 130px; gap: 4px 18px; align-items: center; }
.leg-carrier { font-size: 0.875rem; color: var(--muted); }
.leg-carrier strong { display: block; color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.leg-times { display: flex; align-items: center; gap: 12px; min-width: 0; }
.leg-times .t { font-size: 1.1875rem; font-weight: 600; line-height: 1.1; }
.leg-times .c { font-size: 0.875rem; color: var(--muted); }
.leg-times .t sup { font-size: 0.75rem; color: var(--coral); margin-left: 1px; }
.leg-line { flex: 1; text-align: center; font-size: 0.8125rem; color: var(--muted); min-width: 72px; line-height: 1.35; }
.leg-line::before { content: ''; display: block; height: 1px; background: var(--line-2); margin: 4px 0; }
.leg-line .stops { color: var(--coral); }
.leg-line .direct { color: var(--blue-text); font-weight: 600; }
.leg-bag { font-size: 0.875rem; color: var(--muted); text-align: right; }
.leg-bag.extra { color: var(--cream-text); }

.stays { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.stay p { font-size: 0.875rem; color: var(--muted); }
.stay h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 1px 0 3px; }
.stay .stars { color: var(--muted); font-weight: 500; font-size: 0.875rem; margin-left: 6px; }
.walk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.875rem; color: var(--text); }
.walk i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.walk.near i { background: var(--blue); }
.walk.mid i { background: var(--bright); }
.order-saving { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.order-saving b { color: var(--coral); font-weight: 600; }

.badge { align-self: flex-start; font-size: 0.8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--blue-text); margin-bottom: 12px; }
.price-wrap { margin-top: auto; }
.price { font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.05; letter-spacing: -0.01em; }
.price-sub { font-size: 0.875rem; color: var(--muted); }
.price-total { margin-top: 6px; font-size: 0.9375rem; }
.price-total strong { font-weight: 600; }
.price-note { margin-top: 8px; font-size: 0.8125rem; color: var(--cream-text); }
.book-btn { margin-top: 14px; background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius-s); padding: 12px 14px; font-weight: 600; cursor: pointer; width: 100%; }
.book-btn:hover { background: var(--blue-press); }
.book-btn[aria-expanded="true"] { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

.trip-book { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 18px 24px 22px; background: var(--mist); border-radius: 0 0 var(--radius) var(--radius); }
.trip-book ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.trip-book li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius-s); padding: 12px 14px; }
.trip-book li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 600; font-size: 0.875rem; display: grid; place-items: center; }
.trip-book li strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.trip-book li span { font-size: 0.875rem; color: var(--muted); }
.trip-book .est { font-weight: 600; color: var(--text); white-space: nowrap; }
.trip-book a { background: var(--blue); color: var(--white); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.trip-book a:hover { background: var(--blue-press); }
.trip-book .small { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

/* Live vs estimate price labels */
.leg-bag .src { display: block; font-size: 0.8125rem; margin-top: 2px; }
.src.live { color: var(--blue-text); }
.src.estimate { color: var(--muted); font-style: italic; }
.loading { color: var(--muted); padding: 24px 0; }

/* Fly from a hub instead */
.hub { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.hub h3 { font-size: 1rem; font-weight: 600; color: var(--navy); }
.hub p { font-size: 0.9375rem; color: var(--muted); margin-top: 2px; }
.hub p b { color: var(--text); font-weight: 600; }
.hub .good { color: var(--coral); }
.hub-btn { background: var(--white); color: var(--blue-text); border: 1.5px solid var(--blue); border-radius: var(--radius-s); padding: 9px 14px; font-weight: 600; cursor: pointer; }
.hub-btn:hover { background: var(--sky); }

/* Price alert */
.alert { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.alert h3 { font-size: 1.1875rem; font-weight: 500; }
.alert p { color: rgba(255, 255, 255, 0.75); font-size: 0.9375rem; }
.alert form { display: flex; gap: 8px; flex-wrap: wrap; }
.alert input { border: 0; border-radius: var(--radius-s); padding: 11px 12px; min-width: 0; width: 220px; }
.alert input[name="target"] { width: 100px; }
.alert button { background: var(--bright); color: var(--navy); border: 0; border-radius: var(--radius-s); padding: 11px 16px; font-weight: 600; cursor: pointer; }
.alert .done { grid-column: 1 / -1; color: var(--bright); font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--mist); padding: 56px 0; border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px 48px; align-items: center; }
.newsletter p { color: var(--muted); margin-top: 6px; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; background: var(--white); border-radius: var(--radius); box-shadow: var(--lift); padding: 6px; }
.newsletter-form input, .newsletter-form select { border: 0; padding: 12px 14px; background: transparent; min-width: 0; font-size: 1rem; border-radius: var(--radius-s); }
.newsletter-form select { border-left: 1px solid var(--line); border-radius: 0; color: var(--muted); }
.newsletter-form button { background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius-s); padding: 0 26px; font-weight: 600; font-size: 1rem; cursor: pointer; }
.newsletter-form button:hover { background: var(--blue-press); }
.newsletter .done { color: var(--navy); font-weight: 600; }

.footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; padding: 32px 0 40px; }
.footer p + p { margin-top: 6px; }

/* ---------- Results mode: hero shrinks to a band behind the search ---------- */
.has-results .hero { padding: 0 0 60px; }
.has-results .hero-inner { display: none; }
.has-results main { padding-top: 40px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { padding: 32px 0 96px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-from { grid-column: 1 / -1; }
  .field + .field::before { display: none; }
  .search-btn { grid-column: 1 / -1; margin: 6px 0 0; padding: 14px; }
  .popular-list { grid-template-columns: 1fr 1fr; }
  .results-body { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; border: 1px solid var(--line); border-radius: var(--radius); }
  .filters summary { display: block; padding: 14px 18px; font-weight: 600; color: var(--navy); cursor: pointer; }
  .filters .filter-group { padding: 0 18px; }
  .filters[open] { padding-bottom: 18px; }
  .newsletter-inner { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  main { padding: 40px 16px 56px; }
  .topnav { display: none; }
  .hero { padding: 20px 0 84px; }
  .hero h1 { font-size: 1.875rem; }
  .hero-copy p { font-size: 1rem; }
  .search-options { justify-content: flex-start; }
  .order-pick label { padding: 6px 10px; font-size: 0.875rem; }
  .popular-list { grid-template-columns: 1fr; gap: 20px; }
  .pop-art { height: 112px; }

  .has-results .hero { padding: 0 0 44px; }
  .has-results .search-wrap { margin-top: -36px; }
  .has-results .search-summary { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--float); padding: 14px 16px; font-weight: 600; color: var(--navy); cursor: pointer; }
  .search-summary span { flex: 1; min-width: 0; }
  .search-summary small { display: block; font-weight: 500; color: var(--muted); font-size: 0.875rem; }
  .search-summary b { color: var(--blue-text); font-weight: 600; }
  .has-results:not(.editing) .search { display: none; }
  .has-results.editing .search { margin-top: 10px; }
  .has-results main { padding-top: 28px; }
  .results-head p { display: none; }

  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tab { padding: 10px 12px; }
  .tab b { font-size: 1.0625rem; }
  .tab span { display: none; }
  .trip { grid-template-columns: 1fr; }
  .trip-main { padding: 16px; }
  .trip-side { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .r-sub { font-size: 0.75rem; }
  .leg { grid-template-columns: 1fr auto; }
  .leg-times { grid-column: 1 / -1; grid-row: 2; }
  .stays { grid-template-columns: 1fr; }
  .trip-book { padding: 14px 16px; }
  .trip-book li { grid-template-columns: 28px 1fr auto; }
  .trip-book li a { grid-column: 2 / -1; text-align: center; }
  .alert { grid-template-columns: 1fr; }
  .alert form { display: grid; grid-template-columns: 1fr; }
  .alert input, .alert input[name="target"] { width: 100%; }
  .newsletter { padding: 40px 0; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form select { border-left: 0; border-top: 1px solid var(--line); }
  .newsletter-form button { padding: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .trip-book { animation: open 160ms ease-out; }
  @keyframes open { from { opacity: 0; transform: translateY(-4px); } }
}
