/* Navigator «Portami qui» (web/navigator.js, docs/NAVIGAZIONE_TRASPORTI_TAXI.md §1): options, full-screen navigation,
   arrival. Mobile first; no horizontal overflow at 360 px. Uses the tokens of app.css (light and dark). */

:root { --ngv-banner: #2458a6; --ngv-banner-ink: #ffffff; --ngv-alert: #b3372b; --ngv-me: #2a6fdb; }
@media (prefers-color-scheme: dark) { :root { --ngv-banner: #0b2129; --ngv-alert: #c2453a; --ngv-me: #5b9bff; } }

.ngv-i { width: 20px; height: 20px; flex: none; }
.ngv-i.is-sm { width: 16px; height: 16px; }
.ngv-i.is-xs { width: 14px; height: 14px; }

/* ---------- «Portami qui» links (every card, sheet and popup) ---------- */
.ngv-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: var(--r-pill); background: var(--sea-soft); color: var(--sea); font-size: 13.5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.ngv-go .ngv-i { width: 17px; height: 17px; }
.ngv-go:hover { background: color-mix(in srgb, var(--sea) 18%, var(--surface)); }
.ngv-go.is-compact { width: 36px; padding: 0; }
.leaflet-popup-content .ngv-go, .tg-map-popup a.ngv-go { display: inline-flex; margin-top: 8px; color: var(--sea); font-size: 13px; }
.ngv-go.button { min-height: 48px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); font-size: 15px; }
.ngv-go.button:hover { background: var(--accent-deep); }
.ngv-go.action-tile { display: flex; flex-direction: column; min-height: 0; padding: 12px 4px; border-radius: var(--r-md); background: var(--sea-soft); color: var(--sea); font-size: 12px; white-space: normal; }
.ngv-go.chip-button { min-height: 32px; height: 32px; padding: 0 12px; font-size: 12.5px; }
.ngv-go.chip-button .ngv-i { width: 15px; height: 15px; }
.tg-map-result-item .ngv-go.is-compact { width: 34px; min-height: 34px; margin-right: 2px; }

/* ---------- Options screen ---------- */
.ngv-page { display: grid; gap: 14px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
#ngv-body, #ngv-head { display: grid; gap: 14px; min-width: 0; }
.ngv-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ngv-back { flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ngv-head-copy { min-width: 0; }
.ngv-title { font-family: var(--display); font-size: 27px; font-weight: 650; line-height: 1.12; overflow-wrap: anywhere; font-stretch: var(--display-stretch);}
.ngv-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.ngv-preview { position: relative; isolation: isolate; z-index: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-1); }
.ngv-preview-map { height: 188px; }
.ngv-h2 { margin: 6px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.ngv-route-ends { position: relative; display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--surface); border: var(--card-border); }
.ngv-route-ends::before { content: ""; position: absolute; left: 20px; top: 26px; bottom: 26px; border-left: 2px dotted var(--line-strong); }
.ngv-end { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; }
.ngv-end-copy { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ngv-end-copy small { color: var(--muted); font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.ngv-end-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ngv-end-copy .ngv-acc { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ngv-dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; border-radius: 50%; }
.ngv-dot.is-from { background: var(--ngv-me); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--ngv-me) 30%, transparent); }
.ngv-dot.is-to { background: var(--accent); border-radius: 4px; transform: rotate(45deg); box-shadow: 0 0 0 3px var(--surface); }
.ngv-link { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px; color: var(--accent-deep); font-weight: 750; font-size: 13.5px; text-decoration: none; }

.ngv-ask { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); }
.ngv-ask-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.ngv-ask-copy { min-width: 0; }
.ngv-ask-copy h2 { font-size: 18px; margin-bottom: 6px; }
.ngv-ask-copy p { color: var(--ink-2); font-size: 14px; }
.ngv-ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ngv-ask-actions .button { flex: 1 1 200px; }
.ngv-warn { padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-weight: 650; font-size: 13.5px; }

.ngv-opts { display: grid; gap: 10px; }
.ngv-opt { position: relative; display: grid; gap: 8px; padding: 14px 14px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.ngv-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.ngv-opt.is-off { background: var(--bg-elev); }
.ngv-opt-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ngv-opt-hit:disabled { cursor: default; opacity: 1; }
.ngv-opt-hit:focus-visible { outline-offset: -3px; }
.ngv-opt-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ngv-opt-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.ngv-opt-icon.is-transit { background: var(--sea-soft); color: var(--sea); }
.ngv-opt-icon.is-taxi { background: var(--warn-soft); color: var(--warn); }
.ngv-opt-name { font-weight: 800; font-size: 15px; }
.ngv-rec { margin-left: auto; padding: 3px 9px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.ngv-opt-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ngv-opt-time { font-family: var(--display); font-size: 26px; font-weight: 650; line-height: 1.05; font-stretch: var(--display-stretch);}
.ngv-opt-arrive { color: var(--ink-2); font-weight: 700; font-size: 14px; }
.ngv-opt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.ngv-opt-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.ngv-climb { color: var(--ink-2); }
.ngv-opt-wait { margin: 0; color: var(--muted); font-size: 13.5px; }
.ngv-opt-note { margin: 0; color: var(--muted); font-size: 11.5px; }
.ngv-opt-note.is-warn { color: var(--warn); font-weight: 650; }
.ngv-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; justify-self: start; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ngv-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.ngv-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ngv-sep { color: var(--muted); display: inline-flex; }
.ngv-badge { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--c, var(--sea)); color: var(--t, #fff); font-weight: 800; font-size: 13px; line-height: 1; white-space: nowrap; }
.ngv-badge .ngv-i { width: 17px; height: 17px; }
.ngv-badge.is-walk { background: var(--surface-2); color: var(--ink-2); padding: 0 6px; }
.ngv-badge.is-alight { background: var(--surface-2); color: var(--accent-deep); padding: 0 6px; }
.ngv-alts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.ngv-alt { min-height: 34px; padding: 0 11px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 750; }
.ngv-alt.is-on { background: var(--sea); color: #fff; }
.ngv-taxi-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ngv-muted { color: var(--muted); font-size: 12.5px; }
.ngv-start-bar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px); z-index: 5; }
.ngv-start { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 34%, transparent); }
.ngv-privacy { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ngv-privacy .ngv-i { margin-top: 1px; }
.ngv-origin-form .ngv-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--muted); font-size: 12.5px; font-weight: 750; }
.ngv-origin-form .ngv-or::before, .ngv-origin-form .ngv-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.ngv-origin-form .ngv-muted { margin-top: 10px; }

/* Map pins (options preview and navigation) */
.ngv-pin { background: none; border: 0; }
.ngv-pin > span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.ngv-pin.is-from > span { background: var(--ngv-me); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ngv-pin.is-to > span { display: grid; place-items: center; background: var(--accent); color: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.ngv-pin.is-to .ngv-i { width: 15px; height: 15px; }
.ngv-me-wrap { background: none; border: 0; }
.ngv-me { position: relative; display: block; width: 34px; height: 34px; }
.ngv-me i { position: absolute; left: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ngv-me); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--ngv-me) 22%, transparent), 0 2px 6px rgba(0,0,0,.3); }
.ngv-me.has-heading::before { content: ""; position: absolute; left: 50%; top: -6px; width: 0; height: 0; margin-left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--ngv-me); transform-origin: 9px 23px; transform: rotate(var(--h, 0deg)); opacity: .9; }

/* ---------- Full-screen navigation ---------- */
body.ngv-on { overflow: hidden; }
.ngv-screen { position: fixed; inset: 0; z-index: 300; background: var(--surface-2); color: var(--ink); overscroll-behavior: contain; }
.ngv-map { position: absolute; inset: 0; }
.ngv-map .leaflet-control-attribution { font-size: 9px; margin-bottom: calc(var(--ngv-foot, 150px) + var(--safe-bottom)) !important; }
.ngv-top { position: absolute; top: calc(var(--safe-top) + 10px); left: 10px; right: 10px; z-index: 800; display: flex; align-items: flex-start; gap: 8px; pointer-events: none; }
.ngv-banner { flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--r-lg); background: var(--ngv-banner); color: var(--ngv-banner-ink); box-shadow: var(--shadow-3); pointer-events: auto; outline: none; }
.ngv-banner:empty { display: none; }
.ngv-banner.is-alert { background: var(--ngv-alert); }
.ngv-banner-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ngv-arrow { flex: none; width: 52px; height: 52px; color: #fff; }
.ngv-banner .ngv-badge { flex: none; height: 44px; padding: 0 10px; border-radius: 12px; font-size: 18px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.ngv-banner .ngv-badge .ngv-i { width: 24px; height: 24px; }
.ngv-banner-copy { display: grid; min-width: 0; line-height: 1.2; }
.ngv-banner-dist { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ngv-banner-dist.is-words { font-size: 25px; }
.ngv-banner-text { font-size: 18px; font-weight: 750; overflow-wrap: anywhere; }
.ngv-banner-copy small { margin-top: 2px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.ngv-banner-leg { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 750; }
.ngv-then { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9); }
.ngv-banner-note { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.86); }
.ngv-banner-note.is-warn { color: #ffd9a8; }
.ngv-manual { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 750; color: rgba(255,255,255,.86); }
.ngv-tools { display: grid; gap: 8px; pointer-events: auto; }
.ngv-ride-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; color: var(--ngv-banner); font-weight: 800; font-size: 14px; }
.ngv-banner.is-alert .ngv-ride-btn { color: var(--ngv-alert); }
.ngv-tool { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.ngv-tool[aria-pressed="true"] { background: var(--sea); color: #fff; }
.ngv-tool.is-sm { width: 40px; height: 40px; background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.ngv-tool.is-sm:disabled { opacity: .35; }
.ngv-side { position: absolute; right: 10px; bottom: calc(var(--ngv-foot, 150px) + var(--safe-bottom) + 12px); z-index: 750; display: grid; justify-items: end; gap: 10px; }
.ngv-side .sfy-shield { position: static; }
.ngv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 800; padding: 12px 14px calc(var(--safe-bottom) + 12px); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); box-shadow: 0 -8px 30px rgba(8,18,22,.2); }
.ngv-eta { display: grid; gap: 4px; }
.ngv-eta-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.ngv-eta-main strong { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ngv-eta-main span { color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.ngv-share-on { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12.5px; font-weight: 750; text-decoration: none; }
.ngv-progress { height: 6px; margin: 10px 0 12px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ngv-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.ngv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ngv-act { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 750; }
.ngv-act .ngv-i { width: 18px; height: 18px; }
.ngv-act:disabled { opacity: .6; }
.ngv-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 850; max-height: min(72vh, 620px); display: flex; flex-direction: column; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); box-shadow: 0 -12px 40px rgba(8,18,22,.3); }
.ngv-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 8px 18px; }
.ngv-sheet-head h2 { font-size: 17px; }
.ngv-sheet-head .ngv-tool { width: 40px; height: 40px; box-shadow: none; background: var(--surface-2); }
.ngv-steps { list-style: none; margin: 0; padding: 0 12px calc(var(--safe-bottom) + 16px); overflow-y: auto; overscroll-behavior: contain; }
.ngv-step { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.ngv-step:last-child { border-bottom: 0; }
.ngv-step.is-done { opacity: .5; }
.ngv-step.is-next { background: var(--accent-soft); border-radius: var(--r-sm); border-bottom-color: transparent; }
.ngv-step-icon { flex: none; width: 40px; display: grid; place-items: center; color: var(--ink-2); }
.ngv-step-icon .ngv-arrow { width: 30px; height: 30px; color: var(--ink-2); }
.ngv-step-copy { display: grid; min-width: 0; line-height: 1.3; }
.ngv-step-copy strong { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.ngv-step-copy small { color: var(--muted); font-size: 12.5px; }
.ngv-arrive { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 12px); z-index: 900; max-width: 520px; margin: 0 auto; padding: 22px 18px 18px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-3); text-align: center; }
.ngv-arrive-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok); color: #fff; }
.ngv-arrive-mark .ngv-i { width: 30px; height: 30px; }
.ngv-arrive h2 { font-family: var(--display); font-size: 25px; font-weight: 650; overflow-wrap: anywhere; font-stretch: var(--display-stretch);}
.ngv-arrive-meta { margin: 6px 0 0; color: var(--ink-2); font-weight: 700; }
.ngv-arrive-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.ngv-arrive-actions { display: grid; gap: 8px; margin-top: 16px; }
.ngv-screen.is-arrived .ngv-foot, .ngv-screen.is-arrived .ngv-top, .ngv-screen.is-arrived .ngv-sheet { display: none; }

@media (min-width: 720px) {
  .ngv-top { left: 16px; right: 16px; max-width: 620px; }
  .ngv-foot { left: 50%; right: auto; width: min(620px, 100%); transform: translateX(-50%); }
  .ngv-sheet { left: 50%; right: auto; width: min(620px, 100%); transform: translateX(-50%); }
  .ngv-preview-map { height: 240px; }
}
@media (max-width: 380px) {
  .ngv-banner-dist { font-size: 26px; }
  .ngv-banner-text { font-size: 16.5px; }
  .ngv-arrow { width: 44px; height: 44px; }
  .ngv-act { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ngv-opt, .ngv-progress i, .ngv-go { transition: none !important; }
}

/* «Portami qui» on the «Per te» / Iris cards and plans (web/taste-core.js) */
.tg-card-actions { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; min-width: 0; }
.tg-card-actions .tg-fb { margin: 0 0 0 auto; padding: 0; }
.tg-go.ngv-go { min-height: 34px; padding: 0 11px; font-size: 12.5px; }
.tg-go .tg-glyph { width: 16px; height: 16px; }
.tg-card.is-compact .tg-go.ngv-go { min-height: 32px; padding: 0 10px; }
.tg-plan .tg-go.ngv-go { margin-top: 12px; background: rgba(255, 255, 255, .14); color: #fff; }
.tg-plan .tg-go.ngv-go:hover { background: rgba(255, 255, 255, .22); }
.grp-plan .ngv-go.grp-go { margin: 10px 0 2px; }
.mt-start-actions .ngv-go.mt-link { background: rgba(255, 255, 255, .16); color: #fff; }
body.ngv-on #toast { bottom: calc(var(--safe-bottom) + 160px); }

/* Difficulty of the walk, elevation profile and the easier variant (walk-router difficulty/climbs) */
.ngv-diff { --d: var(--ok); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--d) 13%, transparent); color: var(--d); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.ngv-diff.is-moderato { --d: var(--warn); }
.ngv-diff.is-impegnativo { --d: var(--danger, #b3261e); }
.ngv-diff-dots { display: inline-flex; gap: 2px; }
.ngv-diff-dots i { width: 5px; height: 9px; border-radius: 2px; background: currentColor; opacity: .25; }
.ngv-diff-dots i:first-child, .ngv-diff.is-moderato .ngv-diff-dots i:nth-child(2), .ngv-diff.is-impegnativo .ngv-diff-dots i { opacity: 1; }
.ngv-opt-head .ngv-diff { margin-left: 2px; }
.ngv-steep { color: var(--warn); }
.ngv-elev { margin: 2px 0 0; display: grid; gap: 3px; }
.ngv-elev svg { display: block; width: 100%; height: 46px; overflow: visible; }
.ngv-elev-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.ngv-elev-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ngv-elev-steep { fill: none; stroke: var(--warn); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ngv-elev-steep.is-hard { stroke: var(--danger, #b3261e); }
.ngv-elev-ride { fill: color-mix(in srgb, var(--sea) 16%, transparent); }
.ngv-elev figcaption { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.ngv-elev figcaption > span:last-child { margin-left: auto; }
.ngv-elev-key::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 4px; vertical-align: middle; border-radius: 2px; background: var(--warn); }
.ngv-elev-key.is-ride::before { height: 8px; background: color-mix(in srgb, var(--sea) 30%, transparent); }
.ngv-elev-lock { display: flex; align-items: center; gap: 4px; }
.ngv-easier { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: var(--ok-soft); }
.ngv-easier-copy { display: grid; flex: 1 1 160px; min-width: 0; }
.ngv-easier-copy strong { font-size: 13.5px; }
.ngv-easier-copy small { color: var(--ink-2); font-size: 12px; }
.ngv-toggle small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.ngv-elev-key.is-hard::before { background: var(--danger, #b3261e); }

/* ---------- Maps-like header: «Da» / «A», swap, mode chips (0.13) ---------- */
.ngv-head { align-items: center; }
.ngv-ends { position: relative; flex: 1; min-width: 0; display: grid; gap: 6px; padding-right: 48px; }
.ngv-ends::before { content: ""; position: absolute; left: 19px; top: 30px; bottom: 30px; border-left: 2px dotted var(--line-strong); z-index: 0; }
.ngv-field { display: flex; align-items: center; gap: 12px; min-height: 50px; min-width: 0; padding: 6px 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); text-align: left; color: var(--ink); }
.ngv-field:hover, .ngv-field:focus-visible { border-color: var(--accent); }
.ngv-field.is-empty strong { color: var(--muted); }
.ngv-field-copy { display: grid; flex: 1; min-width: 0; line-height: 1.22; }
.ngv-field-copy small { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngv-field-copy small + strong, .ngv-field-copy strong + small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ngv-field-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ngv-swap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ngv-swap:disabled { opacity: .45; }
.ngv-modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.ngv-mode { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 56px; padding: 6px 2px; border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line); }
.ngv-mode .ngv-i { flex: none; }
.ngv-mode-copy { display: grid; justify-items: center; line-height: 1.1; min-width: 0; }
.ngv-mode-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ngv-mode-time { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ngv-mode.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ngv-mode.is-off { opacity: .55; }
.ngv-mode-wait { animation: ngv-pulse 1.2s ease-in-out infinite; }
@keyframes ngv-pulse { 50% { opacity: .35; } }
.ngv-opt-icon.is-bike { background: var(--ok-soft); color: var(--ok); }
.ngv-opt-icon.is-car { background: var(--sea-soft); color: var(--sea); }
.ngv-preview-map { height: 240px; }
/* Search of «Da» / «A» */
.ngv-search { position: relative; display: flex; align-items: center; gap: 8px; }
.ngv-search .ngv-i { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.ngv-search input { width: 100%; padding-left: 40px; }
.ngv-results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; max-height: min(52vh, 420px); overflow-y: auto; }
.ngv-result { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: var(--r-sm); background: none; color: var(--ink); text-align: left; }
.ngv-result:hover, .ngv-result:focus-visible { background: var(--surface-2); }
.ngv-result .ngv-i { flex: none; color: var(--muted); }
.ngv-result.is-me .ngv-i { color: var(--ngv-me); }
.ngv-result span { display: grid; min-width: 0; line-height: 1.25; }
.ngv-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ngv-result small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1100px) { .ngv-preview-map { height: 360px; } }
@media (prefers-reduced-motion: reduce) { .ngv-mode-wait { animation: none; } }
