.domain-nav {
  position: absolute;
  z-index: var(--z-rail);
  inset: 0 auto 0 0;
  display: flex;
  width: 68px;
  padding: 12px 7px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  overflow: visible;
  border: 0;
  border-right: 1px solid rgba(40, 52, 119, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 4px 0 18px rgba(40, 52, 119, 0.08);
  backdrop-filter: blur(12px);
}

.map-rail-brand {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 2px;
}

.map-rail-brand img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  transform: scale(1.45);
}

.domain-nav-separator {
  width: 40px;
  height: 1px;
  flex: 0 0 1px;
  margin: 1px 0 5px;
  background: rgba(40, 52, 119, 0.14);
}

.domain-nav-item {
  position: relative;
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #283477;
  background: transparent;
  box-shadow: none;
}

.domain-nav-item:hover,
.domain-nav-item:focus-visible {
  border-color: rgba(40, 52, 119, 0.18);
  color: #283477;
  background: #f0f1f6;
  outline: 3px solid rgba(40, 52, 119, 0.18);
  outline-offset: 1px;
}

.domain-nav-item.is-active {
  border-color: transparent;
  color: #283477;
  background: rgba(40, 52, 119, 0.1);
  box-shadow: inset 3px 0 0 #283477;
}

.domain-nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: currentColor;
  background: transparent;
}

.domain-nav-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-nav-label {
  position: absolute;
  top: 50%;
  left: 57px;
  z-index: 2;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #fff;
  background: #283477;
  box-shadow: 0 6px 18px rgba(40, 52, 119, 0.2);
  font: 500 0.76rem/1.2 "Montserrat", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.domain-nav-item:hover .domain-nav-label,
.domain-nav-item:focus-visible .domain-nav-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.map-menu-button,
.map-brand-lockup {
  display: none;
}

.map-shell .leaflet-top.leaflet-left {
  left: calc(82px + var(--map-safe-left));
}

@media (max-width: 720px) {
  .domain-nav {
    inset: auto 0 0 0;
    width: auto;
    height: calc(68px + var(--map-safe-bottom));
    padding: 7px max(8px, var(--map-safe-right)) calc(7px + var(--map-safe-bottom)) max(8px, var(--map-safe-left));
    flex-direction: row;
    justify-content: space-around;
    gap: 2px;
    border-right: 0;
    border-top: 1px solid rgba(40, 52, 119, 0.22);
    box-shadow: 0 -4px 18px rgba(40, 52, 119, 0.08);
  }

  .map-rail-brand {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    margin: 0;
  }

  .map-rail-brand img {
    width: 40px;
    height: 40px;
  }

  .domain-nav-separator {
    display: none;
  }

  .domain-nav-item {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }

  .domain-nav-item.is-active {
    box-shadow: inset 0 -3px 0 #283477;
  }

  .domain-nav-label {
    display: none;
  }

  .map-shell .leaflet-top.leaflet-left {
    bottom: calc(80px + var(--map-safe-bottom));
    left: calc(8px + var(--map-safe-left));
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-nav-label {
    transition: none;
  }
}
