#map.map-immersive-3d-fallback .leaflet-tile-pane,
.leaflet-container.map-immersive-3d-fallback .leaflet-tile-pane {
  transform-origin: 50% 55%;
  transform: perspective(900px) rotateX(52deg) rotateZ(var(--immersive-heading, 0deg));
  transition: transform 0.12s ease-out;
}

#map.map-immersive-3d-fallback .leaflet-overlay-pane,
#map.map-immersive-3d-fallback .leaflet-marker-pane,
#map.map-immersive-3d-fallback .leaflet-shadow-pane,
.leaflet-container.map-immersive-3d-fallback .leaflet-overlay-pane,
.leaflet-container.map-immersive-3d-fallback .leaflet-marker-pane,
.leaflet-container.map-immersive-3d-fallback .leaflet-shadow-pane {
  transform: rotateZ(var(--immersive-heading, 0deg));
  transform-origin: 50% 55%;
  transition: transform 0.12s ease-out;
}

#mapWrap .map-web-compass {
  position: absolute;
  left: 16px;
  bottom: 24px;
  z-index: 1001;
  display: none;
  pointer-events: none;
}

#mapWrap .map-web-compass.map-web-compass--visible {
  display: block;
  pointer-events: auto;
}

#mapWrap .map-web-compass__panel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#mapWrap .map-web-compass__btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f4f5f7;
  color: #333;
  cursor: pointer;
  line-height: 36px;
  text-align: center;
}

#mapWrap .map-web-compass__btn:hover {
  background: #e8eaed;
}

#mapWrap .map-web-compass__dial {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}

#mapWrap .map-web-compass__dial:active {
  cursor: grabbing;
}

#mapWrap .map-web-compass__ring {
  position: absolute;
  inset: 6px;
  border: 2px solid #d0d4da;
  border-radius: 50%;
  pointer-events: none;
}

#mapWrap .map-web-compass__needle {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: #e74c3c;
  border-radius: 2px;
  transform-origin: 50% 100%;
  transition: transform 0.12s ease-out;
  pointer-events: none;
}

#mapWrap .map-web-compass__needle:before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #e74c3c;
}

#mapWrap .map-web-compass__label {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: #555;
  pointer-events: none;
  z-index: 1;
}

#mapWrap .map-web-compass__value {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  color: #333;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 1;
}
