/* Route editing shares the existing map, not another map viewport. */

.is-routing .map-sidebar-toggle{left:396px}.is-routing.is-sidebar-collapsed .map-sidebar-toggle{left:20px}.is-routing .map-add-personal{display:none}
.map-personal-tabs{position:relative;gap:4px}.map-personal-tabs button{flex:1;padding:10px 9px!important;transition:background .28s cubic-bezier(.2,.8,.2,1),color .2s,transform .2s}.map-personal-tabs button:active{transform:scale(.97)}
#map-route-view[hidden]{display:none}#map-route-view{padding-top:20px}.route-heading h2{font-size:24px;letter-spacing:-.5px;margin:0;color:#fff3d9;font-weight:500}.route-heading p{font-size:12px;color:#b9abbf;margin:6px 0 18px}
.route-name{font:inherit;font-size:15px;color:#fff3d9;background:transparent;border:0;outline:0;padding:8px 0;width:100%;margin-bottom:12px}.route-name::placeholder{color:#c2afbf}.route-name:focus{box-shadow:0 1px #efb5cb60}
.route-search{margin-bottom:8px}#route-results{max-height:210px;overflow:auto;overscroll-behavior:contain;padding:5px;background:rgba(42,35,56,.92);border-radius:14px;scrollbar-width:thin;scrollbar-color:#e8b9cc55 transparent}#route-results[hidden]{display:none}#route-results button{display:block;width:100%;text-align:left;padding:11px;border-radius:10px;color:#ece2e8}#route-results button:hover,#route-results button[aria-selected=true]{background:#e8b9cc1c}#route-results strong{display:block;font-size:13px;font-weight:500}#route-results small{display:block;margin-top:3px;font-size:11px;color:#b5a7bf}#route-results p{font-size:13px;padding:10px;color:#c4b5c6}
.route-stops{list-style:none;margin:10px 0 12px;padding:0;display:grid;gap:8px}.route-stops>li:not(.route-empty){display:flex;align-items:center;gap:8px;min-height:74px;background:#e8b9cc07;border-radius:14px;padding:8px 6px;transition:background .2s,opacity .2s,box-shadow .2s}.route-stops>li:hover{background:#e8b9cc10}.route-stops>li.is-dragging{opacity:.5}.route-stops>li.is-drop-target{box-shadow:inset 0 0 0 1px #efb5cb}
.route-grip{width:16px;flex:none;touch-action:none;cursor:grab;padding:0;color:#b4a3bc}.route-grip svg{width:16px;height:24px;stroke-width:3}.route-number{display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:50%;font-size:12px;background:#efb5cb20;color:#f4c7d9;font-variant-numeric:tabular-nums}.route-stop-focus{flex:1;text-align:left;min-width:0;padding:6px 0}.route-stop-focus strong{display:block;font-size:13px;font-weight:500;line-height:1.4;overflow-wrap:anywhere;color:#f3e7e9}.route-stop-focus small{display:block;font-size:10px;color:#bea8bf;line-height:1.5;margin-top:3px}.route-stop-focus small span{display:block;font-size:9px;color:#9d94aa}.route-row-actions{display:grid;grid-template-columns:24px 24px;flex:none;gap:2px}.route-row-actions button{display:grid;place-items:center;width:24px;height:28px;padding:2px;color:#d8b9cb;border-radius:7px}.route-row-actions button:last-child{grid-column:2;grid-row:1/3;align-self:center;height:40px}.route-row-actions svg{width:15px;height:15px}.route-row-actions button:disabled{opacity:.2}.route-row-actions button:hover:not(:disabled){background:#e8b9cc18}
.route-empty{padding:22px 12px;text-align:center}.route-empty>span{font-size:30px;color:#efb5cb80;font-variant-numeric:tabular-nums;letter-spacing:8px}.route-empty p{font-size:12px;color:#bbaec2;margin-top:10px}
.route-add{display:block;width:100%;text-align:left;padding:12px 8px;color:#efbed2;font-size:12px;border-radius:10px}.route-add:hover{background:#e8b9cc10}.route-add:disabled{opacity:.4;cursor:default}
.route-toolbar{display:flex;gap:8px;margin:12px 0 18px}.route-toolbar button{display:grid;place-items:center;flex:1;height:40px;border-radius:12px;color:#e4c8d8;background:#ffffff07;transition:background .2s,transform .25s cubic-bezier(.2,.8,.2,1)}.route-toolbar svg{width:18px;height:18px}.route-toolbar button:hover{background:#e8b9cc19}.route-toolbar button:active{transform:scale(.96)}.route-toolbar button:disabled{opacity:.3;pointer-events:none}
.route-save-actions{display:flex;gap:10px}.route-save-actions button{padding:12px 10px;min-height:44px;border-radius:13px;background:#efb5cb;color:#251c2d;font-size:13px;font-weight:500;flex:1;transition:transform .25s,background .2s}.route-save-actions button+button{background:#efb5cb12;color:#f4cbd9}.route-save-actions button:disabled{opacity:.35}.route-save-actions button:active:not(:disabled){transform:scale(.97)}.route-status{color:#efb5cb;font-size:12px;line-height:1.5;min-height:18px;margin:10px 0}.route-note{color:#a79cb3;font-size:10px;line-height:1.6;margin:18px 0 0}.route-confirm{background:#efb5cb12;border-radius:12px;padding:12px;margin:10px 0;color:#f2d5df;font-size:12px}.route-confirm[hidden]{display:none}.route-confirm p{margin:0 0 10px}.route-confirm button{padding:8px 12px;border-radius:8px;background:#efb5cb20;margin-right:8px;color:#f4d3e0}
.route-saved summary{font-size:12px;color:#d9bacb;cursor:pointer;padding:12px 0}.route-saved [data-route-saved]>div{display:flex;align-items:center;gap:8px;padding:4px 0}.route-saved button{padding:10px;text-align:left;color:#ebd7e2;border-radius:10px}.route-saved button:first-child{flex:1}.route-saved button:hover{background:#efb5cb12}.route-saved strong{display:block;font-size:12px;font-weight:450}.route-saved small{display:block;font-size:10px;color:#ae9fb8;margin-top:3px}.route-saved svg{width:16px;height:16px}.route-saved p{font-size:12px;color:#b4a6bd}.route-share-fallback{display:block;font-size:11px;color:#d7b9cb}.route-share-fallback[hidden]{display:none}.route-share-fallback input{width:100%;background:#ffffff09;border:0;border-radius:8px;color:#fff3d9;padding:10px;font-size:12px}
.route-stop-marker{background:transparent;border:0}.route-stop-marker>span{display:grid;place-items:center;width:32px;height:32px;background:#efb5cb;color:#21192c;border:2px solid #fff1dc;box-shadow:0 3px 12px #18132880;border-radius:50%;font:600 13px system-ui;transition:transform .2s}.route-stop-marker:hover>span{transform:scale(1.1)}.is-routing-placement .leonida-canvas{cursor:crosshair}.route-popup-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.route-popup-actions button{padding:8px!important;font-size:11px!important;background:#efb5cb14;border-radius:8px;color:#f2bfd3!important}
.route-placement{max-width:calc(100% - 90px)}#map-route-view button:focus-visible{outline:2px solid #efb5cb;outline-offset:2px}
@media(max-width:760px){.is-routing .map-sidebar-toggle{left:16px;top:var(--map-ui-top)}.is-routing.is-sidebar-collapsed .leonida-sidebar{translate:0 calc(100% + 45px)}.is-routing .route-placement{top:var(--map-ui-top);left:12px;right:12px;max-width:none;flex-wrap:wrap}.route-stops>li:not(.route-empty){min-height:78px}.route-row-actions{grid-template-columns:32px 32px}.route-row-actions button{width:32px;height:32px}.route-grip{width:20px}.route-row-actions svg{width:18px;height:18px}.route-stop-focus strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){#map-route-view *, .route-stop-marker>span,.map-personal-tabs button{transition:none!important;animation:none!important}}

.is-routing .map-sidebar-intro{display:none}






@media(max-width:500px){}
@media(max-width:360px){}
/* Route editing stays in the existing map, with local glass controls. */
.route-save-actions svg,.route-stop-menu svg,.route-rename-saved svg{width:18px;height:18px}.route-save-actions button{display:grid;place-items:center}.route-toolbar{gap:5px}.route-toolbar button{min-width:36px;min-height:40px}.route-sheet-handle{display:none}.route-row-actions button:last-child{grid-column:auto;grid-row:auto;height:28px}.route-row-actions{grid-template-columns:26px;gap:0}.route-row-actions button{width:26px}.route-stops>li{position:relative}.route-stops>li.is-active-leg{background:#efb5cb18}.route-stop-menu{flex:none}.route-stop-menu>summary{list-style:none;cursor:pointer;font-size:23px;padding:2px;width:28px;text-align:center;color:#efbed2}.route-stop-menu>summary::-webkit-details-marker{display:none}.route-stop-menu>div{position:absolute;top:calc(100% - 6px);left:12px;right:8px;z-index:12;display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:rgba(22,21,38,.85);border:1px solid #efb5cb30;border-radius:14px;box-shadow:0 12px 25px #08071270;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px)}.route-stop-menu label{width:100%;font-size:11px;color:#d7b9cb}.route-stop-menu input,.route-rename-saved input{display:block;width:100%;margin-top:6px;background:#ffffff08;border:1px solid #efb5cb30;border-radius:9px;color:#fff1dc;padding:10px;font-size:13px}.route-stop-menu button,.route-stop-menu a{display:grid;place-items:center;width:40px;height:40px;padding:8px;border-radius:10px;background:#efb5cb0c;color:#efbed2}.route-stop-menu button:hover,.route-stop-menu a:hover{background:#efb5cb20}.route-stop-marker.is-start>span{border-radius:10px;background:#fff1dc}.route-stop-marker.is-destination>span{border-radius:10px;background:#d99cb9;transform:rotate(-8deg)}.route-stop-marker.leaflet-drag-target>span{transform:scale(1.12);box-shadow:0 4px 16px #03030b90}.route-saved [data-route-saved]>div>button:not(:first-child){flex:none;width:32px;min-height:40px;padding:7px}.route-saved [data-route-saved]>div>button:first-child{min-width:0}.route-rename-saved{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#efb5cb0a;border-radius:12px}.route-rename-saved label{width:100%;font-size:12px}.route-rename-saved button{width:40px;height:40px;display:grid;place-items:center;padding:8px}.route-network{margin-top:12px;font-size:12px;color:#bbaec4}.route-network summary{cursor:pointer;color:#d9bacb;padding:8px 0}.route-network p{font-size:11px;line-height:1.6}.route-network a{color:#efbed2}.route-graph-import{display:block;padding:8px 0}.route-graph-import input{display:block;width:100%;margin-top:8px;font-size:11px;color:#cab4c7}.route-graph-import input::file-selector-button{background:#efb5cb15;color:#f4d3e0;border:0;border-radius:8px;padding:10px;cursor:pointer}.route-network>button{padding:10px;background:#efb5cb15;border-radius:9px;color:#f4d3e0}.route-note{font-size:11px}.is-routing .leonida-marker{opacity:.48}.is-routing .leonida-cluster{opacity:.55}.is-routing .leonida-marker:hover,.is-routing .leonida-cluster:hover{opacity:1}.wiki-route-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-left:auto;border:1px solid #efb5cb25;border-radius:11px;background:#efb5cb0b;backdrop-filter:blur(18px);color:#efbed2}.wiki-route-action svg{width:18px;height:18px}
@media(max-width:760px){.route-sheet-handle{display:grid;place-items:center;width:100%;height:30px;margin:-10px 0 6px;touch-action:none}.route-sheet-handle>span{height:4px;width:40px;border-radius:4px;background:#d3b5c965}.is-routing .leonida-sidebar{transition:translate .3s cubic-bezier(.2,.8,.2,1),max-height .3s cubic-bezier(.2,.8,.2,1)}.is-routing.route-sheet-compact .leonida-sidebar{max-height:155px;overflow:hidden}.is-routing.route-sheet-compact .world-map-switch,.is-routing.route-sheet-compact .map-personal-tabs{display:none}.is-routing.route-sheet-compact #map-route-view{padding-top:0}.is-routing.route-sheet-compact .route-heading p{margin-bottom:4px}.is-routing .route-row-actions button{width:32px;height:32px}.route-stop-menu>summary{width:32px;min-height:44px}.route-stop-menu button,.route-stop-menu a{width:44px;height:44px}.route-save-actions button{min-height:44px}.route-stops{padding-bottom:60px;margin-bottom:-48px}.is-sheet-dragging .leonida-sidebar{transition:none}}
@media(prefers-reduced-motion:reduce){.is-routing .leonida-sidebar{transition:none}}

@media(max-width:760px){.is-routing .leonida-sidebar{bottom:calc(35px + var(--route-keyboard-inset,0px))}}
.route-row-actions{grid-template-columns:24px 24px;gap:2px}.route-row-actions button{width:24px;height:28px}.route-row-actions button:first-child{grid-column:1;grid-row:1}.route-row-actions button:nth-child(2){grid-column:1;grid-row:2}.route-row-actions button:last-child{grid-column:2;grid-row:1/3;height:40px;align-self:center}
@media(max-width:760px){.route-row-actions{grid-template-columns:30px 30px}.route-row-actions button{width:30px;height:32px}.route-row-actions button:last-child{height:44px}}

/* Route creation starts with two places; editing tools appear when needed. */
#map-route-view [hidden],.leonida-controls .route-fit-control[hidden]{display:none!important}#map-route-view{padding-top:4px}.route-heading p{line-height:1.65;margin:9px 0 20px;font-size:13px;color:#bdb0c5}.route-heading h2{font-size:26px;letter-spacing:-.5px}.route-stops{padding:0;margin:0 0 10px;gap:9px}.route-stops>li.route-slot{padding:0;background:transparent;min-height:0;border-radius:12px}.route-slot>button{width:100%;min-height:62px;display:flex;align-items:center;gap:12px;text-align:left;padding:16px;border:1px solid #e8b9cc17;border-radius:12px;background:#e8b9cc08;font-size:14px;color:#e0d1e1}.route-slot>button:disabled{opacity:.55;cursor:default}.route-slot-mark{width:9px;height:9px;flex:none;border-radius:50%;background:#a8c7b9}.route-slot-mark.destination{background:transparent;border:2px solid #d8a0bb;border-radius:4px;rotate:-8deg}.route-add{padding:13px 10px;min-height:44px;text-align:left;color:#e7bfd5;font-size:13px;background:#e8b9cc0a;margin-bottom:14px}.route-add:disabled{opacity:.4}.route-stops>li[data-route-index]{min-height:65px;padding:10px 9px;gap:9px}.route-stop-focus strong{font-size:14px}.route-stop-focus small{font-size:11px}.route-grip{width:14px}.route-number{width:22px;height:22px;font-size:10px}.route-stop-menu{position:static}.route-stop-menu>div{top:100%;left:0;right:0;display:block;background:#201d30fa;border-radius:12px;padding:8px;z-index:30}.route-stop-menu>div>button,.route-stop-menu>div>a{display:block;width:100%;height:auto;min-height:40px;padding:10px;text-align:left;font-size:12px;background:transparent;border-radius:7px}.route-stop-menu button:disabled{opacity:.35}.route-stop-menu label{display:block;padding:6px;font-size:11px}.route-stop-menu>summary{min-height:40px;display:grid;place-items:center}.route-toolbar{margin:4px 0 15px;gap:12px}.route-toolbar button{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:7px;background:transparent;min-height:38px;height:auto;padding:8px 5px;font-size:12px;color:#bfa4b9}.route-toolbar svg{width:15px;height:15px}.route-name-field{display:block;font-size:12px;line-height:1.5;color:#d9c1d4;margin:16px 0 12px}.route-name-field>span{color:#9785a1;font-size:11px;margin-left:6px}.route-name{display:block;width:100%;margin:7px 0 0;padding:12px 13px;min-height:44px;border:1px solid #e8b9cc2a;background:#e8b9cc07;border-radius:11px;font-size:14px;color:#f4e5eb}.route-name::placeholder{color:#9e8ca8}.route-name:focus{border-color:#e8b9cc80;box-shadow:none;outline:2px solid #e8b9cc44;outline-offset:2px}
.route-save-actions{position:relative;align-items:center;gap:9px}.route-save-actions>button{display:block;font-size:13px;flex:none;padding:12px 17px}.route-save-actions>[data-route-save]{flex:1}.route-options{margin-left:auto}.route-options>summary,.route-library-menu>summary,.route-saved-menu>summary{display:grid;place-items:center;list-style:none;cursor:pointer;min-width:38px;min-height:44px;font-size:23px;color:#d3b1c8;border-radius:9px}.route-options>summary::-webkit-details-marker,.route-library-menu>summary::-webkit-details-marker,.route-saved-menu>summary::-webkit-details-marker{display:none}.route-options>div,.route-library-menu>div,.route-saved-menu>div{position:absolute;z-index:35;right:0;top:100%;min-width:200px;max-width:100%;padding:8px;background:#201d30fa;border:1px solid #e8b9cc26;border-radius:12px;box-shadow:0 8px 24px #06061550}.route-options>div>button,.route-library-menu>div>button,.route-saved-menu>div>button{display:block;width:100%;min-height:42px;text-align:left;padding:10px;border-radius:8px;background:transparent;color:#e5cfdf;font-size:12px;font-weight:400}.route-library-menu button:disabled{opacity:.4;cursor:default}.route-library{margin-top:24px;border-top:1px solid #e8b9cc22;padding-top:17px}.route-library>header{position:relative;display:flex;align-items:center;gap:7px}.route-library h3{margin:0;font-size:15px;font-weight:500;color:#e1c9dc;flex:1}.route-library [data-route-view-saved]{min-height:40px;font-size:11px;padding:8px 0;color:#bfa5bc}.route-saved>summary.sr-only{position:absolute;padding:0;margin:-1px;width:1px;height:1px}.route-saved [data-route-saved]{max-height:250px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ad8aab66 transparent}.route-saved [data-route-saved]>div{position:relative;align-items:center}.route-saved [data-route-load]{padding-left:0}.route-saved p{padding:15px 0;margin:0;font-size:12px;line-height:1.65;color:#a28eae}.route-saved-menu{position:static;flex:none}.route-saved-menu>div{position:relative;min-width:0;right:auto;top:auto;box-shadow:none}.route-saved [data-route-saved]>div:has(.route-saved-menu[open]){flex-wrap:wrap}.route-saved-menu[open]{width:100%}.route-saved-menu[open]>summary{margin-left:auto}.route-saved-menu>div>button{padding:10px!important;width:100%!important;min-height:40px}.route-note{font-size:11px;line-height:1.7;margin-top:15px;max-width:42ch}.route-status:empty{display:none}.route-status{margin:10px 0}.route-picker{padding:14px 12px;background:#e8b9cc07;border:1px solid #e8b9cc24;border-radius:13px;margin:0 0 15px}.route-picker>header{display:flex;align-items:center;gap:10px;margin-bottom:8px}.route-picker h3{font-size:13px;font-weight:500;color:#eed3e3;flex:1;margin:0}.route-picker [data-route-picker-close]{width:32px;height:36px;font-size:22px;color:#c5a7c0}.route-pick-map{min-height:42px;padding:10px 0;font-size:12px;color:#e6bcd2}.route-picker #route-results{padding:0}.route-network{margin:6px 0 0;padding:0 7px}.route-network summary{font-size:11px}.route-network p{padding:0;font-size:10px}.route-network>button{font-size:11px}.route-fit-control svg{width:20px;height:20px}.route-rename-saved button{background:#e8b9cc0c}.route-rename-saved label{font-size:12px}
@media(hover:hover) and (pointer:fine){.route-slot>button:not(:disabled):hover{background:#e8b9cc12}.route-options button:hover,.route-library-menu button:not(:disabled):hover,.route-saved-menu button:hover{background:#e8b9cc12}}
@media(max-width:760px){.route-stops{padding:0;margin:0 0 10px}.route-heading h2{font-size:25px}.route-slot>button{min-height:60px;font-size:14px}.route-picker input,.route-name{font-size:16px}.route-stops>li[data-route-index]{min-height:68px}.route-stop-menu>div>button,.route-stop-menu>div>a{min-height:44px}.route-options>summary,.route-library-menu>summary{min-width:44px}.route-options>div>button,.route-library-menu>div>button{min-height:44px}}

/* Keep page copy in English regardless of the native file-input locale. */
.route-file-choice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}.route-file-choice>[data-route-choose-graph]{flex:none;min-height:44px;padding:10px 13px;border-radius:9px;background:#e8b9cc14;color:#efd6e4;font:inherit;font-size:12px;cursor:pointer}.route-file-choice>[data-route-graph-name]{min-width:0;max-width:100%;font-size:11px;line-height:1.6;color:#bfa7c1;overflow-wrap:anywhere}.route-file-choice>[data-route-choose-graph]:focus-visible{outline:2px solid #e8b9cc;outline-offset:2px}

/* Route uses the same shell and header position as Leonida / Explore. */
.leonida-sidebar>.route-heading{display:none}.is-routing .leonida-sidebar>.route-heading{display:block}.leonida-sidebar>.route-heading h2{margin:0;color:#fff3d9;font-size:31px;line-height:1.2;font-weight:550;letter-spacing:-.7px}.leonida-sidebar>.route-heading>p{font-size:12px;color:#c1a6b8;line-height:1.5;margin:7px 0 21px}#map-route-view{padding-top:0}
@media(max-width:760px){.leonida-sidebar>.route-heading h2{font-size:28px}.leonida-sidebar>.route-heading>p{margin-bottom:15px}.is-routing .route-sheet-handle{position:absolute;top:0;left:calc(50% - 22px);width:44px;height:36px;margin:0;z-index:6}.is-routing:has(input:focus) .leonida-sidebar{max-height:min(70svh,calc(var(--route-visible-height,100dvh) - var(--map-ui-top) - 64px),580px)}}
