.ct-map { position:relative; isolation:isolate; width:100%; height:clamp(24rem,56vh,35rem); min-height:22rem; overflow:hidden; background:#f3f3ec; border:1px solid #adbbb0; border-radius:.5rem; color:#1a3b34 }
.ct-map canvas,.ct-map .bus-layer { position:absolute; inset:0; width:100%; height:100%; display:block }
.ct-map canvas { touch-action:none; cursor:grab; outline-offset:-3px }
.ct-map canvas:active { cursor:grabbing }
.ct-map .bus-layer { pointer-events:none; overflow:visible; z-index:1 }
.ct-map .bus-marker { cursor:pointer; pointer-events:all; outline:none }
.ct-map .marker-target { fill:transparent }
.ct-map .bus-marker {
  --bus-body:#147bb5; --bus-side:#0063a0; --bus-ink:#102c44; --bus-glass:#173649;
  --bus-stripe:#3bc4ee; --bus-sign:#ffcb62; --bus-highlight:#72b5d5;
  --bus-badge:#00568a; --bus-label:#fff;
}
.ct-map .bus-marker.last-known {
  --bus-body:#d6d9d8; --bus-side:#b6bbb9; --bus-ink:#5d6362; --bus-glass:#838988;
  --bus-stripe:#9fa5a3; --bus-sign:#d9dcdb; --bus-highlight:#b6bbba;
  --bus-badge:#f4f5f4; --bus-label:#454b49;
}
.ct-map .bus-halo { fill:none;stroke:#fff;stroke-width:3.5;stroke-linejoin:round }
.ct-map .bus-marker.selected .bus-halo,.ct-map .bus-marker:focus-visible .bus-halo { stroke:#a23d0a;stroke-width:4.6 }
.ct-map .bus-shell { fill:var(--bus-body);stroke:var(--bus-ink);stroke-width:1.15;stroke-linejoin:round }
.ct-map .bus-pin { fill:var(--bus-stripe);stroke:white;stroke-width:.9 }
.ct-map .bus-roof { fill:#f3f5f1 }
.ct-map .bus-side { fill:var(--bus-side) }
.ct-map .bus-windows,.ct-map .bus-door { fill:var(--bus-glass) }
.ct-map .bus-posts,.ct-map .bus-front-post { fill:none;stroke:var(--bus-side);stroke-width:.8 }
.ct-map .bus-stripe { fill:var(--bus-stripe) }
.ct-map .bus-wheel,.ct-map .bus-sign,.ct-map .bus-bumper { fill:var(--bus-ink) }
.ct-map .bus-hub { fill:var(--bus-body) }
.ct-map .bus-marquee { fill:none;stroke:var(--bus-sign);stroke-width:1.45;stroke-dasharray:1 .7 }
.ct-map .bus-reflection { fill:var(--bus-highlight) }
.ct-map .bus-light { fill:none;stroke:#fff7ce;stroke-width:1.25 }
.ct-map .bus-emblem { fill:none;stroke:var(--bus-stripe);stroke-width:1.1 }
.ct-map .marker-badge { fill:var(--bus-badge);stroke:#fff;stroke-width:1.6 }
.ct-map .last-known .marker-badge { stroke:var(--bus-ink);stroke-dasharray:3 1.5 }
.ct-map .bus-marker.selected .marker-badge,.ct-map .bus-marker:focus-visible .marker-badge { stroke:#a23d0a }
.ct-map .marker-label { fill:var(--bus-label);font:700 10px system-ui,sans-serif;text-anchor:middle;pointer-events:none;letter-spacing:0 }
.ct-map .map-buttons,.ct-map .map-credit,.ct-map .map-scale { z-index:2 }
.ct-map .map-popup { position:absolute;z-index:3;box-sizing:border-box;width:max-content;max-width:min(16rem,calc(100% - 10px));padding:.65rem .8rem;background:#fffffb;color:#143c33;border:1px solid #809d90;border-radius:.45rem;box-shadow:0 4px 18px #16382836;font:400 .85rem/1.35 system-ui,sans-serif;overflow-wrap:anywhere }
.ct-map .map-popup[hidden],.ct-map .popup-dest[hidden] { display:none }
.ct-map .popup-bus { display:block;padding-right:2rem;font-size:1.02rem }
.ct-map .popup-route,.ct-map .popup-dest,.ct-map .popup-time { margin:.18rem 0 0 }
.ct-map .popup-status { margin:.5rem 0 0;font-weight:650 }
.ct-map .popup-time { color:#42594f;font-size:.78rem }
.ct-map .popup-close { display:grid;place-content:center;position:absolute;top:.15rem;right:.15rem;min-width:2rem;min-height:2rem;padding:0;border:0;border-radius:.28rem;background:transparent;color:#173c35;font:400 1.45rem/1 system-ui,sans-serif;cursor:pointer }
.ct-map .popup-close:focus-visible { outline:2px solid #216456;outline-offset:-3px }
.ct-map .map-buttons { position:absolute; top:.65rem; left:.65rem; display:flex; align-items:stretch; box-shadow:0 1px 4px #1e332622; border:1px solid #8d9f94; border-radius:.36rem; overflow:hidden }
.ct-map .map-buttons button { display:grid; place-content:center; min-width:2.55rem; min-height:2.5rem; border:0; border-right:1px solid #bcc8c0; border-radius:0; padding:0 .6rem; background:#fbfcf8; color:#173c35; cursor:pointer; font:600 1.13rem system-ui,sans-serif; line-height:1 }
.ct-map .map-buttons button:last-child { border-right:0;font-size:.85rem }
.ct-map .map-buttons button:hover { background:#e5ede5 }
.ct-map .map-buttons button:focus-visible { outline:2px solid #155949; outline-offset:-3px }
.ct-map .map-credit { position:absolute; right:0; bottom:0; max-width:100%; padding:.18rem .38rem; background:#fcfdf9ec; color:#425851; font:400 .72rem/1.32 system-ui,sans-serif; border-radius:.2rem 0 0 0 }
.ct-map .map-credit a { color:inherit;font:inherit }
.ct-map .map-scale { position:absolute; bottom:.45rem; left:.65rem; min-width:3.05rem; text-align:center; padding:0 .25rem .09rem; border:solid #44574d; border-width:0 1px 2px; background:#fbfcf7d9; font:500 .72rem/1.2 system-ui,sans-serif }
@media(max-width:38rem){.ct-map{height:clamp(23rem,55vh,33rem)}.ct-map .map-buttons button{min-width:2.75rem;min-height:2.75rem}.ct-map .map-credit {font-size:.69rem}}

.ct-map .bus-marker { touch-action:none }
.ct-map .selected .bus-sprite,.ct-map .bus-marker:focus-visible .bus-sprite { filter:drop-shadow(0 0 2px #a23d0a) }

.ct-map canvas.fleet-pixels { pointer-events:none;z-index:1;will-change:transform }
