.gor-nav-v2 {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2147483000;
  isolation: isolate;
  overflow: visible;
  border-bottom: 1px solid rgba(220,229,240,.9);
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 34px rgba(8,31,65,.06);
}

.gor-nav-v2 .container,
.gor-nav-v2 .navbar-collapse,
.gor-nav-v2 .navbar-nav,
.gor-nav-v2 .nav-item,
.gor-nav-v2 .dropdown {
  position: relative;
  overflow: visible;
}

.gor-nav-v2 .container { max-width: var(--gor-container); }
.gor-nav-v2 .navbar-brand { gap: .65rem; }
.gor-nav-v2 .gor-nav-logo { height: 40px; }
.gor-nav-v2 .gor-brand-title { font-size: .92rem; letter-spacing: .075em; }

.gor-nav-v2 .gor-nav-center .nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-inline: .75rem;
}

.gor-nav-v2 .dropdown-menu {
  z-index: 2147483100;
  pointer-events: auto;
}

.gor-theme-toggle {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 14px;
}

html[data-theme="dark"] {
  --gor-bg: #07111f;
  --gor-surface: #0d1b2d;
  --gor-surface-soft: #13243a;
  --gor-border: #213753;
  --gor-border-strong: #2d4768;
  --gor-text: #edf5ff;
  --gor-text-soft: #a9bad0;
  --gor-primary-soft: #102b4d;
  --gor-shadow-sm: 0 8px 22px rgba(0,0,0,.2);
  --gor-shadow-md: 0 18px 48px rgba(0,0,0,.28);
}

html[data-theme="dark"] .gor-nav-v2 {
  border-bottom-color: rgba(45,71,104,.8);
  background: rgba(7,17,31,.88) !important;
}

html[data-theme="dark"] .navbar-light .navbar-brand,
html[data-theme="dark"] .gor-brand-title,
html[data-theme="dark"] .gor-nav-center .nav-link { color: var(--gor-text) !important; }
html[data-theme="dark"] .navbar-toggler { background: #fff; }
html[data-theme="dark"] .dropdown-menu { background: var(--gor-surface); }
html[data-theme="dark"] .dropdown-item { color: var(--gor-text); }
html[data-theme="dark"] .btn-outline-primary,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-danger { background: transparent; }

body.gor-v2 iframe,
body.gor-v2 .leaflet-container,
body.gor-v2 .maplibregl-map,
body.gor-v2 .mapboxgl-map {
  position: relative;
  z-index: 0;
}

@media (max-width: 991px) {
  .gor-nav-v2 .navbar-collapse {
    margin-top: .65rem;
    padding: .8rem;
    border: 1px solid var(--gor-border);
    border-radius: 18px;
    background: var(--gor-surface);
    box-shadow: var(--gor-shadow-md);
  }
}
