@font-face{font-family:FourLow;src:url('/offline-map/font.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;font-family:FourLow,Tahoma,sans-serif;color:#f5ecd5;background:#101d15;--cream:#f2e6c8;--green:#173523;--orange:#ff891b;--edge:#9da782}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{background:radial-gradient(ellipse at 55% -30%,#304b32,#0e1c14 70%)}[hidden]{display:none!important}button,input,select,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button,a,select,input{outline-offset:3px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ffad54}button,a{color:inherit}button{border:1px solid var(--edge);border-radius:12px;background:#203827;padding:10px 14px}a{text-decoration:none}p{line-height:1.85;margin:8px 0;font-size:13px}h1,h2{margin:0;font-size:22px}small,.hint{font-size:11px;line-height:1.7;color:#c7cbb5}header{height:72px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px max(14px,env(safe-area-inset-right));border-bottom:1px solid #75845f;background:#102018;position:relative;z-index:6}header img{object-fit:contain;width:57px;height:44px}header strong{font-size:20px;display:grid;line-height:1.4;text-align:center}header small{font:9px Arial;letter-spacing:3px;color:#b7c1a4}header a{border:1px solid #8e9b79;border-radius:10px;padding:8px 12px;font-size:13px;background:#263729}main{height:calc(100dvh - 72px);position:relative;max-width:1600px;margin:auto;overflow:hidden}#map{position:absolute;inset:76px 10px 76px;border:1px solid #95a57c;border-radius:18px;overflow:hidden;background:#e8dec1;color:#273c27}.loading{padding:24px}.tools{position:absolute;top:12px;left:14px;right:14px;z-index:2;pointer-events:none}.tools>*{pointer-events:auto}.search{display:block;background:var(--cream);color:#243923;border-radius:14px;border:1px solid #fff1ce;font-size:0;box-shadow:0 4px 10px #0003;position:relative}.search:before{content:'';position:absolute;left:18px;top:16px;width:14px;height:14px;border:2px solid #4a573e;border-radius:50%;pointer-events:none}.search:after{content:'';position:absolute;left:13px;top:30px;width:9px;height:2px;background:#4a573e;transform:rotate(-45deg);pointer-events:none}.search input,.search select{width:100%;min-height:52px;padding:12px 18px 12px 48px;font-size:16px;background:transparent;border:0;border-radius:14px;color:#283b27}.tools #download-panel{display:none}#gps{position:fixed;bottom:calc(184px + env(safe-area-inset-bottom));left:max(22px,calc((100vw - 1556px)/2));width:42px;height:42px;border-radius:50%;padding:0;font:28px Arial;background:#173a27ed;border:1px solid #b9c4a3;box-shadow:0 2px 6px #0004}#gps[aria-pressed=true]{color:#ffad46;border-color:#ffad46}#vehicle-picker{position:fixed;bottom:calc(240px + env(safe-area-inset-bottom));left:max(20px,calc((100vw - 1560px)/2));border-radius:14px;padding:0;width:48px;height:48px;font-size:0;background:#132b1ddd url('/offline-map/vehicles-offroad-v2.webp') var(--car-x,0%) var(--car-y,0%)/300% 300%;border-color:#b3bb96}#destination-results{position:absolute;top:100%;right:0;left:0;max-height:45dvh;overflow:auto;background:var(--cream);color:#213421;border-radius:0 0 14px 14px;box-shadow:0 8px 18px #0005;font-size:14px}#destination-results button{display:block;width:100%;border:0;border-bottom:1px solid #c5bfa5;background:transparent;color:#253c25;text-align:right;padding:14px;border-radius:0}.map-status{position:absolute;bottom:91px;right:72px;left:18px;max-width:530px;width:fit-content;margin:0 auto;padding:6px 14px;border-radius:20px;background:#1b3b24ec;color:#f4efd6;font-size:11px;border:1px solid #a1ad83;z-index:1;pointer-events:none;line-height:1.55}.maplibregl-ctrl-top-left{top:auto;bottom:48px;left:10px}.maplibregl-ctrl-group{background:#1b3b28e8;border:1px solid #b4c09d;border-radius:24px;overflow:hidden;box-shadow:0 2px 8px #0004!important}.maplibregl-ctrl-group button{width:38px;height:38px;background:transparent;border:0}.maplibregl-ctrl-group button+button{border-top:1px solid #90a17c}.maplibregl-ctrl-icon{filter:invert(1)}.maplibregl-ctrl-attrib{color:#263626!important;font-size:9px!important;direction:ltr;background:#f6efd6d9!important}.maplibregl-ctrl-scale{font-size:10px;background:#f6efd6b0;border-color:#536346}.maplibregl-ctrl-bottom-left{bottom:0}.maplibregl-canvas:focus{outline:none}#map-nav{position:absolute;bottom:0;left:10px;right:10px;z-index:5;border:1px solid #98a980;border-bottom:0;border-radius:20px 20px 0 0;display:flex;gap:8px;justify-content:space-around;background:#172b1df5;padding:8px 10px max(8px,env(safe-area-inset-bottom))}#map-nav button{display:flex;flex:1;max-width:250px;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:3px 10px;border:1px solid transparent;background:transparent;font-size:24px;line-height:1.25}#map-nav button span{font-size:12px;font-weight:bold}#map-nav [aria-current=page]{background:linear-gradient(135deg,#ffab32,#fa7308);border-color:#ffe1a1;color:#182c18}#package-panel{position:absolute;inset:0 0 76px;z-index:4;overflow:auto;overscroll-behavior:contain;padding:20px max(16px,calc((100% - 660px)/2)) 26px;background:radial-gradient(ellipse at top,#263e2b,#0f1f15 70%)}.travel-symbol{font:68px Georgia;color:#ffa12d;text-align:center;line-height:.9;transform:rotate(-10deg);height:55px}.package-head{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 14px}.package-head h1{text-align:center;font-size:23px}#badge{display:none}.city-search{display:grid;gap:6px;font-size:12px}.city-search input{width:100%;background:var(--cream);border:1px solid #fff1d2;color:#263d24;border-radius:12px;padding:13px 16px;font-size:15px}#selected{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.selection-chip{background:linear-gradient(135deg,#ffaa31,#f47b10);color:#172b18;border:1px solid #f9c378;border-radius:10px;padding:7px 12px;font-weight:bold}#city-list{display:grid;gap:10px;grid-template-columns:1fr}.city-row{display:flex;gap:12px;align-items:center;background:var(--cream);color:#223720;border:1px solid #fdf3d9;border-radius:14px;padding:14px 12px;min-width:0}.city-row input,.country-option input{width:22px;height:22px;accent-color:#ff8b16;flex-shrink:0}.city-row span{display:grid;flex:1;gap:3px;min-width:0}.city-row strong{font-size:18px}.city-row small{color:#44513b;font-size:12px}.city-size{white-space:nowrap;font-weight:bold}.country-option{display:flex;gap:10px;align-items:center;background:var(--cream);border:1px solid #fff4d7;color:#223720;border-radius:14px;margin-top:14px;padding:14px 12px;font-weight:bold}.country-option span{font-size:12px}#more-cities{width:100%;margin:10px 0}.quiet{background:transparent;font-size:12px}#storage-info{font-weight:bold;font-size:15px}progress{width:100%;height:10px;direction:ltr;accent-color:var(--orange)}#status{min-height:22px}#package-panel .actions{position:sticky;bottom:-27px;display:flex;gap:9px;padding:14px 0;background:#142519}#download,.primary{background:linear-gradient(120deg,#ffab35,#fa760b);color:#152814;border:1px solid #ffe0a4;font-weight:bold;font-size:19px;padding:14px;width:100%;border-radius:14px}.actions #download{flex:1}#pause{background:var(--cream);color:#233724}.saved-row{display:flex;gap:10px;align-items:center;border:1px solid #99a881;border-radius:16px;padding:18px 12px;background:#2b412b7a;margin:12px 0;min-height:100px}.saved-row:before{content:'▧';font-size:40px;color:#dddfb8}.saved-row button:first-child{flex:1;text-align:right;font-size:15px;line-height:1.9}.saved-row button:last-child{padding:8px;color:#ffcc9c}#saved-section h2{font-size:20px}body[data-map-view=cities] #saved-section{display:none!important}body[data-map-view=downloads] #package-panel>:not(.package-head):not(#saved-section):not(#road-downloads):not(#auto-downloads):not(.hint):not(.offline-help){display:none!important}#destination-card{position:absolute;z-index:4;left:10px;right:10px;bottom:76px;max-width:600px;margin:auto;padding:23px 18px 16px;border:1px solid #fff1ce;border-radius:24px 24px 14px 14px;background:var(--cream);color:#213720;box-shadow:0 -5px 25px #0003;max-height:55dvh;overflow:auto}#destination-card:before{content:'';display:block;position:absolute;top:8px;width:38px;height:5px;background:#aaa68f;border-radius:8px;left:calc(50% - 19px)}#destination-card h2{font-size:24px;padding-left:24px}#close-destination{position:absolute;left:9px;top:16px;padding:0 10px;font-size:24px;background:transparent;color:#223b23;border:0}.destination-actions{display:flex;gap:9px;margin-top:12px}.destination-actions>*{flex:1;padding:13px 8px;font-weight:bold;font-size:14px}.destination-actions #navigate-destination{background:linear-gradient(120deg,#ffab35,#fa760b);color:#193019;border:1px solid #db791b}.destination-actions #save-destination{background:#dfd3b4;color:#253b24;border:1px solid #cbbd96}#destination-card small{display:block;color:#526048;font-size:10px;margin-top:9px}#route-summary{padding:12px;border:1px solid #beaf8b;background:#e4d9bc;border-radius:12px;font-size:18px;font-weight:bold}#route-summary details{font-size:12px;font-weight:normal}#route-summary ol{padding-right:20px;max-height:160px;overflow:auto}#route-message{font-size:12px}.access-gate{max-width:440px;margin:8vh auto;padding:30px 24px;text-align:center;border:1px solid #a0ab7e;border-radius:24px;background:#233c29}.gate-symbol{font-size:60px;color:#ff9c2c}.access-gate a,.access-gate button{display:inline-block;margin-top:12px;padding:12px 18px;background:#ff9427;color:#1b301b;border-radius:12px;font-weight:bold}.access-gate h1{font-size:24px}dialog{border:1px solid #a7b18c;border-radius:22px;background:#213a28;color:#f5ecd5;width:min(94vw,480px);max-height:85dvh;padding:20px;overflow:auto}dialog::backdrop{background:#06100acb;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dialog-heading h2{font-size:22px}.dialog-heading button{padding:2px 10px;font-size:24px}dialog form{display:flex;gap:10px}.danger{background:#8d3d27}#vehicle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px}#vehicle-grid button{min-width:0;font-size:11px;display:grid;justify-items:center;padding:6px;gap:6px}#vehicle-grid [aria-pressed=true]{border:2px solid #ffa32f;background:#4c4c2b}.vehicle-icon,.vehicle-marker{display:block;width:80px;height:80px;background:url('/offline-map/vehicles-offroad-v2.webp') 0 0/300% 300% no-repeat}.vehicle-marker{width:48px;height:48px;filter:drop-shadow(0 3px 3px #0007)}#route-planner label{display:grid;gap:8px}#route-origin{border:1px solid #c7bc99;border-radius:12px;background:var(--cream);color:#223820;width:100%;padding:13px}.planner-destination{background:var(--cream);color:#223820;padding:15px;border-radius:12px;font-size:19px}#guidance{position:absolute;inset:0;z-index:3;pointer-events:none}#guidance>*{pointer-events:auto}.turn-banner{position:absolute;top:16px;left:18px;right:18px;max-width:650px;margin:auto;display:flex;align-items:center;gap:18px;background:#17331ff5;border:1px solid #aab58b;border-radius:16px;padding:18px;color:#fff1cf;box-shadow:0 5px 14px #0004}.turn-banner>span{font:50px Arial;color:#ff9823;min-width:50px;text-align:center;border-left:1px solid #80916b;padding-left:16px}.turn-banner strong{font-size:23px}.turn-banner p{font-size:17px;margin:0}.trip-bottom{position:absolute;bottom:8px;left:10px;right:10px;max-width:650px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;background:#17331ff5;border:1px solid #acb795;border-radius:20px}.trip-bottom strong{display:block;font-size:20px}.trip-bottom small{display:block}.trip-bottom button{background:var(--cream);color:#223820}body[data-navigating=true] #map{inset:8px 10px}body[data-navigating=true] .tools>.search,body[data-navigating=true] #map-nav,body[data-navigating=true] #destination-card,body[data-navigating=true] #map-status{display:none!important}body[data-navigating=true] .maplibregl-ctrl-top-left{bottom:100px}body[data-navigating=true] #gps{bottom:238px}body[data-navigating=true] #vehicle-picker{bottom:295px}
@media(min-width:760px){#map{inset:76px 20px 76px}.tools{max-width:620px;margin:auto}#package-panel{left:50%;border-left:1px solid #819568}#map-nav{max-width:650px;margin:auto}#gps{left:max(34px,calc((100vw - 1532px)/2))}#vehicle-picker{left:max(32px,calc((100vw - 1536px)/2))}.map-status{left:70px;right:70px}}
@media(max-width:360px){header{padding:8px}header strong{font-size:17px}header a{padding:8px}.vehicle-icon{width:65px;height:65px}.turn-banner strong{font-size:19px}.turn-banner p{font-size:14px}.city-row strong{font-size:16px}.destination-actions>*{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#gps{bottom:calc(222px + env(safe-area-inset-bottom))}#vehicle-picker{bottom:calc(276px + env(safe-area-inset-bottom))}.map-status{bottom:110px;font-size:10px}

#map-nav svg{width:24px;height:24px}.travel-symbol{height:58px;transform:none}.travel-symbol svg{width:56px;height:56px;color:#f3e7c8}.saved-row button:first-child{white-space:pre-line}#restore-route{width:100%;margin-top:10px;background:#f2e6c8;color:#213720}
#map-options{position:fixed;top:164px;right:max(24px,calc((100vw - 1552px)/2));width:42px;height:42px;padding:0;font:22px Arial;background:#193b28ef;border-radius:50%;border-color:#b3c196}.place-actions{display:flex;gap:8px;margin:10px 0}.place-actions button{flex:1;background:#e4d7b7;color:#233b26;border-color:#c7ba96;font-size:12px;padding:8px}#route-choices{display:grid;gap:5px;margin-top:10px}#route-choices button{font-size:12px;padding:8px;background:#e4d7b7;color:#233b26}#route-choices [aria-pressed=true]{border:2px solid #ef8b26}#route-avoid,#place-list,#place-name{width:100%;padding:12px;background:#f2e6c8;color:#233b26;border:1px solid #b6ae90;border-radius:12px}.check-row{display:flex!important;align-items:center;gap:10px;margin:14px 0}.check-row input{accent-color:#f99024;width:20px;height:20px}.tool-tabs{display:flex;gap:5px;margin-bottom:16px}.tool-tabs button{font-size:12px;padding:9px 6px;flex:1}.tool-tabs [aria-pressed=true]{background:#ff9326;color:#213620}.personal-place{display:flex;gap:8px;border-bottom:1px solid #647a55;padding:10px 0}.personal-place button:first-child{flex:1;text-align:right;border:0;background:transparent}.personal-place button:last-child{font-size:12px}.personal-place.deleted{opacity:.6}#tool-display>button{display:block;width:100%;margin-top:10px}#save-place-form{display:grid;gap:16px}#save-place-form label{display:grid;gap:6px}#save-place-form .actions{display:flex;gap:10px}#measure-bar{position:fixed;bottom:90px;left:12px;right:12px;max-width:650px;margin:auto;z-index:6;background:#153a2a;border:1px solid #d9d4b3;padding:12px;border-radius:14px;display:flex;gap:8px;align-items:center}#measure-bar strong{font-size:12px;flex:1}#measure-bar button{font-size:11px;padding:6px}body[data-navigating=true] #map-options{display:none}body[data-measuring=true] #map-status{display:none}

#road-downloads{border-top:1px solid #65705a;margin-top:18px;padding-top:12px}#road-status,#traffic-status,#voice-status{line-height:1.8}.trip-bottom{flex-wrap:wrap}#trip-voice{min-width:72px}#tool-display details{margin:12px 0}#road-saved .saved-row{align-items:center}

/* Align the live, interactive screens with the approved forest/cream/orange boards. */
header{background:linear-gradient(110deg,#0c1911,#15291c)}header strong{font-weight:800}header img{width:61px;height:46px}
#package-panel{background:radial-gradient(ellipse at 50% -20%,#29412b 0,#101f15 65%)}.package-head h1{font-weight:800}.travel-symbol{margin-top:5px}.city-row{border-radius:13px;padding:11px 12px}.city-row input{width:24px;height:24px}.selection-chip{padding:7px 14px}.city-size{font-size:13px}.country-option{margin-top:10px}.offline-help{font-size:12px;color:#dce1ca;border-top:1px solid #758463;padding:10px 0;margin-top:12px}.offline-help summary{cursor:pointer;font-weight:bold}.offline-help p{font-size:11px;color:#c3cbb5}.saved-row{min-height:112px;background:linear-gradient(135deg,#283d2d,#122219);border-radius:15px}.saved-row:before{content:'⌖';font-size:38px;width:64px;height:68px;display:grid;place-items:center;flex-shrink:0;border:1px solid #9dab87;border-radius:9px;background:linear-gradient(135deg,#536744,#1b3927);color:#f2e8ca}.saved-row button:first-child{padding:5px;font-size:15px;line-height:1.8}.saved-row button:last-child{background:transparent;border-color:#a6ac91;font-size:12px}.map-status{font-size:11px;border-radius:24px;background:#183b21f2}
#destination-overview{display:flex;flex-direction:row-reverse;gap:12px;align-items:flex-start;margin-top:14px}#destination-overview figure{margin:0;width:39%;flex-shrink:0}#destination-photo{width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:11px;border:1px solid #b6b198}#destination-credit{font-size:8px;line-height:1.4;color:#647058;max-height:30px;overflow:auto}#destination-description{font-size:12px;line-height:1.85;margin:0;flex:1}#destination-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}#destination-facts>div{display:grid;gap:3px;padding:9px;background:#e5d8b8;border-radius:10px;text-align:center}#destination-facts small{margin:0;font-size:10px}#destination-facts strong{font-size:11px;line-height:1.6}#destination-card h2{font-weight:800}#destination-card:has(#route-summary:not([hidden])) #destination-overview,#destination-card:has(#route-summary:not([hidden])) #destination-facts{display:none}
#route-planner{background:linear-gradient(145deg,#1d3524,#0f2117);border-radius:22px}#route-planner .dialog-heading h2{font-size:26px;font-weight:800}#route-planner label{margin-top:12px}#route-origin,.planner-destination{min-height:54px;font-size:17px;font-weight:bold}#route-summary{border-radius:14px;padding:14px}#route-summary>strong{font-size:22px}#route-summary details{border-top:1px solid #b7ab8c;margin-top:10px;padding-top:10px}#route-summary summary{cursor:pointer;font-size:14px;font-weight:bold}.turn-banner{background:linear-gradient(115deg,#1b3b27,#10281a);border-radius:17px}.turn-banner>span{font-size:58px}.trip-bottom{background:linear-gradient(120deg,#163321,#0d2016)}.trip-bottom button{padding:14px 22px;font-size:17px;font-weight:bold}#confirm-remove{background:#f2e6c8;color:#223620}#confirm-remove .danger{background:#ff8818;color:#1c301d;border-color:#d67a22}#confirm-remove button{background:transparent;color:#213720}.primary{box-shadow:inset 0 1px 0 #ffe4b1}
body[data-map-view=downloads] #package-panel>.offline-help{display:block!important}body[data-map-view=downloads] #package-panel>.package-head{margin:0 0 18px}body[data-map-view=downloads] #saved-section h2{font-size:14px;color:#c2cbb4}.offline-help a{color:#ffd49d}
@media(max-width:420px){#package-panel{padding:12px 14px 22px}.travel-symbol{height:46px}.travel-symbol svg{width:44px;height:44px}.package-head{margin:6px 0 12px}.package-head h1{font-size:21px}#destination-card{padding:22px 15px 14px}}
#destination-card{scrollbar-width:thin}#destination-card h2{padding-left:116px}#destination-region{margin:4px 0}.place-actions{position:absolute;top:19px;left:46px;margin:0;gap:5px}.place-actions button{width:32px;height:32px;padding:0;font-size:0;flex:none}.place-actions button:before{font:22px Arial;display:block}.place-actions #bookmark-place:before{content:'☆'}.place-actions #bookmark-place[data-saved=true]:before{content:'★'}.place-actions #share-place:before{content:'↗'}#destination-overview{margin-top:10px}#destination-facts{margin-top:9px}#destination-card small{margin-top:5px}

#route-summary>strong{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:16px;align-items:center;text-align:center}#route-summary>strong span+span{border-right:1px solid #b9ac89;padding-right:8px}

.search-note{display:block;padding:10px 12px;font-size:11px;color:#405443;line-height:1.8}.ferry-notice{padding:9px 12px;background:#e8f1ec;color:#243b36;border-radius:12px;margin:8px 0;line-height:1.7}.ferry-notice a{color:#284c65;text-decoration:underline}

/* Transparent location artwork and car silhouette; preserve touch/keyboard targets. */
#gps{width:48px;height:48px;font-size:0;background:transparent url('/offline-map/location-pin-v2.webp') center/32px 46px no-repeat;border:0;border-radius:10px;box-shadow:none;filter:drop-shadow(0 2px 2px #10201865)}
#gps[aria-pressed=true]{filter:drop-shadow(0 2px 3px #172d2490)}#gps[data-state=waiting]{opacity:.65}#gps[data-state=denied]{filter:grayscale(.8)}
#vehicle-picker{background-color:transparent;border:0;box-shadow:none;border-radius:0;filter:drop-shadow(0 2px 2px #10201875);width:52px;height:52px}
.vehicle-marker{border:0;background-color:transparent;border-radius:0;box-shadow:none}
.destination-pin{width:32px;height:46px;background:transparent url('/offline-map/location-pin-v2.webp') center bottom/contain no-repeat;filter:drop-shadow(0 2px 2px #16271f65);pointer-events:none}

body[data-navigating=true] #gps[data-follow=false]:after{content:'برگشت به ماشین';position:absolute;right:56px;left:auto;top:7px;width:max-content;max-width:160px;padding:7px 10px;border-radius:12px;background:#173523;color:#f2e6c8;font:12px FourLow,Tahoma,sans-serif;border:1px solid #a2ad88;pointer-events:none}

/* Shared right-hand column; reserve real notice/footer height instead of overlapping it. */
#map-shortcuts{position:absolute;left:auto;right:22px;bottom:var(--map-shortcuts-bottom,122px);display:flex;flex-direction:column;align-items:center;gap:4px;width:52px;z-index:2}
#map-shortcuts #gps,#map-shortcuts #vehicle-picker{position:relative;inset:auto;width:52px;height:52px;margin:0;padding:0;flex:none}
#map-shortcuts #gps{background-position:center;background-size:32px 46px}
#map-shortcuts #vehicle-picker{background-position:calc(var(--car-x,0%) + var(--car-shift,0px)) var(--car-y,0%)}
#map-status{bottom:var(--map-notice-bottom,110px);left:20px;right:86px;max-width:530px;width:auto;padding:8px 12px;margin-inline:auto;line-height:1.8;overflow-wrap:anywhere;font-size:12px;z-index:2}
#map .maplibregl-ctrl-attrib{font-size:10px!important;line-height:1.7;border-radius:12px;max-width:min(320px,calc(100vw - 48px))}
#map .maplibregl-ctrl-attrib.maplibregl-compact{min-height:28px;padding:2px 30px 2px 6px}
#map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show){width:28px;height:28px;min-width:28px;padding:0}
#map .maplibregl-ctrl-attrib-button{width:28px;height:28px;background-position:center}
#map-shortcuts .maplibregl-ctrl-group{margin:4px 0 0;width:44px;border-radius:22px;overflow:hidden;box-shadow:0 2px 5px #0003}
#map-shortcuts .maplibregl-ctrl-group button{width:44px;height:44px;background:#173523;border:0}
#map-shortcuts .maplibregl-ctrl-group button+button{border-top:1px solid #9da78266}
#map-shortcuts .maplibregl-ctrl-icon{filter:invert(1)}
#map .fourlow-credits.maplibregl-ctrl-attrib{position:relative;width:86px!important;min-width:86px!important;height:30px!important;padding:0!important;background:#f2e6c8f2;color:#1c3023;overflow:visible;direction:ltr}
#map .fourlow-credits .maplibregl-ctrl-attrib-button{display:block;width:86px;height:30px;background:none;color:#1c3023;font:12px/30px Arial;text-align:center;cursor:pointer;list-style:none}
#map .fourlow-credits .maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}
#map .fourlow-credits .maplibregl-ctrl-attrib-inner,#map .fourlow-credits .fourlow-source-link{display:none!important}
#map .fourlow-credits[data-expanded=true]{width:min(310px,calc(100vw - 48px))!important;height:auto!important;padding:6px 10px!important;background:#f2e6c8!important}
#map .fourlow-credits[data-expanded=true] .maplibregl-ctrl-attrib-button{margin-left:auto}
#map .fourlow-credits[data-expanded=true] .maplibregl-ctrl-attrib-inner,#map .fourlow-credits[data-expanded=true] .fourlow-source-link{display:block!important;white-space:normal;line-height:1.8}
#map-status.credits-visible{visibility:hidden}
body[data-navigating=true] .maplibregl-ctrl-top-left{bottom:var(--map-navigation-zoom-bottom,190px)}
@media(min-width:760px){#map-shortcuts{right:32px}#map-status{left:28px;right:96px}}

#planner-status{color:#fff0cc;font-size:13px;line-height:1.9;margin:12px 0}#route-position-choice{border:1px solid #bcaa79;border-radius:12px;padding:10px 12px;margin:10px 0;background:#2c4029}#route-position-choice p{font-size:13px;line-height:1.9}#use-approximate-origin{width:100%;background:#f2e6c8;color:#203724}.origin-approximate-note{font-size:12px;font-weight:normal;color:#67401c;line-height:1.8}#calculate-route[aria-busy=true]{opacity:.85}

.origin-modes{border:0;padding:0;margin:14px 0}.origin-modes legend{font-weight:bold;margin-bottom:10px}.origin-modes>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.origin-modes button{min-height:56px;font-size:14px;line-height:1.7;padding:10px}.origin-modes [aria-pressed=true]{background:#f2e6c8;color:#203724;border-color:#ffad48;box-shadow:inset 0 0 0 1px #ffad48}#origin-selection{color:#e9e4cd;font-size:12px;margin:9px 0}
#origin-picker{position:absolute;inset:0;z-index:5;pointer-events:none}#origin-picker>*{pointer-events:auto}.origin-pick-banner{position:absolute;top:16px;left:20px;right:20px;max-width:620px;margin:auto;padding:12px 16px;text-align:center;border:1px solid #a8b38b;border-radius:14px;background:#173523f2;color:#f2e6c8;font-size:16px;font-weight:bold}.origin-pick-actions{position:absolute;bottom:12px;left:20px;right:20px;max-width:620px;margin:auto;display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px;background:#173523f5;border:1px solid #a8b38b;border-radius:16px}.origin-pick-actions p{grid-column:1/-1;margin:0;font-size:13px}.origin-pick-actions button{font-size:15px;padding:12px;min-height:46px}.route-origin-marker{width:48px;height:48px;border:0;border-radius:0;box-shadow:none;pointer-events:none}body[data-picking-origin=true] .vehicle-marker:not(.route-origin-marker){visibility:hidden}
body[data-picking-origin=true] .tools,body[data-picking-origin=true] #map-nav,body[data-picking-origin=true] #map-shortcuts,body[data-picking-origin=true] #map-status,body[data-picking-origin=true] #destination-card{display:none!important}body[data-picking-origin=true] #map{inset:8px 10px}body[data-picking-origin=true] .maplibregl-ctrl-top-left{bottom:165px}


/* Clear names and explicit manual location, without replacing device GPS. */
#destination-results>button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:right}
.tools>.search{z-index:3}#destination-results>button>strong{font-size:14px}#destination-results>button>small{color:#4b5b42;font-size:12px}
#map-status.has-location-actions{border-radius:16px;padding:10px 12px;text-align:right;line-height:1.65;pointer-events:auto}
#map-status.has-location-actions>span{display:block}#map-status.has-location-actions>button{padding:5px 7px;margin:5px 0 0 6px;font:inherit;font-size:12px;border:1px solid #d0c997;border-radius:8px;background:#f3e9c8;color:#193b29;min-height:32px}
.vehicle-marker[data-approximate="true"]{opacity:.7}.manual-location-marker{filter:drop-shadow(0 0 4px #ff8d1f)}
body[data-picking-origin="true"] #map-status.has-location-actions{display:none}

#auto-downloads{padding:12px;border:1px solid #8d9c78;border-radius:14px;margin:16px 0}#auto-download-status{min-height:26px}#destination-results>.recent-query{color:#294b36;font-size:13px}
.map-theme-setting{display:grid;gap:8px;margin:10px 0 18px}.map-theme-setting select{width:100%;padding:10px;border-radius:10px;background:#233e2e;color:#f5ecd5;border:1px solid #94a27b}
body[data-map-theme=dark] #map{background:#101d23;border-color:#53685f}
body[data-map-theme=dark] .search,body[data-map-theme=dark] #destination-results,body[data-map-theme=dark] #destination-card{background:#1b3031;color:#eceddc;border-color:#60746b}
body[data-map-theme=dark] .search input,body[data-map-theme=dark] #destination-results button,body[data-map-theme=dark] #close-destination{color:#eceddc}
body[data-map-theme=dark] #destination-results button{border-color:#405755}
body[data-map-theme=dark] #destination-results button small,body[data-map-theme=dark] #destination-card small{color:#b9cbb9}
body[data-map-theme=dark] #destination-results .recent-query{color:#d6e7c9}
body[data-map-theme=dark] #route-summary{background:#253c3b;border-color:#5e7163;color:#edebd3}
body[data-map-theme=dark] .search:before{border-color:#bed0bb}body[data-map-theme=dark] .search:after{background:#bed0bb}
body[data-map-theme=dark] .maplibregl-ctrl-attrib,body[data-map-theme=dark] .maplibregl-ctrl-scale{background:#172a2cdd!important;color:#c1d1be!important}
body[data-map-theme=dark] .search input::placeholder{color:#c3d0b8;opacity:.85}body[data-map-theme=dark] #destination-results .search-note{color:#c3d0b8}
body[data-map-view=downloads] #package-panel>#auto-downloads{display:block!important}

#route-use-gps{display:block;width:100%;min-height:46px;margin:8px 0 14px;padding:12px 10px;background:#21412f;border:1px solid #718b6d;color:#f5ecd5;font-size:14px;font-weight:bold;text-align:center}

/* Keep clear actions below the place title, without crowding short phone screens. */
#destination-card h2{padding-left:28px}
.place-actions{position:static;display:flex;justify-content:flex-start;gap:8px;margin:8px 0 12px}
.place-actions button{flex:none;min-height:42px;height:42px}
.place-actions button:before{display:none!important;content:none!important}
.place-actions #bookmark-place{width:44px;padding:8px;display:grid;place-items:center}
#bookmark-place svg{width:23px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
#bookmark-place[data-saved=true] svg{fill:currentColor}
.place-actions #share-place{width:auto;padding:0 14px;font-size:13px;font-weight:bold;white-space:nowrap}

/* A crisp location arrow in the map's cream, forest and orange palette. */
#map-shortcuts #gps{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid #a5aa8a;background:#f5ecd5;color:#21412f;box-shadow:0 2px 7px #10201835;filter:none;opacity:1}
#gps svg{width:27px;height:27px;overflow:visible;pointer-events:none}
#gps .gps-arrow{fill:currentColor;stroke:currentColor;stroke-width:1.2;stroke-linejoin:round}
#gps .gps-arrow-fold{fill:#f5ecd5;opacity:.32}
#map-shortcuts #gps[data-follow=true]{color:#ed7c18;border-color:#e18a32}
body[data-map-theme=dark] #map-shortcuts #gps{background:#173523;color:#f5ecd5;border-color:#9da782}
body[data-map-theme=dark] #map-shortcuts #gps[data-follow=true]{color:#ff9a32;border-color:#ff9a32}
#map-shortcuts #gps[data-state=waiting]{border-style:dashed}
#map-shortcuts #gps[data-state=denied]{border-color:#b16d50}
#map-shortcuts #gps:active{transform:scale(.94)}
#map-shortcuts[data-card-open=true]{top:var(--map-gps-top,88px);bottom:auto;left:22px;right:auto;z-index:5}
#map-shortcuts[data-card-open=true]>*:not(#gps){display:none}
.vehicle-icon{filter:var(--vehicle-paint,none)}
.vehicle-marker{filter:var(--vehicle-paint,none) drop-shadow(0 3px 3px #0007)}
#vehicle-picker{filter:var(--vehicle-paint,none) drop-shadow(0 2px 2px #10201875)}
#vehicle-color-choice{border:0;margin:0 0 14px;padding:0}
#vehicle-color-choice legend{font-size:14px;font-weight:bold;margin-bottom:8px}
#vehicle-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#vehicle-colors button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 4px;font-size:11px;border:1px solid #819578;background:#153021}
.vehicle-color-swatch{width:22px;height:22px;border-radius:50%;border:1px solid #b5bba3;flex:none;box-shadow:inset 0 0 0 1px #0002}
#vehicle-colors [aria-pressed=true]{border:2px solid #ff9a32;background:#3c4129}
#vehicle-color-status{font-size:12px;margin:6px 0}
#done-vehicles{display:block;width:100%;margin-top:14px;background:#f39124;color:#19301f;font-weight:bold}

body[data-map-theme] #map-shortcuts #gps{background:transparent;border:0;border-radius:0;box-shadow:none;color:#ff9a32;filter:drop-shadow(0 1px 2px #10201899)}
#gps .gps-arrow{stroke:#193624;stroke-width:1.2}
#map-shortcuts[data-card-open=true]{left:auto;right:22px}
#map-theme-toggle{position:absolute;z-index:5;left:22px;top:var(--map-appearance-top,88px);display:grid;grid-template-rows:38px 38px;width:42px;padding:2px;border:1px solid #8b9a7b;border-radius:23px;background:#163023;box-shadow:0 2px 6px #0003}
#map-theme-toggle button{position:relative;z-index:1;width:36px;height:38px;padding:8px;border:0;border-radius:50%;background:transparent;color:#f5ecd5;display:grid;place-items:center}
#map-theme-toggle button[aria-pressed=true]{color:#173523}
#map-theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle-thumb{position:absolute;top:3px;left:3px;width:34px;height:34px;border-radius:50%;background:#ff9a32;transform:translateY(0);transition:transform .16s ease;pointer-events:none}
#map-theme-toggle[data-theme=light] .theme-toggle-thumb{transform:translateY(38px);background:#f5ecd5}
body[data-navigating=true] #map-theme-toggle{top:auto;bottom:var(--map-shortcuts-bottom,190px)}
body[data-picking-origin=true] #map-theme-toggle,body[data-map-view=cities] #map-theme-toggle,body[data-map-view=downloads] #map-theme-toggle{display:none}

/* Two composited dust wisps only while a fresh GPS fix reports vehicle motion. */
.vehicle-marker.vehicle-shell{background-image:none;filter:drop-shadow(0 3px 3px #0007)}
.vehicle-body{position:absolute;inset:0;z-index:1;background:url('/offline-map/vehicles-offroad-v2.webp') 0 0/300% 300% no-repeat;background-position:inherit;filter:var(--vehicle-paint,none);pointer-events:none}
.vehicle-marker:before,.vehicle-marker:after{content:'';position:absolute;top:38px;width:11px;height:29px;border-radius:50%;pointer-events:none;opacity:0;z-index:0;transform-origin:50% 0;background:radial-gradient(ellipse at 50% 30%,#bfa37999 0%,#ad8a5c55 35%,#b8996500 72%)}
.vehicle-marker:before{left:12px}.vehicle-marker:after{right:12px}
.vehicle-marker[data-moving=true]:before,.vehicle-marker[data-moving=true]:after{animation:fourlow-dust 1.15s ease-out infinite}
.vehicle-marker[data-moving=true]:after{animation-delay:-.57s}
@keyframes fourlow-dust{0%{opacity:0;transform:translateY(-2px) scale(.45)}25%{opacity:.65}100%{opacity:0;transform:translateY(23px) scale(1.65)}}
@media(prefers-reduced-motion:reduce){.vehicle-marker[data-moving=true]:before,.vehicle-marker[data-moving=true]:after{animation:none;opacity:0}}


.fourlow-compass-frame{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;border-radius:inherit}.fourlow-compass-frame svg{display:block}.compass-border{fill:none;stroke:#d9d7b74d;stroke-width:.75}.compass-tick{stroke:#eddfbb70;stroke-width:1}.compass-tick.cardinal{stroke:#ff9a32;stroke-width:1.5}.fourlow-compass-frame text{fill:#e9dfc6;stroke:#152820;paint-order:stroke;stroke-width:3px;font-size:10px;font-family:inherit}.fourlow-compass-north{position:absolute;z-index:4;transform:translate(-50%,-50%);height:44px;min-width:44px;display:flex;align-items:center;gap:4px;padding:0 5px;border:0;border-radius:8px;background:transparent;text-shadow:0 1px 3px #000,0 0 6px #10281d;color:#ffe8bf;font-size:10px}.fourlow-compass-north span{display:inline-block;color:#ff972d;font-size:16px}.fourlow-weather-chip{position:absolute;top:44px;left:50%;transform:translateX(-50%);z-index:3;min-width:128px;min-height:40px;padding:4px 9px;background:#142a23e8;color:#f2e6c8;border:1px solid #9da78277;border-radius:10px;box-shadow:0 2px 6px #0002;white-space:nowrap;line-height:1.35}.fourlow-weather-chip small{display:block;font-size:9px;color:#c7cdb7}.fourlow-weather-chip>span{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px}.fourlow-weather-chip b{font-weight:500}.fourlow-weather-chip i{font-style:normal;opacity:.5}.fourlow-weather-details{width:calc(100% - 28px);max-width:420px;border:1px solid #8e9a7c;border-radius:20px;background:#173023;color:#f5ecd5;padding:20px}.fourlow-weather-details::backdrop{background:#0008}.fourlow-weather-details [data-info]{white-space:pre-line}.fourlow-weather-details [data-credit]{font-size:11px}.fourlow-weather-details a{text-decoration:underline;color:#ffc779}body[data-map-theme=light] .fourlow-weather-chip{background:#f3e9cee8;color:#213b29}body[data-map-theme=light] .fourlow-weather-chip small{color:#52674d}body[data-map-theme=light] .compass-border{stroke:#2e493b55}body[data-map-theme=light] .compass-tick{stroke:#24433688}body[data-map-theme=light] .fourlow-compass-frame text{fill:#244336;stroke:#f4ecd5}body[data-navigating=true] .fourlow-weather-chip{top:auto;bottom:100px;left:64px;min-width:120px;transform:none}body[data-navigating=true] .fourlow-compass-frame{opacity:.6}body[data-picking-origin=true] .fourlow-weather-chip{top:65px}@media(max-width:350px){.fourlow-weather-chip{font-size:11px;min-width:112px;top:45px}.fourlow-weather-chip>span{font-size:11px}}
.fourlow-weather-chip{top:106px;left:14px;transform:none}body[data-navigating=true] .fourlow-weather-chip{top:auto;bottom:100px;left:64px}@media(max-width:350px){.fourlow-weather-chip{top:106px}}

.fourlow-compass-frame{border-radius:inherit;box-shadow:inset 0 0 24px #081b1a25}.compass-bezel{fill:none;stroke:url(#compass-metal);stroke-width:1.2}.compass-inner{fill:none;stroke:#b4b78b1f;stroke-width:.6}.compass-tick{stroke:#e4d6b680;stroke-width:1}.compass-tick.minor{stroke:#e4d6b63d;stroke-width:.65}.compass-tick.cardinal{stroke:#fba33e;stroke-width:1.6}.fourlow-compass-frame .compass-letter{font:600 12px Tahoma,sans-serif;letter-spacing:1px;fill:#eee5cf;stroke-width:3px}.fourlow-compass-frame .compass-degree{font:8px Tahoma,sans-serif;fill:#b9c3ad;stroke-width:2px;opacity:.7}.fourlow-compass-frame .compass-heading{font:10px Tahoma,sans-serif;letter-spacing:1px;fill:#e6c891}.fourlow-compass-north{font:700 13px Tahoma,sans-serif;color:#ffaf4d;gap:3px}.fourlow-compass-north span{font-size:13px;text-shadow:0 0 5px #fd901e66}.fourlow-weather-chip [data-temp]{font-family:Tahoma,sans-serif;letter-spacing:.3px}.fourlow-compass-north:active{background:#ffab4822}body[data-map-theme=light] .fourlow-compass-frame .compass-letter{fill:#244335}body[data-map-theme=light] .fourlow-compass-frame .compass-degree{fill:#425f4a}body[data-map-theme=light] .fourlow-compass-frame .compass-heading{fill:#56422d}

/* One lightweight, shared instrument skin for every map screen. */
body{--panel:#17251a;--panel-hi:#30402b;--ink:#f2edce;--muted:#b9bfa3;--rim:#828c65;--well:#101e17;--key:linear-gradient(145deg,#34422b,#18271b 60%,#0e190f);--metal:inset 0 1px 1px #f7f0c67a,inset 0 -2px 2px #0009,0 2px 5px #0008,0 0 0 2px #08120d;--amber:linear-gradient(145deg,#ffb333,#ff8a00 70%,#dc6800);background:#101b11;color:var(--ink);padding:0 7px;box-shadow:inset 0 0 0 2px #82906a,inset 0 0 0 5px #23341e;}
body[data-map-theme=light]{--panel:#e2dcc1;--panel-hi:#f2ecd7;--ink:#263820;--muted:#536044;--rim:#788367;--well:#d7d4bb;--key:linear-gradient(145deg,#f3eed7,#c6c9ae 70%,#adb599);--metal:inset 0 1px 1px #fff9,inset 0 -2px 2px #57624977,0 2px 4px #15241930,0 0 0 2px #68765a40;background:#a6b195;color:var(--ink)}
header{height:66px;margin:0 4px;padding:8px 9px;gap:7px;background:var(--key);border:1px solid var(--rim);border-top:3px solid #777e56;border-radius:0 0 13px 13px;box-shadow:var(--metal);color:var(--ink)}
header img{width:55px;height:38px}header strong{font-size:19px}header small{color:var(--muted);font-size:8px;letter-spacing:4px}header a{padding:6px 10px;min-height:40px;display:flex;align-items:center;font-size:12px;border-radius:9px;background:var(--key);border:1px solid var(--rim);box-shadow:var(--metal)}
main{height:calc(100dvh - 66px);max-width:1600px}.tools{top:10px;left:9px;right:9px}.search{background:var(--well);color:var(--ink);border:1px solid var(--rim);border-radius:17px;box-shadow:inset 0 2px 4px #0009,0 1px 0 #dfe7ba66}.search input,.search select{height:44px;min-height:44px;border-radius:17px;padding:8px 13px 8px 43px;font-size:14px;color:var(--ink)}.search input::placeholder{color:var(--muted)}.search:before{top:12px;left:16px;border-color:var(--ink)}.search:after{top:27px;left:11px;background:var(--ink)}
body[data-map-theme] #map{inset:63px 4px calc(80px + env(safe-area-inset-bottom));border-radius:32px;border:1px solid var(--rim);background:var(--well);box-shadow:inset 0 1px 1px #ffffc633,inset 0 0 0 3px #0a180d,0 2px 4px #0008;color:var(--ink)}
#map{isolation:isolate;z-index:0}#map>.maplibregl-canvas-container{position:absolute;inset:0;width:100%;height:100%;clip-path:none}
.fourlow-compass-frame{box-shadow:inset 0 0 0 19px var(--panel),inset 0 0 0 22px #a0a97b55,inset 0 0 0 24px #0008;border-radius:32px;opacity:1!important}
.fourlow-compass-frame .compass-bezel{stroke:#c2c9a365;stroke-width:1}.fourlow-compass-frame .compass-inner{stroke:#e5ecc071;stroke-width:1.3}.fourlow-compass-frame .compass-letter{font-size:11px;fill:var(--ink);stroke:var(--panel);stroke-width:4px}.fourlow-compass-frame .compass-degree{font-size:8px;fill:var(--muted);stroke:var(--panel);opacity:1}.fourlow-compass-frame .compass-heading{display:none}.compass-tick{stroke:#e0e2bda6}.compass-tick.minor{stroke:#b9c49e77}.fourlow-compass-north{padding:0;min-width:36px;width:36px;gap:1px;font-size:12px;text-shadow:0 0 3px #000;color:#ffac31;box-shadow:none;background:transparent;border:0}.fourlow-compass-north span{font-size:10px}
body[data-map-theme] #map-options{position:absolute;top:83px;right:32px;left:auto;width:44px;height:44px;min-width:44px;border-radius:12px;padding:0;background:var(--key);color:var(--ink);border:1px solid var(--rim);box-shadow:var(--metal);font-size:25px}
body[data-map-theme] #map-theme-toggle{left:36px;top:var(--map-appearance-top,94px);width:44px;grid-template-rows:44px 44px;padding:1px;border-radius:23px;border:1px solid var(--rim);background:var(--key);box-shadow:var(--metal)}
body[data-map-theme] #map-theme-toggle button{width:40px;height:44px;padding:10px;color:var(--ink)}body[data-map-theme] #map-theme-toggle button[aria-pressed=true]{color:#192815}.theme-toggle-thumb{left:3px;top:3px;width:36px;height:40px;background:var(--amber);box-shadow:inset 0 1px 1px #fff9,0 2px 4px #0008}#map-theme-toggle[data-theme=light] .theme-toggle-thumb{transform:translateY(44px)}
body[data-map-theme] #map-shortcuts{right:36px;left:auto;gap:9px;width:46px;bottom:var(--map-shortcuts-bottom,112px)}
#map-shortcuts #vehicle-picker{width:44px;height:44px;border:1px solid var(--rim);border-radius:11px;box-shadow:var(--metal);background-color:var(--panel);filter:none}
body[data-map-theme] #map-shortcuts #gps{width:46px;height:46px;border-radius:12px;border:1px solid #ffc263;background:var(--key);box-shadow:var(--metal),inset 0 0 0 1px #f49a35;color:#ff9b17;filter:none}
body[data-map-theme] #map-shortcuts #gps[data-follow=true]{background:var(--amber);color:#21371e}#gps svg{width:29px;height:29px}#gps .gps-arrow{stroke:none}#gps .gps-arrow-fold{fill:#513607;opacity:.25}
#map-shortcuts .maplibregl-ctrl-group{width:44px;margin:0;border-radius:12px;border:1px solid var(--rim);background:var(--key);box-shadow:var(--metal)!important}#map-shortcuts .maplibregl-ctrl-group button{width:42px;height:44px;background:transparent}#map-shortcuts .maplibregl-ctrl-group button+button{border-top:1px solid #aebc8655}#map-shortcuts .maplibregl-ctrl-icon{filter:invert(1)}body[data-map-theme=light] #map-shortcuts .maplibregl-ctrl-icon{filter:none}
body[data-map-theme] #map-shortcuts[data-card-open=true]{top:var(--map-gps-top,180px);bottom:auto;right:36px;z-index:5}
body[data-map-theme] #map-status{bottom:var(--map-notice-bottom,110px);left:36px;right:94px;max-width:530px;min-height:32px;width:auto;margin:0 auto;padding:5px 9px;border-radius:10px;border:1px solid var(--rim);background:var(--key);box-shadow:var(--metal);font-size:10px;line-height:1.65;color:var(--ink)}
body[data-map-theme] .fourlow-weather-chip{top:auto;bottom:var(--instrument-bottom,72px);left:28px;min-width:100px;min-height:48px;max-width:calc(100% - 120px);padding:6px 8px;border-radius:11px;border:1px solid var(--rim);background:var(--key);box-shadow:var(--metal);color:var(--ink);transform:none}body[data-map-theme] .fourlow-weather-chip small{color:var(--muted);font-size:9px}.fourlow-weather-chip>span{font-size:12px;gap:5px}
#phone-compass{position:absolute;left:28px;top:131px;z-index:4;min-height:48px;width:70px;padding:4px 5px;border:1px solid var(--rim);border-radius:10px;background:var(--key);color:var(--ink);box-shadow:var(--metal);line-height:1.15;display:grid;grid-template-columns:14px 1fr;align-items:center;gap:3px}#phone-compass span{color:#ffab31;font:23px Georgia}#phone-compass b{font:12px Tahoma}#phone-compass small{grid-column:1/-1;font-size:8px;color:var(--muted);white-space:normal}#phone-compass[data-state=active]{border-color:#ffb13f}#phone-compass[data-state=active] span{color:#ffb13f}#phone-compass[data-state=stale],#phone-compass[data-state=inaccurate]{border-color:#d29358}#phone-compass-status{min-height:32px}.phone-compass-settings{padding-bottom:10px;border-bottom:1px solid var(--rim);margin-bottom:12px}
body[data-map-theme] #map-nav{bottom:0;left:8px;right:8px;gap:7px;padding:8px 0 calc(10px + env(safe-area-inset-bottom));background:transparent;border:0;border-radius:0;box-shadow:none}body[data-map-theme] #map-nav button{min-height:54px;max-width:260px;padding:5px 3px;gap:3px;border:1px solid var(--rim);border-radius:12px;background:var(--key);box-shadow:var(--metal);color:var(--ink)}#map-nav button svg{width:23px;height:23px}#map-nav button span{font-size:10px}body[data-map-theme] #map-nav [aria-current=page]{color:#142514;background:var(--amber);border-color:#ffe8ae;box-shadow:inset 0 1px 1px #fff,0 2px 5px #0009,inset 0 0 0 2px #ce6f08}
body[data-map-theme] :is(#package-panel,#trails-panel){inset:7px 7px calc(80px + env(safe-area-inset-bottom));padding:18px max(14px,calc((100% - 700px)/2)) 28px;background:linear-gradient(140deg,var(--panel-hi),var(--panel) 45%);color:var(--ink);border:1px solid var(--rim);border-radius:18px;box-shadow:inset 0 1px 1px #eff9bf55,0 3px 6px #0005}
body[data-map-theme] :is(dialog,#destination-card,.turn-banner,.trip-bottom,.origin-pick-actions,.origin-pick-banner){background:linear-gradient(140deg,var(--panel-hi),var(--panel) 65%);color:var(--ink);border:1px solid var(--rim);box-shadow:var(--metal);border-radius:17px}body[data-map-theme] dialog{max-height:88dvh;padding:18px}body[data-map-theme] dialog::backdrop{background:#030b07ba;backdrop-filter:blur(4px)}
body[data-map-theme] #destination-card{left:15px;right:15px;bottom:calc(80px + env(safe-area-inset-bottom));padding:22px 15px 14px;max-height:52dvh}#destination-card h2{font-size:21px}body[data-map-theme] #destination-card :is(p,small,#close-destination){color:var(--ink)}#destination-card:before{background:var(--rim);height:3px;width:30px;left:calc(50% - 15px)}
body[data-map-theme] :is(dialog,#package-panel,#trails-panel,#destination-card,.trip-bottom) button{background:var(--key);color:var(--ink);border:1px solid var(--rim);box-shadow:inset 0 1px 1px #e1edbd40,0 2px 3px #0004;border-radius:10px;min-height:44px}body[data-map-theme] :is(dialog,#package-panel,#trails-panel,#destination-card) :is(.primary,#download,#navigate-destination,#done-vehicles,.selection-chip){background:var(--amber);color:#172714;border-color:#ffd791;font-weight:bold}
body[data-map-theme] :is(dialog,#package-panel,#trails-panel) :is(input:not([type=checkbox]):not([type=radio]),select,textarea),body[data-map-theme] :is(#route-summary,.planner-destination,.city-row,.country-option,.saved-row,#destination-results){background:var(--well);color:var(--ink);border:1px solid var(--rim);border-radius:10px;box-shadow:inset 0 1px 3px #0004}body[data-map-theme] :is(.city-row,.country-option,.saved-row) small{color:var(--muted)}body[data-map-theme] #destination-results button{color:var(--ink);border-bottom:1px solid var(--rim)}body[data-map-theme] #package-panel .actions{background:var(--panel)}body[data-map-theme] :is(.hint,dialog small,#package-panel small){color:var(--muted)}body[data-map-theme] :is(#route-choices,#destination-facts)>*{background:var(--well);color:var(--ink);border-color:var(--rim)}body[data-map-theme] #route-choices [aria-pressed=true],body[data-map-theme] :is(#vehicle-grid,#vehicle-colors) [aria-pressed=true]{border:2px solid #ffa12e;background:var(--panel-hi)}
body[data-map-theme] .tool-tabs button[aria-selected=true]{border-color:#ffae3b;background:var(--panel-hi);color:var(--ink)}#measure-bar{border-radius:12px;background:var(--panel);color:var(--ink);border-color:var(--rim)}
#map .maplibregl-ctrl-bottom-left{bottom:25px;left:28px}#map .maplibregl-ctrl-bottom-right{bottom:24px;right:25px}.maplibregl-ctrl-attrib{max-width:160px}.maplibregl-ctrl-attrib a{font-size:8px}
body[data-navigating=true] #map{inset:6px 4px 6px}body[data-navigating=true] #map-theme-toggle{top:var(--map-appearance-top);bottom:auto}body[data-navigating=true] #phone-compass{top:135px}body[data-navigating=true] .turn-banner{top:32px;left:36px;right:36px;padding:10px;gap:10px}.turn-banner>span{font-size:35px;min-width:36px;padding-left:8px}.turn-banner strong{font-size:19px}.turn-banner p{font-size:14px}body[data-navigating=true] .trip-bottom{bottom:32px;left:36px;right:36px;gap:7px;padding:9px;font-size:12px}body[data-navigating=true] .trip-bottom button{padding:6px;font-size:11px;min-height:44px}body[data-navigating=true] #map-status{font-size:9px}body[data-picking-origin=true] #phone-compass{display:none}
@media(max-width:350px){header{gap:5px}header strong{font-size:17px}header img{width:42px}header a{padding:5px 7px}.search input{font-size:12px}body[data-map-theme] #map-nav{gap:5px}#map-nav button span{font-size:9px}body[data-map-theme] #destination-card{padding-inline:12px}body[data-map-theme] .fourlow-weather-chip{min-width:96px}.fourlow-weather-chip>span{font-size:10px}.destination-actions>*{font-size:12px}.tool-tabs{gap:4px}.tool-tabs button{padding:6px;font-size:11px}}
@media(max-height:600px){body[data-map-theme] #map{top:57px;bottom:72px}body[data-map-theme] #map-nav button{min-height:46px}#map-nav button svg{width:19px;height:19px}#phone-compass{top:110px}body[data-map-theme] #map-theme-toggle{grid-template-rows:36px 36px}body[data-map-theme] #map-theme-toggle button{height:36px}.theme-toggle-thumb{height:32px}#map-theme-toggle[data-theme=light] .theme-toggle-thumb{transform:translateY(36px)}}
/* Approved handheld reference: rounded metal shell, inset glass, raised olive keys. */
body{padding:10px 9px 8px;background:radial-gradient(ellipse at 45% 10%,#26341d,#0c180f 75%);box-shadow:none}body:before{content:'';position:fixed;inset:2px;border:2px solid #b4bea0;border-radius:25px;box-shadow:inset 0 0 0 2px #172718,inset 0 0 0 4px #687857,inset 0 0 0 6px #0c170d,0 0 0 2px #182918;pointer-events:none;z-index:20}body:after{content:'';position:fixed;top:8px;left:25%;right:25%;height:4px;background:linear-gradient(90deg,#ff9c16 0 25%,transparent 25% 75%,#ff9c16 75%);box-shadow:0 1px 1px #0007;pointer-events:none;z-index:20}
header{height:56px;border-radius:13px;border-top:1px solid var(--rim);margin:6px 8px 0;background:linear-gradient(120deg,#344126,#122214 70%);box-shadow:inset 0 0 0 2px #0d170c,inset 0 0 0 3px #9aa57855,0 3px 4px #000a}#page-title{font:600 13px/1.5 Tahoma,sans-serif;white-space:nowrap}#page-title small{font:7px/1.5 Tahoma,sans-serif;letter-spacing:1.7px}header img{width:46px;height:33px}header a{font-size:11px;min-height:36px;padding:5px 7px}main{height:calc(100dvh - 80px)}
body[data-map-theme] .search{background:linear-gradient(100deg,#182d20,#0c1d14);color:#f4edce;border:1px solid #c3c9a4;box-shadow:inset 0 0 0 2px #17251b,inset 0 2px 5px #000c,0 2px 4px #000a}body[data-map-theme] .search input{color:#f4edce}body[data-map-theme] .search input::placeholder{color:#b6bea8}
body[data-map-theme] #map{border-radius:35px;box-shadow:inset 0 0 0 2px #314225,inset 0 2px 4px #ffffbb33,0 3px 6px #0008}.fourlow-compass-frame{box-shadow:inset 0 0 0 18px var(--panel),inset 0 0 0 20px #969e7180,inset 0 0 0 22px #020e07,inset 0 0 0 24px #a1ac7a70,inset 0 0 0 27px #0008}.compass-tick{stroke:#e1e2b8;stroke-width:.8}.compass-tick.minor{stroke:#c4c9a5;stroke-width:.7}.fourlow-compass-frame .compass-degree{font-size:8px;font-family:Arial,sans-serif}.fourlow-compass-frame .compass-letter{font-size:12px}
body[data-map-theme] :is(#map-options,#map-shortcuts #gps,#map-shortcuts .maplibregl-ctrl-group,#map-nav button,.fourlow-weather-chip,#map-status){border-color:#aeb891;box-shadow:inset 0 0 0 1px #091508,inset 0 0 0 2px #a0ab6f55,inset 0 2px 2px #e5edbd55,inset 0 -3px 5px #0009,0 3px 5px #000b,0 0 0 2px #07110a}
body[data-map-theme] #map-shortcuts #gps{background:linear-gradient(145deg,#34422b,#142618);color:#ff9e13;border-color:#ffaf2f}body[data-map-theme] #map-shortcuts #gps[data-follow=true]{background:linear-gradient(145deg,#3f482a,#162819);color:#ffa719}
body[data-map-theme] #map-nav [aria-current=page]{background:var(--amber);border-color:#ffdf99;box-shadow:inset 0 0 0 2px #5d4d22,inset 0 0 0 3px #ffe4a866,0 3px 5px #000b,0 0 0 2px #07110a}
body[data-map-theme] #map-status #correct-location{font-size:9px;min-height:23px;padding:1px 3px;background:transparent;color:#f2c77c;border:0;border-top:1px solid #a9ae6b55;border-radius:0;box-shadow:none}
#phone-compass{top:auto;bottom:calc(var(--instrument-bottom,72px) + 59px);width:74px;min-height:44px;background:var(--key)}body[data-navigating=true] #phone-compass{top:auto}
.fourlow-weather-chip>span{flex-direction:column;gap:2px}.fourlow-weather-chip>span i{display:none}.fourlow-weather-chip [data-temp]{font-size:17px;font-weight:bold}.fourlow-weather-chip [data-alt]{font-size:10px}.fourlow-weather-chip [data-place]{display:none!important}.fourlow-weather-chip [data-alt]:before{content:'⌁ ';font-size:15px}
body[data-map-theme=light] header{background:var(--key)}body[data-map-theme=light] .search{background:var(--well)}body[data-map-theme=light] .search input{color:var(--ink)}body[data-map-theme=light] .search input::placeholder{color:var(--muted)}
@media(max-width:350px){#page-title{font-size:11px}header{margin-inline:5px;gap:4px}header img{width:36px}header a{font-size:10px;padding-inline:5px}#page-title small{font-size:6px;letter-spacing:1px}}
@media(max-height:650px){#map-shortcuts #vehicle-picker{display:none}#phone-compass{display:none}body[data-map-theme] .fourlow-weather-chip{min-height:40px;padding:4px 6px;max-width:105px}.fourlow-weather-chip [data-temp]{font-size:14px}body[data-map-theme] #map-status{font-size:9px;padding:4px 7px}body[data-map-theme] #map-status #correct-location{font-size:8px}}
@media(max-height:500px) and (min-width:600px){header{height:43px;margin-top:1px}main{height:calc(100dvh - 63px)}.tools{top:6px;left:13px;right:13px;max-width:none}.search input,.search select{height:36px;min-height:36px}.search:before{top:8px}.search:after{top:23px}body[data-map-theme] #map{inset:49px 4px 60px}body[data-map-theme] #map-nav{padding:6px 0 8px}body[data-map-theme] #map-nav button{min-height:43px;flex-direction:row;gap:8px}body[data-map-theme] #map-shortcuts{flex-direction:row;width:145px;right:36px;gap:9px}#map-shortcuts .maplibregl-ctrl-group{display:flex;width:88px;flex:none}#map-shortcuts .maplibregl-ctrl-group button+button{border-top:0;border-left:1px solid #9ba47c55}body[data-map-theme] #map-options{top:74px;right:28px}body[data-map-theme] .fourlow-weather-chip{left:83px;bottom:39px;max-width:105px}body[data-map-theme] #map-status{left:202px;right:200px;max-width:none;font-size:9px}body[data-map-theme] #map-theme-toggle{top:var(--map-appearance-top);left:40px}body[data-map-theme] #map-shortcuts[data-card-open=true]{width:46px;right:36px}body[data-navigating=true] #map{inset:3px 4px 3px}body[data-navigating=true] .turn-banner{top:26px;max-width:440px;left:160px;right:160px;padding:6px}.turn-banner p{font-size:12px}body[data-navigating=true] .trip-bottom{left:200px;right:200px}body[data-navigating=true] #map-status{display:none}}

.map-recovery{position:absolute;z-index:8;top:45%;left:36px;right:36px;max-width:320px;margin:auto;padding:14px;background:var(--panel,#173523);color:var(--ink,#f2e6c8);border:1px solid var(--rim,#9da782);border-radius:14px;box-shadow:0 3px 12px #0008;text-align:center}.map-recovery p{font-size:13px;margin:0 0 9px}.map-recovery button{min-height:44px;background:var(--amber,#ff9814);color:#173523;font-weight:bold;border:1px solid #ffc970}

/* One viewport owns the shell: neither the preview nor driving controls can
   extend below the home indicator when Safari changes its visible height. */
html{width:100%;height:100%;-webkit-text-size-adjust:100%}
body{width:100%;height:100dvh;min-height:0;display:flex;flex-direction:column;padding:max(10px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left))}
header{flex:0 0 auto;min-width:0}header>*{min-width:0}header img,header a{flex-shrink:0}
main{height:auto;flex:1 1 0;min-height:0;min-width:0;width:100%}
body[data-map-theme] #map-nav{padding-bottom:10px}
body[data-map-theme] #map{bottom:80px}
body[data-map-theme] #destination-card{bottom:80px}
main[data-compact-preview=true] :is(#map-shortcuts,#map-theme-toggle){display:none}
body[data-map-theme] #destination-card[data-route-preview=true]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;padding:18px 12px 12px;max-height:none;overflow:visible}
#destination-card[data-route-preview=true] h2{grid-column:1/-1;min-width:0;padding-left:40px;font-size:18px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#destination-card[data-route-preview=true] #close-destination{top:10px;left:10px;min-height:36px;width:36px;font-size:22px;padding:0}
#destination-card[data-route-preview=true] #destination-region{font-size:11px;line-height:1.4;margin:0;min-width:0}
#destination-card[data-route-preview=true] .place-actions{position:static;margin:0;gap:6px;justify-content:end}
#destination-card[data-route-preview=true] .place-actions #share-place{font-size:11px;padding:0 9px;min-height:40px;height:40px;width:auto}
#destination-card[data-route-preview=true] .place-actions #bookmark-place{min-height:40px;width:40px;height:40px}
#destination-card[data-route-preview=true] :is(#destination-coverage,#destination-overview,#destination-facts),#destination-card[data-route-preview=true]>small{display:none}
#destination-card[data-route-preview=true] :is(#route-summary,#route-choices,#route-message,#route-use-gps,.destination-actions){grid-column:1/-1;margin:0;min-width:0}
#destination-card[data-route-preview=true] #route-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;padding:6px 8px;font-size:13px}
#destination-card[data-route-preview=true] #route-summary>strong{font-size:14px;line-height:1.5;gap:6px}
#destination-card[data-route-preview=true] #route-summary>strong span+span{padding-right:6px}
body[data-map-theme] #route-summary .route-details-open{font-size:10px;padding:4px 7px;min-height:44px;box-shadow:none;max-width:70px}
#destination-card[data-route-preview=true] #route-summary>p{grid-column:1/-1;font-size:11px;line-height:1.5;margin:0;font-weight:normal}
#destination-card[data-route-preview=true] #route-choices{display:flex;gap:6px}
#destination-card[data-route-preview=true] #route-choices:empty{display:none}
#destination-card[data-route-preview=true] #route-choices button{flex:1;min-width:0;font-size:11px;padding:5px;line-height:1.5;min-height:44px}
#destination-card[data-route-preview=true] #route-message{font-size:11px;line-height:1.6;margin:2px 0}
#destination-card[data-route-preview=true] #route-message:empty{display:none}
#destination-card[data-route-preview=true] .destination-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#destination-card[data-route-preview=true] .destination-actions button{min-width:0;min-height:48px;font-size:14px;padding:8px 4px;line-height:1.4}
#destination-card[data-route-preview=true] #route-use-gps{font-size:12px;padding:7px;min-height:44px}
#route-details-content ol{padding-right:24px;font-size:14px;line-height:2}#route-details-content li{margin:9px 0}
body[data-navigating=true] #map{top:6px;bottom:6px}
body[data-navigating=true] .turn-banner{top:32px;left:36px;right:36px;gap:10px;padding:10px}
body[data-navigating=true] .turn-banner>div{min-width:0}
body[data-navigating=true] .turn-banner strong{font-size:19px;line-height:1.4}
body[data-navigating=true] .turn-banner p{font-size:13px;line-height:1.6}
body[data-navigating=true] .turn-banner>span{font-size:34px;min-width:32px;padding-left:7px}
body[data-navigating=true] .trip-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto auto;bottom:32px;left:36px;right:36px;padding:9px;gap:8px}
body[data-navigating=true] .trip-bottom>div{min-width:0}
body[data-navigating=true] .trip-bottom strong{font-size:15px;line-height:1.5}
body[data-navigating=true] .trip-bottom small{font-size:10px;line-height:1.4}
body[data-navigating=true] .trip-bottom button{min-height:44px;padding:6px;font-size:10px}
body[data-navigating=true] #recalculate{grid-column:1/-1;grid-row:2}
body[data-navigating=true] #phone-compass{display:none}
@media(max-width:350px){#destination-card[data-route-preview=true] h2{font-size:16px}#destination-card[data-route-preview=true] #route-summary>strong{font-size:12px}#destination-card[data-route-preview=true] #route-choices button{font-size:10px}body[data-navigating=true] .trip-bottom{gap:5px;padding:7px}body[data-navigating=true] .trip-bottom strong{font-size:13px}body[data-navigating=true] .turn-banner strong{font-size:17px}body[data-navigating=true] .turn-banner p{font-size:12px}}
@media(max-height:650px){body[data-map-theme] #destination-card[data-route-preview=true]{gap:4px 6px;padding-top:14px}#destination-card[data-route-preview=true] .place-actions{display:none}#destination-card[data-route-preview=true] #destination-region{grid-column:1/-1}body[data-navigating=true] .turn-banner{padding:7px}body[data-navigating=true] .turn-banner p{font-size:12px}body[data-navigating=true] .fourlow-weather-chip{display:none}}
@media(max-height:500px) and (min-width:600px){body[data-map-theme] #destination-card[data-route-preview=true]{left:auto;right:16px;width:min(50%,440px);bottom:64px}body[data-navigating=true] .turn-banner{left:32px;right:32px;max-width:430px}body[data-navigating=true] .trip-bottom{left:150px;right:150px}}

/* One-tap destination: the primary action is always above optional route/detail content. */
body[data-map-theme] #destination-card[data-one-tap=true],body[data-map-theme] #destination-card[data-one-tap=true][data-route-preview=true]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:18px 12px 12px;max-height:none;overflow:visible;align-items:center}
#destination-card[data-one-tap=true] h2{grid-column:1/-1;min-width:0;padding-left:40px;font-size:18px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#destination-card[data-one-tap=true] #close-destination{top:10px;left:10px;min-height:36px;width:36px;padding:0;font-size:22px}
#destination-card[data-one-tap=true] #destination-region{grid-column:1;font-size:11px;line-height:1.4;margin:0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#destination-card[data-one-tap=true] #open-destination-details{font-size:11px;padding:5px 9px;min-height:44px}
#destination-card[data-one-tap=true] .destination-actions{grid-column:1/-1;display:grid;grid-template-columns:1.35fr 1fr;gap:8px;margin:0}
#destination-card[data-one-tap=true] .destination-actions button{min-width:0;min-height:48px;font-size:14px;padding:8px 4px;line-height:1.4}
#destination-card[data-one-tap=true] :is(#route-message,#route-use-gps){grid-column:1/-1;margin:0;font-size:11px;line-height:1.65}
#destination-card[data-one-tap=true] #route-message:empty,#destination-card[data-one-tap=true] #route-choices:empty{display:none}
#destination-card[data-one-tap=true] #route-use-gps{padding:7px;min-height:44px}
#destination-details .place-actions{display:flex;position:static;margin:12px 0;gap:8px}
#destination-details #save-destination{display:block;width:100%;margin-top:12px;font-weight:bold}
#destination-details #destination-coverage:empty{display:none}
#destination-details #destination-overview{margin-top:12px}
#route-planner .planner-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
#route-planner .planner-actions button{font-size:14px;min-height:48px;padding:8px}
@media(max-width:350px){#destination-card[data-one-tap=true] h2{font-size:16px}#destination-card[data-one-tap=true] .destination-actions button{font-size:13px}}
