.bus-layout{display:grid;grid-template-columns:minmax(310px,390px) 1fr;height:calc(100dvh - 88px);min-height:550px}.bus-panel{padding:32px;overflow:auto;border-top:1px solid #ddd}.bus-panel h1{font-size:clamp(2rem,3vw,3.1rem);letter-spacing:-.06em;line-height:1.05;margin:0 0 14px}.dot{color:#777}.bus-panel>p:not(.section-number){color:#666}.bus-panel label{display:block;font-weight:700;margin:24px 0 8px;font-size:.85rem}.bus-panel input,.bus-panel select{width:100%;padding:12px;border:1px solid #aaa;background:white;font:inherit}.bus-panel button{padding:11px 14px;border:1px solid #111;background:#111;color:#fff;font:inherit;cursor:pointer;margin-top:10px}.bus-panel button:hover{background:#444}.bus-actions{display:flex;gap:10px;flex-wrap:wrap}.bus-status{margin:20px 0;background:#eee;padding:13px;font-size:.85rem}.bus-small{font-size:.75rem;line-height:1.6;margin-top:24px}.vehicle{display:block;width:100%;text-align:left;background:#f1f1f1!important;color:#111!important;border:1px solid #ddd!important;margin-top:8px!important}.vehicle strong{display:block}.vehicle small{color:#555}#map{height:100%;background:#eee}.bus-pin{background:#111;color:white;border:2px solid white;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;box-shadow:0 2px 8px #0004;font-size:19px}.leaflet-div-icon{border:0;background:none}@media(max-width:760px){.bus-layout{display:flex;flex-direction:column;height:auto}.bus-panel{padding:24px;overflow:visible}#map{height:65vh;min-height:380px}}
/* Mobile-first map and accessible searchable route picker */
.bus-layout{min-width:0}.bus-panel{min-width:0}.route-combobox{position:relative;display:flex;align-items:stretch}.route-combobox input{padding-right:48px}.route-combobox #routeToggle{position:absolute;right:0;top:0;margin:0;height:100%;width:44px;padding:0;background:#f4f4f4;color:#111;border:1px solid #aaa;border-left:0;font-size:1.4rem}.route-options{position:absolute;z-index:1100;top:calc(100% + 4px);left:0;right:0;max-height:min(300px,42dvh);overflow-y:auto;overscroll-behavior:contain;background:white;border:1px solid #999;box-shadow:0 12px 24px #0002}.route-options[hidden]{display:none}.route-option{display:flex!important;gap:12px;align-items:center;width:100%;margin:0!important;border:0!important;border-bottom:1px solid #eee!important;background:white!important;color:#111!important;text-align:left;padding:12px!important}.route-option:hover,.route-option:focus{background:#eee!important}.route-code{font-weight:800;min-width:42px;font-size:1rem}.route-description{font-size:.85rem;color:#555}.route-empty{padding:15px;color:#666}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}/* Stable map sizing: keep the panel as a real box, not display:contents. */
#map{position:relative;display:block;overflow:hidden;min-width:0;isolation:isolate}.leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important}.leaflet-map-pane,.leaflet-tile-pane{max-width:none}
@media(max-width:760px){.site-header{position:relative;z-index:1001}.bus-layout{display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}.bus-panel{display:block;flex:0 0 auto;order:0;padding:20px;width:100%;overflow:visible;min-width:0}.bus-panel>.section-number{margin-top:0}.bus-panel h1{margin-bottom:12px}.bus-panel input,.bus-panel select{max-width:100%}.bus-panel .route-options{max-height:35dvh}.bus-panel .bus-small{margin-top:20px}#map{order:1;display:block;flex:0 0 auto;width:100%;height:55vh;height:55dvh;min-height:340px;max-height:640px;margin:0;z-index:0}.bus-panel .bus-actions{margin-bottom:20px}}

/* Stable Leaflet tile positioning and a pale map background. */
#map.leaflet-container{position:relative;overflow:hidden;background:#f5f5f5}
#map img.leaflet-tile{max-width:none!important;max-height:none!important}

/* Free keyless OpenStreetMap tiles with a soft, low-saturation presentation.
   Filter only the raster tile pane, never the bus markers or controls. */
#map .leaflet-tile-pane{filter:grayscale(.7) brightness(1.1) contrast(.88)}
#map .bus-fullscreen-control{background:#fff}
#map .bus-fullscreen-button{display:block;width:38px;height:38px;border:0;background:#fff;color:#111;font-size:23px;font-weight:600;cursor:pointer;line-height:38px;text-align:center;padding:0}
#map .bus-fullscreen-button:focus-visible{outline:2px solid #111;outline-offset:2px}
#map:fullscreen,#map.bus-fullscreen-fallback{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;background:#f4f4f4}
#map.bus-fullscreen-fallback{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:99999!important}
body.bus-map-fullscreen{overflow:hidden}

/* Searchable stop and route controls with clear actions */
.route-combobox input{padding-right:88px}.route-combobox .combo-clear{position:absolute;right:44px;top:0;width:38px;height:100%;padding:0;margin:0;border:0;background:#fff;color:#333;font-size:24px;z-index:2}.route-combobox .combo-clear[hidden]{display:none}.route-combobox #stopToggle{position:absolute;right:0;top:0;margin:0;height:100%;width:44px;padding:0;background:#f4f4f4;color:#111;border:1px solid #aaa;border-left:0;font-size:1.4rem}.user-marker-icon{background:none;border:0}.user-pin,.stop-pin{display:grid;place-items:center;width:30px;height:30px;border:3px solid #fff;border-radius:50%;background:#111;color:#fff;box-shadow:0 2px 8px #0005;font-size:19px;line-height:1}.stop-pin{background:#777;font-size:13px;font-weight:800}

/* Minimal, consistent combobox affordances */
.route-combobox{border:1px solid #aaa;background:#fff;min-height:46px}.bus-panel .route-combobox input{border:0!important;background:transparent!important;min-width:0;width:100%;padding-right:86px;outline-offset:-2px}.bus-panel .route-combobox button.combo-clear,.bus-panel .route-combobox button.combo-toggle,.bus-panel .route-combobox button#routeToggle,.bus-panel .route-combobox button#stopToggle{position:absolute;top:50%;transform:translateY(-50%);height:34px;width:34px;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;color:#333!important;box-shadow:none!important;line-height:34px;font-size:21px;cursor:pointer}.bus-panel .route-combobox button.combo-clear{right:39px}.bus-panel .route-combobox button.combo-toggle,.bus-panel .route-combobox button#routeToggle,.bus-panel .route-combobox button#stopToggle{right:3px}.bus-panel .route-combobox button:hover{color:#000!important;background:#eee!important}.bus-panel .route-combobox button[hidden]{display:none!important}.optional-label{font-weight:400;color:#777}.vehicle-hint{font-size:.78rem!important;margin:8px 0 4px!important;color:#666}.vehicle.is-selected{border:2px solid #111!important;background:#e8e8e8!important}.vehicle-option-label{display:flex;flex-direction:column}.vehicle-option-label small{font-weight:400;color:#666}

/* Map refresh countdown, visible in normal and fullscreen map modes. */
#map .bus-refresh-countdown{background:rgba(255,255,255,.95);color:#222;border:1px solid #ddd;border-radius:5px;padding:8px 11px;font-size:12px;font-weight:600;box-shadow:0 1px 6px #0002;pointer-events:none;max-width:230px}
#map .leaflet-bottom.leaflet-left{margin-bottom:18px}

.stop-exchange-badge{margin-left:auto;white-space:nowrap;font-size:11px;font-weight:700;letter-spacing:.02em;color:#333;background:#ededed;border:1px solid #ccc;border-radius:3px;padding:4px 6px}.stop-combobox .route-option{gap:8px}.stop-combobox .route-description{flex:1;min-width:0}

/* Direction-aware bus pins; triangle points along GPS bearing (0° = north). */
.bus-direction-icon{background:transparent;border:0}.bus-direction-body{display:grid;place-items:center;position:relative;width:42px;height:42px}.bus-direction-glyph{display:grid;place-items:center;width:32px;height:32px;border:2px solid #fff;border-radius:50%;background:#111;color:#fff;box-shadow:0 2px 8px #0005;font-size:18px;position:relative;z-index:2}.bus-direction-arrow{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;color:#111;font-size:18px;font-weight:900;line-height:8px;transform-origin:50% 50%;z-index:1;text-shadow:0 1px 1px white}

/* ETA stays inside Leaflet's map controls in normal and fullscreen views. */
#map .bus-eta-panel{background:rgba(255,255,255,.97);border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px #0002;padding:12px 14px;width:min(245px,calc(100vw - 75px));color:#111;line-height:1.35;pointer-events:none}
#map .bus-eta-panel[hidden]{display:none!important}
#map .bus-eta-heading{font-size:11px;font-weight:700;color:#555}
#map .bus-eta-value{font-size:26px;font-weight:800;letter-spacing:-.04em;margin:3px 0}
#map .bus-eta-stop{font-size:12px;font-weight:600}
#map .bus-eta-detail{font-size:11px;color:#666;margin-top:5px}
#map .leaflet-bottom.leaflet-right{margin-bottom:18px}
@media(max-width:760px){#map .bus-eta-panel{padding:9px 11px;width:min(210px,calc(100vw - 70px))}#map .bus-eta-value{font-size:22px}}


/* Stop-first journey flow */
.bus-controls[hidden],.bus-stage[hidden],.route-options[hidden],.nearby-results[hidden],#destinationField[hidden],.vehicle-card[hidden],.bus-eta-panel[hidden]{display:none!important}
.bus-panel .bus-status{margin:16px 0 20px}
.bus-stage{margin:22px 0 0}
.bus-stage label{margin:0 0 9px}
.bus-stage-note{font-size:.78rem;color:#666;line-height:1.45;margin:0 0 10px}
.bus-panel .bus-location-button{background:#fff;color:#111;border:1px solid #bcbcbc;margin:10px 0 0;font-size:.83rem;font-weight:700}
.bus-location-button .fa-solid{margin-right:5px}
.bus-panel .bus-optional-toggle{display:flex;align-items:center;gap:8px;text-align:left;border:0;border-top:1px solid #e3e3e3;width:100%;color:#111;background:transparent;font-size:.85rem;font-weight:700;padding:15px 0;margin:6px 0 0}
.bus-panel .bus-optional-toggle:hover{background:transparent;text-decoration:underline}
.bus-optional-toggle .fa-solid{font-size:.75rem;width:15px}
#destinationField{padding:5px 0 8px}
.nearby-results{margin:11px 0 5px;border:1px solid #ddd;background:#fafafa;padding:10px}
.nearby-results-heading{font-size:.78rem;font-weight:700;margin:0 0 8px}
.bus-panel .nearby-stop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:9px 7px;width:100%;background:#fff;color:#111;border:0;border-bottom:1px solid #eee;text-align:left}
.bus-panel .nearby-stop:hover{background:#eee}
.nearby-stop-name{font-size:.83rem;line-height:1.4}
.nearby-stop-distance{color:#666;font-size:.74rem;white-space:nowrap}
.bus-list-heading{margin-bottom:9px}
.bus-list-heading h2{font-size:1.03rem;letter-spacing:-.025em;margin:0}
.bus-list-heading p{font-size:.77rem;color:#666;margin:6px 0 0}
.bus-panel .route-combobox .combo-toggle{font-size:15px!important}
.bus-panel .route-combobox .combo-clear{font-size:16px!important}
.bus-panel .bus-actions{margin:16px 0}
.bus-panel .bus-actions button{font-size:.8rem;padding:10px 11px;margin-top:0}
.bus-panel .bus-actions button .fa-solid,.bus-panel .bus-actions button .fa-regular{margin-right:5px}
.bus-card{position:relative;display:flex;align-items:stretch;border:1px solid #d2d2d2;background:#f6f6f6;margin:9px 0;min-width:0}
.bus-card.is-selected{border:2px solid #111;background:#fff;box-shadow:0 2px 9px #00000012}
.bus-card[hidden]{display:none!important}
.bus-panel .bus-card-main{display:block;flex:1;min-width:0;background:transparent;color:#111;border:0;text-align:left;margin:0;padding:12px 13px}
.bus-panel .bus-card-main:hover{background:#e9e9e9}
.bus-card-head{display:flex;gap:12px;align-items:center}
.bus-card-route{font-size:1.65rem;line-height:1.1;font-weight:850;letter-spacing:-.045em;min-width:47px}
.bus-card-fleet{font-size:.72rem;color:#555;line-height:1.4}
.bus-card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:11px 0 0}
.bus-card-metric b{display:block;font-size:1rem;line-height:1.25;white-space:nowrap}
.bus-card-metric small{font-size:.66rem;color:#666;display:block;margin-top:2px}
.bus-card-message{font-size:.72rem;color:#666;margin-top:10px;line-height:1.5}
.bus-panel .bus-card-clear{align-self:flex-start;flex:none;margin:7px 7px 0 0;padding:7px;background:transparent;color:#111;border:0;font-size:16px}
.bus-panel .bus-card-clear:hover{background:#ddd}
.bus-marker-icon{background:none;border:0}
.bus-icon-3d{display:block;width:38px;height:58px;filter:drop-shadow(0 3px 4px #0007);transform-origin:50% 50%}
.bus-marker-icon.is-dimmed{opacity:.4}
.bus-map-credit{font-size:10px;padding:2px 5px;background:rgba(255,255,255,.83);color:#555;border-radius:3px;white-space:nowrap}
.bus-map-credit a{color:#333;text-decoration:underline}
#map .bus-eta-panel{max-width:245px;background:rgba(255,255,255,.97);border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px #0002;padding:11px 13px;color:#111;line-height:1.35;pointer-events:none}
#map .bus-eta-heading{font-size:11px;color:#666;font-weight:700}
#map .bus-eta-value{font-size:25px;font-weight:800;letter-spacing:-.035em}
#map .bus-eta-stop{font-size:12px;font-weight:700}
#map .bus-eta-detail{font-size:11px;color:#666;margin-top:5px}
#map .leaflet-bottom.leaflet-right{margin-bottom:16px}
#map .leaflet-bottom.leaflet-left{margin-bottom:10px}
@media(max-width:760px){.bus-card-metrics{gap:5px}.bus-card-metric b{font-size:.9rem}#map .bus-eta-panel{max-width:210px;padding:9px 10px}#map .bus-eta-value{font-size:22px}}

/* Search combobox keyboard focus and initial loading */
#status[hidden]{display:none!important}
.route-option.is-active,.route-option.is-active:hover{background:#e6e9eb!important;box-shadow:inset 3px 0 0 #111}
.route-option:focus-visible{outline:2px solid #333;outline-offset:-2px}

/* Shared live bus information layout, including the fullscreen map card. */
#map .bus-eta-panel{
  width:290px;max-width:min(290px,calc(100vw - 58px));padding:13px 14px;
  pointer-events:auto;box-sizing:border-box
}
#map .bus-eta-panel .bus-card-head{margin:0 0 10px;position:relative;padding-right:25px}
#map .bus-eta-panel .bus-card-route{font-size:1.7rem;min-width:47px}
#map .bus-eta-panel .bus-card-fleet{font-size:.73rem}
#map .bus-eta-panel .bus-card-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 10px}
#map .bus-eta-panel .bus-card-metric b{font-size:1.02rem}
#map .bus-eta-panel .bus-card-metric small{font-size:.65rem}
#map .bus-eta-panel .bus-eta-stop{font-size:.72rem;color:#555;line-height:1.5;padding-top:9px;border-top:1px solid #e6e6e6;font-weight:500}
#map .bus-eta-panel .bus-eta-detail{margin-top:7px}
#map .bus-eta-panel .bus-eta-close{
 position:absolute;right:-4px;top:0;border:0;background:transparent;color:#333;
 font-size:14px;cursor:pointer;width:30px;height:30px;padding:5px
}
#map .bus-eta-panel .bus-eta-close:hover{background:#eee}
#map .bus-eta-panel .bus-eta-close:focus-visible{outline:2px solid #333}
#map .bus-eta-panel .bus-eta-stop{overflow-wrap:anywhere}
.bus-icon-3d{width:48px;height:72px;display:block;filter:drop-shadow(0 3px 5px #0007);transform-origin:center center}
#map .bus-marker-icon.is-dimmed{opacity:.35}
@media(max-width:760px){
 #map .bus-eta-panel{width:255px;max-width:calc(100vw - 55px);padding:10px 11px}
 #map .bus-eta-panel .bus-card-route{font-size:1.45rem}
 #map .bus-eta-panel .bus-card-metric b{font-size:.9rem}
 #map .bus-eta-panel .bus-card-metric small{font-size:.6rem}
}


/* Mobile: a map-first viewport with a lightweight journey-search slide-out. */
.bus-panel-close,.bus-panel-open-button,.bus-panel-backdrop{display:none}
@media (max-width:760px), (max-height:540px) and (hover:none) and (pointer:coarse){
 html,body{height:100%;overflow:hidden;overscroll-behavior:none}
 body{display:flex;flex-direction:column;height:100dvh;min-height:0}
 body>.site-header{
  position:relative;z-index:1100;flex:0 0 auto;width:100%;max-width:none;
  box-sizing:border-box;margin:0;padding:17px 20px;background:#fff
 }
 .bus-layout{
  position:relative;display:block;flex:1 1 auto;
  width:100%;height:auto!important;min-height:0!important;max-height:none;
  overflow:hidden;isolation:isolate
 }
 #map,#map.leaflet-container{
  display:block;position:absolute!important;inset:0!important;order:unset;
  width:100%!important;height:100%!important;min-width:0;min-height:0!important;
  max-height:none!important;margin:0!important;z-index:0
 }
 #map .bus-fullscreen-control{display:none!important}
 .bus-panel{
  position:absolute;top:0;bottom:0;left:0;right:auto;
  z-index:1030;display:block;flex:none;order:unset;
  box-sizing:border-box;width:min(90vw,420px);max-width:90vw;height:100%;
  min-height:0;padding:17px 19px calc(25px + env(safe-area-inset-bottom,0px));margin:0;
  border:0;background:#fff;box-shadow:8px 0 30px #00000020;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;
  transform:translateX(calc(-100% - 32px));visibility:hidden;pointer-events:none;
  transition:transform .25s ease,visibility .25s ease
 }
 .bus-panel::-webkit-scrollbar,.bus-panel .route-options::-webkit-scrollbar{display:none;width:0;height:0}
 .bus-panel .route-options{scrollbar-width:none;-ms-overflow-style:none;max-height:min(290px,40dvh)}
 .bus-layout.bus-panel-open .bus-panel{
  transform:translateX(0);visibility:visible;pointer-events:auto
 }
 .bus-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
 .bus-panel-heading>div{min-width:0}
 .bus-panel-heading .section-number{font-size:.65rem;margin:0 0 7px}
 .bus-panel h1{font-size:clamp(1.8rem,7vw,2.2rem);letter-spacing:-.055em;line-height:1.03;margin:0}
 .bus-panel .bus-intro{display:none}
 .bus-panel-close:not([hidden]){
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:36px;height:36px;margin:0;padding:0;border:1px solid #dedede;
  border-radius:4px;background:#fff;color:#111;font-size:16px;cursor:pointer
 }
 .bus-panel .bus-panel-close:hover{background:#efefef}
 .bus-panel .bus-panel-close:focus-visible{outline:2px solid #111;outline-offset:2px}
 .bus-panel-backdrop:not([hidden]){
  display:block;position:absolute;inset:0;z-index:1020;
  width:100%;height:100%;border:0;background:rgba(0,0,0,.08);
  margin:0;padding:0;cursor:pointer;touch-action:manipulation
 }
 .bus-panel-open-button:not([hidden]){
  display:inline-flex;position:absolute;right:13px;top:13px;z-index:1010;
  align-items:center;gap:9px;padding:11px 13px;margin:0;
  font-family:inherit;font-size:.81rem;font-weight:700;line-height:1.2;color:#111;background:#fff;
  border:1px solid #d5d5d5;border-radius:5px;box-shadow:0 2px 13px #00000022;
  cursor:pointer
 }
 .bus-panel-open-button .fa-solid{font-size:14px}
 .bus-panel-open-button:hover{background:#f2f2f2}
 .bus-panel-open-button:focus-visible{outline:2px solid #111;outline-offset:2px}
 .bus-panel .bus-status{margin:9px 0 12px;padding:11px 12px;font-size:.78rem}
 .bus-panel .bus-stage{margin:15px 0 0}
 .bus-panel .bus-stage label{font-size:.79rem;margin:0 0 7px}
 .bus-panel .route-combobox{min-height:42px}
 .bus-panel .route-combobox input{font-size:.85rem;padding:9px 74px 9px 10px;min-height:42px;box-sizing:border-box}
 .bus-panel .route-combobox button.combo-clear,.bus-panel .route-combobox button.combo-toggle,
 .bus-panel .route-combobox button#stopToggle,.bus-panel .route-combobox button#routeToggle{
  width:31px;height:31px;line-height:31px
 }
 .bus-panel .route-combobox button.combo-clear{right:35px}
 .bus-panel .route-combobox button.combo-toggle,.bus-panel .route-combobox button#stopToggle,
 .bus-panel .route-combobox button#routeToggle{right:2px}
 .bus-panel .route-option{padding:10px 9px!important;gap:8px}
 .bus-panel .route-description{font-size:.78rem}
 .bus-panel .route-code{font-size:.88rem;min-width:35px}
 .bus-panel .stop-exchange-badge{font-size:.61rem;padding:3px 5px}
 .bus-panel .bus-location-button{margin:8px 0 0;padding:9px 11px;font-size:.78rem}
 .bus-panel .bus-optional-toggle{padding:12px 0;margin:4px 0 0;font-size:.8rem}
 .bus-panel .vehicle-hint,.bus-panel .bus-stage-note{font-size:.72rem!important;line-height:1.4;margin:6px 0 8px!important}
 .bus-panel .bus-list-heading{margin:0 0 6px}
 .bus-panel .bus-list-heading h2{font-size:.95rem}
 .bus-panel .bus-list-heading p{font-size:.72rem;margin:3px 0 0}
 .bus-panel .bus-card{margin:7px 0}
 .bus-panel .bus-card-main{padding:10px 11px}
 .bus-panel .bus-card-route{font-size:1.45rem;min-width:42px}
 .bus-panel .bus-card-metrics{margin:8px 0 0;gap:6px}
 .bus-panel .bus-card-metric b{font-size:.9rem}
 .bus-panel .bus-card-metric small{font-size:.61rem}
 .bus-panel .bus-actions{gap:7px;margin:12px 0}
 .bus-panel .bus-actions button{padding:9px;font-size:.73rem}
 .bus-panel .bus-small{font-size:.69rem;line-height:1.5;margin-top:15px}
 .bus-panel .nearby-results{margin:9px 0 2px;padding:7px}
 .bus-panel .nearby-stop{padding:8px 5px}
 #map .bus-refresh-countdown{font-size:10px;padding:6px 8px;max-width:180px}
 #map .bus-map-credit{font-size:9px}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce), (max-height:540px) and (hover:none) and (pointer:coarse) and (prefers-reduced-motion:reduce){
 .bus-panel{transition:none}
}


/* Live approach ordering, the last missed bus, and interactive follow-card state. */
.bus-card.is-passed{border-color:#dadada;background:#f0f0f0;color:#777;box-shadow:none}
.bus-panel .bus-card.is-passed .bus-card-main{cursor:default;color:#777;background:#f0f0f0;opacity:1}
.bus-panel .bus-card.is-passed .bus-card-main:hover{background:#f0f0f0}
.bus-card.is-passed .bus-card-route{color:#898989}
.bus-card.is-passed .bus-card-fleet{color:#777}
.bus-card.is-passed .bus-card-message{font-size:.7rem;color:#888;margin-top:4px}
.bus-passed-label{font-weight:750;font-size:.9rem;letter-spacing:-.015em;color:#595959;margin-top:9px}
.bus-marker-icon.is-passed{opacity:.4;filter:grayscale(1)}
#map .bus-eta-panel[role="button"]{cursor:pointer;touch-action:manipulation;transition:box-shadow .2s ease,border-color .2s ease}
#map .bus-eta-panel[role="button"]:hover{box-shadow:0 4px 18px #00000025}
#map .bus-eta-panel[role="button"]:focus-visible{outline:3px solid #111;outline-offset:3px}
#map .bus-eta-panel.is-following{border:2px solid #111;background:#fff}
#map .bus-eta-follow-hint{
 display:flex;align-items:center;gap:7px;padding:8px 0 0;margin-top:9px;
 border-top:1px solid #e3e3e3;font-size:.73rem;font-weight:700;color:#666;line-height:1.3
}
#map .bus-eta-panel.is-following .bus-eta-follow-hint{color:#111}
@media(prefers-reduced-motion:reduce){
 #map .bus-eta-panel[role="button"]{transition:none}
}


/* Compact choices, geocoder suggestions and three candidate stop pins. */
.stop-search-controls[hidden],.selected-stop[hidden],.nearby-results[hidden],.bus-scroll-track[hidden]{display:none!important}
.bus-panel .selected-stop{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;
 border:1px solid #d5d5d5;background:#f4f4f4}
.bus-panel .selected-stop strong{font-size:.87rem;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.bus-panel .selected-stop button{display:grid;place-items:center;flex:0 0 30px;height:30px;padding:0;margin:0;
 border:0;background:transparent;color:#222;font-size:16px}
.bus-panel .selected-stop button:hover{background:#dedede;color:#111}
.address-options{background:#fafafa;border-bottom:1px solid #ddd}
.address-options-title{font-size:.7rem;font-weight:800;color:#555;padding:10px 12px 6px}
.address-options-note{font-size:.76rem;color:#666;padding:7px 12px}
.address-option-glyph{font-size:1.25rem;flex:0 0 36px;text-align:center;color:#444}
.route-address-option .route-description{flex:1;min-width:0;overflow-wrap:anywhere}
.address-options-credit{font-size:.62rem;color:#777;padding:7px 12px}
.nearby-candidate-pin{border:0;background:none}
.nearby-candidate-pin span{display:grid;place-items:center;width:30px;height:30px;color:white;background:#111;
 border:2px solid white;border-radius:50%;box-shadow:0 2px 7px #0006;font-weight:800;font-size:13px}
/* Native scroll remains keyboard/touch accessible; JS powers the discreet overlay thumb. */
.bus-layout{position:relative}
.bus-panel{scrollbar-width:none;-ms-overflow-style:none}
.bus-panel::-webkit-scrollbar{display:none;width:0;height:0}
.bus-scroll-track{position:absolute;top:14px;bottom:14px;left:calc(var(--bus-panel-width,390px) - 8px);
 width:7px;border-radius:4px;pointer-events:auto;cursor:pointer;z-index:10;opacity:0;transition:opacity .18s ease}
.bus-scroll-track span{position:absolute;top:0;left:0;width:100%;border-radius:4px;background:#858585;cursor:grab;touch-action:none}
.bus-layout:hover .bus-scroll-track,.bus-layout.is-panel-scrolling .bus-scroll-track{opacity:.75}
@media (max-width:760px), (max-height:540px) and (hover:none) and (pointer:coarse){
 .bus-scroll-track{display:none!important}
 .bus-panel .selected-stop{padding:9px 10px}
}

/* Address lookup feedback: animated, screen-reader friendly, reduced-motion aware. */
.address-options-loading{display:flex;align-items:center;gap:10px;font-weight:650;color:#303030}
.address-search-spinner{display:inline-block;flex:0 0 16px;width:16px;height:16px;box-sizing:border-box;border:2px solid #d0d0d0;border-top-color:#222;border-radius:50%;animation:address-search-spin .75s linear infinite}
@keyframes address-search-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.address-search-spinner{animation:none;border-top-color:#222;border-right-color:#222}}

/* Reuse the address lookup spinner while Transport Canberra data first loads. */
.bus-panel .bus-status-loading{display:flex;align-items:center;gap:10px}
.bus-panel .bus-status-loading .address-search-spinner{flex-shrink:0}
