/* Football Trip Club · football trips, sorted.
   Look: floodlit night match, ticket stubs, British Rail orange, scarf navy. */

/* Always dark: the Football Trip Club look (matchday under the floodlights) */
:root {
  --bg: #0f141c;
  --bg-2: #161d28;
  --card: #19212d;
  --ink: #f3eee3;
  --ink-2: #cbc5b8;
  --muted: #959ba7;
  --line: #2a3443;
  --line-2: #3a4657;
  --brand: #ff6a33;
  --brand-2: #ff8455;
  --brand-soft: #3b2117;
  --on-brand: #160b05;
  --navy: #0a111d;
  --on-navy: #f3eee3;
  --pitch: #42c084;
  --pitch-soft: #12301f;
  --sky: #7cb2f7;
  --gold: #f2b705;
  --danger: #ff8a7a;
  --danger-soft: #3a1714;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--sky); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0 0 0.75em; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 3000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -8px var(--brand); }
.btn-brand:hover { background: var(--brand-2); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-chat-top { padding-left: 6px; }
.btn-chat-top img { border-radius: 50%; background: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn-big { min-height: 56px; font-size: 1.1rem; width: 100%; }
.btn-wide { width: 100%; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--sky); font-weight: 600; cursor: pointer; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1500;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark { font: 400 2rem/1 var(--display); letter-spacing: 0.03em; white-space: nowrap; }
@media (max-width: 420px) { .wordmark { font-size: 1.55rem; } .brand img { width: 30px; height: 30px; } }
.tagline { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.btn-chat-top { margin-left: auto; }
@media (max-width: 640px) {
  .tagline, .btn-chat-top { display: none; }
}

/* dev-only strip showing which data sources are switched on */
.setup { background: var(--navy); color: var(--on-navy); font-size: 0.85rem; }
.setup .wrap { padding-top: 8px; padding-bottom: 8px; }
.setup summary { cursor: pointer; }
.setup-items { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0 2px; }
.setup b { letter-spacing: 0.06em; font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; }
.setup .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--gold); }
.setup .on .dot { background: #44d18f; }
.setup .off .dot { background: #ff7a5c; }

/* ---------- hero ---------- */
.view { padding: 28px 0 40px; }
.hero { position: relative; padding-top: 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0 -16px auto; height: 360px; z-index: -1;
  background-image: radial-gradient(var(--line-2) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  opacity: 0.55;
}
.kicker { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero h1 {
  font: 400 clamp(2.9rem, 11vw, 5.6rem)/0.92 var(--display);
  text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 18px;
}
.hl { color: var(--brand); }
.lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 38em; margin-bottom: 24px; }

/* ---------- search / combobox ---------- */
.combo { position: relative; max-width: 640px; }
.combo-icon { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.combo input {
  width: 100%; min-height: 62px; padding: 14px 18px 14px 52px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 18px;
  font-size: 1.1rem; box-shadow: 6px 6px 0 var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.combo input:focus { outline: none; box-shadow: 3px 3px 0 var(--brand); transform: translate(2px, 2px); border-color: var(--brand); }
.combo-small input { min-height: 50px; padding-left: 16px; font-size: 1rem; box-shadow: none; border-width: 1.5px; border-color: var(--line-2); border-radius: 12px; }
.combo-small input:focus { box-shadow: 0 0 0 3px var(--brand-soft); transform: none; }
.options {
  position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  max-height: 340px; overflow-y: auto;
}
.options li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.options li[aria-selected="true"], .options li:hover { background: var(--brand-soft); }
.options li.muted { color: var(--muted); cursor: default; background: none; }
.options .opt-main { font-weight: 700; }
.options .opt-meta { color: var(--muted); font-size: 0.85rem; }
.options .opt-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); font-size: 0.95rem; }
.monogram { font: 400 0.95rem/1 var(--display); letter-spacing: 0.03em; color: var(--on-navy); background: var(--navy) !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip {
  border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px;
  padding: 8px 14px; font-weight: 600; cursor: pointer; min-height: 40px;
}
.chip:hover { border-color: var(--ink); }
.chip-resume { border-color: var(--brand); color: var(--brand); }

.how { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; color: var(--ink-2); }
.how li span { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--on-navy); font: 400 1.1rem/1 var(--display); }
.how b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }

/* ---------- fixtures ---------- */
.view-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.view-head h2 { font: 400 clamp(1.7rem, 5vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; flex: 1 1 100%; order: 2; }
.back { background: none; border: 0; color: var(--ink-2); font-weight: 700; padding: 8px 0; cursor: pointer; }
.back:hover { color: var(--brand); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; order: 3; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticket {
  --stub: 78px;
  position: relative; width: 100%; display: grid; grid-template-columns: var(--stub) 1fr auto; align-items: stretch;
  text-align: left; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.ticket:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: var(--stub); width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); transform: translateX(-50%); border: 1px solid var(--line);
}
.ticket::before { top: -10px; }
.ticket::after { bottom: -10px; }
.stub {
  display: grid; place-content: center; text-align: center; gap: 2px; padding: 14px 4px;
  background: var(--navy); color: var(--on-navy); border-right: 2px dashed color-mix(in srgb, var(--on-navy) 40%, transparent);
}
.ticket.is-away .stub { background: var(--brand); color: var(--on-brand); border-right-color: color-mix(in srgb, var(--on-brand) 45%, transparent); }
.stub .dow { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.12em; }
.stub .day { font: 400 2rem/1 var(--display); }
.stub .mon { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.12em; }
.ticket .main { padding: 14px 14px 14px 18px; min-width: 0; }
.ticket .comp { display: block; font: 600 0.72rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ticket .teams { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.ticket .teams .us { color: var(--brand); }
.ticket .teams .v { color: var(--muted); font-weight: 600; padding: 0 2px; }
.ticket .where { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 4px; }
.ticket .side { display: grid; align-content: center; justify-items: end; gap: 6px; padding: 14px 16px 14px 4px; }
.ko { font: 600 1.15rem/1 var(--mono); }
.badge { font: 700 0.7rem/1 var(--mono); letter-spacing: 0.1em; padding: 5px 8px; border-radius: 6px; text-transform: uppercase; }
.badge-away { background: var(--brand-soft); color: var(--brand-2); }
.badge-home { background: var(--pitch-soft); color: var(--pitch); }
.badge-tbc { background: var(--bg-2); color: var(--ink-2); }
.badge-best { background: var(--gold); color: #1d1500; }
.badge-demo { background: var(--gold); color: #1d1500; }
@media (max-width: 420px) {
  .ticket { --stub: 64px; }
  .ticket .side { padding-right: 12px; }
  .stub .day { font-size: 1.7rem; }
}

.note { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--ink-2); font-size: 0.92rem; }
.note-warn { background: var(--brand-soft); color: var(--ink); }
.error { color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- the match (trip view header) ---------- */
.match {
  position: relative; display: grid; grid-template-columns: 96px 1fr; overflow: hidden;
  background: var(--navy); color: var(--on-navy); border-radius: 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.match.is-away { background: linear-gradient(120deg, var(--navy) 55%, color-mix(in srgb, var(--brand) 55%, var(--navy))); }
.match .stub { background: var(--brand); color: var(--on-brand); border-right: 2px dashed color-mix(in srgb, var(--on-brand) 45%, transparent); }
.match .stub .day { font-size: 2.6rem; }
.match-body { padding: 18px 20px 20px; min-width: 0; }
.match .comp { font: 600 0.75rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-bottom: 6px; }
.match h2 { font: 400 clamp(1.7rem, 6vw, 2.8rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 10px; }
.match h2 .v { opacity: 0.6; padding: 0 4px; }
.match .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; opacity: 0.95; }
.match .facts span { overflow-wrap: anywhere; }
.match .warn { margin-top: 12px; background: color-mix(in srgb, var(--gold) 22%, transparent); border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 8px; font-size: 0.92rem; }
@media (max-width: 480px) { .match { grid-template-columns: 72px 1fr; } .match .stub .day { font-size: 2rem; } }

/* ---------- cards + trip form ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font: 400 1.6rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.label, .field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input[type="date"] {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card);
}
.stepper { display: inline-grid; grid-template-columns: 44px 52px 44px; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--card); }
.stepper button { height: 46px; border: 0; background: var(--bg-2); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--brand-soft); }
.stepper output { text-align: center; font: 600 1.15rem/1 var(--mono); }
.presets { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.presets legend { padding: 0; }
.presets label { position: relative; }
.presets input { position: absolute; opacity: 0; }
.presets span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; cursor: pointer; }
.presets input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.presets input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (min-width: 900px) {
  .trip-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 24px; align-items: start; }
  .trip-form .card-title, .trip-form .btn-big, .trip-form .error { grid-column: 1 / -1; }
}

/* ---------- plan ---------- */
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
#getting-there { scroll-margin-top: 84px; }
.btn:disabled { opacity: 0.75; cursor: progress; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.92rem; }
.pill-strong { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.legs { display: grid; gap: 14px; }
.leg { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.leg-band { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font: 600 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); }
.leg-fly .leg-band { background: var(--navy); color: var(--on-navy); }
.leg-drive .leg-band { background: var(--bg-2); color: var(--ink); }
.leg-band .badge { margin-left: auto; }
.leg-body { padding: 14px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 600 1.25rem/1.2 var(--mono); margin-bottom: 8px; }
.route .arrow { color: var(--brand); }
.route small { display: block; font: 500 0.8rem/1.2 var(--font); color: var(--muted); }
.leg p { color: var(--ink-2); font-size: 0.95rem; }
.leg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.leg-actions .btn { white-space: normal; text-align: center; }
.tip { font-size: 0.9rem; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 10px; margin-top: 10px; }
.flight-routes { display: grid; gap: 10px; }
.flight-route { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; }
.flight-route .codes { font: 600 1.1rem/1.2 var(--mono); }
.flight-route .fare { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-2); }
.flight-route .fare strong { color: var(--ink); }
.flight-route .links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* hotels */
.sort { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.sort button { border: 0; background: none; padding: 7px 12px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.map { height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; background: var(--bg-2); z-index: 0; }
@media (min-width: 760px) { .map { height: 380px; } }
.hotels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hotel { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.hotel.no-photo { grid-template-columns: 1fr auto; }
.hotel img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.hotel h4 { font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.hotel .meta { color: var(--ink-2); font-size: 0.86rem; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.hotel .rating { font-weight: 700; color: var(--ink); }
.hotel .rating b { display: inline-block; background: var(--navy); color: var(--on-navy); border-radius: 6px 6px 6px 0; padding: 1px 6px; margin-right: 4px; font-size: 0.82rem; }
.hotel .flags { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.flag-good { background: var(--pitch-soft); color: var(--pitch); }
.hotel .price { text-align: right; display: grid; justify-items: end; gap: 2px; }
.hotel .price strong { font: 600 1.2rem/1 var(--mono); }
.hotel .price span { font-size: 0.78rem; color: var(--muted); }
.hotel .price .btn { margin-top: 6px; }
@media (max-width: 560px) {
  .hotel { grid-template-columns: 56px 1fr; }
  .hotel.no-photo { grid-template-columns: 1fr; }
  .hotel img { width: 56px; height: 56px; }
  .hotel .price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; border-top: 1px dashed var(--line); padding-top: 8px; }
  .hotel .price .btn { margin: 0; }
  .hotel .price-text { display: grid; }
}
.stay22-frame { width: 100%; height: 420px; border: 0; border-radius: 14px; margin-top: 14px; }

/* map pins */
.pin-wrap { background: none; border: 0; }
.pin { display: inline-grid; place-items: center; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 800; }
.pin-ground { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.pin-hotel { padding: 3px 8px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 0.78rem/1.2 var(--mono); box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 1.5px solid #fff; }
.pin-hotel.nop { padding: 3px 6px; font-size: 0.85rem; }
.pin-small { width: 26px; height: 26px; border-radius: 50%; background: #fff; font-size: 0.85rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.leaflet-popup-content { font: 500 0.9rem/1.4 var(--font); }
.leaflet-control-layers { border-radius: 12px !important; font: 600 0.85rem/1.4 var(--font); color: #14171f; }
.leaflet-control-layers label { margin: 2px 0; }
.leaflet-popup-content b { display: block; font-weight: 800; }

/* matchday */
.cols { display: grid; gap: 18px; }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } }
.places { list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) {
  .places.cols { columns: 2; column-gap: 36px; }
  .places.cols li { break-inside: avoid; }
}
.matchday-top { display: grid; gap: 4px 28px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
@media (min-width: 760px) { .matchday-top { grid-template-columns: auto 1fr; } }
.md-ko { font-size: 1.05rem; margin: 0; }
.md-ko b { font: 600 1.4rem/1 var(--mono); margin-right: 6px; }
.stop-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stop-tags a { display: inline-flex; gap: 4px; align-items: center; padding: 6px 12px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; background: var(--card); }
.stop-tags a:hover { border-color: var(--brand); }
.stop-tags b { font-weight: 700; }
.places li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.places li:last-child { border-bottom: 0; }
.places .p-name { font-weight: 700; }
.places .p-meta { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.places a { text-decoration: none; color: inherit; }
.places a:hover .p-name { color: var(--brand); }
.subhead { font: 600 0.78rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

.mazza-cta { display: grid; gap: 16px; align-items: center; background: var(--brand-soft); border-color: transparent; }
.mazza-cta h3, .mazza-cta h2 { font: 400 1.5rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.home-cta { margin: 26px 0 0; }
.btn-try { font-weight: 600; font-size: 0.9rem; }
.mazza-cta p { color: var(--ink-2); margin: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) { .mazza-cta { grid-template-columns: 64px 1fr auto; } .cta-buttons { flex-direction: column; } }
/* Phones: Mazza beside the title, text full width, two equal full-width buttons */
@media (max-width: 759px) {
  .mazza-cta { grid-template-columns: 48px 1fr; gap: 12px 14px; padding: 18px; }
  .mazza-cta > img { width: 48px; height: 48px; }
  .mazza-cta > div:first-of-type { display: contents; }
  .mazza-cta h2, .mazza-cta h3 { margin: 0; font-size: 1.3rem; align-self: center; }
  .mazza-cta p { grid-column: 1 / -1; }
  .mazza-cta .cta-buttons { grid-column: 1 / -1; display: grid; gap: 8px; }
  .mazza-cta .cta-buttons .btn { width: 100%; }
}

/* loading */
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--card) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton-ticket { height: 96px; border-radius: var(--radius); }
.skeleton-row { height: 70px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; padding: 8px 0; }
.ball { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.footer { border-top: 3px solid var(--ink); padding: 36px 0 110px; color: var(--ink-2); font-size: 0.92rem; }
.footer p { max-width: 36em; }
.footer .sign-off { font: 400 clamp(2rem, 7vw, 3.2rem)/0.95 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 16px; max-width: none; }
.footer .small { color: var(--muted); font-size: 0.82rem; margin-top: 18px; }
.footer-links a { color: var(--ink); font-weight: 700; }

/* ---------- homepage: guides + FAQ ---------- */
.section-title { font: 400 clamp(1.7rem, 5vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; margin: 48px 0 10px; }
.lede-small { color: var(--ink-2); max-width: 40em; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; padding: 0; list-style: none; }
.guide-links a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.guide-links a:hover { border-color: var(--brand); color: var(--brand); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }
.footer strong { font-family: var(--display); font-weight: 400; letter-spacing: 0.05em; color: var(--ink); font-size: 1rem; }

/* ---------- chat ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1800;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px 6px 6px; min-height: 52px;
  border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 24px -10px var(--brand), 0 2px 6px rgba(0,0,0,.2); cursor: pointer;
}
.fab img { border-radius: 50%; background: var(--navy); }
.chat-open .fab { display: none; }
.fab { transition: opacity 0.2s ease, transform 0.2s ease; }
.cta-in-view .fab { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (min-width: 641px) { .fab { display: none; } }

.chat {
  position: fixed; z-index: 2000; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px -30px rgba(0,0,0,.6);
  animation: slide-in 0.2s ease-out;
}
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
@media (max-width: 640px) { .chat { width: 100vw; height: 100dvh; border-left: 0; } body.chat-open { overflow: hidden; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--navy); color: var(--on-navy); }
.chat-head img { border-radius: 50%; }
.chat-head h2 { font: 400 1.5rem/1 var(--display); letter-spacing: 0.04em; }
.chat-head p { margin: 2px 0 0; font-size: 0.8rem; opacity: 0.8; }
.chat-new { margin-left: auto; background: none; border: 1.5px solid color-mix(in srgb, var(--on-navy) 40%, transparent); color: var(--on-navy); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.chat-close { background: none; border: 0; color: var(--on-navy); font-size: 2rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 0.97rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg p { margin: 0 0 0.55em; }
.msg p:last-child, .msg ul:last-child, .msg ol:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 0.55em; padding-left: 1.2em; }
.msg li { margin: 0.15em 0; }
.msg a { color: var(--sky); font-weight: 600; }
.msg code { font: 500 0.88em/1 var(--mono); background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 2px 5px; border-radius: 5px; }
.msg-user { align-self: flex-end; background: var(--navy); color: var(--on-navy); border-bottom-right-radius: 6px; }
.msg-mazza { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
.msg-error { background: var(--danger-soft); color: var(--danger); }
.msg-intro { background: var(--brand-soft); }
.msg .status { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.88rem; font-weight: 600; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: bounce 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chat-suggest button { flex: none; border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.chat-suggest button:hover { border-color: var(--brand); color: var(--brand); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg); line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--brand); }
.chat-form .btn { width: 48px; padding: 0; font-size: 1.1rem; }
.chat-off { padding: 14px; margin: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2500; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- away day guide pages ---------- */
.guide { padding: 24px 16px 40px; }
.guide h1 { font: 400 clamp(2.4rem, 8vw, 4.2rem)/0.95 var(--display); text-transform: uppercase; margin: 0 0 14px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.cta-mazza { border-radius: 50%; background: var(--navy); }
/* Short facts side by side; long lists (pubs, hotels) full width in two columns */
.guide-facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 18px; }
.guide-facts .card { margin: 0; }
.guide .card-title { font-size: 1.4rem; }
.jump { font-weight: 700; }
.jump a { color: var(--ink); }
.ground-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .ground-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ground-list { grid-template-columns: repeat(3, 1fr); } }
.ground-list a { display: grid; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.ground-list a:hover { border-color: var(--brand); }
.ground-list span { color: var(--muted); font-size: 0.88rem; }
.legal { max-width: 46em; }
.legal h2 { font: 400 1.5rem/1.1 var(--display); text-transform: uppercase; margin: 28px 0 8px; }
.legal li { margin-bottom: 6px; }
.contact-form { display: grid; gap: 12px; max-width: 32em; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); }
