/* Marqueur GPS — glass chip + pulse dot bleu vif éclatant (Moto Bamako) */
:root {
  --gps-puck-size: 28px;
  --gps-puck-pulse-outset: -5px;
}

.uber-self-marker,
.moto-self-marker {
  --gps-coral: #00e5ff;
  --gps-violet: #0088ff;
  --gps-ink: #0a2540;
  --gps-glass: rgba(255, 255, 255, 0.94);
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.moto-self-marker:not(.moto-self-marker--map-overlay) {
  position: relative;
  transform: none;
}

.moto-self-marker--map-overlay {
  position: absolute;
  transform: translate(-50%, -100%);
}

.uber-self-marker__bubble,
.moto-self-marker__bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gps-glass);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow:
    0 4px 24px rgba(45, 27, 78, 0.1),
    0 1px 3px rgba(45, 27, 78, 0.06);
  max-width: min(280px, 78vw);
}

.moto-self-marker__pin-icon,
.uber-self-marker__pin-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}

.uber-self-marker__badge,
.moto-self-marker__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gps-coral) 0%, var(--gps-violet) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.uber-self-marker__text,
.moto-self-marker__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gps-ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  min-width: 0;
}

.uber-self-marker__puck,
.moto-self-marker__puck {
  --gps-puck-ring: #00f5ff;
  --gps-puck-mid: #00c8ff;
  --gps-puck-core: #0099ff;
  --gps-puck-deep: #0070ff;
  position: relative;
  width: var(--gps-puck-size, 28px);
  height: var(--gps-puck-size, 28px);
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--gps-puck-ring) 0%,
    var(--gps-puck-mid) 42%,
    var(--gps-puck-core) 100%
  );
  border: 2.5px solid #fff;
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.45),
    0 0 12px rgba(0, 200, 255, 0.65),
    0 3px 14px rgba(0, 136, 255, 0.5);
  z-index: 1;
}

/* Un seul disque — pas de petit point central */
.uber-self-marker__dot,
.moto-self-marker__dot {
  display: none !important;
}

.uber-self-marker__pulse,
.moto-self-marker__pulse {
  position: absolute;
  inset: var(--gps-puck-pulse-outset, -5px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(0, 245, 255, 0.62) 0%,
    rgba(0, 153, 255, 0.28) 55%,
    transparent 100%
  );
  animation: moto-gps-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.moto-self-marker__pulse--delay {
  animation-delay: 1.2s;
}

@keyframes moto-gps-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.75;
  }
  65% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.moto-self-marker--bubble-only {
  gap: 0;
  margin-bottom: 0;
}

.moto-self-marker--bubble-only .moto-self-marker__puck {
  display: none;
}

/* App passager uniquement — pas sur la carte chauffeur (#map partagé) */
.app-uber:not(.app-uber-driver) #map .moto-3d-pin--passenger,
.app-uber:not(.app-uber-driver) #ride-map .moto-3d-pin--passenger,
.app-uber:not(.app-uber-driver) #confirm-map .moto-3d-pin--passenger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.moto-self-puck-only {
  position: relative;
  width: var(--gps-puck-size, 28px);
  height: var(--gps-puck-size, 28px);
  pointer-events: none;
}

/* Passager : point bleu seul (pas de bulle) */
.moto-self-marker--puck-only {
  gap: 0;
  min-width: var(--gps-puck-size, 28px);
  min-height: var(--gps-puck-size, 28px);
  overflow: visible;
  transform: translate(-50%, -50%);
}

.moto-self-marker--stale .moto-self-marker__puck {
  opacity: 0.55;
  filter: grayscale(0.35);
}
