/* Layout: one-screen transit tool, stop-board sidebar on the left, network map filling the rest; stacks map-over-panel on phones */
:root {
  --bg: #ECEFEE;
  --panel: #FFFFFF;
  --fg: #142120;
  --muted: #5A6967;
  --line: #D3DBD9;
  --soft: #F4F6F5;
  --accent: #C8102E;
  --accent-ink: #FFFFFF;
  --navy: #0B2463;
  --navy-ink: #FFFFFF;
  --map-bg: #E2E8E6;
  --stop-fill: #3D8BFD;
  --stop-stroke: #142120;
  --tiles: none;
  --ui: "Barlow", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
:root[data-theme="dark"] {
  --bg: #0D1312; --panel: #141C1B; --fg: #E4EBE9; --muted: #8FA09D; --line: #26322F; --soft: #18211F;
  --accent: #FF5468; --accent-ink: #1A0508; --navy: #2A55B8; --navy-ink: #FFFFFF; --map-bg: #101817; --stop-fill: #4DA3FF; --stop-stroke: #E4EBE9;
  --tiles: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.6);
  color-scheme: dark;
}

html, body { height: 100%; }
body {
  background: var(--bg); color: var(--fg); font: 400 15px/1.45 var(--ui);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app {
  height: 100%; display: grid; gap: 12px; padding-block: 12px;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head head" "side map" "foot foot";
}
header {
  grid-area: head; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sign {
  width: 40px; height: 40px; flex: none; object-fit: contain;
}
.brand h1 { margin: 0; font: 600 22px/1 var(--ui); letter-spacing: 0; text-wrap: balance; }
.brand .sm { display: none; }
.brand small { display: block; font: 600 11px/1.2 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { font-size: 13px; color: var(--muted); }
.status.err { color: var(--accent); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.btn.primary:hover { opacity: .9; }
.langwrap { position: relative; width: 62px; height: 36px; flex: none; }
.lang { position: absolute; top: 0; right: 0; z-index: 1001; display: inline-flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.lang button { opacity: 1; }
.lang button:not([aria-pressed="true"]) { display: none; }
.lang.open button { display: flex; opacity: .75; }
.lang.open button[aria-pressed="true"] { opacity: 1; }
.lang button[aria-pressed="true"] { order: -1; }
.lang.open button + button { border-top: 1px solid var(--line); }
.lang:not(.open) button[aria-pressed="true"]::after { content: ''; margin-left: 6px; border: 4px solid transparent; border-top-color: var(--muted); border-bottom-width: 0; }
.lang button { display: flex; align-items: center; height: 34px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; opacity: .5; }
.lang button:hover { opacity: .85; }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--soft); }
.lang svg { display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 22%, transparent); }
.theme { text-decoration: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); cursor: pointer; }
.theme:hover { border-color: var(--muted); }
.theme svg { width: 18px; height: 18px; }
.theme .sun, :root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
.btn svg { width: 16px; height: 16px; flex: none; }

.side {
  grid-area: side; min-height: 0; display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.kv dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.demo {
  margin: 0 16px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
}
.demo b { color: var(--accent); }
.search { margin: 0 16px; position: relative; display: block; }
.search input {
  width: 100%; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); padding: 0 12px 0 34px;
}
.search svg { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.panel { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 12px; }

.tabs { margin: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 3px 6px; line-height: 1.1; text-align: center; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.tabs svg { width: 17px; height: 17px; flex: none; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.planform { margin: 0 16px; display: grid; gap: 8px; }
.od { position: relative; display: grid; gap: 6px; padding-right: 44px; }
.field { position: relative; }
.field input { width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); padding: 0 12px 0 38px; }
.field .pin { position: absolute; left: 10px; top: 11px; }
.pin { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 12px/1 var(--display); flex: none; }
.pin.a { background: var(--accent); color: var(--accent-ink); }
.pin.b { background: var(--navy); color: var(--navy-ink); }
.swap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; justify-content: center; }
.sugg { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / .18); padding: 4px; }
.sg { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 9px; border-radius: 6px; cursor: pointer; }
.sg b { display: block; font-weight: 600; font-size: 14px; }
.sg span { display: block; font-size: 12px; color: var(--muted); }
.sg.act, .sg:hover { background: var(--soft); }
.sg.none { color: var(--muted); cursor: default; }
.when { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.when select, .when input { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); padding: 0 8px; font-variant-numeric: tabular-nums; }
.when .primary { flex: 1 0 100%; justify-content: center; }
.when select, .when .btn:not(.primary) { flex: none; }
.when input[type="time"] { flex: 1 1 80px; min-width: 0; }
html[lang="en"] .when select, html[lang="fr"] .when select { flex: 0 1 auto; min-width: 0; padding: 0 4px; }
html[lang="en"] .when .btn:not(.primary), html[lang="fr"] .when .btn:not(.primary) { padding: 0 10px; }
html[lang="en"] .when input[type="time"], html[lang="fr"] .when input[type="time"] { flex: 0 1 104px; width: 104px; padding: 0 4px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.planbtns { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 8px 0; }

.jrn { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; overflow: hidden; }
.jrn.open { border-color: var(--muted); }
.jsum { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t in" "l l"; gap: 6px 10px; text-align: left; padding: 10px 12px; border: 0; background: none; cursor: pointer; }
.jsum:hover { background: var(--soft); }
.jt { grid-area: t; min-width: 0; }
.jt b { display: block; font: 500 17px/1.2 var(--mono); }
.jt span { font-size: 13px; color: var(--muted); }
.nw { white-space: nowrap; }
.jin { grid-area: in; font-size: 13px; color: var(--muted); white-space: nowrap; }
.jin.soon { color: var(--accent); font-weight: 600; }
.jlegs { grid-area: l; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.jlegs i { color: var(--muted); font-style: normal; }
.wk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); color: var(--fg); flex: none; }
.wk svg { width: 16px; height: 16px; }
.legs { list-style: none; margin: 0; padding: 4px 12px 12px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.leg.ride { position: relative; padding: 8px 0 8px 22px; display: grid; gap: 4px; }
.leg.ride::before { content: ""; position: absolute; left: 6px; top: 44px; bottom: 18px; width: 4px; border-radius: 2px; background: var(--c); }
.lh { display: flex; align-items: center; gap: 8px; margin-left: -22px; font-size: 14px; min-width: 0; }
.lh span { min-width: 0; overflow-wrap: anywhere; }
.ls { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ls time { font: 500 14px var(--mono); flex: none; }
.ls span { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.lm { font-size: 12.5px; color: var(--muted); padding-left: 52px; }
.lm summary { cursor: pointer; }
.lm ul { margin: 4px 0 2px -52px; padding: 0; list-style: none; display: grid; gap: 2px; }
.lm li { position: relative; display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.lm li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--c); background: var(--panel); }
.lm li time { font: 500 12.5px var(--mono); width: 42px; flex: none; }
.leg.walk { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
.leg.walk small { color: var(--muted); font-size: 12.5px; }
.leg.wait { font-size: 12.5px; color: var(--muted); padding: 2px 0 2px 36px; }
.sect { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 6px; display: flex; justify-content: space-between; gap: 8px; }

.chip {
  display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 7px; border-radius: 5px;
  background: var(--c); color: var(--ct); font: 700 16px/1 var(--display); letter-spacing: .02em; flex: none;
}
.chip.lg { min-width: 52px; height: 38px; font-size: 24px; border-radius: 7px; }
.row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; min-width: 0;
}
.row:hover { background: var(--soft); }
.row .t { min-width: 0; flex: 1; }
.row .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .n { font: 500 12px var(--mono); color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--stop-stroke); background: var(--stop-fill); flex: none; margin: 0 13px; }

.back { display: inline-flex; align-items: center; gap: 6px; margin: 10px 4px 2px; padding: 6px 8px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 6px; }
.back:hover { color: var(--fg); background: var(--soft); }
.head { display: flex; gap: 12px; align-items: center; padding: 6px 8px 4px; }
.head h2 { margin: 0; font: 700 22px/1.1 var(--display); text-wrap: balance; }
.head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px; }
.chips button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 6px; }

.board { list-style: none; margin: 0; padding: 0 0 0 8px; }
.board li { position: relative; }
.board li::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 4px; background: var(--c); }
.board li:first-child::before { top: 50%; }
.board li:last-child::before { bottom: 50%; }
.board .row { gap: 10px; padding-left: 6px; }
.board .row .dot { margin: 0 6px 0 3px; position: relative; z-index: 1; border-color: var(--c); }
.board li:first-child .dot, .board li:last-child .dot { width: 14px; height: 14px; margin: 0 4px 0 1px; }
.board .row .t b { font-weight: 500; }
.board .xfer { display: flex; gap: 3px; }
.board .xfer .chip { min-width: 24px; height: 18px; font-size: 12px; padding: 0 4px; border-radius: 3px; }

.deps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.deps td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.deps tr:last-child td { border-bottom: 0; }
.deps .tm { font: 500 16px var(--mono); width: 1%; white-space: nowrap; }
.deps .hd { font-weight: 500; overflow-wrap: anywhere; }
.deps .hd small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.deps .in { text-align: right; white-space: nowrap; color: var(--muted); font-size: 13px; width: 1%; }
.deps .in.soon { color: var(--accent); font-weight: 600; }
.clock { font: 500 12px var(--mono); letter-spacing: 0; text-transform: none; }
.empty { padding: 14px 8px; color: var(--muted); font-size: 14px; }
.hint { margin: 10px 8px 0; font-size: 12.5px; color: var(--muted); }

.foot { grid-area: foot; text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.foot p { margin: 0; }
.foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
@media (max-width: 760px) { .foot { display: none; } }
.mapwrap { grid-area: map; position: relative; min-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
#map { position: absolute; inset: 0; background: var(--map-bg); }
.tilenote {
  position: absolute; left: 10px; bottom: 26px; z-index: 1000; max-width: min(340px, calc(100% - 20px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 32px 8px 10px; font-size: 12.5px; color: var(--muted);
}
.tilenote button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.tilenote button:hover { background: var(--soft); color: var(--fg); }
.dropping .mapwrap::after {
  content: "Pusť soubor gtfs.zip"; position: absolute; inset: 0; z-index: 1200; display: grid; place-items: center;
  background: color-mix(in srgb, var(--panel) 80%, transparent); border: 3px dashed var(--accent); border-radius: 12px; font: 700 24px var(--display);
}

/* Leaflet core (inlined) */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; font: 13px var(--ui); -webkit-tap-highlight-color: transparent; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { user-select: none; -webkit-user-drag: none; }
.leaflet-container img.leaflet-tile { max-width: none !important; max-height: none !important; width: auto; padding: 0; }
.leaflet-container .leaflet-overlay-pane svg, .leaflet-container canvas { max-width: none !important; max-height: none !important; }
.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }
.leaflet-container.leaflet-touch-drag, .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { touch-action: none; }
.leaflet-tile { filter: inherit; visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-box { width: 0; height: 0; z-index: 800; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.vec-map { position: absolute; top: 0; left: 0; }
.dim-tiles .leaflet-tile-pane { filter: var(--tiles); }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; } .leaflet-bottom .leaflet-control { margin-bottom: 0; }
.leaflet-left .leaflet-control { margin-left: 10px; } .leaflet-right .leaflet-control { margin-right: 0; }
.leaflet-top.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-control-layers { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); }
.leaflet-control-layers-toggle { display: block; width: 36px; height: 36px; background: var(--fg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 8l10 5 10-5-10-5Z'/%3E%3Cpath d='m2 13 10 5 10-5'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 8l10 5 10-5-10-5Z'/%3E%3Cpath d='m2 13 10 5 10-5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.leaflet-control-layers-list, .leaflet-control-layers-expanded .leaflet-control-layers-toggle, .leaflet-control-layers-separator { display: none; }
.leaflet-control-layers-expanded { padding: 8px 12px 8px 10px; }
.leaflet-control-layers-expanded .leaflet-control-layers-list { display: block; }
.leaflet-control-layers label { display: block; padding: 3px 0; font-size: 13px; cursor: pointer; }
.leaflet-control-layers label > span { display: flex; align-items: center; gap: 6px; }
.leaflet-control-layers input { margin: 0; accent-color: var(--accent); }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab, .leaflet-dragging .leaflet-grab .leaflet-interactive { cursor: grabbing; }
.leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-bar { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.leaflet-bar a { display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; text-decoration: none; color: var(--fg); font: 600 18px/34px var(--ui); }
.leaflet-bar a + a { border-top: 1px solid var(--line); }
.leaflet-bar a:hover { background: var(--soft); }
.leaflet-bar a.leaflet-disabled { color: var(--muted); opacity: .5; cursor: default; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--muted); padding: 2px 8px; font-size: 11px; border-top-left-radius: 6px; }
.leaflet-control-attribution a { color: var(--fg); }
.leaflet-tooltip {
  position: absolute; padding: 4px 8px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px;
  white-space: nowrap; user-select: none; pointer-events: none; font: 500 13px/1.3 var(--ui); box-shadow: 0 2px 8px rgb(0 0 0 / .12);
}
.leaflet-tooltip-top { margin-top: -6px; }

.menuwrap { position: relative; }
.menubtn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); cursor: pointer; }
.menubtn:hover { border-color: var(--muted); }
.menubtn { width: auto; padding: 0 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.menubtn svg { display: none; width: 18px; height: 18px; }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1100; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 80px); overflow-y: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.menu h2 { margin: 0 0 4px; font: 700 15px/1.2 var(--display); letter-spacing: .02em; }
.menu .ds { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.menu h2 + .ds { border-top: 0; padding-top: 0; }
.menu a { color: var(--accent); }
.menu .mi { display: none; }
.menu .mtheme { display: none; }
.menu .mil { display: flex; align-items: center; gap: 10px; }
.menu .mico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.menu .aboutbody p { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.menu .aboutbody p b { color: var(--fg); }
.menu .aboutbody p:last-child { margin: 0; }
.menu .mpane.about { display: none; }

.nodata .tabs, .nodata .planform, .nodata .search, .nodata .panel, .nodata .menuwrap { display: none; }

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 44% minmax(0, 1fr); grid-template-areas: "head" "map" "side"; gap: 10px; }
  header { position: relative; padding-right: 108px; }
  .menuwrap { position: absolute; top: 0; right: 62px; z-index: 1001; }
  .menubtn { width: 34px; height: 34px; padding: 0; }
  .menubtn svg { display: block; }
  .menubtn .ico { display: none; }
  .menubtn .mt { display: none; }
  .menu { position: fixed; top: 64px; right: 12px; left: auto; }
  .theme { display: none; }
  .ticketbtn { display: none; }
  .menu .mi, .menu .mtheme { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: 600 15px var(--ui); text-align: left; text-decoration: none; cursor: pointer; }
  .menu .mpane { display: none; padding: 8px 2px 4px; }
  .menu .mpane.data.open, .menu .mpane.about.open { display: block; }
  .menu .mpane h2 { display: none; }
  .menuwrap.aboutwrap { display: none; }
  .menu .mpane p { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
  .menu .mpane p b { color: var(--fg); }
  .menu .mtoggle::after { content: ''; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 4px; }
  .menu .mtoggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .actions { margin-left: 0; width: 100%; }
  .langwrap { position: static; width: auto; height: auto; }
  .status { order: 3; width: 100%; }
  .status:empty { display: none; }
  header { row-gap: 0; }
  .sign { width: 34px; height: 34px; }
  .brand { gap: 8px; }
  .brand h1 { font-size: 17px; line-height: 1; }
  .brand small { font-size: 9px; line-height: 1.1; margin-top: 3px; }
  .when input[type="time"] { flex: 0 1 92px; width: 92px; }
  html[lang="en"] .when input[type="time"], html[lang="fr"] .when input[type="time"] { flex-basis: 92px; width: 92px; }
  .brand .sd { display: none; }
  .brand .sm { display: inline; }
  .side { overflow: auto; }
  .panel { flex: none; overflow: visible; }
  .tilenote { bottom: 22px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .leaflet-zoom-anim .leaflet-zoom-animated { transition: none; } }

.boot { position: fixed; inset: 0; z-index: 5000; display: flex; justify-content: center; background: linear-gradient(#4DA9FF, #CBE8FF); transition: opacity .35s; }
.boot.done { opacity: 0; pointer-events: none; }
.boot > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot .bookico { display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.12em; }
.boot p { position: relative; margin: 0; padding: 0 24px; align-self: center; margin-top: -12vh; text-align: center; color: #fff; font: 700 clamp(22px, 5vw, 34px)/1.2 var(--display); letter-spacing: .02em; text-shadow: 0 2px 10px rgb(6 40 100 / .45); }
.boot:not(.fail) p { animation: bootpulse 1.4s ease-in-out infinite; }
@keyframes bootpulse { 50% { opacity: .55; } }
.gplay { margin: 16px 8px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.gplay p { margin: 0 0 4px; }
.gplay .promo { display: block; width: 60%; max-width: 200px; height: auto; margin: 14px auto 4px; border-radius: 12px; }
.gprow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.gpbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 6px; background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none; }
.gpbtn svg { width: 15px; height: 17px; flex: none; }
.gpbtn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.gpbtn small { font-size: 7px; font-weight: 500; letter-spacing: .04em; }
.gpbtn b { font-size: 13px; font-weight: 600; }
.gpbtn:hover { filter: brightness(1.2); }
@media (min-width: 761px) {
  .ticketbtn .ico, .menubtn .ico { display: block; width: 16px; height: 16px; flex: none; opacity: .85; }
  .ticketbtn, .menubtn { gap: 7px; }
  .ticketbtn:hover .ico, .menubtn:hover .ico, .menubtn[aria-expanded="true"] .ico { color: var(--accent); opacity: 1; }
  .ticketbtn, .menubtn { position: relative; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .01em; transition: background .15s, color .15s; }
  .ticketbtn:hover, .menubtn:hover { background: var(--soft); color: var(--fg); border-color: transparent; }
  .ticketbtn:focus-visible, .menubtn:focus-visible { outline-offset: -2px; }
  .menubtn[aria-expanded="true"] { background: var(--soft); color: var(--fg); }
  .ticketbtn::after, .menubtn::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .18s; }
  .ticketbtn:hover::after, .menubtn:hover::after, .menubtn[aria-expanded="true"]::after { transform: scaleX(1); }
  .actions { gap: 4px; }
  .actions .theme { margin-left: 8px; }
  .actions .lang { margin-left: 4px; }
  .sign { width: 36px; height: 36px; }
  .brand { gap: 9px; }
  .brand h1 { font: 600 19px/1 var(--ui); letter-spacing: 0; }
  .brand small { font: 500 9.5px/1.1 var(--display); letter-spacing: .1em; margin-top: 3px; }
}
.adslot { flex: none; min-height: 50px; margin: 0 16px 10px; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgb(0 0 0 / .12); font-size: 13px; line-height: 1.4; }
.consent p { margin: 0; max-width: 640px; }
.consent .cb { display: flex; gap: 8px; }
