/* Final map gadget geometry: one exact 2x2 control on every viewport. */
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
  --gadget-size: 84px;
  --gadget-line: rgba(220, 255, 247, 0.18);
  position: absolute !important;
  right: clamp(18px, 3vw, 28px) !important;
  bottom: clamp(104px, 12vh, 122px) !important;
  z-index: 720 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)) !important;
  width: var(--gadget-size) !important;
  height: var(--gadget-size) !important;
  min-width: var(--gadget-size) !important;
  min-height: var(--gadget-size) !important;
  max-width: var(--gadget-size) !important;
  max-height: var(--gadget-size) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(88, 226, 192, 0.17), transparent 47%),
    linear-gradient(145deg, rgba(7, 57, 69, 0.96), rgba(3, 31, 45, 0.94)) !important;
  box-shadow:
    0 15px 34px rgba(0, 21, 34, 0.27),
    inset 0 0 0 1px rgba(220, 255, 247, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
}

html body main.app-shell section.map-stage:not(.map-focus) .map-navigation-gadget {
  display: none !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > *,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #locateButton,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #mapCompass,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #mapZoomInButton,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #mapZoomOutButton {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f5fffc !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #locateButton {
  grid-area: 1 / 1 !important;
  border-right: 1px solid var(--gadget-line) !important;
  border-bottom: 1px solid var(--gadget-line) !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #mapZoomInButton {
  grid-area: 1 / 2 !important;
  border-bottom: 1px solid var(--gadget-line) !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #mapCompass {
  grid-area: 2 / 1 !important;
  overflow: hidden !important;
  border-right: 1px solid var(--gadget-line) !important;
  cursor: pointer !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget #mapZoomOutButton {
  grid-area: 2 / 2 !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > *:hover,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > *:active {
  background: rgba(105, 225, 194, 0.18) !important;
}

html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > *:focus-visible {
  z-index: 2 !important;
  outline: 2px solid rgba(142, 244, 211, 0.88) !important;
  outline-offset: -3px !important;
}

html body main.app-shell section.map-stage.map-focus #locateButton [data-icon],
html body main.app-shell section.map-stage.map-focus #locateButton svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  color: #effffb !important;
  stroke-width: 2.2 !important;
  filter: none !important;
}

html body main.app-shell section.map-stage.map-focus #locateButton .locate-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html body main.app-shell section.map-stage.map-focus .map-gadget-zoom-button {
  font-size: 1.34rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

html body main.app-shell section.map-stage.map-focus #mapCompass::before {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 25px !important;
  height: 25px !important;
  content: "" !important;
  border: 1px solid rgba(232, 255, 249, 0.32) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  transform: translate(-50%, -50%) !important;
}

html body main.app-shell section.map-stage.map-focus #mapCompass::after {
  display: none !important;
  content: none !important;
}

html body main.app-shell section.map-stage.map-focus #mapCompass .map-compass-needle {
  top: 11px !important;
  left: 50% !important;
  width: 2px !important;
  height: 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff625d 0 48%, #f8fffb 49% 100%) !important;
  box-shadow: none !important;
  filter: none !important;
  transform-origin: 50% 50% !important;
}

html body main.app-shell section.map-stage.map-focus #mapCompass .map-compass-needle::before,
html body main.app-shell section.map-stage.map-focus #mapCompass .map-compass-needle::after {
  display: none !important;
  content: none !important;
}

html body main.app-shell section.map-stage.map-focus #mapCompass strong {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
    --gadget-size: 84px;
    position: fixed !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 18px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > * {
    transition: none !important;
  }
}
