/* Live location: compact dot, truthful accuracy ring, and smooth heading. */
html body .app-shell .user-location-marker-shell.live-user-location-marker,
html body main.app-shell .user-location-marker-shell.live-user-location-marker {
  z-index: 9999 !important;
  width: 38px !important;
  height: 38px !important;
  overflow: visible !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  pointer-events: none !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location,
html body main.app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location::before,
html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location::after,
html body main.app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location::before,
html body main.app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location::after {
  display: none !important;
  content: none !important;
}

.user-location-dot-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: block;
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.82) 0 11%, transparent 12%),
    linear-gradient(145deg, #3599ff, #0874ed);
  box-shadow:
    0 4px 10px rgba(5, 76, 166, 0.25),
    0 0 0 1px rgba(5, 105, 228, 0.18);
  transform: translate(-50%, -50%);
}

.user-location-heading {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: block;
  width: 16px;
  height: 25px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(37, 139, 255, 0.56), rgba(37, 139, 255, 0.12));
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  transform: translate(-50%, -100%) rotate(var(--user-heading-rotation, 0deg));
  transform-origin: 50% 100%;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 0.72, 0.24, 1);
  will-change: transform;
}

.user-location-marker-shell.live-user-location-marker.has-heading .user-location-heading {
  opacity: 1;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker.is-estimate .user-location-dot-core,
html body main.app-shell .user-location-marker-shell.live-user-location-marker.is-estimate .user-location-dot-core {
  opacity: 0.68;
  filter: saturate(0.55);
}

html body .app-shell .map-stage.map-focus .map-compass-needle,
html body main.app-shell section.map-stage.map-focus .map-compass-needle {
  transition: transform 240ms cubic-bezier(0.22, 0.72, 0.24, 1) !important;
  will-change: transform !important;
}

html body .app-shell .map-stage.map-focus .map-compass.has-heading,
html body main.app-shell section.map-stage.map-focus .map-compass.has-heading {
  background:
    radial-gradient(circle at 50% 50%, rgba(66, 170, 255, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.075) !important;
}

html body .app-shell .location-banner button:disabled,
html body main.app-shell .location-banner button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
  color: rgba(231, 247, 244, 0.88);
  border-color: rgba(175, 222, 216, 0.2);
  background: rgba(11, 45, 54, 0.74);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .user-location-heading,
  html body .app-shell .map-stage.map-focus .map-compass-needle {
    transition: opacity 120ms linear !important;
  }
}
