:root{--bg: #0a0e1a;--surface: rgba(20, 24, 36, .97);--surface-solid: #141826;--text: #e8eaed;--text-muted: #9aa3b6;--accent: #4a9eff;--accent-strong: #1a73e8;--danger: #ff4a4a;--border: #2a334a;--border-strong: #3a4566;--pill-bg: rgba(255, 255, 255, .97);--pill-text: #1a1c1e;--pill-border: rgba(0, 0, 0, .06);--shadow: 0 6px 24px rgba(0, 0, 0, .35);--shadow-soft: 0 2px 12px rgba(0, 0, 0, .18);--safe-top: max(env(safe-area-inset-top, 0px), 12px);--safe-bottom: max(env(safe-area-inset-bottom, 0px), 8px);--vv-offset: 0px}@media(prefers-color-scheme:light){:root{--bg: #fafbfc;--surface: rgba(255, 255, 255, .98);--surface-solid: #ffffff;--text: #1a1c1e;--text-muted: #555a6b;--border: #e5e7ee;--border-strong: #cbd0db;--pill-bg: #ffffff;--pill-text: #1a1c1e;--pill-border: rgba(0, 0, 0, .08);--shadow: 0 6px 24px rgba(0, 0, 0, .12);--shadow-soft: 0 2px 8px rgba(0, 0, 0, .08)}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:15px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}body{height:100svh;height:100dvh;overflow:hidden}.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:absolute;left:-9999px;z-index:100}.skip-link:focus{left:12px;top:var(--safe-top);background:var(--accent);color:#fff;padding:10px 16px;border-radius:8px;text-decoration:none}#map{position:absolute;inset:0;width:100%;height:100%}.topbar{position:absolute;top:var(--safe-top);left:12px;right:12px;z-index:20;pointer-events:none}.search-pill{pointer-events:auto;display:flex;align-items:center;gap:6px;background:var(--pill-bg);color:var(--pill-text);border:1px solid var(--pill-border);border-radius:28px;padding:0 8px 0 14px;box-shadow:var(--shadow);height:52px;max-width:560px;margin:0 auto}.search-pill:focus-within{outline:2px solid var(--accent);outline-offset:2px}.search-pill .search-icon{width:20px;height:20px;color:#5a6072;flex-shrink:0}#search{flex:1;border:none;background:transparent;color:var(--pill-text);font:inherit;font-size:16px;outline:none;height:100%;min-width:0}#search::placeholder{color:#8b919e}#search-clear{width:36px;height:36px;border:none;background:transparent;color:#5a6072;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}#search-clear svg{width:18px;height:18px}#search-clear:hover,#search-clear:focus-visible{background:#0000000f}#results{position:absolute;top:calc(var(--safe-top) + 64px);left:12px;right:12px;max-width:560px;margin:0 auto;list-style:none;padding:6px 0;background:var(--pill-bg);color:var(--pill-text);border-radius:14px;box-shadow:var(--shadow);z-index:19;max-height:50dvh;overflow-y:auto;overscroll-behavior:contain}#results li{padding:14px 16px;cursor:pointer;min-height:48px;display:flex;align-items:center;border-bottom:1px solid rgba(0,0,0,.05)}#results li:last-child{border-bottom:none}#results li[aria-selected=true],#results li:hover{background:#4a9eff1f}#fab-locate{position:absolute;right:16px;bottom:calc(96px + var(--safe-bottom));width:56px;height:56px;border:none;border-radius:50%;background:var(--surface-solid);color:var(--accent);box-shadow:var(--shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:bottom .25s ease;z-index:18}#fab-locate:hover{background:var(--accent);color:#fff}#fab-locate:focus-visible{outline:2px solid var(--accent);outline-offset:3px}#fab-locate svg{width:26px;height:26px}#long-press-hint{position:absolute;top:calc(var(--safe-top) + 72px);left:12px;right:12px;max-width:560px;margin:0 auto;background:var(--surface);color:var(--text);border:1px solid var(--border);padding:10px 14px;border-radius:12px;z-index:17;font-size:14px;box-shadow:var(--shadow-soft)}#long-press-hint button{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:6px 12px;margin-left:6px;min-height:32px;font:inherit;font-weight:600;cursor:pointer}.sheet{position:absolute;left:0;right:0;bottom:0;background:var(--surface);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top-left-radius:22px;border-top-right-radius:22px;box-shadow:0 -6px 28px #00000040;z-index:15;display:flex;flex-direction:column;transition:height .3s cubic-bezier(.32,.72,0,1);overflow:hidden;transform:translateY(calc(var(--vv-offset) * -1))}.sheet--peek{height:calc(96px + var(--safe-bottom))}.sheet--medium{height:50dvh}.sheet--full{height:92dvh}@media(orientation:landscape)and (max-height:500px){.sheet{max-width:380px;right:auto;bottom:0;top:0;height:100dvh!important;border-radius:0 22px 22px 0}.sheet-handle{display:none}}.sheet-handle{width:100%;height:26px;border:none;background:transparent;cursor:grab;display:flex;align-items:center;justify-content:center;flex-shrink:0;touch-action:none;padding:0}.sheet-handle:before{content:"";width:40px;height:5px;background:var(--border-strong);border-radius:3px;transition:background .15s}.sheet-handle:hover:before,.sheet-handle:focus-visible:before{background:var(--accent)}.sheet-handle:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.sheet-content{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px calc(20px + var(--safe-bottom))}.sheet-empty h2{margin:8px 0 4px;font-size:17px;font-weight:600}.muted{color:var(--text-muted);margin:0}.route-summary{display:flex;align-items:baseline;gap:10px;padding:4px 0;font-size:14px;color:var(--text-muted)}.route-summary.loading:after{content:"Calculando…";color:var(--text-muted);font-size:13px;margin-left:8px}.route-distance{font-size:26px;font-weight:700;color:var(--accent)}.route-time{font-size:17px;color:var(--text);font-weight:500}#route-clear{margin-left:auto;width:40px;height:40px;min-width:40px;min-height:40px;border:none;border-radius:50%;background:var(--border);color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}#route-clear svg{width:18px;height:18px}#route-clear:hover{background:var(--border-strong)}#route-clear:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.route-destination{margin:2px 0 14px;color:var(--text);font-size:15px;font-weight:500}.route-modes{display:flex;gap:6px;border:1px solid var(--border);border-radius:12px;padding:4px;margin:0 0 14px;background:var(--bg)}.route-modes .mode{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 4px;border-radius:9px;cursor:pointer;color:var(--text-muted);min-height:56px;transition:background .15s,color .15s}.route-modes .mode svg{width:22px;height:22px}.route-modes .mode span{font-size:12px;font-weight:600}.route-modes input[type=radio]{position:absolute;opacity:0;pointer-events:none}.route-modes .mode:has(input:checked){background:var(--accent);color:#fff}.route-modes .mode:focus-within{outline:2px solid var(--accent);outline-offset:2px}.instructions{list-style:none;padding:0;margin:8px 0 0;border-top:1px solid var(--border)}.instructions li{display:flex;gap:12px;padding:14px 4px;border-bottom:1px solid var(--border);align-items:center;min-height:56px}.instructions li:last-child{border-bottom:none}.ins-icon{color:var(--accent);flex-shrink:0;width:28px;height:28px}.ins-icon svg{width:28px;height:28px}.ins-text{flex:1;display:flex;flex-direction:column;gap:2px}.ins-name{color:var(--text);font-size:15px;line-height:1.3}.ins-dist{color:var(--text-muted);font-size:13px}.sheet-foot{margin-top:18px;padding-top:10px;border-top:1px solid var(--border)}.attrib{margin:0;color:var(--text-muted);font-size:11px;line-height:1.5}.hint-nav{margin:-8px 0 14px;font-size:12px;color:var(--text-muted);text-align:center}.btn-primary{width:100%;padding:14px;margin:6px 0;border:none;border-radius:12px;background:var(--accent);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;min-height:52px;box-shadow:0 2px 8px #4a9eff4d}.btn-primary:hover{background:var(--accent-strong)}.btn-primary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sheet--hidden,#nav-overlay{display:none}#nav-overlay:not([hidden]){position:absolute;inset:0;pointer-events:none;z-index:25;display:flex;flex-direction:column;justify-content:space-between}#nav-overlay>*{pointer-events:auto}[hidden]{display:none!important}.nav-banner{background:linear-gradient(180deg,#0a0e1af2,#0a0e1ad9);color:#fff;padding:calc(var(--safe-top) + 8px) 12px 14px;display:flex;gap:12px;align-items:center;box-shadow:0 4px 16px #0006}#nav-exit{width:44px;height:44px;min-width:44px;border:none;border-radius:50%;background:#ffffff2e;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}#nav-exit svg{width:22px;height:22px}.nav-instr{flex:1;display:flex;align-items:center;gap:14px}.nav-instr-icon{width:56px;height:56px;color:#4a9eff;flex-shrink:0}.nav-instr-icon svg{width:56px;height:56px}.nav-instr-text{flex:1;min-width:0}.nav-instr-dist{font-size:30px;font-weight:700;line-height:1.1;color:#4a9eff}.nav-instr-name{font-size:16px;line-height:1.3;color:#e8eaed;margin-top:2px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.nav-foot{background:linear-gradient(0deg,#0a0e1af2,#0a0e1ab3);color:#fff;padding:14px 18px calc(var(--safe-bottom) + 14px);display:flex;justify-content:center;box-shadow:0 -4px 16px #0006}.nav-eta{font-size:18px;font-weight:600}.nav-eta span:first-child{color:#4a9eff}.attrib a{color:var(--accent);text-decoration:none}.attrib a:hover{text-decoration:underline}#toast{position:absolute;bottom:calc(96px + var(--safe-bottom) + 16px);left:12px;right:12px;max-width:480px;margin:0 auto;background:var(--danger);color:#fff;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);z-index:22;text-align:center;font-size:14px;font-weight:500}.maplibregl-ctrl-attrib{background:var(--surface)!important;color:var(--text-muted)!important;font-size:11px!important;border-radius:8px!important;margin:6px!important}.maplibregl-ctrl-attrib a{color:var(--accent)!important}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{bottom:calc(108px + var(--safe-bottom))!important}.maplibregl-ctrl-geolocate{display:none!important}@media(hover:none)and (pointer:coarse){.maplibregl-ctrl-zoom-in,.maplibregl-ctrl-zoom-out{display:none!important}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
