/* public/dashboard/styles/map.css — LA CARTE DES TROIS APPLIS (spec 2026-11-06 § 5.3).
   Elle remplit la scène (`.scene-map`) et laisse libres ce qui flotte dessus : ses contrôles et l'attribution
   OpenStreetMap vivent en bas à gauche, au-dessus de la feuille du téléphone (la scène les remonte, apps.css) ; sur
   ordinateur le panneau est à droite. Contrôles discrets : la teinte du panneau, un trait fin, des cibles de 44 px. Le
   préfixe `:root` passe devant maplibre-gl.css, chargée après elle. Ce que montre la carte se lit en liste dans la
   feuille (`.app-map-panel`). */

/* La carte remplit son conteneur dans la scène. */
.scene-map :is(.app-zones-map, .app-live-map) { display: block; height: 100%; }
.scene-map :is(.app-zones-map-canvas, .app-live-map-canvas, .app-tour-map) { height: 100%; border-radius: 0; }

:root .maplibregl-map { font: inherit; }

/* Les boutons de zoom : une pastille de la teinte du panneau. */
:root .maplibregl-ctrl-group,
:root .maplibregl-ctrl-group:not(:empty) {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; overflow: hidden;
}
:root .maplibregl-ctrl-group button { width: var(--target-min, 44px); height: var(--target-min, 44px); }
:root .maplibregl-ctrl-group button + button { border-top: 1px solid var(--border); }
:root .maplibregl-ctrl-group button:focus,
:root .maplibregl-ctrl-attrib-button:focus { box-shadow: none; }
:root .maplibregl-ctrl button:focus-visible,
:root .maplibregl-ctrl-attrib-button:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
:root:not([data-theme="light"]) .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1); }

/* L'attribution, repliée : une pastille du panneau, le texte en secondaire. */
:root .maplibregl-ctrl-attrib.maplibregl-compact,
:root .maplibregl-ctrl-attrib-button { background-color: var(--panel); color: var(--muted); }
:root .maplibregl-ctrl-attrib a { color: var(--muted); }
:root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: #ECDAD0; }

/* Au téléphone, on zoome des doigts : les boutons laissent la place à la feuille. */
@media (max-width: 720px) and (pointer: coarse) {
  :root .maplibregl-ctrl-group:has(> .maplibregl-ctrl-zoom-in) { display: none; }
}

/* La liste de la carte, dans la feuille : la légende en secondaire, une ligne par zone ou par mission, la pastille de sa
   chaleur devant (la couleur double le rang, jamais seule : la liste est déjà triée de la plus chaude). */
.app-map-panel { display: flex; flex-direction: column; gap: var(--space-2); }
.app-map-panel:empty { display: none; }
.app-map-panel :is(.app-zones-map-legend, .app-live-map-legend) { order: 2; margin: 0; color: var(--muted); font-size: var(--font-1); }
.app-map-panel :is(.app-zones-map-list, .app-live-map-list, .app-live-map-tour) {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  background: var(--panel-2, var(--bg)); border-radius: var(--radius, 14px);
}
.app-map-panel :is(.app-zones-map-list, .app-live-map-list, .app-live-map-tour) > li {
  display: flex; align-items: center; gap: 10px; min-height: var(--target-min, 44px); padding: 8px 14px;
  font-size: var(--font-2); line-height: 1.35;
}
.app-map-panel :is(.app-zones-map-list, .app-live-map-list, .app-live-map-tour) > li + li { border-top: 1px solid var(--border); }
.app-map-panel .app-zones-map-list > li[data-heat]::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ai);
}
.app-map-panel .app-zones-map-list > li[data-heat="hot"]::before { background: var(--heat); }
.app-map-panel .app-zones-map-list > li[data-heat="warm"]::before { background: var(--pot); }
.app-map-panel .app-live-map-queue { margin: 0; font-weight: 700; }
