/* Compact range HUD (Maps-style): label + thin bar, no chrome box */
.neavo-map-range-hud{
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  bottom: calc(var(--neavo-bottom-nav-total, 72px) + 10px);
  z-index: 4795;
  width: min(148px, 44vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s;
}

.neavo-map-range-hud.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.neavo-map-range-hud__value{
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  color: rgba(252, 254, 255, 0.98);
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 1px rgba(0, 0, 0, 1);
}

.neavo-map-range-hud__track{
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.neavo-map-range-hud__fill{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(130, 175, 255, 1) 0%,
    rgba(220, 235, 255, 0.98) 100%
  );
  box-shadow: 0 0 6px rgba(150, 190, 255, 0.55);
  transition: width 0.1s ease-out;
}

html[dir="rtl"] .neavo-map-range-hud__fill{
  left: auto;
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(130, 175, 255, 1) 0%,
    rgba(220, 235, 255, 0.98) 100%
  );
}

html.neavo-bottom-nav-suppressed .neavo-map-range-hud{
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
