/* Style :root. */
:root{color-scheme:dark;--ink:#e9f4f5;--muted:#b4c8cd;--line:#31515a;--base:#081c24;--panel:#102a34;--orange:#ffbe76;--cyan:#75e9fb;font:16px/1.45 system-ui,sans-serif}
/* Style *. */
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#193c46,var(--base) 58%);color:var(--ink)}
/* Style header,main,footer. */
header,main,footer{max-width:1440px;margin:auto}header{padding:22px 28px;display:flex;justify-content:space-between;gap:14px;align-items:center}
/* Style h1,h2,p. */
h1,h2,p{margin:0}h1{font-size:clamp(1.23rem,3vw,2.15rem);line-height:1.12;letter-spacing:-.035em}h2{font-size:1.23rem;letter-spacing:-.02em}
/* Style main. */
main{padding:0 28px;display:grid;grid-template-columns:minmax(0,2.4fr) minmax(305px,1fr);gap:16px;align-items:start}
/* Style .map-panel,.card. */
.map-panel,.card{border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden}.toolbar,.map-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 14px}.toolbar label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#map{height:clamp(420px,66vh,760px);background:#91acaa;color:#111}.map-footer{font-size:.87rem}.legend{white-space:nowrap;color:var(--muted)}.legend b:first-child{color:var(--cyan)}.legend b:last-child{color:var(--orange)}.notice{padding:0 14px 12px;color:var(--muted)}
/* Style aside. */
aside{display:grid;gap:16px}.card{padding:18px;display:grid;gap:11px}.card p,.small,footer{color:var(--muted)}.small{font-size:.81rem}footer{padding:18px 28px 24px;font-size:.82rem;display:grid;gap:6px}
/* Style a. */
a{color:var(--cyan);text-underline-offset:3px}button,select,input{font:inherit;border:1px solid var(--line);border-radius:9px;padding:8px 10px;min-height:42px}button{cursor:pointer;color:#102028;background:var(--orange);font-weight:700}button[aria-pressed=true]{background:var(--cyan)}select,input{background:var(--base);color:var(--ink);min-width:0}label{font-size:.86rem;font-weight:650}form{display:grid;gap:6px}.row{display:flex;gap:7px}.row input,details input{width:100%}details>*:not(summary){margin-top:6px}details label{display:block}summary{cursor:pointer;color:var(--cyan);padding:4px 0}#results:empty,#stories:empty{display:none}.result{display:block;width:100%;margin-top:6px;text-align:left;background:#193a45;color:var(--ink)}.result:hover{border-color:var(--cyan)}#stories{display:grid;gap:9px}#stories ul{margin:0;padding-left:20px}#stories li{margin:5px 0}#stories small{display:block;color:var(--muted)}
/* Style .skip. */
.skip{position:absolute;left:8px;top:-80px;z-index:2000;background:var(--base);padding:10px}.skip:focus{top:8px}:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
/* Style .bus. */
.bus{position:relative;display:block;flex:none;width:34px;height:29px;border-radius:8px 8px 6px 6px;background:#ffae59;border:2px solid #30251d;box-shadow:0 3px 5px #0006}.bus:before{content:'';position:absolute;left:4px;right:4px;top:4px;height:10px;background:#163b4c;border-radius:4px;background-image:radial-gradient(circle at 28% 55%,white 0 1.8px,transparent 2px),radial-gradient(circle at 72% 55%,white 0 1.8px,transparent 2px)}.bus:after{content:'';position:absolute;top:15px;left:10px;width:10px;height:4px;border-bottom:2px solid #382615;border-radius:0 0 50% 50%}.bus i{position:absolute;bottom:-4px;left:3px;width:5px;height:5px;border-radius:2px;background:#222;box-shadow:18px 0 #222}.bus-icon{background:none;border:none}.bus{animation:bob 1.4s ease-in-out infinite}.bus-icon:focus-visible{outline-color:#162e36}.bus-label{position:absolute;top:24px;left:17px;transform:translateX(-50%);color:white;background:#102a34;padding:1px 4px;border-radius:4px;font:700 10px system-ui;white-space:nowrap}.bus-selected .bus{outline:3px solid #0b6f9b}.leaflet-container .leaflet-control-attribution a{color:#174c79}@keyframes bob{50%{transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){.bus{animation:none}}
/* Apply these styles only when the media condition matches. */
@media(max-width:760px){main{padding:0 12px;grid-template-columns:1fr}header{padding:17px 12px}footer{padding:15px 12px}#map{height:47vh;min-height:310px}.toolbar{flex-wrap:wrap}.toolbar select{max-width:210px}}

/* Cartoon mascot used for real buses and the simulated ride. */
/* Style .bus. */
.bus{width:46px;height:35px;border:2.5px solid #202336;background:#ffb34e;border-radius:14px 14px 10px 10px;box-shadow:0 3px 0 #25263a44;animation:cartoon-bounce 1.65s ease-in-out infinite}
/* Style .bus:before. */
.bus:before{left:5px;right:5px;top:4px;height:13px;border:1px solid #21354e;background:#94e4ff;border-radius:8px;background-image:radial-gradient(circle at 32% 60%,#22283e 0 2px,white 2.2px 4px,transparent 4.3px),radial-gradient(circle at 70% 60%,#22283e 0 2px,white 2.2px 4px,transparent 4.3px)}
/* Style .bus:after. */
.bus:after{top:20px;left:14px;width:14px;height:7px;background:#47263b;border:1px solid #221b2d;border-radius:2px 2px 10px 10px;box-shadow:inset 0 -2px #f8898d}
/* Style .bus em. */
.bus em{position:absolute;left:4px;top:21px;width:6px;height:4px;background:#fff2b1;border-radius:50%;box-shadow:28px 0 #fff2b1}
/* Style .bus i. */
.bus i{bottom:-5px;left:5px;width:7px;height:7px;background:#262335;box-shadow:25px 0 #262335}
/* Style .bus-label. */
.bus-label{top:34px;left:23px}.leaflet-popup-content a,#stories div>a{display:block}.leaflet-popup-content strong{display:block;margin-top:6px}
/* Define the cartoon vehicle animation. */
@keyframes cartoon-bounce{35%{transform:translateY(-3px) rotate(-4deg)}65%{transform:translateY(-1px) rotate(3deg)}}
/* Apply these styles only when the media condition matches. */
@media(prefers-reduced-motion:reduce){.bus{animation:none}}
/* Style :root. */
:root{font-size:18px}
/* Style :root[data-text-size="larger"]. */
:root[data-text-size="larger"]{font-size:20px}
/* Style :root[data-text-size="largest"]. */
:root[data-text-size="largest"]{font-size:23px}
/* Style body. */
body{text-align:center;font-weight:700;color:#fff}
/* Style header. */
header{display:grid;justify-items:center;justify-content:center}
/* Style .shield. */
.shield{object-fit:contain;max-width:100%;display:block}
/* Style .reading,.toolbar,.map-footer,.row. */
.reading,.toolbar,.map-footer,.row{justify-content:center;flex-wrap:wrap}
/* Style .reading. */
.reading{display:flex;align-items:center;gap:.45rem}
/* Style .row input. */
.row input{flex:1 1 140px;width:auto}
/* Style .card p,.small,footer,.legend,.notice,a,button,select,input,summary,.card a,.result. */
.card p,.small,footer,.legend,.notice,a,button,select,input,summary,.card a,.result{color:#fff;font-weight:700;text-align:center}
/* Style button. */
button{background:#79400b}
/* Style button[aria-pressed=true]. */
button[aria-pressed=true]{background:#155365}
/* Style input::placeholder. */
input::placeholder{color:#f0f0f0;opacity:1}
#stories ul{padding:0;list-style:none}
/* Style .leaflet-popup-content-wrapper,.leaflet-popup-tip. */
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#102a34;color:#fff}
/* Style .leaflet-popup-content,.leaflet-popup-content a. */
.leaflet-popup-content,.leaflet-popup-content a{color:#fff;font-size:.88rem;font-weight:700;text-align:center}
/* Style .leaflet-container a.leaflet-popup-close-button. */
.leaflet-container a.leaflet-popup-close-button{color:#fff}
/* Style [data-display="contrast"] body,[data-display="contrast"] .card,[data-display="contrast"] .map-panel,[data-display="contrast"] .leaflet-popup-content-wrapper,[data-display="contrast"] .leaflet-popup-tip. */
[data-display="contrast"] body,[data-display="contrast"] .card,[data-display="contrast"] .map-panel,[data-display="contrast"] .leaflet-popup-content-wrapper,[data-display="contrast"] .leaflet-popup-tip{background:#000}
/* Style [data-display="contrast"] .card,[data-display="contrast"] .map-panel,[data-display="contrast"] input,[data-display="contrast"] select,[data-display="contrast"] button. */
[data-display="contrast"] .card,[data-display="contrast"] .map-panel,[data-display="contrast"] input,[data-display="contrast"] select,[data-display="contrast"] button{border-color:#fff}
/* Style [data-display="contrast"] button. */
[data-display="contrast"] button{background:#262626}
/* Style [data-display="contrast"] button[aria-pressed=true]. */
[data-display="contrast"] button[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}
/* Style .privacy. */
.privacy{display:block;max-width:800px;margin:0 auto;padding:20px}
/* Style .privacy p,.privacy h2. */
.privacy p,.privacy h2{margin:1rem 0}
/* Style [hidden]. */
[hidden]{display:none!important}
/* Style :root. */
:root{font-weight:700}

/* Put the map on a tropical postcard without changing its underlying geography. */
:root{--base:#0a0908;--panel:#171410;--line:#624427;--orange:#ffc082}
body{background:#0a0908}
header h1,header p:first-of-type,.card h2,.dashboard h2{color:var(--orange)}
#ride{background:#ffab57;color:#1a1108;min-width:8rem;font-size:1.15rem}
#ride[aria-pressed=true]{background:#a9e985}
.map-scene{position:relative}
.tropical-tiles{filter:saturate(1.46) contrast(1.07) sepia(.16) hue-rotate(11deg)}
.map-scene #map{background:#94ca99}
.coast{position:absolute;z-index:450;bottom:1.25rem;left:.4rem;pointer-events:none;display:flex;align-items:end;gap:.12rem;padding:.2rem .5rem;border-radius:2rem;background:linear-gradient(#80d5b6,#f8dda4);border:2px solid #264735;box-shadow:0 3px #21452970}
.coast span{font-size:1.2rem;filter:drop-shadow(1px 2px 1px #234c45)}
[data-display="contrast"] .tropical-tiles{filter:none}
.dashboard{display:block;max-width:1050px;margin:auto;padding:20px}
.dashboard section{margin:1rem auto;text-align:center}
.dashboard table{width:100%;border-collapse:collapse;background:#171410}
.dashboard th,.dashboard td{padding:.7rem .35rem;border:1px solid #624427;overflow-wrap:anywhere}

/* A light-hearted parade of buses lives behind the app, never over controls. */
body{position:relative;isolation:isolate;overflow-x:hidden}
header,main,footer{position:relative;z-index:1}
.bus-rain{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;opacity:.22}
.falling-bus{position:absolute;top:-80px;display:block;width:48px;height:42px;filter:drop-shadow(0 8px 5px #0007);animation:bus-fall 17s linear infinite}
.falling-bus .bus{transform:rotate(90deg) scale(.78)}
.bus-rain-one{left:7%;animation-duration:19s;animation-delay:-12s}
.bus-rain-two{left:28%;animation-duration:24s;animation-delay:-4s}
.bus-rain-three{left:54%;animation-duration:20s;animation-delay:-16s}
.bus-rain-four{left:76%;animation-duration:26s;animation-delay:-8s}
.bus-rain-five{left:93%;animation-duration:22s;animation-delay:-19s}
@keyframes bus-fall{0%{transform:translate3d(0,-12vh,0) rotate(-5deg)}45%{transform:translate3d(22px,52vh,0) rotate(5deg)}100%{transform:translate3d(-18px,118vh,0) rotate(-4deg)}}

/* Make the live map feel like a bright, chunky cartoon board. */
.map-panel{border:3px solid #ffd17c;border-radius:25px;box-shadow:0 7px 0 #6b431e,0 18px 34px #0008;overflow:visible}
.map-scene{margin:0 8px 8px;border:5px solid #f4cb83;border-radius:18px;background:#95d58c;box-shadow:inset 0 0 0 3px #fff8,0 5px 0 #70431d;overflow:hidden;transform:perspective(1100px) rotateX(1deg);transform-origin:center bottom}
.map-scene #map{border-radius:12px;overflow:hidden;background:#9fdb92}
.tropical-tiles{filter:saturate(1.78) contrast(1.08) sepia(.09) hue-rotate(8deg)}
.map-scene:after{content:"";position:absolute;inset:0;z-index:400;pointer-events:none;border-radius:12px;background:linear-gradient(145deg,#fff2 0%,transparent 22%,transparent 74%,#4b762116 100%);box-shadow:inset 0 0 18px #34582a4a}
.map-footer{gap:9px}
.map-footer:first-of-type{font-weight:800}
#ride{min-width:11.5rem;min-height:54px;padding:10px 18px;border:3px solid #fff0c7;border-radius:18px;background:linear-gradient(180deg,#ffe29d,#ffad55);box-shadow:0 5px 0 #754516,0 8px 12px #0005;font-size:1.05rem;text-shadow:0 1px #fff7;transition:transform .15s,box-shadow .15s}
#ride:hover{transform:translateY(-2px);box-shadow:0 7px 0 #754516,0 10px 14px #0006}
#ride[aria-pressed=true]{background:linear-gradient(180deg,#d3ff9d,#82d88e);color:#12301d}
.tagline{color:#ffe0a4}
.bus{position:relative;display:block;flex:none;width:46px;height:35px;border:2.5px solid #202336;border-radius:14px 14px 10px 10px;background:linear-gradient(145deg,#ffda77 0%,#ffae48 62%,#ed8036 100%);box-shadow:inset 3px 2px 0 #fff8,2px 4px 0 #24243670;animation:cartoon-bounce 1.65s ease-in-out infinite}
.bus:before{content:"";position:absolute;left:5px;right:5px;top:4px;height:13px;border:1px solid #21354e;border-radius:8px;background:linear-gradient(180deg,#c4f5ff,#72c5e2);background-image:radial-gradient(circle at 32% 58%,#24283e 0 2px,#fff 2.2px 4px,transparent 4.3px),radial-gradient(circle at 70% 58%,#24283e 0 2px,#fff 2.2px 4px,transparent 4.3px);box-shadow:inset 0 2px #fff8}
.bus:after{content:"";position:absolute;top:20px;left:14px;width:14px;height:7px;border:1.5px solid #322037;border-radius:3px 3px 10px 10px;background:#6c2b3c;box-shadow:inset 0 -2px #ff9198}
.bus em{position:absolute;z-index:1;left:4px;top:21px;width:6px;height:4px;border-radius:50%;background:#fff1ac;box-shadow:28px 0 #fff1ac}
.bus i{position:absolute;z-index:1;bottom:-5px;left:5px;width:7px;height:7px;border:1px solid #111;background:#262335;box-shadow:25px 0 #262335}
.bus-icon{background:none;border:0}
.bus-label{top:34px;left:23px}
.leaflet-marker-icon.bus-icon{overflow:visible}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{box-shadow:0 4px 0 #75502c;background:#193b44}
@media(max-width:760px){.map-panel{border-radius:19px}.map-scene{margin:0 5px 6px;transform:none}.map-panel{box-shadow:0 5px 0 #6b431e,0 12px 24px #0007}}
@media(prefers-reduced-motion:reduce){.falling-bus,.bus{animation:none!important}}
