/* Adapted from the supplied navigation3d.css. Scoped entirely to the navigation page. */
.cr3d-page{position:relative!important;isolation:isolate;overflow:hidden!important;background:#e8efec!important;color:#153147!important;height:100%;min-height:0!important;padding:0!important}
.cr3d-page .cr3d-map{position:absolute;inset:0;z-index:0;background:#e5eeeb}
.cr3d-map .maplibregl-map,.cr3d-map .leaflet-container{width:100%;height:100%}
.cr3d-header{position:absolute;top:54px;left:12px;right:12px;display:flex;gap:9px;align-items:center;z-index:5;pointer-events:none}
.cr3d-header>*{pointer-events:auto}
.cr3d-round{display:grid;place-items:center;min-width:42px;width:42px;height:42px;padding:0;background:#fff;color:#164466;border:1px solid #dbe6ea;border-radius:50%;box-shadow:0 2px 9px #102f4824;font-weight:700;font-size:16px;cursor:pointer}
.cr3d-mode{flex:1;text-align:center;border:1px solid #dbe6ea;border-radius:18px;background:#fffffff0;color:#375262;font-size:12px;font-weight:700;padding:9px}
.cr3d-direction{position:absolute;top:107px;left:12px;right:12px;z-index:6;background:#195c83;color:white;border-radius:14px;padding:15px 14px;display:flex;align-items:center;gap:12px;box-shadow:0 3px 10px #10324824}
.cr3d-arrow{font-size:42px;font-weight:800;min-width:44px;line-height:1;text-align:center}.cr3d-direction strong{font-size:22px;font-weight:800;display:block;line-height:1.1}.cr3d-direction p{margin:3px 0 0;font-size:14px;font-weight:650;line-height:1.35;color:#fff}
.cr3d-controls{position:absolute;right:12px;top:213px;z-index:6;display:grid;gap:8px}.cr3d-controls .cr3d-round{width:39px;height:39px;min-width:39px;font-size:15px}
.cr3d-place-controls{position:absolute;left:12px;right:65px;top:213px;z-index:6;pointer-events:none}.cr3d-place-controls>*{pointer-events:auto}
.cr3d-place-toggle{background:#fff;color:#184663;border:1px solid #d6e2e7;min-height:41px;border-radius:24px;padding:9px 13px;font-size:12px;font-weight:750;box-shadow:0 2px 8px #102f481c}
.cr3d-place-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px;background:#fff;border:1px solid #dbe6ea;border-radius:12px;padding:8px;max-width:240px}.cr3d-place-list[hidden],.cr3d-offroute[hidden],.cr3d-preview-actions[hidden]{display:none!important}.cr3d-place-list button{background:#edf6f2;border:1px solid #d0e4db;color:#195641;padding:8px 5px;border-radius:9px;min-height:40px;font-size:12px}.cr3d-place-list button[aria-pressed=false]{background:#f5f6f6;color:#62727a}
.cr3d-offroute{position:absolute;left:12px;right:12px;bottom:155px;z-index:7;display:flex;gap:9px;align-items:center;justify-content:space-between;background:#fff6e8;border:1px solid #e6c9aa;border-radius:12px;padding:10px;font-size:12px;color:#734a28}.cr3d-offroute button{border:0;color:white;background:#195c83;border-radius:8px;padding:9px;font-weight:650;font-size:11px}
.cr3d-bottom{position:absolute;bottom:0;left:0;right:0;z-index:6;background:#fffffffa;border-radius:20px 20px 0 0;border:1px solid #dce6e7;box-shadow:0 -3px 18px #143f5424;padding:19px 18px 25px}
.cr3d-summary{display:flex;justify-content:space-between;align-items:center;gap:10px}.cr3d-summary strong{font-size:26px;font-weight:850;color:#153b56;font-variant-numeric:tabular-nums}.cr3d-summary p{margin:5px 0 0;font-size:13px;color:#496270}.cr3d-summary small{display:block;margin-top:6px;color:#59717b;font-size:11px;line-height:1.3}.cr3d-end{background:#e94a50;color:#fff;padding:12px 18px;min-height:48px;border:0;border-radius:11px;font-size:14px;font-weight:800}
.cr3d-preview-actions{display:flex;gap:6px;margin-top:12px}.cr3d-preview-actions button{flex:1;min-height:42px;background:#eff5f6;border:1px solid #d6e1e5;border-radius:9px;color:#145171;font-size:11px;font-weight:700;padding:7px}.cr3d-preview-actions button.cr3d-start{background:#195c83;color:#fff;border-color:#195c83}
.cr3d-location{width:22px;height:22px;border-radius:50%;background:#167bdb;border:4px solid white;box-shadow:0 0 0 9px #167bdb30,0 2px 7px #183b5566}
.cr3d-fallback-label{position:absolute;left:12px;bottom:180px;background:#fffe;border:1px solid #dbe6ea;border-radius:12px;padding:5px 9px;font-size:11px;color:#53676e;z-index:5}
.cr3d-empty{padding:65px 22px;line-height:1.5}.cr3d-empty button{background:#195c83;color:white;border:none;border-radius:9px;padding:11px}
.cr3d-page button:focus-visible{outline:3px solid #2e98d4;outline-offset:3px}
@media(max-height:690px){.cr3d-header{top:48px}.cr3d-direction{top:99px;padding:11px}.cr3d-controls,.cr3d-place-controls{top:191px}.cr3d-bottom{padding:12px 12px 14px}.cr3d-summary strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.cr3d-page *{animation:none!important;transition:none!important}}

/* Keep source attribution and failure states above the navigation sheet. */
.cr3d-page{--cr3d-sheet-offset:230px}.cr3d-page[data-live=true]{--cr3d-sheet-offset:155px}
.cr3d-page .maplibregl-ctrl-bottom-right,.cr3d-page .leaflet-bottom{bottom:var(--cr3d-sheet-offset)}
.cr3d-page .maplibregl-ctrl-attrib,.cr3d-page .leaflet-control-attribution{font-size:9px}
.cr3d-map-note{display:block;margin-top:8px;font-size:10px;line-height:1.35;color:#59717b}
.cr3d-page button:disabled{opacity:.45;cursor:default}
.cr3d-direction{max-height:100px;overflow:auto}.cr3d-bottom{max-height:45%;overflow:auto}
.cr3d-sensors{margin-top:10px}.cr3d-sensors[hidden]{display:none!important}.cr3d-sensor-actions{display:flex;gap:7px}.cr3d-sensor-actions button{flex:1;min-height:37px;border:1px solid #cbdce3;border-radius:9px;background:#eef6f8;color:#164466;font-size:11px;font-weight:700;padding:7px}.cr3d-sensor-actions button[aria-pressed=true]{background:#d8eef7;border-color:#3688b2}.cr3d-sensors small{display:block;margin-top:6px;color:#526a77;font-size:10px;line-height:1.35}.cr3d-controls [data-cr3d=follow][aria-pressed=true]{background:#e1f2fc;border-color:#3c8bc1;color:#086cb2}.cr3d-page[data-live=true]{--cr3d-sheet-offset:240px}.cr3d-page[data-live=true] .cr3d-offroute{bottom:245px}.cr3d-location{display:block;position:relative;box-sizing:border-box}.cr3d-location[data-heading=true]::before{content:"";position:absolute;left:50%;top:-19px;width:0;height:0;transform:translateX(-50%);border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:15px solid #167bdb;filter:drop-shadow(0 -1px 1px #fff)}.cr3d-location-wrap{background:none;border:none}.cr3d-location-wrap .cr3d-location{transform-origin:center}
.cr3d-preview-player{margin-top:10px}.cr3d-preview-player[hidden]{display:none!important}.cr3d-player-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.cr3d-player-row button{min-height:40px;border:1px solid #a9c9d8;border-radius:9px;background:#e5f3fa;color:#125270;padding:8px 12px;font:inherit;font-size:12px;font-weight:750}.cr3d-player-row output{font-size:12px;color:#234e63;font-variant-numeric:tabular-nums}.cr3d-preview-player input{width:100%;accent-color:#167bdb;min-height:24px;margin:5px 0 0}.cr3d-preview-player small{display:block;font-size:10px;color:#516975}.cr3d-page{--cr3d-sheet-offset:310px}.cr3d-bottom{max-height:49%}.cr3d-selected-place{font-family:system-ui,sans-serif;line-height:1.4;color:#173b50}.cr3d-selected-place>strong{font-size:14px}.cr3d-selected-place p{font-size:11px;margin:7px 0}.cr3d-selected-place a{font-size:11px;color:#145c83}.cr3d-selected-place button{display:block;width:100%;margin-top:8px;border:1px solid #a6c5d4;background:#e5f4fb;color:#184860;border-radius:8px;min-height:38px;padding:7px;font-size:12px;font-weight:700}.cr3d-selected-place [data-cr3d=route-here]{background:#195c83;color:white}.cr3d-page .maplibregl-popup{z-index:8}.cr3d-page .maplibregl-popup-content{padding:15px 16px 12px;border-radius:14px;max-height:320px;overflow:auto}.cr3d-page .maplibregl-popup-close-button{min-width:30px;min-height:30px;font-size:20px;color:#173b50}
@media(max-height:690px){.cr3d-preview-player{margin-top:6px}.cr3d-player-row button{min-height:34px}.cr3d-preview-actions{margin-top:6px}.cr3d-bottom{padding-top:10px}.cr3d-page{--cr3d-sheet-offset:285px}.cr3d-page[data-live=true]{--cr3d-sheet-offset:240px}}
/* Details live outside the map stacking context, between header and bottom sheet. */
.cr3d-page{--cr3d-detail-top:107px}
.cr3d-selection-panel{position:absolute;z-index:9;top:var(--cr3d-detail-top);left:12px;right:12px;max-height:calc(51% - var(--cr3d-detail-top) - 12px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;background:#fff;border:1px solid #b6cdd8;border-radius:15px;box-shadow:0 4px 18px #143f5430;padding:16px}
.cr3d-selection-panel[hidden]{display:none!important}
.cr3d-page[data-inspecting=true] .cr3d-direction,.cr3d-page[data-inspecting=true] .cr3d-place-controls,.cr3d-page[data-inspecting=true] .cr3d-controls{visibility:hidden;pointer-events:none}
.cr3d-selection-panel:focus{outline:2px solid #2e98d4;outline-offset:2px}
@media(max-height:690px){.cr3d-page{--cr3d-detail-top:99px}.cr3d-selection-panel{padding:12px}}
