.moto-live-leaflet-icon {
  background: transparent !important;
  border: none !important;
}

.moto-3d-pin {
  position: relative;
  width: 48px;
  height: 56px;
  transform-style: preserve-3d;
  perspective: 140px;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.35s ease;
}

.moto-3d-pin--stale {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.moto-3d-pin__ring {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.45;
  animation: moto-pin-pulse 2s ease-out infinite;
}

.moto-3d-pin__shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 7px;
  margin-left: -10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(2px);
  transform: translateZ(-1px);
}

.moto-3d-pin__body {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 50% 50% 50% 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(22deg) rotateZ(var(--pin-heading, 0deg));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.38);
  transition: transform 0.12s linear;
}

.moto-3d-pin__icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.moto-3d-pin__body--bare {
  width: auto;
  height: auto;
  margin-left: -24px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Brand logo vehicle marker — airy, floating */
.moto-map-vehicle {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 48px;
  height: 50px;
  pointer-events: none;
}

.moto-map-vehicle__float {
  transform: rotateZ(var(--pin-heading, 0deg));
  transform-origin: center bottom;
  transition: transform 0.12s linear;
  will-change: transform;
}

.moto-map-vehicle-logo {
  width: 46px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  display: block;
  transform: rotateZ(var(--pin-lean, 0deg));
  transform-origin: center center;
  transition: transform 0.12s linear;
  filter:
    drop-shadow(0 2px 8px rgba(0, 200, 255, 0.35))
    drop-shadow(0 6px 16px rgba(0, 136, 255, 0.22));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.moto-3d-pin--vehicle-live .moto-3d-pin__shadow {
  width: 22px;
  height: 6px;
  margin-left: -11px;
  bottom: 0;
  background: rgba(45, 27, 78, 0.12);
  filter: blur(4px);
}

.moto-3d-pin--moto {
  --moto-fill: #ff5f4d;
  --moto-stroke: #2d1b4e;
  --moto-rider: #fff;
  --moto-helmet: #ffbe0b;
  --moto-glow: rgba(255, 95, 77, 0.28);
  color: #ff5f4d;
}

.moto-3d-pin--vehicle-live {
  perspective: none;
  transform-style: flat;
}

.moto-3d-pin--vehicle-live .moto-3d-pin__body {
  transform: none;
  bottom: 6px;
}

.moto-3d-pin--vehicle-live .moto-3d-pin__body--bare {
  margin-left: -24px;
  bottom: 6px;
}

.moto-3d-pin--vehicle-live .moto-map-vehicle__float {
  animation: moto-map-vehicle-bob 2.4s ease-in-out infinite;
}

.moto-3d-pin__label {
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translate(-50%, -100%);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.moto-3d-pin--driver .moto-3d-pin__body:not(.moto-3d-pin__body--bare) {
  background: linear-gradient(155deg, #00f5ff 0%, #00aeff 38%, #0099ff 72%, #0070ff 100%);
  border: 2.5px solid #fff;
  box-shadow:
    0 10px 22px rgba(0, 174, 255, 0.38),
    0 4px 8px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.moto-3d-pin--driver.moto-3d-pin--vehicle-live .moto-map-vehicle__float {
  animation: none;
  transform: rotateZ(var(--pin-heading, 0deg));
}

.moto-3d-pin--driver .moto-map-vehicle__float {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.moto-3d-pin--driver {
  transform: translate(-50%, -100%);
  will-change: transform;
}

.moto-3d-pin--driver.moto-3d-pin--vehicle-live .moto-3d-pin__shadow {
  width: 22px;
  margin-left: -11px;
  bottom: 0;
}

.moto-3d-pin--driver {
  --moto-fill: #ff5f4d;
  --moto-stroke: #2d1b4e;
  --moto-rider: #fff;
  --moto-helmet: #ffbe0b;
  --moto-glow: rgba(123, 57, 183, 0.28);
  color: #ff5f4d;
}

.moto-3d-pin--passenger {
  color: var(--moto-magenta, #e8327a);
}

.moto-3d-pin--passenger .moto-3d-pin__body {
  background: var(--moto-pin-pickup, linear-gradient(155deg, #ff5f4d 0%, #e8327a 55%, #7b39b7 100%));
  border: 2.5px solid #fff;
  animation: moto-driver-bob 2.4s ease-in-out infinite;
}

.moto-3d-pin--moto .moto-3d-pin__body:not(.moto-3d-pin__body--bare) {
  background: linear-gradient(155deg, #ff5f4d 0%, #ff4478 38%, #7b39b7 100%);
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(123, 57, 183, 0.24);
}

.moto-3d-pin--moto.moto-3d-pin--vehicle-live .moto-map-vehicle__float {
  animation-duration: 2.6s;
}

.moto-3d-pin--self {
  color: var(--moto-coral, #ff5f4d);
}

.moto-3d-pin--self .moto-3d-pin__body {
  background: var(--moto-pin-self, linear-gradient(155deg, #ff5f4d 0%, #e8327a 48%, #7b39b7 100%));
  border: 2.5px solid #fff;
  box-shadow:
    0 8px 18px rgba(123, 57, 183, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.38);
  animation: moto-pin-bob 2.4s ease-in-out infinite;
}

.moto-3d-pin--self .moto-3d-pin__ring {
  color: var(--moto-coral, #ff5f4d);
}

/* GPS self marker — styles in moto-uber-puck.css */
.moto-live-leaflet-icon--self {
  z-index: 600 !important;
}

.moto-leaflet-marker--self .moto-self-marker {
  transform: none;
}

.moto-leaflet-marker--self {
  background: transparent !important;
  border: none !important;
}


.moto-live-status {
  position: absolute;
  left: 50%;
  top: calc(56px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.moto-live-status--visible {
  opacity: 1;
}

.moto-live-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f4d;
  animation: moto-live-dot 1.2s ease-in-out infinite;
}

.moto-live-status--warn .moto-live-status__dot {
  background: #f59e0b;
  animation: none;
}

.moto-live-status--off .moto-live-status__dot {
  background: #ef4444;
  animation: none;
}

@keyframes moto-pin-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes moto-pin-bob {
  0%,
  100% {
    transform: rotateX(22deg) rotateZ(var(--pin-heading, 0deg)) translateY(0);
  }
  50% {
    transform: rotateX(22deg) rotateZ(var(--pin-heading, 0deg)) translateY(-3px);
  }
}

@keyframes moto-driver-bob {
  0%,
  100% {
    transform: rotateX(22deg) rotateZ(var(--pin-heading, 0deg)) translateY(0) scale(1);
  }
  50% {
    transform: rotateX(22deg) rotateZ(var(--pin-heading, 0deg)) translateY(-4px) scale(1.03);
  }
}

@keyframes moto-driver-ring {
  0% {
    transform: scale(0.5);
    opacity: 0.65;
  }
  75% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes moto-map-vehicle-bob {
  0%,
  100% {
    transform: rotateZ(var(--pin-heading, 0deg)) translateY(0);
  }
  50% {
    transform: rotateZ(var(--pin-heading, 0deg)) translateY(-2px);
  }
}

@keyframes moto-live-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}
