/* Map-first interface. Route geometry and timetable live in magistral.html. */
body.map-first{--ink:light-dark(#18332b,#edf3ed);--muted:light-dark(#65756d,#adbbb1);--line:light-dark(#dfe7df,#39463f);--paper:light-dark(#fff,#202b25);--canvas:light-dark(#edf1eb,#16201b);--soft:light-dark(#f1f4ef,#2b3830);--brand:light-dark(#214d3a,#c8e4a7);--on-brand:light-dark(#fff,#1b3220);color-scheme:light dark;background:var(--canvas);color:var(--ink);font:14px/1.45 "Segoe UI",system-ui,sans-serif;height:100dvh;min-height:0;overflow:hidden}
html[data-map-theme="light"]{color-scheme:light}html[data-map-theme="dark"]{color-scheme:dark}
html[data-map-theme] body.map-first{color-scheme:inherit}
.map-first button,.map-first select,.map-first input{font-family:inherit}.map-first button:focus-visible,.map-first select:focus-visible,.map-first summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.map-first button:hover{background:var(--soft)}
.map-first>.app-header{position:relative;z-index:50;padding:15px 24px;gap:22px;min-height:76px;background:var(--paper);border-bottom:1px solid var(--line)}
.map-first .brand{gap:11px}.map-first .brand-icon{width:38px;height:38px;border-radius:12px;box-shadow:none;background:var(--brand);color:var(--on-brand)}.map-first .brand-icon .icon{width:22px;height:22px}
.map-first .brand h1{font-size:22px;line-height:1.1;letter-spacing:-.7px;margin:1px 0 0}.map-first .brand .eyebrow{font-size:10px;letter-spacing:.06em;color:var(--muted);font-weight:500}
.map-first .app-header .header-info{display:none}.map-first .route-picker{min-width:0;max-width:440px;flex:1;display:flex;justify-content:center}.map-first #routeSelect{font:600 13px/1.3 Segoe UI,system-ui,sans-serif;color:var(--ink);background:var(--soft);border:1px solid transparent;border-radius:12px;padding:11px 33px 11px 13px;width:100%;max-width:420px;min-width:0;text-overflow:ellipsis;cursor:pointer}.map-first #routeSelect option{background:var(--paper);color:var(--ink)}
.map-first .app-header>.shifts{flex:none;gap:3px;padding:4px;border-radius:14px;background:var(--soft);margin:0}.map-first .shifts button{flex:none;min-height:36px;justify-content:center;padding:8px 13px;border-radius:10px;font-size:12px}.map-first .shifts button .icon{width:17px;height:17px}.map-first .shifts small{display:none}.map-first .shifts button.active,.map-first .shifts button#night.active{background:var(--paper);color:var(--ink);box-shadow:0 2px 7px #17251c0a}.map-first .shifts button span{font-size:12px;font-weight:650}
.map-first .layout{display:block;position:relative;padding:0;margin:0;gap:0;flex:1;min-height:0;overflow:hidden}
.map-first .layout>.map,.map-first[data-view="list"] .layout>.map{display:block;position:absolute;inset:0;min-height:0;border:0;border-radius:0;box-shadow:none;background:var(--canvas);overflow:hidden}
.map-first #svg{width:100%;height:100%;touch-action:none}.map-first #svg [data-layer="tiles"]{filter:saturate(.52) contrast(.96)}
html[data-map-theme="dark"] .map-first #svg [data-layer="tiles"]{filter:invert(.92) hue-rotate(180deg) saturate(.48) brightness(.88)}
.map-first #svg text{stroke:var(--paper);paint-order:stroke fill}.map-first #svg .point:focus-visible{outline:none;filter:drop-shadow(0 0 4px var(--brand))}
.map-first .map-caption,.map-first .map-legend,.map-first #detail{display:none!important}
.map-first .search-palette{position:absolute;z-index:40;left:24px;top:20px;width:min(430px,calc(100% - 220px));pointer-events:none}
.map-first .search-palette>*{pointer-events:auto}.map-first .search-line{display:flex;align-items:center;background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 24px #18302712;border-radius:16px;padding:4px;gap:1px}
.map-first .search-line .search-wrap{flex:1;margin:0;border:0;background:transparent;border-radius:12px;min-width:0}.map-first .search-wrap>.icon{color:var(--muted);width:19px;height:19px;margin-left:11px}.map-first .search-wrap input{padding:12px 30px 12px 9px;font-size:14px;color:var(--ink)}.map-first .search-wrap input::placeholder{color:var(--muted);opacity:1}.map-first .search-wrap:focus-within{background:var(--soft)}.map-first #clearSearch{color:var(--muted)}
.map-first .search-line #openAddressSearch{width:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;margin:0;padding:9px 12px;border-radius:11px;background:var(--soft);color:var(--ink);font-size:12px;box-shadow:none}.map-first #openAddressSearch .icon{width:17px;height:17px}
.map-first .search-palette #openFeeder{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--muted);padding:8px 11px;margin:8px 0 0;font-size:12px;font-weight:500;box-shadow:0 2px 10px #18302708}.map-first #openFeeder span{font-size:14px;color:var(--ink)}
.map-first .journey-bar{position:absolute;z-index:20;bottom:44px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:1000px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:24px;align-items:center;padding:22px 24px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 40px #1b32221c;pointer-events:auto}
.map-first[data-view="list"] .journey-bar,.map-first[data-address-walk="true"] .journey-bar{display:none}
.map-first .journey-main{min-width:0}.map-first .journey-kicker{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:600;line-height:1.35}.map-first .journey-route{display:inline-grid;place-items:center;min-width:31px;height:28px;border-radius:9px;background:var(--journey-color,var(--brand));color:#fff;font-size:14px;font-weight:700;flex:none}.map-first .journey-route[data-all="true"]{background:var(--soft);color:var(--ink)}
.map-first .journey-main h2{font-size:22px;line-height:1.2;letter-spacing:-.6px;margin:9px 22px 4px 0;overflow-wrap:anywhere}.map-first .journey-hint{font-size:12px;line-height:1.4;color:var(--muted);margin:0}
.map-first .journey-times{display:flex;align-items:center;gap:24px}.map-first .journey-times small{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.map-first .journey-times strong{display:block;font-size:32px;line-height:1.1;letter-spacing:-1.1px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.map-first .journey-times .journey-arrival strong{color:var(--muted);font-size:29px}
.map-first #journeyStops{display:flex;align-items:center;justify-content:center;gap:9px;padding:15px 19px;min-height:54px;border-radius:13px;background:var(--brand);color:var(--on-brand);font-size:13px;font-weight:650;white-space:nowrap}.map-first #journeyStops:hover{filter:brightness(.96)}.map-first #journeyStops .icon{width:18px;height:18px}.map-first #journeyClear{position:absolute;top:8px;right:9px;padding:5px;width:29px;height:29px;border-radius:9px;color:var(--muted);font-size:21px;line-height:1}.map-first #journeyClear[hidden]{display:none}
.map-first .schedule-panel{position:absolute;z-index:30;left:24px;top:124px;bottom:44px;width:430px;max-width:calc(100% - 48px);display:flex;flex-direction:column;min-height:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:20px;box-shadow:0 10px 36px #18302720;overflow:hidden}
.map-first .schedule-panel[hidden]{display:none!important}.map-first .schedule-panel .panel-top,.map-first .mobile-views{display:none!important}
.map-first .drawer-header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px 10px;gap:10px;flex:none}.map-first .drawer-header h2{font-size:18px;letter-spacing:-.4px;margin:0}.map-first #closeSchedule{padding:3px;width:32px;height:32px;border-radius:9px;color:var(--muted);font-size:25px;line-height:1}
.map-first .schedule-panel .route-card,.map-first[data-view="map"] .schedule-panel .route-card{display:block;padding:0 20px 12px;border:0;background:transparent;flex:none}.map-first .route-heading h2{color:var(--ink)!important;font-size:13px;font-weight:600;letter-spacing:0}.map-first .shift-tag{background:var(--soft);color:var(--muted);border:0;border-radius:6px;font-size:10px}.map-first #routeSummary{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.5}.map-first .trip-stats{display:none!important}
.map-first .stop-filters{margin-top:10px}.map-first .stop-filters[hidden]{display:none!important}.map-first .stop-filters button{border-color:var(--line);background:var(--paper);color:var(--muted);font-size:11px}.map-first .stop-filters button.active{background:var(--soft);border-color:var(--line);color:var(--ink)}
.map-first .route-corridor{flex:none;padding:0 20px 12px;color:var(--muted);font-size:11px}.map-first .route-corridor summary{cursor:pointer;min-height:24px;padding:3px 0}.map-first #corridorSummary{padding:8px 0 0;margin:0;background:none;border:0;font-size:12px;line-height:1.5;color:var(--muted)}
.map-first .schedule-scroll,.map-first[data-view="map"] .schedule-panel .schedule-scroll{display:block;flex:1;min-height:0;overflow:auto;border-top:1px solid var(--line);scrollbar-color:var(--line) transparent;background:var(--paper)}
.map-first .schedule thead th{padding-top:11px;padding-bottom:11px;background:var(--paper);color:var(--muted);border-color:var(--line);font-size:10px;letter-spacing:.05em}.map-first .schedule td{border-color:var(--line)}.map-first .schedule .stop{padding:14px 0;font-size:13px;color:var(--ink);font-weight:600;line-height:1.4}.map-first .schedule .stop small{color:var(--muted);font-size:11px;font-weight:400}.map-first .schedule .clock{width:78px;padding-right:17px}.map-first .schedule td.clock .time-badge{font-size:14px;font-weight:650;background:var(--soft);color:var(--ink)}
.map-first .schedule tr:hover td,.map-first .schedule tr.selected td{background:var(--soft)}.map-first .schedule tr.terminal td{background:var(--soft)}.map-first .schedule .stop-dot{box-shadow:0 0 0 4px var(--paper)}.map-first .schedule td.number:after{background:var(--line)}.map-first .schedule .route-badge{box-shadow:0 0 0 4px var(--paper)}
.map-first .schedule-scroll footer{background:var(--paper);color:var(--muted);border-color:var(--line);padding:16px 20px}.map-first .schedule-scroll footer>p{display:none}.map-first footer details{color:var(--muted)}.map-first footer details p{font-size:12px;color:var(--muted);line-height:1.6}.map-first #publishedStatus{font-size:10px;color:var(--muted);margin-top:10px;line-height:1.5}
.map-first .map-tools{right:24px;top:20px;gap:6px;z-index:45}.map-first .map-tools>button,.map-first .map-options>summary{display:grid;place-items:center;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;width:44px;height:44px;padding:10px;box-shadow:0 2px 12px #1830270a}.map-first .map-tools .tool-text{display:none!important}.map-first .map-tools .icon{width:19px;height:19px;margin:0}.map-first .map-options .option-content{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:15px;box-shadow:0 8px 25px #18302720;right:0;top:54px;width:245px;padding:15px}.map-first .map-options label{font-size:12px;color:var(--ink);min-height:29px}.map-first .option-content input{accent-color:var(--brand)}
.map-first .theme-field{display:block;border-top:1px solid var(--line);margin-top:8px;padding-top:11px}.map-first #mapTheme{display:block;width:100%;margin-top:7px;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:12px;font-family:inherit}.map-first #mapQuality{position:static;margin:10px 0 0;padding:0;font-size:10px;line-height:1.5;text-align:left;color:var(--muted);background:none;border:0;box-shadow:none;max-width:100%}.map-first .map-options .public-city-toggle{position:static;display:flex;padding:0;margin:0;box-shadow:none;border:0;background:none;color:var(--ink);font-size:12px}
.map-first .controls{right:24px;bottom:50%;transform:translateY(50%);background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:4px;box-shadow:0 3px 14px #1830270e;overflow:hidden;z-index:12}.map-first .controls button{display:block;color:var(--ink);background:var(--paper);width:37px;height:37px;font-size:24px;border:0;border-radius:8px}.map-first .controls button:hover{background:var(--soft)}
.map-first .map-scale{left:24px;right:auto;bottom:15px;border-color:var(--muted);color:var(--ink);font-size:10px;background:var(--paper);padding:3px 6px;border-radius:4px}.map-first .attribution{left:auto;right:24px;bottom:13px;background:var(--paper);color:var(--muted);font-size:10px;border-radius:5px;padding:3px 6px;max-width:60%;line-height:1.3}.map-first .attribution a{color:inherit}
.map-first .public-city-card{left:24px;top:125px;bottom:auto;z-index:25;background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:0 8px 28px #18302720;max-width:330px}.map-first .public-city-card p{color:var(--muted)}
.map-first .address-map-card{z-index:25;left:50%;right:auto;transform:translateX(-50%);bottom:44px;width:calc(100% - 48px);max-width:1000px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:20px 24px;box-shadow:0 10px 40px #18302720}.map-first .address-map-card h3{color:var(--ink);font-size:22px;letter-spacing:-.5px;max-width:80%}.map-first .address-map-card p{color:var(--muted);font-size:12px}.map-first .address-map-card>span{font-size:12px;color:var(--muted)}.map-first .address-map-card .address-card-clock{position:absolute;right:24px;top:18px;display:block;margin:0;padding:0;border:0;text-align:right;color:var(--muted)}.map-first .address-card-clock strong{font-size:32px;line-height:1.25;color:var(--ink)}.map-first .address-map-actions{margin-top:12px}.map-first .address-map-actions a,.map-first .address-map-actions button{background:var(--soft);color:var(--ink);font-size:12px;padding:9px 11px;border:1px solid var(--line)}.map-first .address-map-card>.address-clear{top:3px;right:4px;color:var(--muted)}
.map-first .address-card-clock>span{display:block;margin-bottom:3px}
.map-first .address-pick-banner{top:124px;left:24px;right:24px;z-index:30;background:var(--paper);color:var(--ink);border-color:var(--line)}
.map-first dialog{background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:23px;box-shadow:0 20px 100px #0b201c40}.map-first dialog h2,.map-first dialog h3{color:var(--ink)}.map-first dialog .intro,.map-first .address-status,.map-first .feeder-hint{color:var(--muted)}.map-first .address-close{background:var(--soft);color:var(--ink);min-width:34px;min-height:34px}.map-first dialog input,.map-first dialog select{background:var(--paper);color:var(--ink);border-color:var(--line);font-size:16px}.map-first .address-primary,.map-first .feeder-fields button,.map-first .feeder-show{background:var(--brand);color:var(--on-brand)}.map-first .address-secondary{background:var(--soft);color:var(--ink);border-color:var(--line)}.map-first .address-choice,.map-first .address-result,.map-first .feeder-result{background:var(--paper);color:var(--ink);border-color:var(--line)}.map-first .address-result.best{background:var(--soft);border-color:var(--journey-color,var(--line))}.map-first .address-result small,.map-first .address-found small,.map-first .address-result-top,.map-first .feeder-metrics span,.map-first .feeder-result-kicker,.map-first .feeder-result ol span{color:var(--muted)}.map-first .address-result-actions,.map-first .feeder-metrics{border-color:var(--line)}.map-first .address-footnote,.map-first .address-attribution,.map-first .address-found>span{color:var(--muted)}
.map-first .walking-section{border-color:var(--line);color:var(--ink)}.map-first .empty{color:var(--muted);font-size:13px}
@media(max-width:1000px){.map-first>.app-header{padding:13px 18px;gap:14px}.map-first .journey-bar{gap:18px;padding:20px}.map-first .journey-main h2{font-size:20px}.map-first .journey-times{gap:18px}.map-first .journey-times strong{font-size:29px}.map-first .journey-times .journey-arrival strong{font-size:27px}.map-first #journeyStops{padding:13px 16px}}
@media(max-width:750px){.map-first>.app-header{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 14px;gap:9px 12px;min-height:0}.map-first .brand{gap:8px}.map-first .brand-icon{width:33px;height:33px;border-radius:11px}.map-first .brand-icon .icon{width:19px;height:19px}.map-first .brand h1{font-size:20px}.map-first .brand .eyebrow{font-size:9px;letter-spacing:.05em}.map-first .route-picker{grid-column:1/-1;order:3;max-width:none;justify-content:stretch}.map-first #routeSelect{max-width:none;font-size:12px;padding:9px 32px 9px 11px;border-radius:10px;min-height:36px}.map-first .app-header>.shifts{padding:3px;border-radius:12px}.map-first .shifts button{padding:7px 10px;min-height:32px;border-radius:9px;gap:5px}.map-first .shifts button span{font-size:11px}.map-first .shifts button .icon{width:15px;height:15px}
 .map-first .layout{display:block;padding:0;min-height:0}.map-first .search-palette{top:12px;left:14px;right:14px;width:auto}.map-first .search-line{border-radius:14px}.map-first .search-wrap input{font-size:16px;padding:11px 28px 11px 8px}.map-first .search-wrap>.icon{width:18px;height:18px;margin-left:9px}.map-first .search-line #openAddressSearch{padding:9px 10px;font-size:11px;min-height:40px}.map-first #openAddressSearch .icon{display:none}.map-first .search-palette #openFeeder{font-size:11px;padding:6px 9px;margin-top:6px;min-height:30px;border-radius:9px}
 .map-first .journey-bar{bottom:35px;left:14px;right:14px;transform:none;width:auto;max-width:none;padding:17px 18px;grid-template-columns:minmax(0,1fr) auto;gap:16px 12px;border-radius:20px}.map-first .journey-main{grid-column:1/-1}.map-first .journey-kicker{font-size:10px}.map-first .journey-route{height:26px;min-width:29px;font-size:13px;border-radius:8px}.map-first .journey-main h2{font-size:21px;margin:8px 15px 4px 0;line-height:1.15}.map-first .journey-hint{font-size:11px}.map-first .journey-times{gap:21px;justify-content:flex-start}.map-first .journey-times small{font-size:10px}.map-first .journey-times strong{font-size:28px}.map-first .journey-times .journey-arrival strong{font-size:26px}.map-first #journeyStops{min-height:49px;padding:12px;font-size:12px;border-radius:12px;gap:6px}.map-first #journeyStops .icon{width:16px;height:16px}
 .map-first .schedule-panel{top:107px;left:14px;right:14px;bottom:35px;width:auto;max-width:none;border-radius:18px}.map-first .drawer-header{padding:13px 16px 8px}.map-first .schedule-panel .route-card,.map-first[data-view="map"] .schedule-panel .route-card{padding:0 16px 10px}.map-first .route-corridor{padding:0 16px 9px}.map-first .schedule .stop{font-size:13px;padding:13px 0}.map-first .schedule .clock{padding-right:14px;width:73px}.map-first .schedule-scroll footer{padding:13px 16px}
 .map-first .map-tools{top:12px;right:14px;display:flex;gap:6px;z-index:45}.map-first .map-tools>button{display:none}.map-first .map-options>summary{width:40px;height:40px;border-radius:12px}.map-first .map-options .option-content{top:47px;width:235px}.map-first .search-palette{right:64px}.map-first .search-line #openAddressSearch{padding:9px 8px}.map-first .search-wrap input{font-size:15px}.map-first .controls{right:14px;bottom:48%;padding:3px;transform:translateY(50%);border-radius:12px}.map-first .controls button{width:34px;height:34px;font-size:23px}.map-first .map-scale{left:14px;bottom:10px;font-size:9px}.map-first .attribution{right:14px;bottom:9px;font-size:9px;max-width:64%}
 .map-first .public-city-card{top:107px;left:14px;right:14px;max-width:none;width:auto}.map-first .address-map-card{left:14px;right:14px;transform:none;bottom:35px;width:auto;max-width:none;padding:17px 18px;border-radius:20px}.map-first .address-map-card h3{font-size:20px;max-width:none;margin-right:10px}.map-first .address-map-card .address-card-clock{position:static;display:flex;align-items:center;justify-content:space-between;margin:10px 0 0;padding-top:9px;border-top:1px solid var(--line);text-align:left}.map-first .address-card-clock strong{font-size:29px}.map-first .address-map-actions{gap:6px;margin-top:9px}.map-first .address-map-actions a,.map-first .address-map-actions button{font-size:11px;padding:8px 9px}.map-first .address-pick-banner{top:107px;left:14px;right:14px;font-size:12px}
 .map-first dialog{padding:20px;max-height:calc(100dvh - 24px)}.map-first dialog h2{font-size:24px}.map-first .address-settings{grid-template-columns:1fr 1fr}.map-first .address-settings select{font-size:13px}.map-first .feeder-fields select{font-size:13px}
}
@media(max-width:370px){.map-first .journey-bar{padding:15px}.map-first .journey-times{gap:14px}.map-first .journey-times strong{font-size:26px}.map-first .journey-times .journey-arrival strong{font-size:24px}.map-first #journeyStops{padding:12px 9px;font-size:11px}.map-first .search-line #openAddressSearch{font-size:10px;padding:8px 6px}.map-first .search-wrap input{font-size:16px}.map-first .search-wrap>.icon{display:none}}
@media(max-height:650px) and (min-width:751px){.map-first .journey-bar{padding:15px 20px;gap:18px}.map-first .journey-main h2{font-size:19px;margin-top:5px}.map-first .journey-times strong{font-size:28px}.map-first .journey-times .journey-arrival strong{font-size:25px}.map-first .schedule-panel{top:114px}.map-first .search-palette{top:14px}.map-first .map-tools{top:14px}}
@media(prefers-reduced-motion:no-preference){.map-first .journey-bar{animation:journey-enter .18s ease-out}.map-first .schedule-panel{animation:panel-enter .16s ease-out}@keyframes journey-enter{from{opacity:.3;translate:0 5px}to{opacity:1;translate:0 0}}@keyframes panel-enter{from{opacity:.3;translate:0 -5px}to{opacity:1;translate:0 0}}}

.map-first .map-options{background:transparent;border:0;box-shadow:none;border-radius:12px}.map-first .map-options .option-content{max-height:min(440px,calc(100dvh - 230px));overflow:auto;scrollbar-width:thin}

/* City stops stay readable in the drawer without crowding the map. */
.map-first .schedule tr.pass .stop{color:var(--ink);font-size:13px;font-weight:500}.map-first .schedule tr.pass .stop small{display:block;color:var(--muted);font-size:10px}
/* Local map tiles contain their light/dark colours; no large GPU filter. */
.map-first .city-stops-note{font-size:11px;line-height:1.5;color:var(--muted);margin:9px 0 0}.map-first .stop-filters [hidden]{display:none}.map-first .schedule tr.pass{opacity:1}.map-first .search-all-routes{display:block;margin:12px 18px;padding:11px 14px;max-width:calc(100% - 36px);border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;text-align:left;cursor:pointer}.map-first .search-all-routes[hidden]{display:none}

/* Keep each route one tap away on desktop and phones. */
.map-first .route-picker{flex-direction:column;align-items:stretch;gap:5px}
.map-first #routeSelect[hidden]{display:none!important}
.map-first .route-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:4px;background:var(--soft);border:1px solid var(--line);border-radius:14px;width:100%}
.map-first .route-choices button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:40px;padding:7px 9px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);font-size:14px;font-weight:650;cursor:pointer}
.map-first .route-choices button[data-pick-route]:not([data-pick-route="0"])::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--pick-color)}
.map-first .route-choices button.active{background:var(--paper);color:var(--ink);border-color:var(--pick-color);box-shadow:0 2px 7px #17251c0a}
.map-first .route-choices button:hover{background:var(--paper);color:var(--ink)}
.map-first .route-caption{font-size:11px;line-height:16px;min-height:16px;color:var(--muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 3px}
@media(max-width:750px){.map-first .route-picker{gap:4px}.map-first .route-choices{gap:3px;padding:3px;border-radius:12px}.map-first .route-choices button{min-height:40px;padding:7px 5px;font-size:13px;border-radius:9px;gap:5px}.map-first .route-caption{font-size:10px;line-height:14px;min-height:14px}}

/* Compact trip summary leaves more of the map visible. */
.map-first .journey-bar{max-width:780px;width:calc(100% - 32px);padding:12px 16px;gap:18px;border-radius:16px}
.map-first .journey-kicker{font-size:10px;gap:7px}
.map-first .journey-route{min-width:25px;height:24px;border-radius:7px;font-size:12px}
.map-first #journeyDirection{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-first .journey-main h2{font-size:18px;line-height:1.2;letter-spacing:-.35px;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-first .journey-hint{font-size:11px;margin-top:3px}
.map-first .journey-bar[data-point-kind="overview"] .journey-hint{display:none}
.map-first .journey-times{gap:16px}
.map-first .journey-times small{font-size:10px;margin-bottom:2px}
.map-first .journey-times strong{font-size:26px;letter-spacing:-.7px}
.map-first .journey-times .journey-arrival strong{font-size:24px}
.map-first #journeyStops{min-height:44px;padding:10px 14px;gap:7px;border-radius:10px;font-size:12px}
.map-first #journeyStops .icon{width:16px;height:16px}
.map-first #journeyClear{top:-10px;right:-10px;width:28px;height:28px;background:var(--paper);border:1px solid var(--line);border-radius:50%;padding:3px;font-size:20px}
@media(max-width:750px){
 .map-first .journey-bar{left:14px;right:14px;width:auto;padding:11px 13px;gap:10px 12px;border-radius:15px}
 .map-first .journey-main h2{font-size:18px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .map-first .journey-times{gap:17px}
 .map-first .journey-times strong{font-size:24px}
 .map-first .journey-times .journey-arrival strong{font-size:22px}
 .map-first #journeyStops{padding:10px 12px;min-height:44px}
}
