.route-atlas{color-scheme:light;--atlas-ink:#162a3a;--atlas-muted:#4c626f;--border:#d6e1e8;--walk:#087154;--drive:#a55009;--transit:#225ab4;--flight:#7049a4}
.route-atlas *{box-sizing:border-box}
.route-atlas{margin:0;color:var(--atlas-ink);background:#f7fafc;font:15px/1.45 system-ui,sans-serif}
.route-atlas header{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);background:white}
.route-atlas .back-link{display:inline-block;margin-bottom:6px;font-size:13px;font-weight:650;color:#185486;text-decoration:none}
.route-atlas .back-link:hover{text-decoration:underline}
.route-atlas .atlas-title,.route-atlas h3,.route-atlas p{margin:0}
.route-atlas .atlas-title{font-size:clamp(19px,3vw,25px);line-height:1.15;letter-spacing:-.02em}
.route-atlas h3{font-size:19px;margin:12px 0 6px}
.route-atlas .subtitle{color:var(--atlas-muted);font-size:13px;margin-top:4px}
.route-atlas label{display:block;font-weight:650}
.route-atlas .basemap-label{font-size:13px}
.route-atlas select,.route-atlas button{color:inherit;background:white;font:inherit;border:1px solid #aabdc9;border-radius:7px;padding:7px 9px}
.route-atlas select,.route-atlas button{cursor:pointer}
.route-atlas button:disabled{cursor:default;opacity:.45}
.route-atlas button:hover:enabled{background:#edf5fa}
.route-atlas a{color:#185486}
.route-atlas .atlas-layout{display:grid;grid-template-columns:325px minmax(0,1fr);height:calc(100vh - 76px);height:calc(100dvh - 76px)}
.route-atlas .map-panel{grid-column:2;grid-row:1;position:relative;min-height:320px}
.route-atlas [data-atlas-id="map"]{height:100%;background:#dceaf0}
.route-atlas aside{grid-column:1;grid-row:1;padding:15px 17px;overflow:auto;border-right:1px solid var(--border)}
.route-atlas [data-atlas-id="day"]{width:100%;margin-top:5px}
.route-atlas nav{display:flex;gap:8px;margin-top:8px}
.route-atlas nav button{flex:1}
.route-atlas .legend{padding:0;margin:0 0 12px;display:flex;gap:6px 13px;flex-wrap:wrap;list-style:none;font-size:12px;color:var(--atlas-muted)}
.route-atlas .legend li{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.route-atlas .swatch{width:16px;border-top:3px solid}
.route-atlas .swatch.w{border-color:var(--walk)}
.route-atlas .swatch.c{border-color:var(--drive)}
.route-atlas .swatch.t{border-color:var(--transit)}
.route-atlas .swatch.f{border-color:var(--flight)}
.route-atlas .swatch.t,.route-atlas .swatch.f,.route-atlas .swatch.gap{border-top-style:dashed}
.route-atlas .area-mark{width:13px;height:13px;border-radius:50%;border:2px dashed #405469}
.route-atlas .day-note{font-size:12px;color:#6b4916;background:#fff4dc;padding:8px;border-radius:6px;margin-bottom:10px}
.route-atlas [data-atlas-id="stops"]{list-style:none;padding:0;margin:0;border-top:1px solid var(--border)}
.route-atlas .stop{padding:9px 0;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;gap:9px}
.route-atlas .stop-number{border-radius:50%;background:#e3edf4;min-width:24px;height:24px;display:grid;place-items:center;font-size:12px;font-weight:700}
.route-atlas .stop-title{border:0;background:transparent;text-align:left;padding:0;color:#16476a;font-weight:680}
.route-atlas .stop-title:hover:enabled{text-decoration:underline;background:none}
.route-atlas .stop-detail,.route-atlas .stop-links{font-size:12px;color:var(--atlas-muted)}
.route-atlas .stop-links a+a{margin-left:9px}
.route-atlas .pin{border-radius:15px;min-width:28px;width:max-content;height:28px;padding:0 6px;display:grid;place-items:center;background:#173650;border:2px solid white;color:white;font-weight:750;white-space:nowrap;box-shadow:0 1px 5px #14283c80;position:absolute;bottom:0;left:0;transform:translateX(-50%)}
.route-atlas .pin.area{background:#fff;color:#173650;border:2px dashed #365a78}
.route-atlas .map-tools,.route-atlas .map-status{position:absolute;z-index:800}
.route-atlas .map-tools{top:10px;right:10px;display:flex;gap:5px}
.route-atlas .map-tools button,.route-atlas .map-status{background:#fff;box-shadow:0 1px 6px #18314530}
.route-atlas .map-tools button{font-size:13px;font-weight:600}
.route-atlas .map-panel:fullscreen{height:100%}
.route-atlas .source-line{font-size:11px;color:#4c626f;margin:5px 0 1px}
.route-atlas .mapbox-brand{display:block;width:73px;height:19px;background:center/contain no-repeat url(vendor/mapbox.svg)}
.route-atlas .map-status{bottom:26px;left:10px;max-width:calc(100% - 20px);padding:6px 9px;border-radius:6px;font-size:12px}
@media(max-width:730px){
.route-atlas header{padding:10px 12px}
.route-atlas .atlas-layout{display:flex;flex-direction:column;height:auto}
.route-atlas .map-panel{height:52vh;height:52dvh;min-height:305px}
.route-atlas aside{border-right:none;border-top:1px solid var(--border);padding:12px}
}
body:has(> .route-atlas--standalone) { margin: 0; }
.route-atlas--embedded { border: 1px solid #c4d5df; border-radius: 9px; overflow: hidden; }
.route-atlas--embedded .back-link { display: none; }
.route-atlas--embedded .atlas-title { font-size: 1.125rem; }
.route-atlas--embedded .atlas-layout { display: flex; flex-direction: column; height: auto; }
.route-atlas--embedded .map-panel { height: clamp(290px, 48vh, 440px); }
.route-atlas--embedded .map-panel:fullscreen { height: 100%; }
.route-atlas--embedded aside { max-height: 360px; border-top: 1px solid #d6e1e8; border-right: 0; }
.route-atlas--embedded header { flex-wrap: wrap; }
.route-atlas [data-atlas-id="day"] { max-width: 100%; }
