@charset "UTF-8";
/* ==========================================================================
   Carte interactive de Los Santos (composant partagé, includes/lsmap/lsmap.php
   + assets/js/lsmap.js). Variables de thème du site (--bg, --text...).
   --lsmap-accent : couleur d'accent de la page hôte (épingle de placement,
   liens de la bulle) — bleu Eyefind par défaut.
   ========================================================================== */

.lsmap {
  --lsmap-accent: var(--link, #1a73e8);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #a7d4ea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 28px -12px rgba(0, 0, 0, 0.28);
}
.lsmap-viewport {
  position: relative;
  height: 520px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lsmap-pick .lsmap-viewport {
  height: 380px;
  cursor: crosshair;
}
.lsmap.lsmap-small .lsmap-viewport {
  height: 280px;
}
.lsmap.is-dragging .lsmap-viewport {
  cursor: grabbing;
}
/* Pas de will-change ni de translate3d : sur une scène de plusieurs milliers
   de pixels, une couche graphique dédiée n'est pas toujours dessinée par les
   navigateurs sans accélération graphique. */
.lsmap-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.lsmap-img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.lsmap-ui-icon {
  width: 18px;
  height: 18px;
}
.lsmap-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.lsmap-loading .lsmap-ui-icon {
  width: 40px;
  height: 40px;
  animation: lsmap-bob 1s ease-in-out infinite alternate;
}
.lsmap.is-ready .lsmap-loading {
  display: none;
}
@keyframes lsmap-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Épingle : goutte colorée dont la pointe est exactement sur la coordonnée
   (élément de taille nulle, la goutte est dessinée au-dessus). */
.lsmap-marker {
  --lsmap-color: #1a73e8;
  position: absolute;
  width: 0;
  height: 0;
  z-index: 2;
  text-decoration: none !important;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}
.lsmap-marker:focus {
  outline: none;
}
.lsmap-marker-pin {
  position: absolute;
  left: -17px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--lsmap-color);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.lsmap-marker-pin svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke-width: 2.2;
  transform: rotate(45deg);
}
.lsmap-marker:hover,
.lsmap-marker:focus-visible,
.lsmap-marker.is-active,
.lsmap-marker.is-hover {
  z-index: 4;
}
.lsmap-marker:hover .lsmap-marker-pin,
.lsmap-marker:focus-visible .lsmap-marker-pin,
.lsmap-marker.is-active .lsmap-marker-pin,
.lsmap-marker.is-hover .lsmap-marker-pin {
  transform: rotate(-45deg) scale(1.22);
}
.lsmap-marker:focus-visible .lsmap-marker-pin {
  box-shadow: 0 0 0 3px var(--lsmap-color);
}
.lsmap-marker-live::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -9px;
  width: 28px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--lsmap-color);
  animation: lsmap-wave 1.6s ease-out infinite;
}
@keyframes lsmap-wave {
  from { opacity: 0.9; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.8); }
}
/* Épingle de placement (formulaires) */
.lsmap-pin {
  pointer-events: none;
}
.lsmap-pin .lsmap-marker-pin {
  background: var(--lsmap-accent);
}
.lsmap-pin.is-hidden {
  display: none;
}
.lsmap-pin.is-dropped .lsmap-marker-pin {
  animation: lsmap-drop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes lsmap-drop {
  from { transform: translateY(-26px) rotate(-45deg) scale(0.6); opacity: 0; }
  to { transform: rotate(-45deg) scale(1); opacity: 1; }
}

/* Bulle d'information */
.lsmap-tip {
  position: absolute;
  z-index: 6;
  display: flex;
  width: 280px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.lsmap-tip.is-visible {
  opacity: 1;
  transform: none;
}
.lsmap-tip.is-link {
  cursor: pointer;
}
.lsmap-tip::after {
  content: "";
  position: absolute;
  left: var(--lsmap-tip-arrow, 50%);
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--bg);
  transform: rotate(45deg);
}
.lsmap-tip.is-below::after {
  top: -6px;
  bottom: auto;
}
.lsmap-tip-cover {
  flex: 0 0 90px;
  background-size: cover;
  background-position: center;
}
.lsmap-tip-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lsmap-tip-cover-fallback svg {
  width: 34px;
  height: 34px;
  color: #fff;
}
.lsmap-tip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 11px 13px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.lsmap-tip-body strong {
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lsmap-tip-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lsmap-tip-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lsmap-tip-cta {
  margin-top: 4px;
  font-weight: 800;
  color: var(--lsmap-accent);
}

/* Boutons */
.lsmap-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lsmap-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f1f24;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.lsmap-controls button:hover {
  background: #fff;
  transform: scale(1.06);
}
.lsmap-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 16, 30, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.lsmap-wheel-hint {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 6, 20, 0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lsmap.show-wheel-hint .lsmap-wheel-hint {
  opacity: 1;
}

/* Plein écran */
.lsmap.is-full {
  position: fixed;
  inset: 0;
  z-index: 2800;
  border-radius: 0;
  border: none;
}
.lsmap.is-full .lsmap-viewport {
  height: 100vh;
  height: 100dvh;
}
html.lsmap-lock,
html.lsmap-lock body {
  overflow: hidden;
}

/* Bloc de placement dans un formulaire (lsmap_render_picker) */
.lsmap-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lsmap-field-label {
  font-size: 13px;
  color: var(--text-muted);
}
.lsmap-field-label em {
  font-style: normal;
  opacity: 0.8;
}
.lsmap-field-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  font-size: 13px;
  color: var(--text-muted);
}
.lsmap-clear {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lsmap-clear[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .lsmap {
    border-radius: 16px;
  }
  .lsmap-viewport {
    height: 400px;
  }
  .lsmap-pick .lsmap-viewport {
    height: 330px;
  }
  .lsmap.lsmap-small .lsmap-viewport {
    height: 240px;
  }
  .lsmap-tip {
    width: 250px;
  }
  .lsmap-tip-cover {
    flex-basis: 72px;
  }
  .lsmap-controls {
    top: 10px;
    right: 10px;
  }
  .lsmap-controls button {
    width: 36px;
    height: 36px;
  }
  .lsmap-hint {
    left: 10px;
    bottom: 10px;
    font-size: 11px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsmap-marker-live::before,
  .lsmap-loading .lsmap-ui-icon,
  .lsmap-pin.is-dropped .lsmap-marker-pin {
    animation: none;
  }
}
