/* Carte des annonces (public/js/carte-annonces.js) — Leaflet + OpenStreetMap. À charger après /vendor/leaflet/leaflet.css et MarkerCluster.css. */
.ca-carte { --ca-violet: var(--violet, #5F297D); --ca-rose: var(--rose, #F55EAD); --ca-bord: var(--bord, #D7C4DF); --ca-gris: var(--gris, #6e6679);
  --ca-f: #d91a7a; --ca-h: #0e49b5; --ca-ligne: #2fbf4a; --ca-vedette: #f2b705;
  position: relative; border: 1px solid var(--ca-bord); border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 18px; }
.ca-barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--ca-bord); }
.ca-info { color: var(--ca-violet); font-size: .9rem; font-weight: 600; }
.ca-boutons { display: flex; gap: 6px; flex-wrap: wrap; }
.ca-bouton { border: 1px solid var(--ca-bord); background: #fff; color: var(--ca-violet); border-radius: 6px; padding: 6px 10px; min-height: 36px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.ca-bouton:hover { background: #f7f0fa; }
.ca-bouton:focus-visible { outline: 3px solid var(--ca-rose); outline-offset: 2px; }
.ca-map { height: min(560px, 70vh); min-height: 320px; width: 100%; background: #e9eef2; z-index: 0; }
.ca-map-erreur { display: flex; align-items: center; justify-content: center; }
.ca-carte .leaflet-container { font: inherit; }
.ca-carte .leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .85); }
.ca-carte .leaflet-bar a { color: var(--ca-violet); }

/* Membre individuel : petite photo ronde */
.ca-icone { background: none; border: 0; }
.ca-membre { position: relative; display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ca-violet); background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); box-sizing: border-box; }
.ca-membre.ca-f { border-color: var(--ca-f); }
.ca-membre.ca-h { border-color: var(--ca-h); }
.ca-membre.ca-vedette { box-shadow: 0 0 0 3px var(--ca-vedette), 0 2px 6px rgba(0, 0, 0, .3); }
.ca-membre-photo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ca-membre-ligne { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ca-ligne); border: 2px solid #fff; }
.leaflet-marker-icon:focus-visible .ca-membre { outline: 3px solid var(--ca-rose); outline-offset: 2px; }

/* Grappes numérotées */
.ca-grappe { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; background: rgba(95, 41, 125, .25); }
.ca-grappe-n { display: flex; align-items: center; justify-content: center; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; background: var(--ca-violet); color: #fff; font-weight: 700; font-size: .85rem; }
.ca-grappe-m .ca-grappe-n { font-size: .9rem; }
.ca-grappe-l { background: rgba(245, 94, 173, .3); }
.ca-grappe-l .ca-grappe-n { background: #7a2f9e; font-size: .95rem; }

/* Bulle */
.ca-popup .leaflet-popup-content-wrapper { border-radius: 12px; border: 1px solid var(--violet, #5F297D); }
.ca-popup .leaflet-popup-content { margin: 10px 12px; }
.ca-bulle { display: flex; gap: 10px; align-items: flex-start; }
.ca-bulle-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--violet, #5F297D); }
.ca-bulle.ca-f .ca-bulle-photo { border-color: #d91a7a; }
.ca-bulle.ca-h .ca-bulle-photo { border-color: #0e49b5; }
.ca-bulle-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ca-bulle-pseudo { color: var(--violet, #5F297D); font-size: 1rem; overflow-wrap: anywhere; }
.ca-bulle-details { color: var(--gris, #6e6679); font-size: .84rem; }
.ca-bulle-pastilles { display: flex; gap: 4px; flex-wrap: wrap; }
.ca-pastille { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.ca-pastille-ligne { background: #e3f7e7; color: #1c7a30; }
.ca-pastille-vedette { background: #fff4cf; color: #7a5a00; }
.ca-carte .ca-bulle-lien { display: inline-block; margin-top: 4px; padding: 6px 10px; border-radius: 6px; background: var(--violet, #5F297D); color: #fff; font-weight: 600; font-size: .85rem; text-decoration: none; text-align: center; }
.ca-carte .ca-bulle-lien:hover { background: #7a2f9e; }

@media (max-width: 600px) {
  .ca-barre { padding: 8px; }
  .ca-bouton { flex: 1 1 auto; }
  .ca-map { height: 65vh; }
}
