@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--paper:#f5f4f0;--card:#fff;--ink:#17231f;--muted:#77817c;--line:#e7e9e4;--green:#17634e;--green-soft:#e7f2ed;--blue:#416fa8;--blue-soft:#eaf0f8;--orange:#d97843;--orange-soft:#fbefe7;--shadow:0 14px 40px #17231f0a}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}.topbar{height:66px;border-bottom:1px solid #e9e9e4;background:#f9f8f4;display:flex;align-items:center;padding:0 max(28px,calc((100vw - 1150px)/2));gap:20px}.brand{display:flex;align-items:center;gap:8px;font:800 19px Manrope,sans-serif;color:var(--ink);text-decoration:none;letter-spacing:-.7px}.brand-icon{display:grid;place-items:center;background:var(--green);color:white;border-radius:9px;width:27px;height:27px;font-size:19px}.brand-dot{color:var(--green)}.top-note{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:1.15px;color:#8a918b;display:flex;align-items:center;gap:8px}.live-dot{background:#62a887;width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 3px #62a88720}.icon-button{border:1px solid var(--line);background:white;color:#68746d;border-radius:50%;width:28px;height:28px;font-family:serif;font-weight:700;cursor:pointer}.app-shell{max-width:1150px;margin:0 auto;padding:45px 24px 28px}.intro{margin:0 0 26px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#79847d}.intro h1{font:700 clamp(31px,4vw,43px)/1.16 Manrope,sans-serif;letter-spacing:-1.8px;margin:10px 0 8px}.intro h1 span{color:var(--green)}.intro p{margin:0;color:#758079;font-size:15px}.search-panel{border:1px solid #e8e9e4;background:var(--card);border-radius:15px;padding:19px 20px 0;box-shadow:var(--shadow);position:relative;z-index:5}.search-fields{display:grid;grid-template-columns:minmax(190px,1fr) 34px minmax(190px,1fr) 174px;align-items:end;gap:12px}.stop-field{position:relative;display:block}.field-label{display:block;font-size:9px;letter-spacing:1.1px;font-weight:700;color:#7b857e;margin:0 0 7px}.pin{font-size:10px;margin-right:5px}.origin-pin{color:#3b886b}.destination-pin{color:#dc8559}.stop-field input{width:100%;height:44px;border:1px solid #e3e7e2;border-radius:8px;padding:0 13px;background:#fff;color:var(--ink);outline:none;font:500 14px 'DM Sans',sans-serif}.stop-field input:focus{border-color:#70a38e;box-shadow:0 0 0 3px #17634e12}.swap-button{height:34px;width:34px;border-radius:50%;border:1px solid var(--line);background:#fafbf9;color:#6d7d73;font-size:18px;cursor:pointer;margin-bottom:5px}.primary-button{height:44px;background:var(--green);color:white;border:0;border-radius:8px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;font:600 13px 'DM Sans',sans-serif;cursor:pointer;transition:background .16s,transform .16s}.primary-button:hover{background:#104d3d;transform:translateY(-1px)}.primary-button:disabled{opacity:.65;cursor:wait;transform:none}.settings{border-top:1px solid #eff0ec;margin:18px -20px 0}.settings summary{height:43px;padding:0 20px;display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;font-weight:600;color:#56635b;font-size:12px}.settings summary::-webkit-details-marker{display:none}.settings-icon{font-size:17px;color:var(--green)}.summary-current{font-size:11px;color:#9aa29c;font-weight:400;margin-left:4px}.chevron{margin-left:auto;font-size:16px;transition:transform .2s}.settings[open] .chevron{transform:rotate(180deg)}.settings-grid{padding:4px 20px 13px;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.setting-control{font-size:10px;letter-spacing:.2px;color:#748078;display:flex;flex-direction:column;gap:6px}.setting-control select,.setting-control input{height:36px;border:1px solid #e5e8e3;border-radius:7px;padding:0 9px;color:#34423a;background:#fff;font:500 12px 'DM Sans',sans-serif}.settings-help{font-size:10px;color:#929a94;margin:0 20px 14px}.suggestions{display:none;position:absolute;top:calc(100% + 5px);left:0;right:0;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 30px #17231f17;max-height:310px;overflow:auto;z-index:20}.suggestions.open{display:block}.suggestion{padding:10px 12px;cursor:pointer;border-bottom:1px solid #f0f1ee}.suggestion:last-child{border:0}.suggestion:hover,.suggestion.active{background:#f2f7f4}.suggestion strong{font-size:12px;display:block;color:#26362f;font-weight:600}.suggestion small{display:block;color:#89928c;font-size:10px;margin-top:3px}.swap-error{font-size:11px;color:#b9563d;padding:0 0 9px}.results-section{margin-top:40px}.results-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:17px}.results-heading h2{font:700 23px Manrope,sans-serif;letter-spacing:-.6px;margin:7px 0 4px}.results-heading p{margin:0;color:#828b85;font-size:12px}.result-count{font-size:11px;color:#748078;padding-bottom:4px}.map-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:20px}.map-head{height:58px;display:flex;align-items:center;padding:0 16px;gap:18px}.map-head strong{font-size:12px}.map-head>div:first-child span{display:block;font-size:10px;color:#939b95;margin-top:3px}.map-legend{margin-left:auto;display:flex;gap:15px;color:#7a847e;font-size:10px}.map-legend span{display:flex;align-items:center;gap:6px}.map-legend i{height:3px;width:15px;border-radius:3px}.legend-old{background:var(--blue)}.legend-new{background:var(--orange)}#map{height:300px;background:#e8ede9}.map-foot{height:27px;padding:0 13px;display:flex;justify-content:space-between;align-items:center;color:#929a94;font-size:9px}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.network-column{min-width:0}.network-header{height:62px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);margin-bottom:9px}.network-mark{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font:700 12px Manrope,sans-serif}.old-mark{background:var(--blue-soft);color:var(--blue)}.new-mark{background:var(--orange-soft);color:var(--orange)}.network-kicker{font-size:8px;font-weight:700;letter-spacing:1px;color:#969d98;display:block}.network-header h3{font:700 16px Manrope,sans-serif;margin:1px 0}.network-count{margin-left:auto;color:#8e9791;font-size:10px}.route-list{display:flex;flex-direction:column;gap:8px}.route-card{border:1px solid var(--line);background:white;border-radius:10px;padding:12px 13px;transition:border .15s,box-shadow .15s;cursor:pointer}.route-card:hover,.route-card.selected{border-color:#a7bdb1;box-shadow:0 4px 15px #17231f0a}.route-card-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}.route-badge{background:#eff3f0;color:#40574b;padding:4px 7px;border-radius:5px;font-size:10px;font-weight:700}.journey-type{font-size:9px;color:#7e8982}.journey-time{margin-left:auto;text-align:right;font:700 16px Manrope,sans-serif;letter-spacing:-.4px}.journey-time small{display:block;font:400 9px 'DM Sans',sans-serif;color:#8b948e;letter-spacing:0}.legs{display:flex;align-items:stretch;gap:7px}.leg{min-width:0;flex:1;border-left:2px solid #dfe9e3;padding-left:8px}.leg strong{font-size:10px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.leg small{font-size:9px;color:#909993;display:block;margin-top:3px}.transfer-dot{align-self:center;color:#9ca69f;font-size:12px}.card-meta{display:flex;gap:10px;margin-top:9px;padding-top:8px;border-top:1px solid #f0f1ed;color:#87918a;font-size:9px}.card-meta span{white-space:nowrap}.card-meta .depart{margin-left:auto}.empty-results{border:1px dashed #dce2dd;border-radius:10px;padding:20px 15px;text-align:center;color:#818a84;background:#fbfbf8;font-size:11px}.empty-results strong{display:block;color:#59665e;font-size:12px;margin-bottom:5px}.alternative-banner{background:#edf5f0;border:1px solid #dcebe1;border-radius:9px;padding:11px 14px;margin-bottom:14px;color:#4d6757;font-size:11px;line-height:1.6}.alternative-banner strong{color:#285b46}.data-note{font-size:10px;color:#929a94;line-height:1.6;margin:15px 0 0}.empty-state{text-align:center;padding:65px 20px 82px;color:#758079}.empty-mark{margin:0 auto 12px;border-radius:50%;width:44px;height:44px;background:#e6eee8;color:var(--green);font-size:25px;display:grid;place-items:center}.empty-state h2{font:700 18px Manrope,sans-serif;color:#36463d;margin:0 0 7px}.empty-state p{margin:0;font-size:12px}footer{border-top:1px solid #e4e5df;padding:17px 0 0;display:flex;justify-content:space-between;color:#929992;font-size:9px;letter-spacing:.2px}footer>span:first-child{font-weight:700;letter-spacing:1px}footer i{font-style:normal;color:var(--green)}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#20352b;color:white;padding:11px 17px;border-radius:8px;font-size:12px;box-shadow:0 9px 25px #0e241b30;transition:.2s;z-index:1000}.toast.show{transform:translate(-50%,0);opacity:1}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;max-width:430px;width:calc(100% - 32px);box-shadow:0 22px 80px #17231f2c;color:var(--ink)}dialog::backdrop{background:#18262055;backdrop-filter:blur(2px)}dialog h2{font:700 23px/1.3 Manrope,sans-serif;margin:10px 0}dialog p{font-size:12px;color:#6e7a72;line-height:1.65}.dialog-close{position:absolute;right:13px;top:12px;border:0;background:transparent;color:#77817a;font-size:22px;cursor:pointer}.dialog-done{width:100%;margin-top:16px}
.transfer-map-marker{width:24px;height:24px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#7954a5;color:#fff;font:700 11px/1 'DM Sans',sans-serif;box-shadow:0 2px 8px #18231f55}.map-legend i.legend-transfer{width:15px;height:15px;border:0!important;border-radius:50%;background:#7954a5;color:white;display:inline-grid;place-items:center;font:700 8px/1 'DM Sans',sans-serif}.transfer-tooltip{font:600 10px 'DM Sans',sans-serif;border:0;border-radius:5px;color:#49345f;box-shadow:0 2px 8px #18231f22}
/* Routewise comparison workspace refresh */
:root{--paper:#f3f5f2;--ink:#182a24;--line:#e2e8e3;--green:#14634d;--shadow:0 10px 32px #1933290a}
body{background:var(--paper)}
.topbar{height:62px;background:#fff;border-bottom-color:#e8ece8}
.app-shell{max-width:1320px;padding-top:34px}
.intro{margin-bottom:19px}
.intro h1{font-size:clamp(29px,3.5vw,38px);letter-spacing:-1.45px;margin-top:8px}
.intro p{font-size:13px}
.search-panel{padding-top:17px;border-radius:13px;box-shadow:0 5px 20px #19332908}
.search-fields{grid-template-columns:minmax(220px,1fr) 38px minmax(220px,1fr) 170px;gap:13px}
.stop-field input{height:48px;border-radius:9px;font-size:14px}
.swap-button{width:36px;height:36px;margin-bottom:6px}
.primary-button{height:48px;border-radius:9px}
.settings{margin-top:15px}
.settings summary{height:45px}
.settings-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.results-section{margin-top:31px}
.results-heading{align-items:center;margin-bottom:15px}
.results-heading h2{font-size:22px}
.results-workspace{display:grid;grid-template-columns:minmax(360px,.92fr) minmax(0,1.35fr);gap:18px;align-items:start}
.map-card{position:sticky;top:14px;margin:0;border-radius:13px;box-shadow:0 6px 24px #1933290a}
.map-head{height:auto;min-height:62px;flex-wrap:wrap;padding:11px 14px;gap:8px}
.map-head strong{font-size:13px}
.map-head>div:first-child span{font-size:10px}
.map-legend{gap:10px;font-size:9px}
#map{height:min(61vh,550px);min-height:370px}
.map-foot{height:29px}
.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.network-header{height:58px;margin-bottom:10px;gap:9px}
.network-header h3{font-size:14px}
.network-mark{width:29px;height:29px}
.route-list{gap:9px;max-height:calc(61vh + 92px);overflow:auto;padding:0 2px 3px 0;scrollbar-width:thin;scrollbar-color:#cdd7d0 transparent}
.route-card{padding:11px;border-radius:10px}
.route-card-top{align-items:flex-start;flex-wrap:wrap}
.route-badge{font-size:9px}
.journey-time{font-size:15px}
.journey-type{flex:1;min-width:90px;line-height:1.45;padding-top:3px}
.legs{gap:6px}
.leg strong{font-size:9px}
.leg small{font-size:8px}
.card-meta{font-size:8px;flex-wrap:wrap;line-height:1.35}
.card-meta .depart{margin-left:auto}
.alternative-banner{font-size:11px}
@media(max-width:980px){.app-shell{padding-left:20px;padding-right:20px}.results-workspace{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:13px}.comparison-grid{grid-template-columns:1fr}.route-list{max-height:360px}.map-legend{margin-left:0}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.topbar{padding:0 16px}.app-shell{padding:24px 14px 20px}.intro{margin-bottom:16px}.intro h1{font-size:30px;line-height:1.18}.intro p{font-size:12px}.search-panel{padding:14px 12px 0}.search-fields{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);gap:7px}.stop-field input{height:44px;font-size:12px}.primary-button{height:45px}.settings{margin-left:-12px;margin-right:-12px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.results-workspace{display:flex;flex-direction:column;gap:14px}.map-card{position:static;width:100%}.map-head{display:block;padding:12px}.map-legend{margin-top:9px}.map-legend span{font-size:9px}#map{height:290px;min-height:0}.comparison-grid{width:100%;grid-template-columns:1fr;gap:10px}.route-list{max-height:none;overflow:visible}.network-header{height:53px}.results-heading h2{font-size:19px}.results-section{margin-top:26px}}
@media(max-width:390px){.app-shell{padding-left:11px;padding-right:11px}.intro h1{font-size:27px}.search-fields{gap:5px}.summary-current{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-legend{gap:8px}}
.suggestion{display:block;width:100%;text-align:left}
.map-legend i.legend-walk{width:19px;height:0;border:0;border-top:2px dashed #7954a5;border-radius:0;background:transparent}
@media(max-width:720px){.topbar{height:57px;padding:0 18px}.top-note{font-size:9px}.app-shell{padding:30px 16px 22px}.intro{margin-bottom:20px}.intro h1{font-size:32px;letter-spacing:-1.3px}.intro p{font-size:13px;line-height:1.5}.search-panel{padding:15px 14px 0;border-radius:12px}.search-fields{grid-template-columns:minmax(0,1fr) 31px minmax(0,1fr);gap:8px}.stop-field input{height:42px;padding:0 9px;font-size:12px}.swap-button{width:31px;height:31px}.primary-button{grid-column:1/-1;height:43px;margin-top:3px}.settings{margin-left:-14px;margin-right:-14px;margin-top:13px}.settings summary{padding:0 14px;font-size:11px;gap:7px}.summary-current{font-size:9px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 14px 12px}.settings-help{margin:0 14px 12px;line-height:1.5}.suggestion{padding:9px}.results-section{margin-top:31px}.results-heading h2{font-size:19px}.results-heading p{font-size:11px;line-height:1.5}.result-count{font-size:9px;text-align:right;max-width:94px}.map-head{height:auto;min-height:56px;padding:9px 11px;gap:6px}.map-head>div:first-child span{font-size:9px}.map-legend{gap:8px;font-size:9px}.map-legend i{width:11px}.map-legend span{gap:4px}#map{height:235px}.map-foot{font-size:8px}.comparison-grid{grid-template-columns:1fr;gap:16px}.network-header{height:53px}.route-card{padding:11px}.route-card-top{gap:7px}.journey-time{font-size:15px}.card-meta{gap:7px;font-size:8px}.empty-state{padding:54px 10px 64px}footer{gap:15px;font-size:8px;line-height:1.5}footer span:last-child{text-align:right;max-width:60%}}

/* Give the route map more room while preserving a balanced results column. */
.results-workspace{grid-template-columns:minmax(430px,1.08fr) minmax(0,1.2fr)}
#map{height:min(70vh,650px);min-height:430px}
.route-list{max-height:calc(70vh + 92px)}
@media(max-width:980px){.results-workspace{grid-template-columns:minmax(340px,.95fr) minmax(0,1.05fr)}#map{height:min(66vh,600px);min-height:400px}.route-list{max-height:calc(66vh + 80px)}}
@media(max-width:720px){#map{height:350px;min-height:0}.route-list{max-height:none}}

/* Put the comparison choices ahead of the map in the reading flow. */
.results-workspace{display:flex;flex-direction:column;gap:18px}
.comparison-grid{order:1;width:100%}
.map-card{order:2;position:relative;top:auto;width:100%}

/* Keep long result lists in one bounded scroller so the map stays nearby. */
.comparison-grid{max-height:min(56vh,500px);overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-width:thin;scrollbar-color:#cdd7d0 transparent}
.route-list{max-height:none;overflow:visible}
@media(max-width:720px){.comparison-grid{max-height:min(52vh,390px);gap:12px}.network-header{position:sticky;top:0;z-index:2;background:var(--paper)}}
@media(max-width:390px){.app-shell{padding-left:12px;padding-right:12px}.intro h1{font-size:29px}.search-fields{gap:6px}.field-label{font-size:8px}.stop-field input{font-size:11px}.settings summary{padding:0 10px;font-size:10px}.summary-current{font-size:8px}.map-legend{font-size:8px;gap:6px}}

/* Touch-friendly search and readable route details on small screens. */
@media(max-width:520px){
  .search-fields{grid-template-columns:minmax(0,1fr);gap:8px}
  .stop-field input{height:46px;font-size:13px}
  .swap-button{justify-self:center;margin:0;width:30px;height:30px}
  .primary-button{grid-column:1/-1}
}
@media(max-width:720px){
  .journey-type{font-size:10px;min-width:0;line-height:1.4}
  .route-badge{font-size:9px}
  .journey-time{font-size:16px;white-space:nowrap}
  .leg strong{font-size:10px;line-height:1.35}
  .leg small{font-size:9px;line-height:1.35}
  .card-meta{font-size:9px;gap:8px;line-height:1.45}
  .comparison-grid{scroll-padding-block:10px}
}
@media(max-width:390px){.field-label{font-size:9px}.stop-field input{font-size:13px}}

/* Full map canvas with a collapsible options panel over its upper-left corner. */
.results-workspace{position:relative;display:block}
.map-card{position:relative;width:100%;margin:0;z-index:1}
#map{height:min(82vh,780px);min-height:520px}
#map .leaflet-top.leaflet-left{left:auto;right:10px}
.comparison-grid{position:absolute;z-index:500;top:74px;left:14px;display:flex;flex-direction:column;gap:10px;width:min(440px,calc(100% - 28px));max-height:min(68vh,650px);overflow:auto;padding:10px;border:1px solid #dce4de;border-radius:12px;background:#ffffffed;box-shadow:0 12px 36px #14251d30;backdrop-filter:blur(8px);overscroll-behavior:contain;scrollbar-width:thin}
.comparison-grid .route-list{max-height:none;overflow:visible}
.comparison-panel-heading{position:sticky;top:-10px;z-index:3;display:flex;align-items:center;justify-content:space-between;margin:-10px -10px 0;padding:9px 12px;border-bottom:1px solid #e5ebe6;border-radius:11px 11px 0 0;background:#fff;font-size:12px}
.comparison-panel-heading button{border:0;border-radius:7px;background:#edf4ef;color:var(--green);padding:7px 9px;font:600 11px 'DM Sans',sans-serif;cursor:pointer}
.comparison-grid .network-header{position:sticky;top:39px;z-index:2;background:#fff}
.comparison-grid.collapsed{width:auto;max-height:none;overflow:visible;padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none}
.comparison-grid.collapsed .comparison-panel-heading{position:static;margin:0;padding:8px 10px;border:1px solid #dce4de;border-radius:9px;box-shadow:0 5px 18px #14251d24}
.comparison-grid.collapsed .network-column{display:none}
@media(max-width:980px){.results-workspace{display:block}.map-card{position:relative;top:auto;width:100%}#map{height:78vh;min-height:460px}.comparison-grid{top:68px;left:10px;width:min(360px,calc(100% - 20px));max-height:58vh;padding:8px}.comparison-panel-heading{top:-8px;margin:-8px -8px 0}.comparison-grid.collapsed{width:auto}}
@media(max-width:520px){#map{height:76vh;min-height:430px}.comparison-grid{top:64px;left:8px;width:min(330px,calc(100% - 16px));max-height:55vh;padding:7px}.comparison-panel-heading{top:-7px;margin:-7px -7px 0;padding:8px}.network-header{height:48px}.route-card{padding:9px}.comparison-grid.collapsed .comparison-panel-heading{padding:8px 9px}}

/* Network tabs keep each option list separate inside the map popup. */
.comparison-grid{display:flex;flex-direction:column;gap:0}
.network-tabs{position:sticky;top:37px;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px 0;background:#fff}
.network-tab{min-width:0;display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#46564d;font:600 11px 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.network-tab .network-mark{flex:0 0 27px;width:27px;height:27px;border-radius:8px}
.network-tab .network-count{font-size:9px;white-space:nowrap}
.network-tab.active.old-tab{border-color:#b8cce3;background:#f5f8fc;color:#315d91}
.network-tab.active.new-tab{border-color:#edc5ad;background:#fff8f3;color:#a9572a}
.network-column{display:none;min-width:0}
.comparison-grid.show-old .old-column,.comparison-grid.show-new .new-column{display:block}
.comparison-grid .route-list{padding:0 1px 3px 0}
.comparison-grid.collapsed .network-tabs{display:none}
@media(max-width:520px){.network-tabs{top:35px;gap:6px;padding:7px 0}.network-tab{gap:6px;padding:7px;font-size:10px}.network-tab .network-mark{flex-basis:24px;width:24px;height:24px}.network-tab .network-count{font-size:8px}}

/* Keep both chosen journeys visible above the network-specific option list. */
.selected-routes{position:sticky;top:37px;z-index:3;display:grid;gap:6px;padding:7px 0 3px;background:#fff}
.selected-route{min-width:0;border:1px solid #e5ebe6;border-left:3px solid var(--blue);border-radius:8px;padding:6px 8px;background:#fbfcfa}
.selected-route.new-selection{border-left-color:var(--orange)}
.selected-route>strong{display:block;margin-bottom:3px;color:#68766e;font-size:9px;letter-spacing:.15px}
.selected-route-content{color:#8b958e;font-size:9px;line-height:1.35}
.selected-route-title{display:flex;align-items:center;gap:6px;min-width:0}
.selected-route-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#33433a;font-size:10px;font-weight:600}
.selected-route-title>b{flex:0 0 auto;margin-left:auto;color:#1b3026;font:700 11px Manrope,sans-serif;white-space:nowrap}
.selected-route-badge{flex:0 0 auto;padding:2px 5px;border-radius:4px;background:#eef3f0;color:#4d685a;font-size:8px;font-weight:700}
.selected-route-legs{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;color:#7f8982;font-size:8px}
.selected-route-content.has-selection{color:#55635b}
.network-tabs{top:165px}
.comparison-grid.collapsed .selected-routes,.comparison-grid.collapsed .network-tabs{display:none}
.comparison-grid.collapsed.show-old .network-column,.comparison-grid.collapsed.show-new .network-column{display:none}
@media(max-width:520px){.selected-routes{top:35px;gap:5px;padding:6px 0 2px}.selected-route{padding:5px 7px}.selected-route>strong{font-size:8px}.selected-route-title strong{font-size:9px}.selected-route-title>b{font-size:10px}.selected-route-legs{font-size:7px}.network-tabs{top:145px}}

/* Route selection dropdowns let users choose exactly which journeys are drawn. */
.selected-routes{position:sticky;top:37px;z-index:4;display:grid;grid-template-columns:1fr;gap:7px;padding:7px 0 4px;background:#fff}
.selected-route{position:relative;padding:0;overflow:visible;border:0;border-radius:0;background:transparent}
.selected-route>summary{display:flex;align-items:center;gap:7px;min-height:38px;padding:6px 8px;list-style:none;cursor:pointer}
.selected-route>summary::-webkit-details-marker{display:none}
.picker-network{flex:0 0 auto;color:#435449;font-size:9px;font-weight:700}
.selected-route-content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;color:#8b958e;font-size:9px;line-height:1.35}
.selected-route-content.has-selection{color:#44574b}
.picker-chevron{flex:0 0 auto;color:#76847b;font-size:12px;transition:transform .15s}
.selected-route[open] .picker-chevron{transform:rotate(180deg)}
.route-picker-choices{position:static;max-height:min(34vh,280px);overflow:auto;padding:5px;border-top:1px solid #e8ede9;background:#fff}
.route-picker-choice{width:100%;display:flex;align-items:flex-start;gap:8px;padding:9px 8px;border:0;border-bottom:1px solid #edf0ed;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.route-picker-choice:last-child{border-bottom:0}
.route-picker-choice:hover,.route-picker-choice:focus-visible{background:#f3f7f3;outline:none}
.route-picker-choice.is-selected{background:#f1f6f2}
.route-picker-choice.is-selected .route-picker-index{background:#dcebe1;color:#256746}
.route-picker-index{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#eef3f0;color:#42634f;font-size:9px;font-weight:700}
.new-selection .route-picker-index{background:#fff1e9;color:#aa5b32}
.route-picker-copy{display:grid;gap:4px;min-width:0;flex:1}
.route-picker-copy strong{overflow-wrap:anywhere;color:#283b30;font-size:10px;font-weight:700;line-height:1.3}
.route-picker-copy small{color:#65736a;font-size:9px;line-height:1.4}
.route-picker-stops{display:block;overflow-wrap:anywhere;white-space:normal}
.route-picker-stops i{padding:0 2px;color:#8a968d;font-style:normal}
.route-picker-choice>b{flex:0 0 auto;align-self:flex-start;padding-top:2px;font-size:10px;white-space:nowrap}
.route-picker-empty{padding:12px;color:#79847d;font-size:10px}
.selected-route.new-selection{border-left:0}
.map-stage{position:relative}
.map-prompt{position:absolute;z-index:450;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 36px);padding:12px 16px;border:1px solid #dce4de;border-radius:10px;background:#ffffffed;box-shadow:0 4px 18px #14251d20;color:#526158;font-size:13px;text-align:center;pointer-events:none}
.map-prompt[hidden]{display:none}
.comparison-grid.collapsed .selected-routes{display:none}
.comparison-grid>.network-tabs,.comparison-grid>.network-column{display:none!important}
.picker-count{flex:0 0 auto;color:#829087;font-size:9px;white-space:nowrap}
.route-picker-group{display:grid;align-content:start;gap:0;min-width:0;overflow:hidden;border:1px solid #dce4de;border-left:4px solid var(--blue);border-radius:10px;background:#fff;box-shadow:0 3px 10px #14251d0c}
.route-picker-group.new-selection{border-left-color:var(--orange)}
.selected-option-details{position:relative;padding:8px 10px;border:0;border-top:1px solid #edf0ed;border-radius:0;background:transparent;box-shadow:none}
.selected-option-details[hidden]{display:none}
.selected-detail-heading{display:grid;grid-template-columns:auto minmax(0,1fr) 22px;align-items:center;gap:3px 7px;padding:0}
.selected-detail-heading .route-badge{grid-row:span 2;justify-self:start}
.selected-detail-heading strong{justify-self:end;color:#1b3026;font:700 14px Manrope,sans-serif;white-space:nowrap}
.selected-detail-heading>small{justify-self:end;color:#87928b;font-size:8px}
.clear-route-choice{grid-column:3;grid-row:1;display:grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid #dce4de;border-radius:50%;background:#fff;color:#65736a;font:500 17px/1 'DM Sans',sans-serif;cursor:pointer}
.clear-route-choice:hover,.clear-route-choice:focus-visible{border-color:#bfcec3;background:#f5f8f5;color:#314c3a;outline:2px solid #d9e6dd;outline-offset:1px}
.selected-detail-legs{display:grid;gap:0}
.selected-detail-leg{display:grid;gap:3px;padding:8px 0;border-bottom:1px solid #edf0ed}
.selected-detail-leg>span{color:#78857c;font-size:8px;font-weight:700;letter-spacing:.25px}
.selected-detail-leg strong{color:#34443a;font-size:10px;line-height:1.4}
.selected-detail-leg small,.selected-detail-transfer small{color:#7f8b83;font-size:8px}
.selected-detail-transfer{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 6px;padding:8px 0;border-bottom:1px solid #edf0ed;color:#48594e;font-size:9px;font-weight:600}
.selected-detail-transfer small{grid-column:2}
.transfer-chip{padding:3px 5px;border-radius:4px;background:#f1ebf7;color:#77529a;font-size:7px;font-weight:700}
.selected-detail-footer{padding-top:7px;color:#78857c;font-size:8px;text-align:right}
.transfer-endpoint-icon{display:grid;place-items:center;min-width:34px;height:20px;padding:0 3px;border:2px solid;border-radius:7px;background:#fff;font:700 7px/1 'DM Sans',sans-serif;white-space:nowrap;box-shadow:0 2px 7px #17231f44}
.transfer-endpoint-icon.old{border-color:#416fa8;color:#315d91}
.transfer-endpoint-icon.new{border-color:#d97843;color:#ad5728}
.transfer-endpoint-icon.board{border-style:dashed;border-radius:11px}
.map-legend i.legend-endpoint{width:17px;height:17px;display:inline-grid;place-items:center;border:1.5px solid #416fa8;border-radius:5px;background:white;color:#315d91;font:700 8px/1 'DM Sans',sans-serif}
.map-legend i.legend-endpoint.legend-b{border-style:dashed;border-radius:50%}
.selected-route-brief{display:grid;gap:5px;margin:8px 25px 0 0;color:#405147;font-size:9px;line-height:1.4}
.selected-route-brief-leg{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;min-width:0}
.selected-route-brief-leg>b{flex:0 0 auto;color:#55685c;font-size:8px;font-weight:700;letter-spacing:.1px}
.selected-route-brief-leg>span{min-width:0;overflow-wrap:anywhere;white-space:normal}
.selected-route-brief-leg i{color:#849087;font-style:normal}
.selected-detail-expand{margin-top:7px;border-top:1px solid #edf0ed}
.selected-detail-expand>summary{display:flex;align-items:center;justify-content:space-between;padding:7px 1px 1px;color:#617168;font-size:9px;font-weight:600;list-style:none;cursor:pointer}
.selected-detail-expand>summary::-webkit-details-marker{display:none}
.selected-detail-expand>summary span{color:#77867c;font-size:12px;transition:transform .15s}
.selected-detail-expand[open]>summary span{transform:rotate(180deg)}
.selected-detail-expand[open] .selected-detail-content{display:block}
@media(max-width:520px){.selected-routes{top:35px;grid-template-columns:1fr;padding:6px 0 3px}.selected-route>summary{min-height:34px;padding:5px 7px}.picker-network{font-size:8px}.selected-route-content{font-size:8px}.route-picker-choices{max-height:36vh}.map-prompt{font-size:11px;padding:10px 12px}}
@media(max-width:700px){
  .selected-option-details{padding:8px 9px}
  .selected-detail-heading{padding-bottom:0;border-bottom:0}
  .selected-detail-heading strong{font-size:13px}
  .selected-detail-heading>small{font-size:7px}
  .selected-detail-expand{margin-top:6px;border-top:1px solid #edf0ed}
  .selected-detail-expand>summary{display:flex;align-items:center;justify-content:space-between;padding:7px 1px 1px;color:#617168;font-size:9px;font-weight:600;list-style:none;cursor:pointer}
  .selected-detail-expand>summary::-webkit-details-marker{display:none}
  .selected-detail-expand>summary span{color:#77867c;font-size:12px;transition:transform .15s}
  .selected-detail-expand[open]>summary span{transform:rotate(180deg)}
  .selected-detail-content{padding-top:3px}
  .selected-route-brief{margin-top:7px;font-size:9px;line-height:1.35;gap:5px}
  .selected-detail-leg{padding:7px 0}
  .selected-detail-leg strong{font-size:9px}
  .selected-detail-transfer{font-size:8px}
  .selected-detail-footer{font-size:7px}
}
@media(max-width:520px){.comparison-grid{top:118px}}
