/* ==================================================
   LIGHTMAP – CARTE + PANNEAU DE CONTRÔLE
   ================================================== */

/* Conteneur carte */
.map-section {
  padding: 1em;
}

.map-ctnr {
  background: #aaa;
  height: calc(100vw - 2em);
  border-radius: 1em;
  box-shadow: 0 0 .75em #222;
  overflow: hidden;
  position: relative;
}

.map-ctnr > svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================================================
   PANNEAU DE CONTRÔLE (3 ÉTATS)
   ================================================== */
.lightmap-panel {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  font-family: sans-serif;
  font-size: 0.9em;
  color: #222;
  transition: transform 0.4s ease, opacity 0.4s ease;
  overflow-y: auto;
  border-radius: .6em;
  z-index: 10;
}

/* 1️⃣ masqué */
.lightmap-panel.state-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 2️⃣ compact (1/3 bas) */
.lightmap-panel.state-compact {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(65%);
  border-radius: .6em .6em 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

/* 3️⃣ plein écran */
.lightmap-panel.state-full {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lightmap-panel-content {
  padding: 1em;
}

/* Bouton flottant d’ouverture/fermeture */
.lightmap-toggle-btn {
  position: absolute;
  bottom: 0em;
  left: 0em;
  width: 2.4em;
  height: 2.4em;
  background: rgba(50, 50, 50, 0);
  color: #800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3em;
  z-index: 11;
  
  user-select: none;
  transition: transform 0.3s ease;
}

.lightmap-toggle-btn:hover {
  transform: scale(1.1);
}
/* Bouton GPS flottant (symétrique du ⚙️ panneau) */
.lightmap-locate-btn {
  position: absolute;
  bottom: 0em;
  right: 0em;
  width: 2.4em;
  height: 2.4em;
  background: rgba(50, 50, 50, 0);
  color: #a00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3em;
  z-index: 11;
  user-select: none;
  transition: transform 0.3s ease;
}

.lightmap-locate-btn:hover {
  transform: scale(1.1);
}