/* Mobile map first: one search field, compact white sheet, familiar controls. */
.sheet-toggle,.mobile-search-slot{display:none}
@media(max-width:760px){
 body{overflow:hidden;background:#fff}
 .app-header{height:60px;padding:0 14px;border-bottom:1px solid #d7eef7;box-shadow:none}
 .brand{max-width:245px;gap:8px}.maps-lockup{font-size:20px}.frn-wordmark{width:calc(100% - 49px)}
 .header-actions{gap:4px}.header-actions .button{background:#ffffff9c;color:#15394e;border-color:#a0d9ec;border-radius:12px;min-width:38px;min-height:38px}
 .app-layout{--sheet-height:238px;position:relative;height:calc(100dvh - 60px);min-height:0;display:block}
 .app-layout.sheet-expanded{--sheet-height:min(64%,460px)}
 .map-stage{position:absolute;inset:0;height:100%;min-height:0;width:100%}
 .map-stage:after{display:none}
 .sidebar{position:absolute;inset:auto 0 0;height:var(--sheet-height);max-height:none;min-height:0;margin:0;border:1px solid #e0eaf0;border-bottom:0;border-radius:24px 24px 0 0;background:#fff;color:#193a51;box-shadow:0 -5px 24px #173c531c;z-index:4;transition:height .25s ease;overflow:hidden;isolation:auto}
 .sidebar:before{display:none}
 .sheet-toggle{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;flex-shrink:0;width:100%;height:36px;color:#587181;font-size:9px;letter-spacing:.3px;touch-action:manipulation}
 .sheet-handle{width:34px;height:4px;border-radius:4px;background:#c9d9e3}
 .sheet-toggle:focus-visible{outline-offset:-5px}.sheet-toggle:hover{background:#f8fcff}
 .tabs{margin:0 16px;padding:3px;background:#f0f5f8;border:0;border-radius:15px;gap:3px}
 .tab{font-size:11px;font-weight:600;color:#597082;border-radius:12px;min-height:38px;padding:8px 6px}
 .tab svg{width:17px;height:17px}.tab.active,.tab.active:hover{background:#fff;color:#087da9;box-shadow:0 2px 7px #14384f12}.tab:hover{background:#e5f1f7;color:#234b62}
 .sidebar-scroll{padding:12px 16px calc(16px + env(safe-area-inset-bottom));scrollbar-color:#c5d9e4 transparent;overscroll-behavior:contain;min-height:0}
 .frn-map-intro,.location-disclosure,.section-heading>span,.map-tip,.panel>.eyebrow,.empty-route,.route-help{display:none}
 .mobile-search-slot{display:block;position:absolute;top:14px;left:14px;right:14px;z-index:3}
 .mobile-search-slot .search-form{margin:0;min-height:54px;background:#fff;border:1px solid #dce9f0;border-radius:19px;padding:6px 7px 6px 16px;box-shadow:0 4px 18px #1c47641c;gap:11px}
 .search-form input{font-size:16px;min-height:40px}.search-form>svg{color:#5b778b}.search-form button{border:0;border-radius:14px;background:#e0f5ff;color:#107da4;width:42px;height:40px}.search-form button:hover{background:#c8edff;transform:none}
 .locate-card{margin:0 0 14px;min-height:60px;padding:10px 12px;border:1px solid #deedf5;border-radius:16px;background:#f1faff;box-shadow:none;gap:10px}
 .locate-card:before,.locate-card:after,.city-card:after{display:none}.locate-card:hover{background:#e8f7ff;transform:none;box-shadow:none;border-color:#c1e5f4}
 .location-icon{width:36px;height:36px;border:0;border-radius:12px;background:#dbf2ff;color:#147b9e}.locate-card strong{font-size:13px;color:#22445b}.locate-card small{font-size:10px;color:#5b778b;line-height:1.4}
 .locate-card.found .location-icon{background:#d5f3ff;color:#007da9;border:0}
 .section-heading{margin-bottom:9px}.section-heading h2{font:600 13px/1.3 Arial,sans-serif;letter-spacing:0;color:#415f73}
 .city-list{display:flex;flex-direction:row;gap:8px;overflow:auto;padding-bottom:2px;scrollbar-width:none}
 .city-card,.city-card:nth-child(2),.city-card:nth-child(3){flex:1 0 auto;width:auto;min-height:38px;gap:0;padding:8px 12px;background:#fff;border:1px solid #dae7ef;border-radius:13px;color:#36566c;box-shadow:none}
 .city-card strong{font:600 12px/1.4 Arial,sans-serif;color:inherit}.city-card small,.city-art,.city-arrow{display:none}.city-card:hover{background:#eaf7ff;transform:none;box-shadow:none}
 .map-top{top:80px;left:16px;right:16px;gap:8px}.area-label{background:#ffffffd9;border:0;box-shadow:none;padding:8px 11px;font-size:8px;border-radius:12px;max-width:calc(100% - 100px)}
 .map-pill{border-radius:13px;padding:8px 11px;min-height:34px;font-size:10px;border-color:#d7e7ef}.map-pill svg{width:15px;height:15px}
 .map-controls{top:132px;right:14px;bottom:auto;transform:none;padding:4px;border:1px solid #d6e7f0;border-radius:17px;background:#fffffff2;box-shadow:0 4px 20px #22496419}
 .map-controls button,.map-controls #locate-map{width:40px;height:40px;border-radius:12px}.map-controls svg{width:21px;height:21px}.map-controls #locate-map[aria-pressed=true]{background:#d9f4ff;box-shadow:none;color:#087fa8}
 .map-controls>span{margin:3px}.map-controls #north{display:none}.sheet-expanded .map-controls #zoom-in,.sheet-expanded .map-controls #zoom-out,.sheet-expanded .map-controls>span{display:none}
 .map-bottom{left:16px;right:16px;bottom:calc(var(--sheet-height) + 14px)}.gps-status{padding:8px 11px;border-radius:12px;background:#ffffffed;border:1px solid #d8e9f1;box-shadow:none;font-size:9px;max-width:calc(100% - 54px)}
 .maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{bottom:calc(var(--sheet-height) + 2px)!important}.maplibregl-ctrl-scale{display:none!important}.maplibregl-ctrl-attrib{font-size:7px!important}
 .place-card{bottom:calc(var(--sheet-height) + 56px);left:14px;max-width:360px;width:calc(100% - 82px);padding:15px;border-radius:19px;box-shadow:0 8px 26px #163d5720}
 .place-card h2{font:600 20px/1.2 Arial,sans-serif;letter-spacing:-.3px}.place-card .button{border-radius:12px;min-height:40px}.place-extra button{min-height:30px}
 .navigation-card{top:123px;left:14px;width:calc(100% - 82px);max-width:360px;border-radius:19px;padding:14px;box-shadow:0 6px 25px #163d5720}.navigation-card>strong{font:600 18px/1.3 Arial,sans-serif}.nav-bottom .button{border-radius:11px}
 .panel-title{font:600 23px/1.2 Arial,sans-serif;color:#25485f;letter-spacing:-.5px;margin:8px 0 14px}.intro,.fine-print{color:#607a8d}
 .modes{background:#f0f5f8;border:0;border-radius:14px;padding:4px}.modes button{border-radius:10px;color:#59768a;min-height:38px}.modes .active{background:#fff;color:#0b7da5;box-shadow:0 1px 6px #17394c12}
 .route-inputs{border:1px solid #d6e5ee;border-radius:15px;background:#fff}.route-fields label{color:#658497}.route-field input{font-size:16px;color:#254b62}.route-field input::placeholder{color:#7892a3}.route-field:first-of-type{border-color:#e4edf3}.route-field svg{color:#50809d}.route-field button{min-width:34px;min-height:40px}.route-track i{border-color:#8faec1}.route-track span{border-color:#bed2df}.route-track b{background:#138bb9}
 .button{border-radius:13px}.primary{background:#1488b5;color:#fff;border-color:#1488b5}.primary:hover{background:#08759e}.secondary{background:#edf7fc;color:#32627d;border-color:#c1e0ee}.full{min-height:44px}
 .results:not(:empty){background:#fff;border-color:#d9e8f0;border-radius:15px}.result-item{border-color:#e5edf3;color:#274c63;min-height:60px}.result-item:hover{background:#eff8fd}.result-item>svg{color:#2c96bd}.result-item small,.result-message{color:#668194}
 .route-stat{border-radius:16px;background:#eaf8ff;border-color:#d3edf8;box-shadow:none}.route-stat .time{font:600 32px/1.2 Arial,sans-serif;color:#20516d}.route-stat .primary{background:#1488b5;border-color:#1488b5}.route-meta,.route-stat .fine-print{color:#5a7d93}.route-alts button{background:#fff;border-color:#d6e6ef;color:#59798d;border-radius:12px}.route-alts .active{background:#eaf8ff;border-color:#80cfe9;color:#147d9f}
 .route-step-heading h3,.step p{color:#365b72}.route-step-heading button,.step>span{color:#1089b5}.step{border-color:#e1edf4}.step small{color:#708b9c}
 .saved-empty{background:#f3faff;border-color:#bfdde9;border-radius:16px}.saved-empty h3{font:600 18px/1.3 Arial,sans-serif;color:#2d5b74}.saved-empty p{color:#6e889b}.saved-item{border-color:#e0ebf2}
 .toast{bottom:calc(238px + 78px);border-radius:14px;width:max-content;max-width:calc(100% - 32px);padding:11px 16px}
 dialog{border-radius:24px}.sidebar-footer{display:none}
}
@media(max-width:760px) and (max-height:560px){.app-layout{--sheet-height:170px}.app-layout.sheet-expanded{--sheet-height:70%}.sidebar-scroll{padding-top:8px}.sheet-toggle{height:28px}.locate-card{margin-bottom:10px}.map-controls{top:124px}.map-controls #zoom-in,.map-controls #zoom-out,.map-controls>span{display:none}.map-bottom{display:none}.area-label{display:none}.map-top{justify-content:flex-end}.city-list{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
