/* =========================
   POPUP LEAFLET
   ========================= */
.leaflet-popup-content .popup-img {
  width: 90px;
  margin-top: 6px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: zoom-in;
}

/* =========================
   PLAN MODAL
   ========================= */
#plan-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  z-index: 10000;
}

#plan-modal {
  background: #111;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
}

#plan-modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
}

/* Header du modal */
#plan-modal-header {
  display: flex;
  justify-content: space-between; /* titre à gauche, bouton à droite */
  align-items: center;
  padding: 10px 15px;
  background: #1a1a1a; /* légèrement plus clair que le fond */
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Bouton de fermeture */
#plan-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}

#plan-modal-close:hover {
  color: #ff4d4d; /* rouge au survol */
}


/* =========================
   MAP / LEAFLET
   ========================= */
#map {
    height: 100vh;
    width: 100%;
}

.page-map {
  overflow: hidden;
}

.map-legend, .leaflet-left .leaflet-control {
    display: none;
}

.map-legend h4 {
    font-size: 15px;
    text-align: center;
	font-weight: normal;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.legend-item img {
    width: 18px;
    height: auto;
}

.legend-item span {
    white-space: nowrap;
}

.map-filter {
    position: absolute;
    color: #007BFF;
	top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.map-filter select {
	width: 90vw;
    max-width: 320px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #000;
    font-size: 14px;
    background-color: #fff; /* fond bleu clair */
    color: #000;           /* texte bleu */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.map-filter select:hover,
.map-filter select:focus,
.map-filter select:focus-visible {
    color: #000;
    border-color: #007BFF;
    outline: none;
}

.popup-img {
    width: 60px;
    height: auto;
    cursor: pointer;
    border-radius: 6px;
}

.legend-content {
    display: none;
}

.legend-content.open {
    display: block;
	margin-top: 18px;
