/* A deliberate 2D/3D map mode that stays compact and readable over Explore. */
html body main.app-shell section.map-stage .map-depth-switch {
  display: none !important;
}

html body main.app-shell section.map-stage.map-focus .map-depth-switch {
  position: absolute !important;
  top: 82px !important;
  right: clamp(18px, 3vw, 28px) !important;
  z-index: 718 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  width: 96px !important;
  height: 38px !important;
  padding: 3px !important;
  border: 1px solid rgba(225, 255, 248, 0.24) !important;
  border-radius: 12px !important;
  background: rgba(4, 37, 50, 0.9) !important;
  box-shadow: 0 9px 22px rgba(2, 29, 41, 0.2) !important;
  backdrop-filter: blur(12px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
}

html body main.app-shell section.map-stage.map-focus .map-depth-switch button {
  box-sizing: border-box !important;
  display: grid !important;
  min-width: 0 !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: rgba(232, 250, 246, 0.72) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
}

html body main.app-shell section.map-stage.map-focus .map-depth-switch button.active {
  color: #063b45 !important;
  background: linear-gradient(145deg, #a8f2d6, #69d8bd) !important;
  box-shadow: 0 3px 9px rgba(5, 85, 83, 0.2) !important;
}

html body main.app-shell section.map-stage.map-focus .map-depth-switch button:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 1px !important;
}

html body main.app-shell section.map-stage.map-focus.map-depth-active .maplibregl-canvas {
  transition: opacity 180ms ease !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  html body main.app-shell section.map-stage.map-focus .map-depth-switch {
    position: fixed !important;
    top: calc(72px + env(safe-area-inset-top)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    width: 88px !important;
    height: 36px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body main.app-shell section.map-stage.map-focus .map-depth-switch button,
  html body main.app-shell section.map-stage.map-focus.map-depth-active .maplibregl-canvas {
    transition: none !important;
  }
}
