:root{color-scheme:light;--ink:#1d2033;--muted:#62657a;--line:#e5e4ed;--purple:#5845c0;--pale:#eeebff;--teal:#007b69;--glass:#fcfbfff0;--panel-shadow:0 6px 22px #24204317,0 1px 3px #24204313;--ease-out:cubic-bezier(0.22,1,0.36,1);font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--ink);background:#fff}

*{box-sizing:border-box}
html,body{overscroll-behavior:none}
body{margin:0}
button,input,select{font:inherit}
button,a,[role="button"]{touch-action:manipulation}
button{cursor:pointer;user-select:none;-webkit-user-select:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #6753ea;outline-offset:3px}
.symbols{position:absolute;width:0;height:0}
svg[aria-hidden="true"]{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

.top{height:64px;background:#18182c;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:16px}
.identity{display:flex;align-items:center;gap:12px;min-width:0}
.identity strong{display:block;font-size:18px;letter-spacing:-.025em}
.identity div span{display:block;font-size:12px;color:#c5c3d7;margin-top:3px}
.logo{display:grid;place-items:center;background:#6e55df;border-radius:12px;width:42px;height:42px;flex:none}
.logo svg{width:25px;height:25px}
.feed{display:flex;align-items:center;gap:8px;background:#2d2c43;border:1px solid #434158;border-radius:30px;padding:8px 12px;font-size:12px;font-weight:650;color:#e6e3f3}
.feed i,.legend i{display:inline-block;flex:none}
.feed i{width:8px;height:8px;border-radius:50%;background:#eac67a}
.feed[data-state=live] i{background:#5fe2b7;box-shadow:0 0 0 3px #5fe2b722}
.feed strong,.feed small{display:block}
.feed small{font-size:.9em;font-weight:500;color:#c5c3d7;font-variant-numeric:tabular-nums}

:root{
  --map-live:#00715f;--map-metro:#196bb0;--map-express:#a84e24;--map-ac:#7357a8;--map-green-metro:#25782f;
  --map-last-known:#62687b;--map-cluster:#195964;--map-stop:#5845c0;--map-location:#1676d2;
}

main{position:relative;display:grid;grid-template-columns:385px minmax(0,1fr);height:calc(100dvh - 64px);min-height:440px;background:#d9e6eb;isolation:isolate}
.sidebar{min-height:0;display:flex;flex-direction:column;background:#fff;z-index:1;border-right:1px solid var(--line)}
.explore-content{min-height:0;display:flex;flex:1;flex-direction:column}
.sheet-toggle{display:none}
body[data-keyboard] .bus-filters,body[data-keyboard] .sources,body[data-keyboard] .map-legend{display:none}
.intro{padding:25px 23px 15px}
.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;color:var(--purple);margin:0 0 7px}
.intro h1{margin:0;font-size:34px;letter-spacing:-.055em;line-height:1.12}
.intro h1+p{font-size:13px;color:var(--muted);margin:8px 0 18px}
.search{display:flex;align-items:center;gap:9px;padding:0 11px;background:#f7f6fb;border:1px solid #e3e0ed;border-radius:9px;color:var(--purple)}
.search:focus-within{border-color:var(--purple)}
.search input{width:100%;min-width:0;padding:12px 0;border:0;outline:none;background:transparent;color:var(--ink);font-size:15px}

.tabs{display:flex;gap:4px;padding:0 23px;border-bottom:1px solid var(--line)}
.tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font-size:13px;font-weight:700;min-height:46px;padding:6px 4px}
.tabs button svg{width:17px;height:17px}
.tabs button[aria-pressed=true]{color:var(--purple);border-bottom-color:var(--purple)}
.results{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;padding:13px 23px 18px}
.results-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;margin:3px 0 9px;color:var(--muted);font-size:11px;font-weight:750}
.results-head strong{color:var(--ink);font-size:13px}
.route-live-search{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.route-location{margin-bottom:10px}
.row.recommended-bus{background:#e7f4ef;border-radius:9px}
.leaflet-tooltip.map-route-number.route-recommended{background:#12392f}
.rows{display:flex;flex-direction:column}
.row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:11px 3px;color:var(--ink);min-height:60px}
.row strong{font-size:13px;display:block;line-height:1.32}
.row small{margin-top:3px;color:var(--muted);font-size:11px;display:block}
.code{display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:6px 6px;background:var(--pale);color:#4733a7;border-radius:7px;font-size:11px;font-weight:800;white-space:nowrap}
.row .arrow{font-size:17px;color:#78738c}
.row .spot{display:grid;place-items:center;width:34px;height:34px;color:var(--teal);background:#e2f4ee;border-radius:8px}
.empty{font-size:13px;color:var(--muted);line-height:1.5}
.sources{font-size:11px;padding:11px 23px;border-top:1px solid var(--line);color:var(--muted)}
.bus-filters{display:grid;grid-template-columns:1fr 1fr;min-width:0;gap:8px;border:0;border-bottom:1px solid var(--line);margin:0;padding:9px 23px}
.bus-filters label{display:grid;min-width:0;gap:3px;color:var(--muted);font-size:11px;font-weight:700}
.bus-filters select{width:100%;min-width:0;font:inherit;font-size:13px;color:var(--ink);border:1px solid var(--line);border-radius:7px;background:white;padding:6px}
.bus-filters[hidden],.nav-action[hidden]{display:none}
.detail-nav:not([hidden]){display:flex;align-items:center;gap:8px;padding:6px 23px;border-bottom:1px solid var(--line)}
.detail-nav #detail-context{flex:1;color:var(--muted);font-size:12px;font-weight:750}
.nav-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--purple);min-height:38px;padding:5px 9px;font-size:12px;font-weight:750;white-space:nowrap}
.nav-action span{font-size:16px;line-height:1}
.detail .service-types{color:var(--purple);font-weight:700}
a{color:#4936aa}

.map-area{position:relative;z-index:0;min-width:0;min-height:0;background:#d9e6eb}
.map-area #map{position:absolute;inset:0;background:#d9e6eb}
.map-controls{position:absolute;z-index:500;top:110px;right:14px}
.map-controls:has(.map-legend[open]){z-index:501}
.map-area .leaflet-control-zoom{margin:14px 14px 0 0;border:1px solid #fff;border-radius:14px;overflow:hidden;box-shadow:var(--panel-shadow)}
.map-area .leaflet-control-zoom a,
.map-controls button{background:var(--glass);color:var(--ink);width:42px;height:42px;line-height:42px}
.map-controls button,.map-legend summary{display:grid;place-items:center;border:1px solid #fff;border-radius:14px;box-shadow:var(--panel-shadow)}
.map-selection:not([hidden]){position:absolute;top:14px;left:14px;z-index:500;display:flex;flex-wrap:wrap;gap:3px;max-width:calc(100% - 76px);padding:4px;animation:panel-enter 180ms 40ms var(--ease-out) backwards}
.map-selection .nav-action{background:transparent;border-color:transparent}
.map-selection:not([hidden]) ~ .map-notice{top:68px}
.map-selection,.legend-items,.map-notice{background:var(--glass);border:1px solid #fff;border-radius:14px;box-shadow:var(--panel-shadow)}
.map-notice{position:absolute;z-index:500;left:14px;top:14px;right:56px;width:fit-content;max-width:calc(100% - 72px);padding:8px 12px;color:var(--ink);font-size:12px}
.location-prompt{width:min(380px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:20px;color:var(--ink);background:#fbfefe;border:1px solid var(--line);border-radius:18px;box-shadow:var(--panel-shadow)}
.location-prompt::backdrop{background:#14283b66}
.location-prompt h2{margin:0;font-size:1.25rem}
.location-prompt p{margin:8px 0 16px;color:var(--muted);font-size:.9375rem;line-height:1.45}
.location-prompt form{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.location-prompt .nav-action{min-height:44px;padding-inline:12px;font-size:.875rem}
.location-prompt .nav-action.location-allow{background:#006454;color:#fff;border-color:#006454}
.map-legend{position:relative}
.map-legend summary{min-width:44px;min-height:44px;padding:0 5px;background:var(--glass);color:var(--ink);font-size:.6875rem;font-weight:750;cursor:pointer;list-style:none;touch-action:manipulation}
.map-legend summary::-webkit-details-marker{display:none}
.map-legend summary:focus-visible{outline:2px solid var(--map-stop);outline-offset:3px}
.map-legend[open] summary{background:var(--pale)}
.legend-items{position:absolute;inset:auto calc(100% + 8px) 0 auto;z-index:1;width:min(242px, calc(100vw - 82px));max-height:min(318px, 63dvh);overflow:auto;overscroll-behavior:contain;margin:0;padding:8px 12px;list-style:none;font-size:.875rem}
.legend-items:focus-visible{outline:2px solid var(--map-stop);outline-offset:2px}
.legend-items li{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px;min-height:27px;padding-block:2px}
body:not([data-launch]) .legend-cluster-entry{display:none}
.legend-mark{justify-self:center;font-style:normal}
.bus-dot,.stop-dot,.location-dot{width:15px;height:15px;border-radius:50%}
.bus-dot{background:var(--map-live);border:1.5px solid white}
.bus-dot.metro{background:var(--map-metro)}
.bus-dot.express{background:var(--map-express)}
.bus-dot.ac{background:var(--map-ac)}
.bus-dot.green-metro,.bus-marker.green-metro:not(.last-known){background:var(--map-green-metro)}
.bus-dot.last-known{background:var(--map-last-known);border-style:dashed}
.stop-dot{width:12px;height:12px;background:white;border:2px solid var(--map-stop)}
.location-dot{background:var(--map-location);border:2px solid white;box-shadow:0 0 0 3px #1676d24d}
.legend-cluster{display:grid;place-items:center;width:24px;height:24px;border:2px solid white;border-radius:50%;background:var(--map-cluster);color:white;font-size:.6875rem;font-weight:750}
.route-line{width:20px;height:4px;background:var(--map-stop);border-radius:2px}
.bus-marker{display:grid;place-items:center;background:var(--map-live);color:white;border:2px solid white;border-radius:50%;box-shadow:0 1px 4px #2225}
.bus-marker svg{width:16px;height:16px}
.route-path-reveal{animation:trace-route 720ms var(--ease-out) backwards}
.stop-focus{display:grid;place-items:center;color:var(--purple)}
.stop-focus.route-destination{color:var(--teal)}
.stop-focus-dot{position:relative;display:block;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px currentColor;transition:transform 140ms var(--ease-out)}
.stop-focus-dot::before{content:"";position:absolute;inset:-3px;border:2px solid currentColor;border-radius:50%;opacity:0;pointer-events:none;animation:stop-pulse 1.4s var(--ease-out) 2}
.route-destination .stop-focus-dot::before{animation-delay:70ms}
.selected-stop .stop-focus-dot{width:16px;height:16px}
.detail-enter{animation:panel-enter 180ms var(--ease-out) backwards}
@keyframes trace-route{
from{stroke-dasharray:1 1;stroke-dashoffset:1}
to{stroke-dasharray:1 1;stroke-dashoffset:0}
}
@keyframes stop-pulse{from{transform:scale(.95);opacity:.72}to{transform:scale(2.3);opacity:0}}
@keyframes panel-enter{from{opacity:0;transform:translateY(6px)}}

.detail h2{font-size:23px;line-height:1.18;letter-spacing:-.035em;margin:9px 0}
.detail p{font-size:13px;color:var(--muted);line-height:1.45;margin:7px 0 12px}
.detail label{display:grid;gap:5px;font-size:11px;font-weight:750;color:var(--muted);margin-bottom:9px}
.detail select{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);font-size:13px}
.stop-sequence{margin:0;padding-left:24px;font-size:12px;color:var(--muted)}
.stop-sequence button{display:block;width:100%;text-align:left;min-height:34px;border:0;background:transparent;color:var(--ink);padding:5px 7px;border-radius:5px}
.bus-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.bus-badges:not(:has(> :not([hidden]))),.bus-facts:not(:has(> :not([hidden]))){display:none}
.bus-badges .code[hidden]{display:none}
.service-type-badge{background:#e9f5f2;color:#006555;border-radius:7px;padding:5px 7px;font-size:11px;font-weight:750}
.ac-badge{background:var(--pale);color:#4733a7;border-radius:7px;padding:5px 7px;font-size:11px;font-weight:750}
.bus-identity{display:grid;gap:5px 8px;margin-bottom:9px}
.detail :is(.bus-identity h2,.bus-identity p,.stop-header h2){margin:0;overflow-wrap:anywhere}
.bus-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-variant-numeric:tabular-nums}
.bus-meta strong + span::before{content:"·";margin-right:5px}
.bus-facts{display:flex;flex-wrap:wrap;gap:7px 16px;margin:0 0 12px;padding:8px 10px;background:#f6f4ff;border-radius:8px}
.bus-facts dt{color:var(--muted);font-size:11px}
.bus-facts dd{margin:0;font-size:12px;font-weight:700}
.stop-heading{font-size:14px;margin:0 0 5px}
.stop-section{margin-top:16px}
.place-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.place-actions .nav-action{min-height:44px}
.direct-planner{margin-top:10px}
.panel-disclosure{display:inline-flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:5px 10px;border:1px solid var(--line);border-radius:9px;background:#eef5f1;color:#145342;cursor:pointer;font-size:13px;font-weight:750;list-style:none;touch-action:manipulation}
.panel-disclosure::-webkit-details-marker{display:none}
.panel-disclosure::after{content:"";flex:none;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
details[open] > .panel-disclosure::after{transform:translateY(2px) rotate(225deg)}
.direct-planner label{font-size:.875rem;margin:10px 0 5px}
.direct-planner input,.share-link{width:100%;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:white;font:inherit;font-size:16px}
.direct-planner p[role="status"]{margin:7px 0}
.detail .ride-summary{padding:10px;background:#e7f4ef;border-radius:9px;color:#005944;font-weight:700}
.ride-stop{background:#e7f4ef;color:#005944;border-radius:7px}
.ride-stop button{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:750}
.ride-stop small{flex:none;color:#005944}
.arrival-eta{white-space:nowrap;color:#005944;background:#e7f4ef;padding:5px 6px;border-radius:7px;font-size:.8125rem;font-weight:800;font-variant-numeric:tabular-nums}
.stop-routes{display:flex;flex-wrap:wrap;gap:7px}
.stop-route{min-height:44px;max-width:100%;padding:5px 10px;border:1px solid #ded8ff;border-radius:8px;background:var(--pale);color:#4733a7;font-size:13px;font-weight:750;text-align:left;overflow-wrap:anywhere}
.bus-stops button{display:flex;justify-content:space-between;align-items:center;gap:6px}
.bus-stops button small{color:var(--muted);font-size:10px}
.bus-stops{--covered:#007b69;--remaining:#d6dbdf;list-style:none;padding-left:0}
.bus-stops li{position:relative;padding-left:24px;min-height:44px;display:grid;align-items:center}
.bus-stops li:has(> .stop-time){grid-template-columns:minmax(0,1fr) auto;gap:6px}
.stop-time{padding-right:7px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
:is(h3,p):has(> .stop-times-label){display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
.stop-times-label{color:var(--muted);font-size:11px;font-weight:700}
.bus-stops li::before{content:"";position:absolute;left:10px;top:0;bottom:0;width:2px;background:var(--remaining)}
.bus-stops li:first-child::before{top:50%}
.bus-stops li:last-child::before{bottom:50%}
.bus-stops li>button::before,.bus-stops li>.unmapped-stop::before{content:"";position:absolute;left:5px;top:50%;translate:0 -50%;width:8px;height:8px;border:2px solid #7b8095;border-radius:50%;background:white;pointer-events:none}
.bus-stops li:is([data-progress="near"],[data-progress="from"],[data-progress="to"]){background:#e7f4ef;color:#005c4e;font-weight:750}
.bus-stops li:is([data-progress="passed"],[data-progress="from"])::before,
.bus-stops li:last-child[data-progress="near"]::before{background:var(--covered)}
.bus-stops li:not(:first-child,:last-child)[data-progress="near"]::before{background:linear-gradient(var(--covered) 50%,var(--remaining) 50%)}
.bus-stops li[data-progress] > :is(button,.unmapped-stop)::before{border-color:var(--covered)}
.bus-stops li:is([data-progress="passed"],[data-progress="from"],[data-progress="near"]) > :is(button,.unmapped-stop)::before{background:var(--covered)}
.bus-stops li[data-progress="near"] > :is(button,.unmapped-stop)::before{box-shadow:0 0 0 3px #a6d8cc}
.bus-stops li[data-progress="from"]::after{content:"";position:absolute;z-index:1;left:4px;top:100%;translate:0 -50%;width:14px;height:14px;box-sizing:border-box;rotate:45deg;background:var(--covered);border:2px solid white;border-radius:2px;pointer-events:none}
.unmapped-stop{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:34px;padding:5px 7px;color:var(--ink)}
.unmapped-stop small{color:var(--muted);font-size:10px}
.more{margin:12px 0 0;width:100%;background:white;border:1px solid var(--line);border-radius:7px;padding:9px;color:var(--purple);font-size:13px;font-weight:700}

@media (min-width:721px) and (min-height:521px){
main{--panel-width:clamp(300px,31vw,386px);--map-inset:14px;grid-template-columns:var(--panel-width) minmax(0,1fr);padding:var(--map-inset)}
.map-area{position:absolute;inset:0}
.sidebar{border:1px solid #fff;background:var(--glass);border-radius:22px;box-shadow:var(--panel-shadow)}
.map-selection:not([hidden]),.map-notice{left:calc(var(--panel-width) + 2 * var(--map-inset))}
.map-selection:not([hidden]){max-width:calc(100% - var(--panel-width) - 96px)}
}

@media(max-width:720px){
body{height:var(--app-height,100dvh);display:flex;flex-direction:column;overflow:hidden}
.top{height:auto;min-height:56px;flex:none;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));padding-top:calc(8px + env(safe-area-inset-top));gap:7px}
.logo{width:34px;height:34px;border-radius:9px}
.logo svg{width:21px;height:21px}
.identity{gap:8px}
.identity strong{font-size:16px}
.identity div span{font-size:10px;line-height:1.2}
.feed{font-size:10px;padding:5px 7px;gap:5px;flex:none}
main{height:auto;min-height:0;flex:1;display:flex;flex-direction:column}
.map-area{order:-1;flex:1;min-height:0;margin-bottom:-10px}
.map-area .leaflet-bottom{bottom:10px}
.sidebar{flex:none;min-width:0;margin:0 max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border:1px solid #fff;background:var(--glass);border-radius:20px;box-shadow:var(--panel-shadow)}
.sidebar[data-sheet-open="false"] .explore-content{display:none}
.sidebar[data-sheet-open="true"]{height:min(max(54%,330px),calc(100% - 145px))}
.intro{padding:10px 12px 0}
.intro p{display:none}
.intro h1{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.search-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.search{min-height:44px}
.search input{padding:9px 0;font-size:16px}
.sheet-toggle{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 9px;border:1px solid #e3e0ed;border-radius:9px;background:white;color:var(--purple);font-size:12px;font-weight:750}
.sheet-toggle svg{width:16px;height:16px}
.sheet-toggle[aria-expanded="true"]{background:var(--pale)}
.sheet-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.tabs{padding:0 12px}
.tabs button{min-height:44px}
.results{padding:5px 12px 8px;overscroll-behavior:contain}
.row{min-height:48px;padding:7px 4px}
.row strong,.detail p{font-size:14px}
.nav-action,.stop-sequence button,.more{min-height:44px}
.detail-nav:not([hidden]){padding:4px 12px}
.sources{padding:6px 12px;line-height:1.4}
.bus-filters{padding:5px 12px}
.bus-filters select,.detail select{min-height:44px;font-size:16px}
.map-area .map-controls{top:10px;left:10px;right:auto;display:flex}
.map-selection:not([hidden]){top:62px;left:10px}
.map-selection:not([hidden]) ~ .map-notice{top:118px}
.map-controls #locate{order:-1}
.map-area .map-controls button,.map-area .leaflet-control-zoom a{width:44px;height:44px;line-height:42px}
body:not([data-launch]) .legend-items{inset:calc(100% + 8px) auto auto 0}
.map-area .map-notice{top:45px;right:62px}
body[data-keyboard] .sidebar[data-sheet-open="true"]{height:calc(100% - 84px)}
}

@media (min-width:560px) and (max-height:520px) and (orientation:landscape){
body{height:var(--app-height,100dvh);display:flex;flex-direction:column;overflow:hidden}
.top{height:auto;flex:none;min-height:52px;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}
.logo{width:34px;height:34px;border-radius:9px}
.identity strong{font-size:16px}
.identity div span{font-size:10px}
main{display:grid;flex:1;height:auto;min-height:0;grid-template-columns:minmax(260px,38%) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.map-area{order:0;margin-bottom:0}
.map-area .leaflet-bottom{bottom:0}
.sidebar[data-sheet-open]{height:auto;margin:0;border:0;border-right:1px solid var(--line);border-radius:0;padding-left:env(safe-area-inset-left)}
.sidebar[data-sheet-open] .explore-content{display:flex}
.sidebar .sheet-toggle,.intro p{display:none}
.intro h1{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.intro{padding:8px 12px 0}
.search-tools{display:block}
.search input,.bus-filters select,.detail select{font-size:16px}
.tabs{padding:0 12px}
.tabs button,.bus-filters select{min-height:44px}
.bus-filters{padding:5px 12px}
.detail-nav:not([hidden]){padding:4px 12px}
.nav-action{min-height:44px}
.results,.sources{padding-left:12px;padding-right:12px}
.map-area .map-controls{right:10px;top:10px;left:auto;display:flex;padding-right:env(safe-area-inset-right)}
.map-area .leaflet-top.leaflet-right{top:54px;right:env(safe-area-inset-right)}
.map-area .map-controls button,.map-area .leaflet-control-zoom a{width:44px;height:44px;line-height:42px}
}

.map-controls{display:grid;gap:6px}
.map-controls #reset{font-size:22px;line-height:1}
.numbered-bus,.leaflet-tooltip.map-route-number{border-radius:8px;background:var(--map-live);color:white;font-size:12px;font-weight:800}
.leaflet-tooltip.map-route-number{padding:2px 6px;border-color:#fff}
.leaflet-tooltip-top.map-route-number::before{border-top-color:var(--map-live)}
.bus-marker.last-known,.leaflet-tooltip.map-route-number.last-known{background:var(--map-last-known);border-style:dashed}
.leaflet-tooltip-top.map-route-number.last-known::before{border-top-color:var(--map-last-known)}
.leaflet-tooltip.my-location{font-size:13px;font-weight:800;color:#125eab;border:1px solid #c0d8f1}

@media (hover:hover) and (pointer:fine){
.tabs button:hover,button.row:hover,.stop-sequence button:hover,.nav-action:hover,
.map-selection .nav-action:hover,.map-controls button:hover,.map-area .leaflet-control-zoom a:hover{background:#f6f4ff}
.stop-route:hover{background:#eae5ff}
.stop-focus:hover .stop-focus-dot{transform:scale(1.12)}
}
.nav-action:active,.map-selection .nav-action:active,.map-controls button:active,.sheet-toggle:active,
.stop-route:active,.tabs button:active,button.row:active,.stop-sequence button:active{background:var(--pale)}

@media (prefers-reduced-motion:reduce){
.route-path-reveal,.stop-focus-dot::before,.detail-enter,.map-selection:not([hidden]){animation:none}
.stop-focus-dot{transition:none}
}

