/* =============================================================================
   NAV-1 — nav-ui.css: Google Maps ko'rinishi ✅ (bepul navigator)
   Palitra: #1A73E8 · #34A853 · #EA4335 · #5F6368 · fon #E8EAED
   ========================================================================== */

#nav-google {
  position: fixed; inset: 0; z-index: 99985;
  background: #E8EAED;
  display: none;
  font-family: var(--mbx-font-body, Roboto, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  -webkit-tap-highlight-color: transparent;
  color: #202124;
}
#nav-google.is-open { display: block; }
#nav-google *, #nav-google *::before, #nav-google *::after { box-sizing: border-box; }

#navmap { position: absolute; inset: 0; z-index: 1; background: #E8EAED; }
#navmap .leaflet-container { background: #E8EAED; }
#navmap .leaflet-control-attribution { font-size: 9.5px; background: rgba(255, 255, 255, .82); }

/* ---------------------------------------------------- 2. TEPA QIDIRUV PANELI */

.navg-top {
  position: absolute; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 30; display: grid; gap: 8px;
}
.navg-search {
  display: grid; grid-template-columns: 24px 1fr 40px; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 6px 0 14px;
  background: #FFFFFF; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, .30);
}
.navg-search-ic { font-size: 16px; color: #5F6368; text-align: center; }
.navg-input {
  width: 100%; height: 44px; border: 0; background: transparent; outline: none;
  font-size: 14.5px; font-weight: 500; color: #202124;
}
.navg-input::placeholder { color: #5F6368; font-weight: 400; }
.navg-mic {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #1A73E8;
  font-size: 17px; cursor: pointer;
}
.navg-mic:hover { background: #F1F3F4; }

.navg-results {
  display: grid; gap: 2px; max-height: 46vh; overflow-y: auto;
  background: #FFFFFF; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(60, 64, 67, .30);
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}
.navg-results[hidden] { display: none !important; }
.navg-res {
  display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: transparent; text-align: left; cursor: pointer; color: #202124;
}
.navg-res:hover, .navg-res:focus-visible { background: #F1F3F4; }
.navg-res-ic { font-size: 15px; }
.navg-res-t { display: grid; gap: 1px; min-width: 0; }
.navg-res-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navg-res-t span { font-size: 11.5px; color: #5F6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------- 3. FAB */

.navg-fab {
  position: absolute; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 30; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 2px 10px rgba(60, 64, 67, .30); cursor: pointer;
}
.navg-fab:hover { background: #F8F9FA; }
.navg-fab.is-on { background: #E8F0FE; }

.navg-close {
  position: absolute; left: 14px; top: calc(70px + env(safe-area-inset-top, 0px));
  z-index: 30; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 2px 10px rgba(60, 64, 67, .30); cursor: pointer;
  font-size: 16px; color: #5F6368;
}

/* --------------------------------------------------- 4. MARSHRUT PANELI */

.navg-card {
  position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 30; display: grid; gap: 10px;
  max-height: 52vh; overflow: hidden;
  padding: 14px 14px 12px;
  background: #FFFFFF; border-radius: 16px;
  box-shadow: 0 2px 14px rgba(60, 64, 67, .30);
}
.navg-card[hidden] { display: none !important; }
.navg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.navg-big { font-size: 22px; font-weight: 700; color: #202124; }
.navg-sub { font-size: 12.5px; color: #5F6368; }
.navg-steps { display: grid; gap: 4px; overflow-y: auto; max-height: 26vh; -webkit-overflow-scrolling: touch; }
.navg-step {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
  min-height: 38px; padding: 6px 8px; border-radius: 10px; background: #F8F9FA;
}
.navg-step-ic { font-size: 15px; text-align: center; }
.navg-step-t { font-size: 12.5px; color: #202124; }
.navg-step-d { font-size: 11.5px; color: #5F6368; }
.navg-go {
  width: 100%; min-height: 46px; border: 0; border-radius: 12px;
  background: #34A853; color: #FFFFFF; font: 700 15px/1.2 inherit; cursor: pointer;
}
.navg-go:hover { background: #2E9449; }
.navg-go[hidden] { display: none !important; }

/* ---------------------------------------------------------- 5. BELGILAR */

.navg-pin, .navg-me, .navg-target { display: grid; place-items: center; }
.navg-pin svg, .navg-me svg, .navg-target svg { display: block; }
.navg-me { position: relative; }
.navg-me::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(26, 115, 232, .28);
  animation: navg-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes navg-pulse {
  0% { transform: scale(.5); opacity: .75; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .navg-me::after { animation: none; opacity: .25; }
}

/* ------------------------------------------------------------ XATO XABARI */

.navg-toast {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 40; max-width: calc(100% - 28px);
  padding: 10px 14px; border-radius: 12px;
  background: #202124; color: #FFFFFF; font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 10px rgba(60, 64, 67, .40);
}
.navg-toast[hidden] { display: none !important; }

/* ------------------------------------------------------- ISHGA TUSHIRGICH */

.navg-launch {
  position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 99984; display: grid; place-items: center;
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%;
  background: #1A73E8; color: #FFFFFF; font-size: 23px;
  box-shadow: 0 3px 12px rgba(26, 115, 232, .45); cursor: pointer;
}
.navg-launch[hidden] { display: none !important; }
.navg-launch:hover { background: #1765CC; }

/* -------------------------------------------------------------- TUNGI REJIM */

[data-theme="dark"] #nav-google,
html.mbx-dark #nav-google,
body.mbx-dark #nav-google { background: #202124; color: #E8EAED; }
[data-theme="dark"] #nav-google #navmap,
html.mbx-dark #nav-google #navmap { background: #202124; }
[data-theme="dark"] .navg-search,
[data-theme="dark"] .navg-results,
[data-theme="dark"] .navg-card,
[data-theme="dark"] .navg-fab,
[data-theme="dark"] .navg-close,
html.mbx-dark .navg-search, html.mbx-dark .navg-results, html.mbx-dark .navg-card,
html.mbx-dark .navg-fab, html.mbx-dark .navg-close { background: #2A2B2E; color: #E8EAED; }
[data-theme="dark"] .navg-input,
html.mbx-dark .navg-input { color: #E8EAED; }
[data-theme="dark"] .navg-step,
html.mbx-dark .navg-step { background: #202124; }
[data-theme="dark"] .navg-big, [data-theme="dark"] .navg-step-t,
html.mbx-dark .navg-big, html.mbx-dark .navg-step-t { color: #E8EAED; }
[data-theme="dark"] .navg-sub, [data-theme="dark"] .navg-step-d, [data-theme="dark"] .navg-search-ic,
html.mbx-dark .navg-sub, html.mbx-dark .navg-step-d, html.mbx-dark .navg-search-ic { color: #BDC1C6; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #nav-google { background: #202124; }
  html:not([data-theme="light"]) .navg-search,
  html:not([data-theme="light"]) .navg-results,
  html:not([data-theme="light"]) .navg-card { background: #2A2B2E; color: #E8EAED; }
  html:not([data-theme="light"]) .navg-big { color: #E8EAED; }
}

/* ------------------------------------------------------------------ MOBIL */

@media (max-width: 380px) {
  .navg-search { grid-template-columns: 20px 1fr 36px; }
  .navg-big { font-size: 19px; }
  .navg-step-t { font-size: 12px; }
}
@media (min-width: 700px) {
  .navg-top { left: 50%; transform: translateX(-50%); width: 420px; }
  .navg-card { left: 50%; transform: translateX(-50%); width: 420px; }
}

  /* ══════════════════════════════════════════════════════════════════════════
     180-buyruq (egasi): 🧭 TUGMA — ekrandagi 🎤 MIKROFON NING TAGIDA ✅
     Mikrofon (qidiruv ichida, yuqori o'ng) O'Z JOYIDA qoladi ✅
     Ko'k 🧭 dumaloq — uning TAGIDA turadi ✅
     ──────────────────────────────────────────────────────────────────────────
     🔄 QAYTARISH: shu blokni o'chirsangiz — tugma yana o'ng pastga tushadi ✅
     ══════════════════════════════════════════════════════════════════════════ */
  .navg-launch {
    position: fixed !important;
    right: 14px !important;
    top: calc(86px + env(safe-area-inset-top, 0px)) !important;   /* 🎤 tagida ✅ */
    bottom: auto !important;
    width: 46px !important; height: 46px !important;
    font-size: 20px !important;
    z-index: 99984 !important;
  }

  /* ══════════════════════════════════════════════════════════════════════════
     181-buyruq (egasi): «SUZUVCHINI OLIB TASHLASH — halaqit berayapti» ✅
     🧭 suzuvchi tugma BUTUNLAY OLIB TASHLANDI ✅
     ──────────────────────────────────────────────────────────────────────────
     🔄 QAYTARISH: shu blokni o'chirish kifoya ✅
     ══════════════════════════════════════════════════════════════════════════ */
  .navg-launch,
  #navg-launch,
  button.navg-launch {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important; height: 0 !important;
    opacity: 0 !important; pointer-events: none !important;
  }

  /* ══════════════════════════════════════════════════════════════════════════
     182-buyruq (egasi): O'NG TOMONDA 4 TA DUMALOQ TUGMA ✅
       🔺 navigatsiya o'qi · 🔍 qidiruv · 🔊 ovoz · ⚠️ xabar berish
     ══════════════════════════════════════════════════════════════════════════ */
  .navg-side {
    position: absolute; right: 12px;
    top: calc(74px + env(safe-area-inset-top, 0px));
    display: flex; flex-direction: column; gap: 10px; z-index: 6;
  }
  .navg-side-btn {
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
    background: #FFFFFF; display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(60,64,67,.28);
  }
  .navg-side-btn:active { transform: scale(.96); }
  .navg-side-btn.is-off { background: #F1F3F4; opacity: .6; }
  .navg-side-volume.is-off svg { opacity: .45; }
  [data-theme="dark"] .navg-side-btn,
  html.mbx-dark .navg-side-btn { background: #2A2B2E; }
  [data-theme="dark"] .navg-side-btn svg,
  html.mbx-dark .navg-side-btn svg { stroke: #E8EAED; }

  /* ══════════════════════════════════════════════════════════════════════════
     184-buyruq (egasi, namuna): O'NG USTUN — taksi ekranidagidek ✅
     ⧉ · ◎ · + · − · 🎤  (5 ta, kattaroq, yumshoq soya ✅)
     ══════════════════════════════════════════════════════════════════════════ */
  .navg-side {
    position: absolute; right: 10px;
    top: calc(58px + env(safe-area-inset-top, 0px));
    display: flex; flex-direction: column; gap: 9px; z-index: 7;
  }
  .navg-side-btn {
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px;
    background: #FFFFFF; display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 1px 4px rgba(60,64,67,.30);
  }
  .navg-side-btn:active { background: #F1F3F4; transform: scale(.96); }
  /* Joylashuv tugmasi — doira (namunadagidek ✅) */
  .navg-side-btn[aria-label="Joylashuvim"] { border-radius: 50%; }
  /* Mikrofon — mato ostida ajralib tursin ✅ */
  .navg-side-btn[aria-label="Ovoz bilan qidirish"] { margin-top: 6px; border-radius: 50%; }
  [data-theme="dark"] .navg-side-btn, html.mbx-dark .navg-side-btn { background: #2A2B2E; }
  [data-theme="dark"] .navg-side-btn svg, html.mbx-dark .navg-side-btn svg { stroke: #E8EAED; }
  /* Eski 🎯 FAB yashirilsin (◎ uning o'rnini bosadi ✅) */
  .navg-fab { display: none !important; }


/* ==========================================================================
   NAV-2 (task-58): rejimlar · yo'ldosh · bottom sheet · qatlamlar paneli
   ========================================================================== */
.navg-modes { display: flex; gap: 4px; padding: 4px; background: #FFFFFF; border-radius: 999px; box-shadow: 0 2px 10px rgba(60,64,67,.30); width: max-content; }
.navg-mode { min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #5F6368; font: 600 12.5px/1 inherit; cursor: pointer; }
.navg-mode.is-on { background: #1A73E8; color: #FFFFFF; }
.navg-sat { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 10px rgba(60,64,67,.30); font-size: 18px; cursor: pointer; }
.navg-sat.is-on { background: #E8F0FE; }

.navg-layers { position: absolute; right: 14px; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 40; display: grid; gap: 4px; min-width: 220px; padding: 10px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 2px 14px rgba(60,64,67,.30); opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; }
.navg-layers.is-open { opacity: 1; transform: translateY(0); }
.navg-layers-title { font-size: 13px; font-weight: 700; color: #202124; padding: 2px 6px 6px; }
.navg-layer { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: #202124; font: 500 13px/1.2 inherit; text-align: left; cursor: pointer; }
.navg-layer:hover { background: #F1F3F4; }
.navg-layer.is-on { background: #E8F0FE; color: #1A73E8; font-weight: 700; }
.navg-layer.is-off { opacity: .5; cursor: not-allowed; }

.navg-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-rows: auto 1fr; gap: 6px; background: #FFFFFF; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 16px rgba(60,64,67,.30); transform: translateY(calc(100% - 30vh)); transition: transform .22s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
.navg-sheet.is-peek { transform: translateY(calc(100% - 30vh)); }
.navg-sheet.is-half { transform: translateY(calc(100% - 55vh)); }
.navg-sheet.is-full { transform: translateY(calc(100% - 90vh)); }
.navg-sheet.is-drag { transition: none; }
.navg-sheet .navg-card { position: static; max-height: none; box-shadow: none; border-radius: 0; }
.navg-handle { justify-self: center; width: 44px; height: 5px; margin: 8px 0 2px; border-radius: 999px; background: #DADCE0; cursor: grab; }
.navg-handle:active { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .navg-sheet { transition: none !important; }
  .navg-layers { transition: none !important; }
}

[data-theme="dark"] .navg-modes, [data-theme="dark"] .navg-sat, [data-theme="dark"] .navg-layers, [data-theme="dark"] .navg-sheet,
html.mbx-dark .navg-modes, html.mbx-dark .navg-sat, html.mbx-dark .navg-layers, html.mbx-dark .navg-sheet { background: #2A2B2E; color: #E8EAED; }
[data-theme="dark"] .navg-layer, html.mbx-dark .navg-layer { color: #E8EAED; }
[data-theme="dark"] .navg-handle, html.mbx-dark .navg-handle { background: #5F6368; }

  /* ══════════════════════════════════════════════════════════════════════════
     186-buyruq (egasi): «shularni ixchamroq qilib ber» ✅
     O'ng ustun kichraytirildi: 44 -> 36px · ikonka 22 -> 17px · gap 9 -> 6px
     ══════════════════════════════════════════════════════════════════════════ */
  .navg-side { gap: 6px !important; right: 8px !important; }
  .navg-side-btn {
    width: 36px !important; height: 36px !important;
    border-radius: 11px !important;
    box-shadow: 0 1px 3px rgba(60,64,67,.26) !important;
  }
  .navg-side-btn svg { width: 17px !important; height: 17px !important; }
  .navg-side-btn[aria-label="Ovoz bilan qidirish"] { margin-top: 4px !important; }

  /* ══════════════════════════════════════════════════════════════════════════
     187-buyruq (egasi): «kichraytirib tartibga solib ber» ✅
     O'ng ustun: 36 -> 30px · ikonka 17 -> 14px · gap 6 -> 5px · tekis oraliq
     ══════════════════════════════════════════════════════════════════════════ */
  .navg-side {
    gap: 5px !important; right: 7px !important;
    top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    align-items: center !important;
  }
  .navg-side-btn {
    width: 30px !important; height: 30px !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 3px rgba(60,64,67,.24) !important;
  }
  .navg-side-btn svg { width: 14px !important; height: 14px !important; }
  /* ◎ va 🎤 — doira, biroz kattaroq (ajralib tursin ✅) */
  .navg-side-btn[aria-label="Joylashuvim"],
  .navg-side-btn[aria-label="Ovoz bilan qidirish"] {
    width: 34px !important; height: 34px !important;
    border-radius: 50% !important;
  }
  .navg-side-btn[aria-label="Ovoz bilan qidirish"] { margin-top: 3px !important; }


/* ==========================================================================
   NAV-3 (task-59): 5 LAYOUT REJIMI — hech bir element yo'qolmaydi ✅
   data-layout="L1|L2|L3|L4|L5" (#nav-google)
   ========================================================================== */
.navg-layout-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 10px rgba(60,64,67,.30); font-size: 17px; cursor: pointer; }
.navg-layouts { position: absolute; left: 14px; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 45; display: grid; gap: 4px; min-width: 250px; padding: 10px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 2px 14px rgba(60,64,67,.30); opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; }
.navg-layouts.is-open { opacity: 1; transform: translateY(0); }
.navg-layout { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: #202124; text-align: left; cursor: pointer; }
.navg-layout:hover { background: #F1F3F4; }
.navg-layout.is-on { background: #E8F0FE; color: #1A73E8; }
.navg-layout-code { font: 800 12px/1 inherit; text-align: center; }
.navg-layout-t { display: grid; gap: 1px; min-width: 0; }
.navg-layout-t b { font: 600 13px/1.2 inherit; }
.navg-layout-t i { font-style: normal; font-size: 11px; color: #5F6368; }
.navg-price { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 32; padding: 8px 12px; border-radius: 999px; background: #FFFFFF; color: #202124; font: 700 13px/1.2 inherit; box-shadow: 0 2px 10px rgba(60,64,67,.30); }

/* ---------------- L1 · O'NG USTUN (hozirgi, standart) ---------------- */
#nav-google[data-layout="L1"] .navg-side { right: 14px; left: auto; top: calc(120px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; }
#nav-google[data-layout="L1"] .navg-price { display: none; }

/* ---------------- L2 · CHAP USTUN + NARX XARITADA ---------------- */
#nav-google[data-layout="L2"] .navg-side { left: 14px; right: auto; top: calc(120px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; }
#nav-google[data-layout="L2"] .navg-layers, #nav-google[data-layout="L2"] .navg-layouts { left: 66px; right: auto; }
#nav-google[data-layout="L2"] .navg-price { display: block; right: 14px; left: auto; transform: none; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

/* ---------------- L3 · PASTKI PANEL (Google) ---------------- */
#nav-google[data-layout="L3"] .navg-side { left: 12px; right: 12px; top: auto; bottom: calc(28vh + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: row; justify-content: center; gap: 10px; }
#nav-google[data-layout="L3"] .navg-top { left: 12px; right: 12px; }
#nav-google[data-layout="L3"] .navg-price { bottom: calc(30vh + env(safe-area-inset-bottom, 0px)); }

/* ---------------- L4 · YUQORI PANEL (xarita 75% ochiq) ---------------- */
#nav-google[data-layout="L4"] .navg-side { left: 12px; right: 12px; top: calc(124px + env(safe-area-inset-top, 0px)); bottom: auto; display: flex; flex-direction: row; justify-content: center; gap: 10px; }
#nav-google[data-layout="L4"] .navg-sheet { transform: translateY(calc(100% - 25vh)); }
#nav-google[data-layout="L4"] .navg-sheet.is-peek { transform: translateY(calc(100% - 25vh)); }
#nav-google[data-layout="L4"] .navg-sheet.is-half { transform: translateY(calc(100% - 25vh)); }
#nav-google[data-layout="L4"] .navg-sheet.is-full { transform: translateY(calc(100% - 80vh)); }
#nav-google[data-layout="L4"] .navg-go { max-width: 320px; margin: 0 auto; display: block; }
#nav-google[data-layout="L4"] .navg-price { bottom: calc(28vh + env(safe-area-inset-bottom, 0px)); }

/* ---------------- L5 · BOTTOM SHEET + RADIAL FAB ---------------- */
#nav-google[data-layout="L5"] .navg-side {
  right: 14px; left: auto; top: auto; bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; padding: 10px;
  background: rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 2px 14px rgba(60,64,67,.30);
}
#nav-google[data-layout="L5"] .navg-modes { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 16px; }
#nav-google[data-layout="L5"] .navg-sheet.is-half { transform: translateY(calc(100% - 45vh)); }
#nav-google[data-layout="L5"] .navg-price { bottom: calc(48vh + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 380px) {
  #nav-google[data-layout="L5"] .navg-side { grid-template-columns: repeat(3, 40px); }
  .navg-layouts { min-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .navg-layouts { transition: none !important; }
}
[data-theme="dark"] .navg-layout-btn, [data-theme="dark"] .navg-layouts, [data-theme="dark"] .navg-price,
html.mbx-dark .navg-layout-btn, html.mbx-dark .navg-layouts, html.mbx-dark .navg-price { background: #2A2B2E; color: #E8EAED; }
[data-theme="dark"] #nav-google[data-layout="L5"] .navg-side, html.mbx-dark #nav-google[data-layout="L5"] .navg-side { background: rgba(42,43,46,.94); }
[data-theme="dark"] .navg-layout-t i, html.mbx-dark .navg-layout-t i { color: #BDC1C6; }


/* ==========================================================================
   LOC-1 (task-60): lokatsiya paneli · aniqlik · saqlangan · yaqin joylar
   ========================================================================== */
.navg-acc { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 inherit; background: #F1F3F4; color: #5F6368; }
.navg-acc.is-good { background: #E6F4EA; color: #34A853; }
.navg-acc.is-ok { background: #FEF7E0; color: #B06000; }
.navg-acc.is-bad { background: #FCE8E6; color: #EA4335; }
.navg-acc.is-none { background: #F1F3F4; color: #5F6368; }
.navg-loc-btn-top { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 10px rgba(60,64,67,.30); font-size: 17px; cursor: pointer; }
.navg-loc { position: absolute; left: 50%; transform: translateX(-50%); top: calc(120px + env(safe-area-inset-top, 0px)); z-index: 44; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); max-height: 62vh; overflow-y: auto; padding: 12px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 2px 14px rgba(60,64,67,.30); -webkit-overflow-scrolling: touch; }
.navg-loc.is-open { display: grid; }
.navg-loc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.navg-loc-btn { min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #F1F3F4; color: #202124; font: 600 12.5px/1.2 inherit; cursor: pointer; }
.navg-loc-btn.is-primary { background: #1A73E8; color: #FFFFFF; }
.navg-loc-addr { margin: 0; font-size: 12.5px; color: #5F6368; }
.navg-loc-addr.is-err { color: #B06000; }
.navg-loc-saved, .navg-loc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.navg-loc-save-wrap { display: inline-flex; align-items: center; gap: 2px; }
.navg-loc-chip { min-height: 34px; padding: 0 10px; border: 1px solid #F0F2F5; border-radius: 999px; background: #FFFFFF; color: #202124; font: 600 12px/1.2 inherit; cursor: pointer; }
.navg-loc-chip.is-on { background: #E8F0FE; border-color: #1A73E8; color: #1A73E8; }
.navg-loc-del { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #FCE8E6; color: #EA4335; font-size: 11px; cursor: pointer; }
.navg-loc-msg { margin: 0; font-size: 12px; color: #5F6368; }
.navg-loc-list { display: grid; gap: 4px; }
.navg-loc-row { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 12px; background: #F8F9FA; text-align: left; cursor: pointer; }
.navg-loc-row:hover { background: #F1F3F4; }
.navg-loc-ic { font-size: 15px; text-align: center; }
.navg-loc-t { display: grid; gap: 1px; min-width: 0; }
.navg-loc-t b { font: 600 12.5px/1.2 inherit; color: #202124; }
.navg-loc-t i { font-style: normal; font-size: 11px; color: #5F6368; }
.navg-res.is-saved { background: #E8F0FE; }

[data-theme="dark"] .navg-loc, [data-theme="dark"] .navg-loc-btn-top, [data-theme="dark"] .navg-loc-chip,
html.mbx-dark .navg-loc, html.mbx-dark .navg-loc-btn-top, html.mbx-dark .navg-loc-chip { background: #2A2B2E; color: #E8EAED; }
[data-theme="dark"] .navg-loc-row, html.mbx-dark .navg-loc-row { background: #202124; }
[data-theme="dark"] .navg-loc-t b, html.mbx-dark .navg-loc-t b { color: #E8EAED; }
[data-theme="dark"] .navg-loc-addr, [data-theme="dark"] .navg-loc-t i, html.mbx-dark .navg-loc-addr, html.mbx-dark .navg-loc-t i { color: #BDC1C6; }

@media (max-width: 380px) { .navg-loc { width: calc(100% - 16px); } }
@media (prefers-reduced-motion: reduce) { .navg-loc { scroll-behavior: auto; } }

  /* 192-buyruq (egasi): navigator ustuni ham yaqinroq ✅ */
  .navg-side { gap: 3px !important; }
  .navg-side-btn[aria-label="Ovoz bilan qidirish"] { margin-top: 2px !important; }

  /* 193-buyruq: navigator ustuni ham aniq yaqin (gap 0 + margin 3px) ✅ */
  .navg-side { gap: 0 !important; }
  .navg-side-btn { margin: 0 !important; }
  .navg-side-btn + .navg-side-btn { margin-top: 3px !important; }
