.transport-page{display:grid;gap:18px}.transport-live-card{padding:0;overflow:hidden}.transport-live-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 12px}.transport-live-head h2{margin:3px 0 5px}.transport-live-head p{margin:0;color:#5d7183}.transport-static-updated{display:block;margin-top:6px;color:#718293;font-size:12px}.transport-map-controls{display:grid;gap:10px;padding:0 18px 14px}.transport-filter-row{display:flex;gap:7px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.transport-filter-row::-webkit-scrollbar{display:none}.transport-filter-btn{appearance:none;border:1px solid #d7e3ee;background:#fff;color:#26465f;border-radius:999px;padding:8px 11px;font:inherit;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer}.transport-filter-btn.is-active{border-color:#258fca;background:#eaf7ff;color:#136a9c}.transport-filter-btn:disabled{opacity:.55;cursor:not-allowed}.transport-route-control{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.transport-route-control label{font-size:13px;font-weight:800;color:#40586c}.transport-route-select{width:100%;min-width:0;border:1px solid #d5e2ed;border-radius:12px;background:#fff;color:#18364d;padding:10px 34px 10px 11px;font:inherit;font-size:14px}.transport-route-select:focus{outline:2px solid rgba(47,158,210,.22);border-color:#2f9ed2}.transport-map-frame{position:relative;border-top:1px solid #e1eaf1;background:#eaf3f7}.transport-map{height:min(56vh,520px);min-height:340px;width:100%;z-index:1}.transport-map-toolbar{position:absolute;top:10px;left:10px;right:10px;z-index:500;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}.transport-map-expand,.transport-map-back{pointer-events:auto;border:0;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 6px 20px rgba(23,59,87,.18);min-height:42px;padding:9px 12px;color:#173c57;font:inherit;font-size:13px;font-weight:900;cursor:pointer}.transport-map-back{display:inline-flex;align-items:center;gap:7px;margin-right:auto}.transport-map-back[hidden]{display:none}.transport-map-status{position:absolute;z-index:500;left:50%;bottom:10px;transform:translateX(-50%);max-width:calc(100% - 24px);padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 5px 17px rgba(23,59,87,.15);font-size:12px;font-weight:800;color:#40586c;text-align:center;pointer-events:none}.transport-map-status[data-state=error]{color:#9b3e31}.transport-map-status[data-state=warning]{color:#7f6200}.transport-route-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-top:1px solid #e1eaf1;background:#fff}.transport-route-summary strong{display:block}.transport-route-summary small{display:block;color:#6a7c8c;margin-top:2px}.transport-map-frame.is-fullscreen{position:fixed;inset:0;z-index:5000;background:#eaf3f7}.transport-map-frame.is-fullscreen .transport-map{height:100dvh;min-height:100dvh}.transport-map-frame.is-fullscreen .transport-map-expand{display:none}.transport-map-frame.is-fullscreen .transport-map-toolbar{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}.transport-map-frame.is-fullscreen .transport-map-status{bottom:max(12px,env(safe-area-inset-bottom))}.transport-map-is-fullscreen{overflow:hidden;overscroll-behavior:none}.transport-map-note{margin:0;padding:10px 18px 15px;color:#687b8b;font-size:12px;line-height:1.45}.transport-summary-card,.transport-recent,.transport-seo{display:grid;gap:16px}.transport-event-list{display:grid;gap:12px}.transport-event-card{border:1px solid #dfe8f1;background:#fff;border-radius:16px;padding:15px 16px;box-shadow:0 7px 22px rgba(24,63,96,.055)}.transport-event-card h3{margin:8px 0 10px;font-size:18px;line-height:1.3}.transport-status-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.transport-status-line small{color:#667789}.transport-status-pill{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#eef3f7;color:#405466}.transport-status-pill.is-active{background:#fff0e8;color:#a44a14}.transport-status-pill.is-planned{background:#fff8d9;color:#7b6200}.transport-status-pill.is-resolved,.transport-status-pill.is-recent{background:#edf7ef;color:#3e6849}.transport-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.transport-tags span{padding:4px 8px;border-radius:999px;background:#edf5ff;color:#245987;font-size:12px;font-weight:700}.transport-message{margin:0;color:#263c50;line-height:1.55}.transport-until{margin:10px 0 0;color:#52677a}.transport-updated{margin:0;color:#718293;font-size:13px}.transport-event-list.is-recent .transport-event-card{box-shadow:none;background:#fbfcfd}.transport-seo-intro{margin:0;color:#314b5f;line-height:1.6}.transport-route-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.transport-route-group{border:1px solid #e0e9f0;border-radius:15px;padding:13px;background:#fbfdff}.transport-route-group h3{margin:0 0 9px;font-size:16px}.transport-route-chips{display:flex;flex-wrap:wrap;gap:6px}.transport-route-chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;border-radius:9px;background:#edf6fb;color:#24536f;font-size:12px;font-weight:800}.transport-seo h2{margin-bottom:0}.transport-seo h3{margin-top:0}.transport-seo p{line-height:1.6}.transport-faq{display:grid;gap:10px}.transport-faq article{border-top:1px solid #e5edf3;padding-top:11px}.transport-faq article:first-child{border-top:0;padding-top:0}.transport-faq h3{margin:0 0 5px;font-size:16px}.transport-faq p{margin:0;color:#40576a}.leaflet-container{font-family:inherit}.leaflet-popup-content{font-size:13px;line-height:1.45}.leaflet-control-attribution{font-size:10px!important}@media(max-width:820px){.transport-route-groups{grid-template-columns:1fr}.transport-live-head{padding:15px 14px 10px}.transport-map-controls{padding:0 14px 12px}.transport-route-summary{padding:11px 14px}.transport-map-note{padding:9px 14px 13px}}@media(max-width:640px){.transport-page{gap:12px}.transport-live-head{display:block}.transport-route-control{grid-template-columns:1fr;gap:5px}.transport-map{height:52vh;min-height:330px}.transport-event-card{padding:13px;border-radius:14px}.transport-event-card h3{font-size:16px}.transport-message{font-size:14px}.transport-status-line{align-items:flex-start}.transport-map-expand{min-height:40px;padding:8px 10px}.transport-map-status{max-width:calc(100% - 18px)}.transport-map-frame.is-fullscreen .transport-map{height:100dvh;min-height:100dvh}}@media(min-width:1100px){.transport-map-frame.is-fullscreen{inset:20px;border-radius:20px;overflow:hidden;box-shadow:0 20px 70px rgba(20,49,69,.35)}.transport-map-frame.is-fullscreen .transport-map{height:calc(100dvh - 40px);min-height:calc(100dvh - 40px)}}

/* Stage 2.1: compact SEO disclosure + unobtrusive required map attribution */
.transport-seo-disclosure{padding:0!important;overflow:hidden;gap:0!important}
.transport-seo-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:14px 16px;cursor:pointer;color:#29495f;font-size:14px;font-weight:850;user-select:none}
.transport-seo-summary::-webkit-details-marker{display:none}
.transport-seo-summary:hover{background:#f8fbfd}
.transport-seo-chevron{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:#eef6fb;color:#357396;font-size:18px;line-height:1;transition:transform .18s ease}
.transport-seo-disclosure[open] .transport-seo-chevron{transform:rotate(180deg)}
.transport-seo-body{display:grid;gap:16px;padding:0 16px 16px;border-top:1px solid #e6eef4}
.transport-seo-body>h2{padding-top:15px}
.leaflet-control-attribution{padding:2px 5px!important;background:rgba(255,255,255,.84)!important;font-size:9px!important;line-height:1.2!important}
.leaflet-control-attribution a{color:#496b80!important}
@media(max-width:640px){.transport-seo-summary{min-height:48px;padding:12px 14px;font-size:13px}.transport-seo-body{padding:0 14px 14px}.leaflet-control-attribution{font-size:8px!important}}

/* Stage 3: GTFS-Realtime vehicle positions */
.transport-map-status[data-state=live]{color:#216b46;background:rgba(245,255,248,.96)}
.transport-vehicle-marker{background:transparent!important;border:0!important}
.transport-vehicle-dot{display:flex;align-items:center;justify-content:center;gap:2px;min-width:38px;height:30px;padding:2px 6px;border:2px solid #fff;border-radius:15px;background:#1687c9;box-shadow:0 4px 14px rgba(17,54,78,.28);color:#fff;white-space:nowrap;transform:translateZ(0)}
.transport-vehicle-dot>span{font-size:15px;line-height:1}.transport-vehicle-dot>b{font-size:11px;line-height:1;font-weight:900;text-shadow:0 1px 1px rgba(0,0,0,.18)}
.transport-vehicle-dot.is-tram{background:#238a5b}.transport-vehicle-dot.is-trolleybus{background:#2676b9}.transport-vehicle-dot.is-bus{background:#c78514}
.transport-map-frame.is-fullscreen .transport-vehicle-dot{min-width:42px;height:32px}
@media(max-width:640px){.transport-vehicle-dot{min-width:36px;height:28px;padding:2px 5px}.transport-vehicle-dot>span{font-size:14px}.transport-vehicle-dot>b{font-size:10px}}
.transport-route-direction{display:block;margin-top:3px;color:#264e6b;font-size:13px;font-weight:800;line-height:1.35}.transport-popup-direction{display:inline-block;margin-top:4px;color:#324f63;font-size:12px;line-height:1.45}.transport-popup-direction span{font-weight:800;color:#173c57}
/* Stage 3.2: route focus / reset UX */
.transport-map{transition:height .24s ease,min-height .24s ease}
.transport-map-frame.has-active-route:not(.is-fullscreen) .transport-map{height:min(70vh,680px);min-height:500px}
.transport-map-reset{pointer-events:auto;border:0;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 6px 20px rgba(23,59,87,.18);min-height:42px;padding:9px 12px;color:#173c57;font:inherit;font-size:13px;font-weight:900;cursor:pointer;margin-right:8px;display:inline-flex;align-items:center;gap:6px}
.transport-map-reset[hidden]{display:none}
.transport-map-frame.is-fullscreen .transport-map-reset{display:inline-flex;margin-left:auto}
.transport-map-frame.is-fullscreen .transport-map-reset[hidden]{display:none}
@media(max-width:640px){
  .transport-map-frame.has-active-route:not(.is-fullscreen) .transport-map{height:68dvh;min-height:480px;max-height:680px}
  .transport-map-reset{min-height:40px;padding:8px 10px;font-size:12px}
  .transport-map-frame.is-fullscreen .transport-map-reset span{display:inline}
}
@media(max-width:390px){
  .transport-map-frame.is-fullscreen .transport-map-reset{width:auto;justify-content:center;padding:8px 9px}
  .transport-map-frame.is-fullscreen .transport-map-filter-toggle{width:auto;min-width:72px;justify-content:center;padding:8px 9px}
  .transport-map-frame.is-fullscreen .transport-map-filter-toggle span{display:inline}
}

/* Stage 3.3: fullscreen filters + clearer data labels */
.transport-fullscreen-controls{display:none}
.transport-map-frame.is-fullscreen.is-filters-open .transport-fullscreen-controls{
  display:grid;
  gap:8px;
  position:absolute;
  z-index:510;
  top:calc(max(10px,env(safe-area-inset-top)) + 54px);
  left:max(10px,env(safe-area-inset-left));
  right:max(10px,env(safe-area-inset-right));
  max-width:720px;
  margin:0 auto;
  padding:9px;
  border:1px solid rgba(205,222,233,.9);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 28px rgba(23,59,87,.2);
  backdrop-filter:blur(8px);
}
.transport-filter-row-full{margin:0;padding:0}
.transport-route-control-full{grid-template-columns:auto minmax(0,1fr)}
.transport-map-frame.is-fullscreen .transport-route-control-full label{font-size:12px}
.transport-map-frame.is-fullscreen .transport-route-control-full .transport-route-select{min-height:40px;padding-top:8px;padding-bottom:8px;background:#fff}
.transport-static-updated{font-weight:700;color:#557286}
.transport-map-note{font-weight:700;color:#48677c}
@media(max-width:640px){
  .transport-map-frame.is-fullscreen .transport-fullscreen-controls{
    top:calc(max(8px,env(safe-area-inset-top)) + 50px);
    left:max(8px,env(safe-area-inset-left));
    right:max(8px,env(safe-area-inset-right));
    padding:8px;
    border-radius:14px;
  }
  .transport-route-control-full{grid-template-columns:1fr;gap:4px}
  .transport-map-frame.is-fullscreen .transport-route-control-full label{display:none}
  .transport-map-frame.is-fullscreen .transport-filter-btn{padding:7px 9px;font-size:12px}
  .transport-map-frame.is-fullscreen .transport-route-control-full .transport-route-select{font-size:13px}
}

/* Stage 3.4: reliable live-vehicle tapping */
.leaflet-live-vehicles-pane{z-index:650!important;pointer-events:auto!important}
.leaflet-live-vehicles-pane .leaflet-marker-icon{pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation}
.transport-vehicle-marker{pointer-events:auto!important;cursor:pointer!important}
.transport-vehicle-popup .leaflet-popup-content{min-width:150px}


/* Stage 3.5: collapsible fullscreen filter panel */
.transport-map-filter-toggle{display:none;pointer-events:auto;border:0;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 6px 20px rgba(23,59,87,.18);min-height:42px;padding:9px 12px;color:#173c57;font:inherit;font-size:13px;font-weight:900;cursor:pointer;align-items:center;gap:6px;margin-left:8px}
.transport-map-frame.is-fullscreen .transport-map-filter-toggle{display:inline-flex}
.transport-map-filter-toggle.is-active{background:#eaf7ff;color:#136a9c;box-shadow:0 6px 20px rgba(23,59,87,.22)}
.transport-map-frame.is-fullscreen.is-filters-open .transport-map-filter-toggle{background:#eaf7ff;color:#136a9c}
@media(max-width:640px){
  .transport-map-frame.is-fullscreen .transport-map-filter-toggle{min-height:40px;padding:8px 10px;font-size:12px}
  .transport-map-frame.is-fullscreen.is-filters-open .transport-fullscreen-controls{top:calc(max(8px,env(safe-area-inset-top)) + 50px)}
}
@media(max-width:390px){
  .transport-map-frame.is-fullscreen .transport-map-filter-toggle{padding:8px 10px}
}


/* Stage 3.6: mobile embedded gestures + fullscreen route filter flow */
.transport-popup-fullscreen{display:block;width:100%;margin:9px 0 1px;padding:8px 10px;border:0;border-radius:10px;background:#1687c9;color:#fff;font:inherit;font-size:12px;font-weight:900;line-height:1.2;cursor:pointer}
.transport-popup-fullscreen:active{transform:translateY(1px)}

/* Stage 3.7: mobile page scroll + clean Live map */
.transport-map-status[hidden]{display:none!important}
@media(pointer:coarse){
  .transport-map-frame:not(.is-fullscreen) .transport-map.leaflet-container,
  .transport-map-frame:not(.is-fullscreen) .transport-map.leaflet-container.leaflet-touch-drag,
  .transport-map-frame:not(.is-fullscreen) .transport-map.leaflet-container.leaflet-touch-zoom{
    cursor:default;
    touch-action:pan-y pinch-zoom!important;
    -ms-touch-action:pan-y pinch-zoom!important;
    overscroll-behavior:auto!important;
  }
  /* New GPS positions glide instead of visibly jumping every poll. */
  .transport-map-frame:not(.is-fullscreen) .leaflet-live-vehicles-pane .leaflet-marker-icon{
    transition:transform .9s linear;
  }
}


/* Stage 3.8: fullscreen selected-route card */
.transport-fullscreen-route-card{display:none}
.transport-map-frame.is-fullscreen.has-active-route .transport-fullscreen-route-card:not([hidden]){
  display:grid;
  gap:4px;
  position:absolute;
  z-index:520;
  right:max(12px,env(safe-area-inset-right));
  bottom:max(34px,calc(env(safe-area-inset-bottom) + 26px));
  width:min(320px,calc(100% - 24px));
  padding:12px;
  border:1px solid rgba(207,222,232,.92);
  border-radius:16px;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 30px rgba(23,59,87,.24);
  backdrop-filter:blur(9px);
  pointer-events:auto;
}
.transport-fullscreen-route-card strong{font-size:14px;line-height:1.25;color:#173c57}
.transport-fullscreen-route-direction{font-size:13px;line-height:1.35;font-weight:850;color:#265b7b}
.transport-fullscreen-route-card small{font-size:11px;line-height:1.3;color:#6b7f8e}
.transport-fullscreen-route-label{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-top:5px;
  padding:6px 9px;
  border-radius:999px;
  background:#edf6fb;
  color:#24536f;
  font-size:11px;
  font-weight:900;
}
@media(max-width:640px){
  .transport-map-frame.is-fullscreen.has-active-route .transport-fullscreen-route-card:not([hidden]){
    right:max(8px,env(safe-area-inset-right));
    bottom:max(30px,calc(env(safe-area-inset-bottom) + 24px));
    width:min(250px,calc(100% - 16px));
    padding:10px;
    border-radius:14px;
  }
  .transport-fullscreen-route-card strong{font-size:13px}
  .transport-fullscreen-route-direction{font-size:12px}
  .transport-fullscreen-route-label{padding:5px 8px;font-size:10px}
}


/* Stage 3.9: route endpoints + always-visible reset label */
.transport-route-endpoint-marker{background:transparent!important;border:0!important}
.transport-route-endpoint-marker span{display:grid;place-items:center;width:30px;height:30px;border:3px solid #fff;border-radius:50%;box-shadow:0 4px 14px rgba(19,55,82,.28);font-size:12px;font-weight:950;color:#fff}
.transport-route-endpoint-marker.is-start span{background:#1687c9}
.transport-route-endpoint-marker.is-end span{background:#f0a800}
.transport-route-endpoint-tooltip{border:0!important;border-radius:10px!important;padding:4px 7px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 3px 10px rgba(23,59,87,.18)!important;color:#173c57!important;font:inherit!important;font-size:10px!important;font-weight:900!important;max-width:180px!important;white-space:normal!important;text-align:center!important;line-height:1.2!important}
.transport-route-endpoint-tooltip:before{display:none!important}
.transport-route-endpoint-tooltip.is-start{color:#116792!important}
.transport-route-endpoint-tooltip.is-end{color:#8a6200!important}
@media(max-width:640px){
  .transport-route-endpoint-marker span{width:28px;height:28px;font-size:11px}
  .transport-route-endpoint-tooltip{font-size:9px!important;padding:3px 6px!important}
}


/* Stage 3.17: selected-route sharing */
.transport-fullscreen-route-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}
.transport-fullscreen-route-actions .transport-fullscreen-route-label{margin-top:0;flex:0 0 auto}
.transport-route-share{appearance:none;border:0;border-radius:999px;background:#1687c9;color:#fff;padding:6px 10px;font:800 11px/1.15 inherit;cursor:pointer;box-shadow:0 4px 12px rgba(22,135,201,.2);white-space:nowrap}
.transport-route-share:hover{background:#0d75b3}
.transport-route-share:focus-visible{outline:3px solid rgba(22,135,201,.28);outline-offset:2px}
@media(max-width:640px){.transport-fullscreen-route-actions{gap:6px}.transport-route-share{padding:5px 8px;font-size:10px}}

/* Stage 3.19: embedded full-route accordion + hard reset of selected-route card */
.transport-route-summary[hidden],
.transport-route-summary:not(.is-visible){display:none!important}
.transport-route-summary.is-visible{display:grid!important;gap:10px}
.transport-route-summary-main{display:grid;gap:3px}
.transport-route-stops{border-top:1px solid #e2ebf2;padding-top:8px}
.transport-route-stops[hidden]{display:none!important}
.transport-route-stops summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;color:#176f9f;font-size:13px;font-weight:900;user-select:none}
.transport-route-stops summary::-webkit-details-marker{display:none}
.transport-route-stops summary:after{content:'⌄';flex:0 0 auto;font-size:17px;line-height:1;transition:transform .18s ease}
.transport-route-stops[open] summary:after{transform:rotate(180deg)}
.transport-route-stops-count{margin-left:auto;color:#7a8b98;font-size:11px;font-weight:750;white-space:nowrap}
.transport-route-stops-list{display:grid;gap:5px;margin-top:9px;max-height:300px;overflow:auto;padding:2px 2px 4px;overscroll-behavior:contain}
.transport-route-stop-item{appearance:none;width:100%;display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:8px;border:0;border-radius:10px;background:#f6fafc;color:#24465d;padding:7px 9px;text-align:left;font:700 12px/1.3 inherit;cursor:pointer}
.transport-route-stop-item:hover{background:#edf7fc}
.transport-route-stop-item:focus-visible{outline:3px solid rgba(22,135,201,.2);outline-offset:1px}
.transport-route-stop-index{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#dff1fb;color:#126f9f;font-size:10px;font-weight:950}
@media(max-width:640px){
  .transport-route-summary.is-visible{gap:8px}
  .transport-route-stops summary{font-size:12px}
  .transport-route-stops-count{font-size:10px}
  .transport-route-stops-list{max-height:260px}
  .transport-route-stop-item{padding:7px 8px;font-size:11px}
}


/* Stage 3.20: GTFS-RT vehicle heading */
.transport-vehicle-dot{position:relative;overflow:visible}
.transport-vehicle-heading{position:absolute;left:50%;top:-15px;width:18px;height:18px;margin-left:-9px;border:1px solid rgba(198,214,226,.95);border-radius:50%;background:rgba(255,255,255,.98);box-shadow:0 2px 7px rgba(17,54,78,.24);color:#1687c9;pointer-events:none;transform:rotate(var(--transport-bearing));transform-origin:50% 50%;transition:transform .35s ease;z-index:3}
.transport-vehicle-heading::before{content:"▲";position:absolute;left:0;top:1px;width:100%;height:16px;text-align:center;font-size:10px;font-weight:900;line-height:16px}
.transport-vehicle-dot.is-tram .transport-vehicle-heading{color:#238a5b}
.transport-vehicle-dot.is-trolleybus .transport-vehicle-heading{color:#2676b9}
.transport-vehicle-dot.is-bus .transport-vehicle-heading{color:#c78514}
.transport-map-frame.is-fullscreen .transport-vehicle-heading{top:-17px;width:20px;height:20px;margin-left:-10px}
.transport-map-frame.is-fullscreen .transport-vehicle-heading::before{height:18px;line-height:18px;font-size:11px}

/* SEO directory v21 */
.transport-seo-stats{margin:0;color:#314b5f;line-height:1.6}
.transport-route-directory{list-style:none;margin:0;padding:0;display:grid;gap:7px;max-height:430px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.transport-route-directory-item{display:grid;grid-template-columns:minmax(105px,auto) minmax(0,1fr) auto;align-items:start;gap:6px 10px;padding:8px 9px;border-radius:10px;background:#fff;border:1px solid #e7eef4;color:#29495f}
.transport-route-directory-item strong{font-size:13px;line-height:1.35;color:#173f59}
.transport-route-directory-item span{font-size:12px;line-height:1.4;color:#405b6d;min-width:0}
.transport-route-directory-item small{font-size:11px;line-height:1.35;color:#718493;white-space:nowrap}
.transport-official-source{font-weight:800;color:#1677aa;text-decoration:none}
.transport-official-source:hover{text-decoration:underline}
.transport-related-links{border-top:1px solid #e5edf3;padding-top:13px}
.transport-related-links h3{margin:0 0 9px;font-size:16px}
.transport-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.transport-related-grid a{display:flex;align-items:center;min-height:42px;padding:9px 10px;border:1px solid #dfe9f1;border-radius:12px;background:#fbfdff;color:#24536f;font-size:12px;font-weight:800;line-height:1.35;text-decoration:none}
.transport-related-grid a:hover{background:#eef8fd;border-color:#cce5f2}
@media(max-width:820px){.transport-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.transport-route-directory-item{grid-template-columns:minmax(100px,auto) minmax(0,1fr)}.transport-route-directory-item small{grid-column:2;white-space:normal}}
@media(max-width:520px){.transport-related-grid{grid-template-columns:1fr}.transport-route-directory{max-height:360px}.transport-route-directory-item{grid-template-columns:1fr;gap:3px}.transport-route-directory-item small{grid-column:auto}.transport-route-groups{gap:10px}}


/* v22: hard mobile fullscreen scroll lock.
   White overlay controls must never scroll/rubber-band the page behind the map. */
html.transport-map-is-fullscreen,
body.transport-map-is-fullscreen{
  height:100%;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.transport-map-is-fullscreen{
  max-width:100%;
  touch-action:none;
}
.transport-map-frame.is-fullscreen{
  overscroll-behavior:none;
  touch-action:none;
}
.transport-map-frame.is-fullscreen .transport-map{
  touch-action:none!important;
}
.transport-map-frame.is-fullscreen .transport-map-toolbar,
.transport-map-frame.is-fullscreen .transport-fullscreen-controls,
.transport-map-frame.is-fullscreen .transport-fullscreen-route-card{
  overscroll-behavior:contain;
}
.transport-map-frame.is-fullscreen button,
.transport-map-frame.is-fullscreen select,
.transport-map-frame.is-fullscreen a{
  touch-action:manipulation;
}

/* v23: lower mobile fullscreen toolbar below the phone/browser top edge. */
@media(max-width:640px){
  .transport-map-frame.is-fullscreen .transport-map-toolbar{
    top:calc(max(10px,env(safe-area-inset-top)) + 20px);
  }
  .transport-map-frame.is-fullscreen .transport-fullscreen-controls,
  .transport-map-frame.is-fullscreen.is-filters-open .transport-fullscreen-controls{
    top:calc(max(10px,env(safe-area-inset-top)) + 72px);
  }
}


/* v24: fullscreen full-route stop list */
.transport-fullscreen-route-label{
  appearance:none;
  border:0;
  cursor:pointer;
  font-family:inherit;
}
.transport-fullscreen-route-label:disabled{
  opacity:.55;
  cursor:default;
}
.transport-fullscreen-route-label:focus-visible,
.transport-fullscreen-stops-close:focus-visible,
.transport-fullscreen-stop-item:focus-visible{
  outline:3px solid rgba(22,135,201,.26);
  outline-offset:2px;
}
.transport-fullscreen-stops-panel{
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  width:min(340px,calc(100vw - 24px));
  max-height:min(54dvh,430px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(207,222,232,.96);
  border-radius:15px;
  background:rgba(255,255,255,.98);
  box-shadow:0 14px 38px rgba(23,59,87,.27);
  backdrop-filter:blur(10px);
  pointer-events:auto;
}
.transport-fullscreen-stops-panel[hidden]{display:none!important}
.transport-fullscreen-stops-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px 9px 12px;
  border-bottom:1px solid #e5edf3;
  background:#fbfdff;
}
.transport-fullscreen-stops-head>div{display:grid;gap:1px;min-width:0}
.transport-fullscreen-stops-head strong{font-size:13px;line-height:1.2;color:#173c57}
.transport-fullscreen-stops-head small{font-size:10px;line-height:1.25;color:#718493}
.transport-fullscreen-stops-close{
  appearance:none;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:#eef5f9;
  color:#294f68;
  font:900 23px/1 inherit;
  cursor:pointer;
}
.transport-fullscreen-stops-close:active{transform:scale(.96)}
.transport-fullscreen-stops-list{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  display:grid;
  align-content:start;
  gap:5px;
  padding:8px;
}
.transport-fullscreen-stop-item{
  appearance:none;
  width:100%;
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  align-items:center;
  gap:8px;
  border:0;
  border-radius:10px;
  background:#f6fafc;
  color:#24465d;
  padding:8px 9px;
  text-align:left;
  font:750 12px/1.3 inherit;
  cursor:pointer;
}
.transport-fullscreen-stop-item:hover{background:#edf7fc}
.transport-fullscreen-stop-index{
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  background:#dff1fb;
  color:#126f9f;
  font-size:10px;
  font-weight:950;
}
@media(max-width:640px){
  .transport-fullscreen-stops-panel{
    right:-2px;
    width:min(300px,calc(100vw - 16px));
    max-height:min(52dvh,390px);
    border-radius:14px;
  }
  .transport-fullscreen-stops-head{padding:9px 9px 8px 10px}
  .transport-fullscreen-stops-close{width:34px;height:34px}
  .transport-fullscreen-stops-list{padding:7px;gap:4px}
  .transport-fullscreen-stop-item{padding:8px;font-size:11px}
}


/* v27: single Canvas renderer for all moving Live vehicles. */
.transport-live-canvas{position:absolute;inset:0;z-index:650;width:100%;height:100%;pointer-events:none;touch-action:none;background:transparent!important}
.transport-map-frame.is-fullscreen .transport-live-canvas{z-index:650}

/* v29: compact overview + route live count. */
.transport-popup-live-count{display:inline-flex;align-items:center;gap:5px;margin-top:4px;color:#23714d;font-size:12px;font-weight:900}
