:root {
  --green-950: #0A1A0F;
  --green: #112918;
  --green-800: #163420;
  --green-700: #1D3F27;
  --green-600: #2A5234;
  --cream: #FFFDF8;
  --beige: #F5EDDC;
  --beige-2: #EADFC6;
  --ink: #191C13;
  --muted: #7A7A6E;
  --gold: #E2B55A;
  --gold-dark: #94701F;
  --berry: #8B2318;
  --sage: #5F7F55;
  --accent: #E4482F;           /* base + route on the dark map */
  --b1: #FFF0C4; --b2: #F2B544; --b3: #C46F2C; --b4: #56705A;
  --head-font: 'Playfair Display', Georgia, serif;
  --body-font: 'STIX Two Text', Georgia, serif;
  --side-w: 408px;
  --bar-h: 84px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body-font);
  font-style: normal;
  color: var(--ink);
  background: var(--green);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
em, i, cite, var, address, dfn { font-style: normal; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lbl {
  display: block;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ---------- app grid ---------- */
.app {
  position: fixed; inset: 0;
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: var(--bar-h) 1fr;
}

/* ---------- top bar ---------- */
.bar {
  grid-column: 1 / -1;
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 0 22px 0 26px;
  background: linear-gradient(100deg, var(--green-950) 0%, var(--green) 45%, var(--green-800) 100%);
  border-bottom: 1px solid rgba(226, 181, 90, .22);
  color: var(--cream);
}
.bar-title { width: calc(var(--side-w) - 52px); flex: none; }
.bar-title h1 {
  margin: 0;
  font-family: var(--head-font); font-weight: 900;
  font-size: 27px; line-height: 1; letter-spacing: -.2px;
}
.bar-title p { margin: 7px 0 0; font-size: 14px; color: rgba(255, 253, 248, .66); }
.controls { display: flex; align-items: flex-end; gap: 12px; flex: 1; min-width: 0; }
.ctl { position: relative; }
.ctl > .lbl { color: var(--gold); margin: 0 0 6px 2px; }
.field {
  display: flex; align-items: center;
  height: 46px; border-radius: 8px;
  background: var(--cream); color: var(--ink);
  border: 2px solid transparent;
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
  transition: border-color .15s;
}
.field:focus-within, .field.open { border-color: var(--gold); }
.ctl-base { width: 330px; }
.ctl-base .field svg { margin-left: 13px; flex: none; color: var(--berry); }
.ctl-base input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  padding: 0 8px 0 10px; font-size: 17px; font-weight: 600;
}
.ctl-base input::placeholder { color: var(--muted); font-weight: 500; }
.ctl-base .clear {
  display: none; width: 36px; height: 36px; margin-right: 4px;
  border: 0; background: transparent; border-radius: 6px; color: var(--muted); font-size: 22px; line-height: 1;
}
.ctl-base.has-base .clear { display: block; }
.ctl-base .clear:hover { background: var(--beige); color: var(--ink); }
.btn-field {
  border: 2px solid transparent; padding: 0 14px 0 13px; gap: 10px;
  font-size: 17px; font-weight: 600; text-align: left; white-space: nowrap;
}
.btn-field svg { flex: none; color: var(--berry); }
.btn-field .v-muted { color: var(--muted); font-weight: 500; }
.ctl-dates .btn-field { min-width: 236px; }
.ctl-layers { margin-left: auto; }
.btn-layers {
  height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 16px 0 14px;
  border-radius: 8px; border: 2px solid rgba(226,181,90,.55);
  background: transparent; color: var(--cream); font-size: 16px; font-weight: 700;
}
.btn-layers:hover, .btn-layers.open { background: rgba(226,181,90,.14); border-color: var(--gold); }
.btn-layers .n { color: var(--gold); }

/* popovers */
.pop {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--cream); color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(5, 15, 8, .45), 0 2px 6px rgba(5,15,8,.25);
  z-index: 40;
}
.pop[hidden] { display: none; }
.suggest { width: 100%; padding: 6px; margin: 0; list-style: none; }
.suggest li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 6px; cursor: pointer;
}
.suggest li b { font-size: 17px; font-weight: 600; }
.suggest li span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.suggest li span.has { color: var(--sage); font-weight: 600; }
.suggest li.on, .suggest li:hover { background: var(--beige); }
.suggest .none { color: var(--muted); cursor: default; }
.suggest .none:hover { background: none; }

.pop-dates { width: 760px; padding: 20px 22px 16px; }
.pop-dates h3, .pop-layers h3 { margin: 0 0 4px; font-family: var(--head-font); font-weight: 800; font-size: 22px; }
.pop-sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.month h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-dark); }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); }
.grid7 .wd { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 4px; font-weight: 600; }
.day {
  height: 32px; border: 0; background: transparent; font-size: 14px; font-weight: 600;
  position: relative; border-radius: 0;
}
.day:hover { background: var(--beige); }
.day.in { background: var(--beige-2); }
.day.a, .day.b { background: var(--berry); color: var(--cream); }
.day.a { border-radius: 6px 0 0 6px; } .day.b { border-radius: 0 6px 6px 0; } .day.a.b { border-radius: 6px; }
.day.blank { pointer-events: none; }
.day.x24 { color: var(--berry); }
.day.a.x24, .day.b.x24 { color: var(--cream); }
.pop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--beige-2); }
.pop-foot .sum { font-weight: 700; font-size: 16px; }
.pop-foot .sum.muted { color: var(--muted); font-weight: 500; }
.btn {
  height: 42px; padding: 0 18px; border-radius: 8px; border: 2px solid var(--green);
  background: var(--green); color: var(--cream); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--beige-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.red { background: var(--berry); border-color: var(--berry); }
.btn.red:hover { background: #a02a1d; border-color: #a02a1d; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--green); }
.btn.gold:hover { background: #ecc46f; border-color: #ecc46f; }

.pop-layers { right: 0; left: auto; width: 340px; padding: 18px 18px 10px; }
.layer { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--beige-2); cursor: pointer; }
.layer:first-of-type { border-top: 0; }
.layer .txt { flex: 1; }
.layer b { display: block; font-size: 16px; }
.layer small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.layer.off { cursor: default; }
.layer.off b { color: var(--muted); }
.switch { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--beige-2); position: relative; margin-top: 2px; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.layer.on .switch { background: var(--sage); }
.layer.on .switch::after { transform: translateX(18px); }
.layer.locked .switch { background: var(--green); }
.layer.locked { cursor: default; }

/* ---------- side: list + panel ---------- */
.side {
  grid-row: 2; grid-column: 1;
  position: relative; z-index: 20;
  background: var(--cream);
  display: flex; flex-direction: column; min-height: 0;
  box-shadow: 6px 0 24px rgba(4, 14, 7, .35);
}
.grip { display: none; }
.view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.view[hidden] { display: none; }
.list-head { padding: 22px 24px 14px; border-bottom: 2px solid var(--ink); }
.list-head .big {
  display: flex; align-items: baseline; gap: 10px; margin: 0;
  font-family: var(--head-font); font-weight: 900; font-size: 30px; line-height: 1.05;
}
.list-head .big .num { color: inherit; }
.list-head .sub { margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.35; }
.list-head .sub b { color: var(--ink); font-weight: 600; }
.list-head .warn { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--berry); }
.scroll { overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.list { list-style: none; margin: 0; padding: 0 0 40px; }
.sep {
  padding: 18px 24px 8px; color: var(--gold-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
}
.row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 0 12px; align-items: center;
  padding: 12px 22px 12px 20px; border-bottom: 1px solid var(--beige-2);
  cursor: pointer; transition: background .1s;
}
.row:hover, .row.hl { background: var(--beige); }
.row.sel { background: var(--beige); box-shadow: inset 0 0 0 2px var(--ink); }
.row.faded { opacity: .42; }
.row-score { text-align: center; line-height: 1; }
.row-score b { display: block; font-family: var(--head-font); font-weight: 900; font-size: 27px; color: var(--berry); }
.row-score small { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; color: var(--muted); }
.row-score .mini { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: .55; }
.row-name { font-family: var(--head-font); font-weight: 700; font-size: 19px; line-height: 1.15; }
.row.dates .row-name { font-family: var(--body-font); font-weight: 600; font-size: 17px; }
.row-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.row-avail { font-size: 14px; font-weight: 600; margin-top: 3px; color: var(--sage); }
.row-avail.part { color: var(--gold-dark); }
.row-avail.no { color: var(--berry); }
.row-travel { text-align: right; line-height: 1.1; white-space: nowrap; }
.row-travel b { font-family: var(--head-font); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; gap: 7px; }
.row-travel span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.row-travel.none span { margin-top: 0; }
.bdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--green); flex: none; }
.bdot.h1 { background: var(--b1); } .bdot.h2 { background: var(--b2); } .bdot.h3 { background: var(--b3); } .bdot.far, .bdot.none { background: var(--b4); }
.list-foot { padding: 18px 24px 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.empty { padding: 30px 24px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.empty b { color: var(--ink); }

/* panel */
.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 12px 12px; border-bottom: 1px solid var(--beige-2); background: var(--cream);
}
.back { border: 0; background: transparent; font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 6px; display: inline-flex; gap: 8px; align-items: center; }
.back:hover { background: var(--beige); }
.panel { padding: 0 0 40px; }
.p-img { display: block; width: 100%; height: 170px; object-fit: cover; background: var(--beige); }
.p-head { padding: 22px 24px 18px; background: var(--green); color: var(--cream); position: relative; }
.p-head .lbl { color: var(--gold); }
.p-head h2 { margin: 8px 0 0; font-family: var(--head-font); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -.3px; }
.p-head .local { margin: 8px 0 0; font-size: 16px; color: rgba(255,253,248,.72); }
.p-score { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; }
.p-score b { font-family: var(--head-font); font-weight: 900; font-size: 56px; line-height: .82; color: var(--gold); }
.p-score span { font-size: 14px; line-height: 1.3; color: rgba(255,253,248,.75); padding-bottom: 2px; }
.p-score span strong { display: block; color: var(--cream); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 24px 4px; }
.p-sec { padding: 18px 24px 4px; }
.p-sec + .p-sec { border-top: 1px solid var(--beige-2); margin-top: 14px; }
.p-sec > .lbl { color: var(--gold-dark); margin-bottom: 10px; }
.trip { background: var(--beige); margin: 18px 24px 0; padding: 18px 18px 16px; border-radius: 10px; }
.trip .lbl { color: var(--berry); }
.trip-time { font-family: var(--head-font); font-weight: 900; font-size: 34px; line-height: 1.05; margin-top: 8px; }
.trip-time small { font-family: var(--body-font); font-weight: 600; font-size: 17px; color: var(--ink); margin-left: 4px; }
.trip-stations { font-size: 15px; color: var(--muted); margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.facts .wide { grid-column: 1 / -1; }
.trip-note { margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.trip .btn { margin-top: 16px; width: 100%; }
.trip.none .trip-time { font-size: 24px; }
.trip p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.big-dates { font-family: var(--head-font); font-weight: 800; font-size: 24px; line-height: 1.15; }
.p-text { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.p-text.muted { color: var(--muted); font-size: 15px; }
.daystrip { display: flex; gap: 4px; margin: 12px 0 2px; flex-wrap: wrap; }
.daystrip div { width: 52px; padding: 6px 0 7px; text-align: center; border-radius: 6px; font-size: 12px; line-height: 1.2; background: var(--berry); color: var(--cream); }
.daystrip div b { display: block; font-size: 16px; }
.daystrip div.open { background: var(--sage); }
.daystrip div.short, .daystrip div.some, .daystrip div.unclear { background: var(--gold); color: var(--green); }
.availline { font-weight: 700; font-size: 17px; margin-top: 10px; }
.availline.all { color: var(--sage); } .availline.partial { color: var(--gold-dark); } .availline.closed { color: var(--berry); }
.xmas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.xmas div { background: var(--beige); border-radius: 8px; padding: 10px 12px; }
.xmas b { display: block; font-family: var(--head-font); font-weight: 800; font-size: 17px; }
.xmas .st { font-weight: 700; font-size: 14px; margin-top: 2px; }
.xmas .st.closed { color: var(--berry); } .xmas .st.open { color: var(--sage); }
.xmas p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.weather { display: flex; align-items: center; gap: 18px; }
.temps { font-family: var(--head-font); font-weight: 900; font-size: 34px; line-height: 1; white-space: nowrap; }
.temps span { color: var(--muted); font-weight: 700; font-size: 24px; }
.temps .deg { font-family: var(--body-font); font-weight: 600; font-size: .7em; vertical-align: .32em; margin-left: 1px; }
.weather p { margin: 0; font-size: 15px; line-height: 1.4; }
.weather p b { font-size: 17px; }
.src { font-size: 15px; font-weight: 600; color: var(--berry); }

/* ---------- map ---------- */
.map-wrap { grid-row: 2; grid-column: 2; position: relative; overflow: hidden; background: #0C2014; }
#map { position: absolute; inset: 0; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 55% 45%, transparent 55%, rgba(4, 12, 6, .45) 100%); z-index: 1; }
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.lab {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-family: var(--body-font); font-weight: 600; font-size: 13px; color: var(--cream);
  text-shadow: 0 0 3px #0C2014, 0 0 3px #0C2014, 0 1px 2px #0C2014;
  will-change: transform;
}
.lab.g { font-family: var(--head-font); font-weight: 700; font-size: 14.5px; }
.lab.dim { color: rgba(255, 253, 248, .5); }
.lab.base {
  font-family: var(--body-font); font-weight: 700; font-size: 13px; text-shadow: none;
  background: var(--accent); color: #fff; padding: 4px 8px 5px; border-radius: 4px; letter-spacing: .2px;
}
.lab.base small { font-weight: 600; opacity: .85; margin-right: 5px; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; }
.lab.sel { color: #fff; font-size: 16px; }
.lab.route {
  background: var(--cream); color: var(--ink); text-shadow: none; padding: 5px 9px 6px; border-radius: 4px;
  font-family: var(--head-font); font-weight: 800; font-size: 15px; border: 2px solid var(--accent);
}
.lab.route span { font-family: var(--body-font); font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 4px; }
.lab.tip { background: var(--cream); color: var(--ink); text-shadow: none; padding: 5px 9px 6px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.lab.tip .s { font-family: var(--head-font); font-weight: 900; color: var(--berry); margin-right: 6px; }
.lab.tip .t { color: var(--muted); margin-left: 6px; font-weight: 600; }
.legend {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: rgba(10, 26, 15, .9); color: var(--cream);
  border: 1px solid rgba(226,181,90,.3); border-radius: 8px;
  padding: 12px 14px 12px; font-size: 14px; max-width: 320px;
}
.legend .lbl { color: var(--gold); margin-bottom: 8px; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend li em { margin-left: auto; color: rgba(255,253,248,.55); font-weight: 600; padding-left: 10px; }
.legend .sw { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.legend .sw.small { width: 7px; height: 7px; margin: 0 2.5px; }
.legend .foot { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,253,248,.14); color: rgba(255,253,248,.7); font-size: 13px; }
.zoom { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: grid; border-radius: 8px; overflow: hidden; border: 1px solid rgba(226,181,90,.3); }
.zoom button { width: 42px; height: 40px; border: 0; background: rgba(10, 26, 15, .9); color: var(--cream); font-size: 22px; font-weight: 600; }
.zoom button + button { border-top: 1px solid rgba(255,253,248,.14); }
.zoom button:hover { background: var(--green-700); }
.attrib { position: absolute; right: 70px; bottom: 6px; z-index: 3; font-size: 11px; color: rgba(255,253,248,.45); }
.attrib a { color: inherit; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-attrib { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 118px; }
  .app { grid-template-columns: 1fr; grid-template-rows: var(--bar-h) 1fr; }
  .bar { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 10px 12px 10px; }
  .bar-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .controls { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
  .ctl > .lbl { display: none; }
  .ctl-base { grid-column: 1 / -1; width: auto; position: static; }
  .ctl-dates { position: static; }
  .ctl-layers { margin-left: 0; position: static; }
  .field { height: 46px; }
  .ctl-dates .btn-field { min-width: 0; width: 100%; height: 44px; font-size: 16px; }
  .btn-layers { height: 44px; padding: 0 12px; }
  .pop { left: 8px; right: 8px; top: calc(100% + 6px); width: auto; }
  .pop-dates { max-height: calc(100vh - var(--bar-h) - 24px); overflow-y: auto; padding: 16px; }
  .months { grid-template-columns: 1fr; gap: 16px; }
  .pop-layers { width: auto; left: 8px; right: 8px; }
  .map-wrap { grid-column: 1; grid-row: 2; }
  .side {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--bar-h);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(4, 14, 7, .45);
    transform: translateY(var(--sheet-y, 60%));
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    z-index: 25;
  }
  .side.dragging { transition: none; }
  .grip { display: block; flex: none; height: 22px; cursor: grab; touch-action: none; position: relative; }
  .grip::before { content: ''; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--beige-2); }
  .list-head { padding: 2px 18px 12px; touch-action: none; }
  .list-head .big { font-size: 25px; }
  .list-head .sub { font-size: 14px; margin-top: 5px; }
  .row { grid-template-columns: 44px 1fr auto; padding: 11px 16px 11px 12px; }
  .row-score b { font-size: 23px; }
  .panel-top { touch-action: none; padding: 4px 12px 8px 8px; }
  .p-head { padding: 18px 18px 16px; }
  .p-head h2 { font-size: 34px; }
  .p-actions, .p-sec { padding-left: 18px; padding-right: 18px; }
  .trip { margin: 16px 18px 0; }
  .legend { left: 8px; top: 8px; bottom: auto; padding: 7px 10px 8px; font-size: 13px; max-width: calc(100% - 16px); }
  .legend .lbl { margin-bottom: 5px; font-size: 10px; }
  .legend ul.row-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .legend .row-legend .sw { width: 10px; height: 10px; }
  .legend .row-legend .sw.small { width: 6px; height: 6px; margin: 0 2px; }
  .legend .foot { display: none; }
  .p-img { display: none; }
  .pop-foot { position: sticky; bottom: -16px; background: var(--cream); margin: 16px -16px -16px; padding: 12px 16px 14px; }
  .zoom { display: none; }
  .attrib { display: none; }
  .vignette { background: radial-gradient(ellipse at 50% 35%, transparent 50%, rgba(4,12,6,.4) 100%); }
}

/* ---------- live additions: themes, tags, similar, crowd ---------- */
.th-h { margin-top: 18px; }
.th-more { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--gold, #E2B55A); text-decoration: none; }
.th-more:hover { text-decoration: underline; }
.themes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.theme { appearance: none; border: 1.5px solid var(--beige-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 14.5px; line-height: 1.2; }
.theme small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.theme:hover { border-color: var(--gold-dark); }
.theme.on { background: var(--green); border-color: var(--green); color: var(--cream); }
.theme.on small { color: var(--gold); }
.p-tags { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.p-tags li { display: grid; gap: 2px; }
.p-tags button { appearance: none; justify-self: start; border: 0; background: var(--beige); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 13.5px; font-weight: 700; }
.p-tags button:hover { background: var(--gold); }
.p-tags span { font-size: 14.5px; color: #4a4a40; line-height: 1.35; }
.p-sim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.p-sim button { appearance: none; text-align: left; border: 1.5px solid var(--beige-2); background: #fff; border-radius: 10px; padding: 9px 10px; }
.p-sim button:hover { border-color: var(--gold-dark); }
.p-sim b { display: block; font-family: var(--head-font); font-size: 17px; line-height: 1.1; }
.p-sim small { color: var(--muted); font-size: 12.5px; }
.btn.wide { display: block; text-align: center; width: 100%; }
.p-crowd b.quiet { color: var(--sage); } .p-crowd b.busy { color: var(--gold-dark); } .p-crowd b.packed { color: var(--berry); }

/* hide the default light tiles until they're recoloured, so the map doesn't flash white */
#map { opacity: 0; transition: opacity .35s ease; }
html[data-ready="1"] #map { opacity: 1; }

/* live trains in the market panel (CW train engine). Sits inside the cream trip card. */
.trip-live { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(26,22,14,.14); }
.trip-live .lbl { color: #24733F; }
.trip-live .lbl::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2FA35A; margin-right: 7px; vertical-align: 1px; }
.live-wait, .live-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: rgba(26,22,14,.62); }
.live-cred { margin: 10px 0 0; font-size: 11px; line-height: 1.45; color: rgba(26,22,14,.5); }
.live-cred a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.live-slow { margin: 8px 0 0; padding: 8px 10px; font-size: 13px; line-height: 1.45; color: #6E1E18; background: rgba(168,48,42,.09); border-left: 3px solid #A8302A; }
.live-sum { margin: 6px 0 8px; font-size: 14px; color: rgba(26,22,14,.75); }
.live-sum b { color: #1A160E; }
.live-list { list-style: none; margin: 0; padding: 0; }
.live-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid rgba(26,22,14,.1); align-items: baseline; }
.live-list b { font-size: 17px; color: #1A160E; font-variant-numeric: tabular-nums; }
.live-list span { font-size: 13px; color: rgba(26,22,14,.72); }
.live-list small { grid-column: 1 / -1; font-size: 12px; color: rgba(26,22,14,.55); }
.live-list sup, .live-back sup { font-size: 10px; color: #A8302A; }
.live-back { margin: 10px 0 0; font-size: 13px; color: rgba(26,22,14,.72); }
.live-back b { color: #1A160E; font-size: 15px; margin-left: 6px; font-variant-numeric: tabular-nums; }
