/* Map and live-object marker styles, carried over unchanged from the v1.5 stylesheets.
   Generated by scripts/extract_map_css.py; application chrome lives in app.css. */
#live-object-map{position:absolute;inset:0;z-index:450;pointer-events:none;background:transparent}
#live-object-map .maplibregl-canvas{outline:0}
.maplibre-live-ready .leaflet-marker-icon.live-object-proxy{opacity:0!important}
@media(prefers-reduced-motion:reduce){#live-object-map{display:none}.maplibre-live-ready .leaflet-marker-icon.live-object-proxy{opacity:1!important}}
.leaflet-control-attribution{font-size: 9px !important; background: rgba(9,16,24,.75) !important; color: #a3b1bd !important;}
.leaflet-control-attribution a{color: #b7d6ff !important;}
.dot{width: 7px; height: 7px; border-radius: 50%; display: inline-block;}
.dot.gps{background: var(--accent);}
.dot.report{background: var(--rail);}
.dot.estimate{background: var(--warning);}
.marker-wrap{background: transparent; border: 0;}
.marker-bubble{width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #e8f1f8; box-shadow: 0 2px 9px rgba(0,0,0,.42); font-size: 15px; transition: transform .12s ease;}
.marker-bubble:hover{transform: scale(1.13);}
.marker-train{background: var(--rail);}
.marker-bus{background: var(--bus);}
.marker-vessel{background: var(--vessel);}
.marker-sar{background: var(--sar);}
.marker-rescue{background: var(--rescue);}
.marker-incident{background: var(--incident);}
.marker-road{background: var(--road);}
.marker-roadfeature{background: #266f85;}
.marker-other{background: #8394a4;}
.uk-speed-roundel{width:68px;height:68px;border:7px solid #d71920;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font:900 28px/1 Arial,sans-serif;margin:10px 0;box-shadow:0 2px 10px rgba(0,0,0,.28)}
.marker-network_report{outline: 3px solid rgba(110,168,255,.25);}
.marker-gps{outline: 3px solid rgba(86,214,164,.25);}
.marker-estimated,.marker-demo{outline: 3px solid rgba(244,201,107,.22);}
.marker-flood{background: #4ca9df;}
.marker-weather{background: #9b7de8;}
.marker-event{border-radius: 9px;}
.search-location-marker{width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); box-shadow: 0 0 0 5px rgba(86,214,164,.2);}
.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:rgba(86,214,164,.22);}
.marker-cluster-small div,.marker-cluster-medium div,.marker-cluster-large div{background:#172b2a; color:#dff8ef; border:1px solid rgba(86,214,164,.4);}
#map[data-map-mode="standard"] .leaflet-tile-pane{filter:none;}
.traffic-swatch{width:18px; height:4px; border-radius:999px; display:inline-block;}
.traffic-swatch.free{background:#36c98f;}
.traffic-swatch.building{background:#e7c94e;}
.traffic-swatch.heavy{background:#ee8b3a;}
.traffic-swatch.severe{background:#e34f4f;}
.marker-aircraft{background:#7fc8ff;}
.marker-earthquake{background:#e57a5c;}
.marker-river{background:#3f9ed8;}
.marker-tide{background:#2f7fbe;}
.marker-wave{background:#2ea5b7;}
.marker-grid{background:#e3b74e;}
.marker-airquality{background:#82b573;}
.marker-bike{background:#66c98c;}
.marker-space{background:#865fc7;}
.marker-satellite{background:#d9dce5; color:#121821;}
.marker-outage{background:#e28d45;}
.marker-gritter{background:#a8d9ee; color:#10232f;}
.marker-camera{background:#8898a6;}
.place-marker-wrap{background:transparent; border:0;}
.place-marker{width:27px; height:27px; display:grid; place-items:center; border:2px solid rgba(255,255,255,.72); border-radius:8px; background:#13202c; box-shadow:0 4px 12px rgba(0,0,0,.35); font-size:15px;}
.left-details > summary::-webkit-details-marker{display:none;}
.marker-wrap{overflow:visible !important;}
.motion-shell{position:relative; width:42px; height:42px; margin:-5px 0 0 -5px;}
.motion-shell .marker-bubble{position:absolute; left:5px; top:5px;}
.train-marker-shell{margin:0}
.train-coincident-wrap{z-index:620!important}
.train-coincident-wrap .train-marker-shell{overflow:visible}
.train-coincident-stem{position:absolute;z-index:0;left:20.5px;top:20.5px;height:2px;transform-origin:0 50%;border-radius:999px;background:rgba(21,38,51,.78);box-shadow:0 0 0 1px rgba(255,255,255,.72);pointer-events:none}
.train-coincident-origin{position:absolute;z-index:2;left:17.5px;top:17.5px;width:6px;height:6px;border:1px solid #f7fbff;border-radius:50%;background:#142838;box-shadow:0 1px 4px rgba(0,0,0,.65);pointer-events:none}
.train-coincident-index{position:absolute;z-index:3;right:-6px;top:-6px;display:grid;min-width:14px;height:14px;padding:0 2px;place-items:center;border:1px solid rgba(255,255,255,.88);border-radius:999px;background:#0b1721;color:#fff;font:900 7px/1 system-ui,sans-serif;box-shadow:0 2px 5px rgba(0,0,0,.55);pointer-events:none}
.train-service-tag{position:absolute;left:20px;top:39px;z-index:4;transform:translateX(-50%);padding:1px 5px;border:1px solid rgba(17,24,39,.2);border-radius:6px;background:#fff;color:#111827;box-shadow:0 1px 3px rgba(0,0,0,.2);font:800 9px/14px system-ui,sans-serif;white-space:nowrap;pointer-events:none}
.train-coincident-wrap .train-destination-tag{display:none!important}
.motion-pointer{position:absolute; inset:0; transform-origin:50% 50%; pointer-events:none;}
.motion-pointer::before{content:''; position:absolute; left:18px; top:-4px; width:6px; height:9px; background:#f6fbff; clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%); filter:drop-shadow(0 1px 2px rgba(0,0,0,.9)); opacity:.92;}
.motion-speed{position:absolute; left:50%; top:36px; transform:translateX(-50%); min-width:25px; padding:1px 4px; border-radius:6px; border:1px solid rgba(255,255,255,.16); background:rgba(7,13,19,.9); color:#f2f7fa; font-size:7px; font-weight:800; text-align:center; white-space:nowrap; box-shadow:0 2px 4px rgba(0,0,0,.2);}
/* Moving markers are re-placed every animation frame (app.js animateLiveMarkers): no CSS slide. */
.leaflet-marker-icon.marker-wrap-bus{transition:none!important}
.leaflet-marker-icon.marker-wrap-train{transition:none!important}
.leaflet-marker-icon.aerial-marker-wrap{transition:none!important}
.map-zooming-fast .leaflet-marker-icon{transition:transform .25s cubic-bezier(0,0,.25,1)!important}
@media(prefers-reduced-motion:reduce){.leaflet-marker-icon.marker-wrap-train{transition:none!important}.train-coincident-stem{transition:none!important}}
.motion-pointer{inset:auto!important;left:18px!important;top:-11px!important;width:6px!important;height:22px!important;transform-origin:3px 32px!important;border-radius:999px;background:linear-gradient(to top,rgba(246,251,255,.05),rgba(246,251,255,.72));opacity:.72}
.motion-pointer::before{display:none!important}
.motion-speed{top:35px;font-size:7px;background:rgba(7,13,19,.82)}
.cool-map-marker{min-width:49px;height:43px;padding:4px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1.5px solid rgba(255,255,255,.7);border-radius:12px;background:#172532;color:white;box-shadow:0 5px 17px rgba(0,0,0,.4),0 0 0 3px rgba(255,255,255,.04)}
.cool-map-marker>span{font-size:17px;line-height:1}
.cool-map-marker>small{margin-top:3px;font-size:6px;font-weight:950;letter-spacing:.05em;white-space:nowrap}
.cool-map-marker.cool-air{background:linear-gradient(145deg,#1d4d71,#162b3e)}
.cool-map-marker.cool-rescue{background:linear-gradient(145deg,#923e37,#4e2927)}
.cool-map-marker.cool-steam{background:linear-gradient(145deg,#60431e,#2c241a);color:#ffe0a1}
.cool-map-marker.cool-rail{background:linear-gradient(145deg,#50366f,#2d2740)}
.cool-map-marker.cool-freight{background:linear-gradient(145deg,#684622,#33291c)}
.cool-map-marker.cool-naval{background:linear-gradient(145deg,#234e72,#1c2d3c)}
.cool-map-marker.cool-sea{background:linear-gradient(145deg,#27606a,#1c3439)}
.aerial-marker-wrap,.camera-marker-wrap{overflow:visible!important;background:transparent;border:0}
.camera-map-marker{width:32px;height:32px;display:grid;place-items:center;border:2px solid rgba(255,255,255,.78);border-radius:9px;background:#243f54;box-shadow:0 5px 15px rgba(0,0,0,.4);font-size:17px}
.camera-map-marker.unavailable{filter:grayscale(.8);opacity:.65}
.aircraft-known small{display:block;margin-top:5px;color:var(--muted);font-size:7.5px}
body[data-experience="cool"] .marker-cluster-small,body[data-experience="cool"] .marker-cluster-medium,body[data-experience="cool"] .marker-cluster-large{background:rgba(255,164,69,.18)}
body[data-experience="cool"] .marker-cluster div{background:rgba(215,125,47,.72);color:white}
.marker-bubble{border-radius:11px;border-width:1.5px;box-shadow:0 4px 13px rgba(0,0,0,.38),0 0 0 3px rgba(255,255,255,.06)}
.marker-bubble>span{display:block;line-height:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.45))}
.marker-train{border-radius:9px 9px 5px 5px}
.marker-bus{border-radius:8px}
.marker-vessel{border-radius:50% 50% 45% 45%}
.marker-incident{transform:rotate(45deg);border-radius:7px}
.marker-incident>span{transform:rotate(-45deg)}
.marker-road{border-radius:7px}
.marker-flood,.marker-weather{border-radius:50%}
@media(max-width:560px){.leaflet-top.leaflet-right{top:4px;right:4px}}
.journey-route-line{filter:drop-shadow(0 1px 2px rgba(0,0,0,.65))}
.motorway-sign-card>small{display:block;margin-bottom:6px;color:#e7ecee;font-size:7px;font-weight:950;letter-spacing:.13em}
.vms-display{display:grid;gap:2px;min-height:72px;align-content:center;padding:10px;border:3px solid #171b1d;border-radius:4px;background:#050606;box-shadow:inset 0 0 15px rgba(0,0,0,.9);text-align:center}
.vms-display span{color:#ffcf35;font-family:"Consolas","Lucida Console",monospace;font-size:15px;font-weight:850;letter-spacing:.08em;line-height:1.15;text-shadow:0 0 6px rgba(255,180,25,.5)}
.motorway-sign-card>em{display:block;margin-top:6px;color:#eef3f4;font-size:8px;font-style:normal;text-align:center}
@media(max-width:560px){.leaflet-top.leaflet-left{left:auto;right:8px}.leaflet-top.leaflet-left .leaflet-control{margin-left:0;margin-right:0}}
.train-published-route-outline,.train-published-route-guide,.train-live-leg-guide,.train-live-leg-progress{stroke-linecap: round; stroke-linejoin: round;}
.train-published-route-guide{filter: drop-shadow(0 0 5px rgba(84, 215, 240, .94));}
.train-live-leg-guide{filter: drop-shadow(0 0 4px rgba(86, 214, 239, .92));}
.train-live-leg-progress{filter: drop-shadow(0 0 5px rgba(255, 211, 78, .96));}
.train-route-arrow{background: transparent; border: 0;}
.train-route-arrow span{display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #f7fbff;
  border-radius: 50%;
  background: #ffd34e;
  color: #07131b;
  box-shadow: 0 0 0 2px rgba(7, 19, 27, .86), 0 2px 8px rgba(0, 0, 0, .46);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  transform-origin: 50% 50%;}
@media (prefers-reduced-motion: reduce){.train-live-leg-progress,.train-route-arrow span{transition: none!important;}}
.journey-route-line{filter: drop-shadow(0 0 3px #041018);}
.train-full-route{max-height: 360px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin;}
/* Only moving things glide (rules above); places, incidents and roadworks stay put. */
.leaflet-marker-icon.no-glide{transition:none!important}

/* ---- Aircraft and helicopters: one flat set ----
   A white disc with a top-down silhouette in the aircraft's colour, turned to
   its heading, and the callsign in a small pill underneath. */
.aerial-motion-shell{position:relative;width:40px;height:40px}
.aerial-map-marker{--ac:#0b63ce;position:relative;width:40px;height:40px;display:grid;place-items:center}
.aerial-map-marker.ac-propeller{--ac:#0f8a7a}
.aerial-map-marker.ac-fastjet{--ac:#b26a00}
.aerial-map-marker.ac-heavy{--ac:#6d4fd8}
.aerial-map-marker.ac-helicopter,.aerial-map-marker.aerial-sar{--ac:#d64545}
.aerial-map-marker.ac-chinook,.aerial-map-marker.ac-apache{--ac:#4f6b1f}
.aircraft-silhouette{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;border:2px solid var(--ac);box-shadow:0 1px 4px rgba(16,24,40,.3);color:var(--ac);transform-origin:50% 50%}
.aircraft-silhouette svg{width:24px;height:24px;overflow:visible}
.aircraft-silhouette .ac-body{fill:currentColor}
.aircraft-silhouette .ac-rotor{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;opacity:.7}
.aircraft-silhouette .ac-disc{fill:currentColor;opacity:.08;stroke:currentColor;stroke-width:.8;stroke-opacity:.5}
.aerial-map-marker>small{position:absolute;left:50%;top:36px;transform:translateX(-50%);max-width:110px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;padding:1px 6px;border-radius:999px;background:#fff;color:#1f2937;border:1px solid #e4e7ec;box-shadow:0 1px 3px rgba(16,24,40,.18);font-size:10px;font-weight:700;letter-spacing:0;line-height:15px;white-space:nowrap}
.aerial-map-marker>em{position:absolute;right:-6px;top:-4px;padding:1px 5px;border-radius:999px;background:#f0b45d;color:#1c1409;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}
/* Bus route number under the icon; destination from street level (z14). */
.bus-route-tag{position:absolute; left:50%; top:37px; transform:translateX(-50%); padding:1px 6px; border-radius:7px; background:#fff; color:#111827; border:1px solid rgba(17,24,39,.18); box-shadow:0 1px 3px rgba(0,0,0,.18); font-size:11px; font-weight:800; line-height:15px; white-space:nowrap; pointer-events:none; z-index:2;}
.bus-route-tag .bus-destination{display:none; font-weight:600; color:#4b5563;}
.bus-route-tag{max-width:132px; overflow:hidden; text-overflow:ellipsis;}
.show-bus-destinations .bus-route-tag .bus-destination{display:inline;}

/* Train destination appears only once the map is close enough to remain
   readable. The full destination remains in the title when text is clipped. */
.train-destination-tag{display:none;position:absolute;left:50%;top:38px;transform:translateX(-50%);max-width:148px;overflow:hidden;text-overflow:ellipsis;padding:1px 7px;border:1px solid rgba(17,24,39,.18);border-radius:7px;background:#fff;color:#111827;box-shadow:0 1px 3px rgba(0,0,0,.18);font-size:10px;font-weight:750;line-height:15px;white-space:nowrap;pointer-events:none;z-index:2}
.train-destination-tag small{color:#667085;font-size:8px;font-weight:650}
.show-train-destinations .train-destination-tag{display:block}

/* Bus stops: a small white dot with a green ring and a bus, on the stop. */
.place-marker.place-bus_stop{width:28px; height:28px; border:0; border-radius:50%; background:transparent; box-shadow:none;}
.bus-stop-dot{width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:#fff; border:2px solid var(--bus,#0b7a5a); color:var(--bus,#0b7a5a); box-shadow:0 1px 4px rgba(0,0,0,.28);}
.bus-stop-dot svg{width:12px; height:12px;}
.place-marker.place-bus_stop:hover .bus-stop-dot,.place-marker.place-bus_stop:focus-visible .bus-stop-dot{transform:scale(1.15);}

/* Airports (with the Aircraft layer): a small code tag, tap for the airport page. */
.airport-marker-wrap{background:transparent;border:0;}
.airport-marker{display:grid;place-items:center;height:22px;padding:0 6px;border-radius:6px;background:#1d2f5e;color:#fff;font:800 11px/1 system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 1px 4px rgba(0,0,0,.3);border:1.5px solid #fff;}

/* Freight: a wagon on a rust-orange square badge, whatever the operator. */
.marker-train.marker-freight{background:#b4531a;border-radius:5px;border-color:#ffe2c7}
.marker-train.marker-freight>span .ico{stroke:#fff}

/* Coaches (National Express): a coach on its teal, a little wider than a bus. */
.marker-bus.marker-coach{background:#007e8a;border-color:#d9f4f1;width:36px;border-radius:7px}
.marker-bus.marker-coach>span .ico{stroke:#fff}

/* A group of stations (zoomed out): small, white, clearly not a train. */
.station-cluster{display:grid!important;place-items:center;background:none;border:0}
.station-cluster span{display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border-radius:50%;background:#fff;border:2px solid #2b3a46;box-shadow:0 1px 4px rgba(0,0,0,.25);font:700 11px/1 system-ui,sans-serif;color:#2b3a46}
.aerial-cluster{display:grid!important;place-items:center;background:none;border:0}
.aerial-cluster span{display:grid;place-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:50%;background:#14283a;border:2px solid #9fd7ff;box-shadow:0 2px 8px rgba(0,0,0,.3);font:700 12px/1 system-ui,sans-serif;color:#fff}

/* Aircraft: a larger silhouette with an ATC-style data block beneath it -
   callsign and type, then flight level, climb/descent and speed (from
   regional zoom). Faded when the plane has not reported for 90 seconds. */
.aerial-motion-shell{width:44px;height:44px}
.aerial-map-marker{width:44px;height:44px}
.aircraft-silhouette{width:38px;height:38px}
.aircraft-silhouette svg{width:30px;height:30px}
.aerial-map-marker .ac-block{position:absolute;left:50%;top:41px;transform:translateX(-50%);display:grid;grid-template-columns:auto auto;column-gap:5px;align-items:baseline;justify-content:center;padding:2px 6px 3px;border-radius:7px;background:rgba(255,255,255,.95);border:1px solid #d0d5dd;box-shadow:0 1px 3px rgba(16,24,40,.22);color:#101828;font:700 11px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;pointer-events:none}
.aerial-map-marker .ac-callsign{font-weight:800;letter-spacing:.02em}
.aerial-map-marker .ac-type{font-style:normal;font-weight:600;font-size:10px;color:#475467}
.aerial-map-marker .ac-data{display:none;grid-column:1/-1;justify-self:center;font-size:10.5px;font-weight:700;color:var(--ac);font-variant-numeric:tabular-nums}
.show-aircraft-data .aerial-map-marker .ac-data:not(:empty){display:block}
.aerial-map-marker.is-stale{opacity:.45}
.aerial-map-marker.is-stale .ac-data::after{content:" · old";color:#667085;font-weight:600}
