/**
 * VectorMap — styles carte 3D pastel + marqueurs
 * Variables personnalisables pour d'autres projets
 */
:root {
  --vm-ink: #0D1B2A;
  --vm-accent: #FF9201;
  --vm-map-bg: #c5d0d8;
}

/* Conteneur carte */
.vm-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: var(--vm-ink);
}

.vm-shell--framed {
  margin: 8px;
  border-radius: 28px;
  border: 4px solid var(--vm-accent);
  overflow: hidden;
  box-shadow: 0 5px 0 var(--vm-ink), 0 10px 22px rgba(13, 27, 42, 0.22);
}

.vm-map {
  width: 100%;
  height: 100%;
  background: var(--vm-map-bg);
}

.vm-map .maplibregl-canvas {
  filter: saturate(1.06) brightness(0.93) contrast(1.03);
}

.vm-map .maplibregl-ctrl-bottom-left,
.vm-map .maplibregl-ctrl-bottom-right {
  display: none;
}

/* Boutons zoom / actions */
.vm-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.vm-btn-round {
  width: 44px;
  height: 44px;
  background: var(--vm-accent);
  border: 3px solid var(--vm-ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--vm-ink), 0 5px 10px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--vm-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.vm-btn-round svg {
  width: 18px;
  height: 18px;
}

/* Marqueurs */
.vm-marker,
.vm-user-marker {
  background: transparent;
  border: none;
  cursor: pointer;
}

.vm-marker-dot {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--vm-ink);
  box-shadow: 0 5px 0 var(--vm-ink), 0 8px 16px rgba(13, 27, 42, 0.3);
  margin: 0 auto;
}

.vm-marker-dot::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 9px;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.vm-marker-dot--accent {
  background: var(--vm-accent);
}

.vm-marker-dot--muted {
  background: #94a3b0;
}

.vm-marker-dot--done {
  background: var(--vm-ink);
  border-color: var(--vm-accent);
  box-shadow: 0 4px 0 var(--vm-accent), 0 7px 14px rgba(13, 27, 42, 0.3);
}

.vm-marker-dot--selected {
  box-shadow: 0 0 0 5px rgba(255, 146, 1, 0.5), 0 5px 0 var(--vm-ink), 0 9px 18px rgba(13, 27, 42, 0.35);
  animation: vm-marker-bounce 0.55s ease-in-out infinite alternate;
}

@keyframes vm-marker-bounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-6px) scale(1.06); }
}

.vm-marker-label {
  background: var(--vm-ink);
  color: var(--vm-accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 3px solid var(--vm-accent);
  box-shadow: 0 4px 0 rgba(13, 27, 42, 0.45);
  white-space: nowrap;
  text-align: center;
  margin-top: 8px;
}

.vm-user-dot {
  width: 20px;
  height: 20px;
  background: var(--vm-accent);
  border: 4px solid var(--vm-ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 146, 1, 0.35), 0 4px 0 var(--vm-ink);
  animation: vm-user-pulse 2s ease-in-out infinite;
}

@keyframes vm-user-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 146, 1, 0.35), 0 3px 0 var(--vm-ink); }
  50% { box-shadow: 0 0 0 8px rgba(255, 146, 1, 0.2), 0 3px 0 var(--vm-ink); }
}
