/* ===============================
   CARTE INTERACTIVE ESTIVAREILLES
   =============================== */

/* Carte */
#map {
    border: 2px solid #ccc;
    border-radius: 8px;
}

/* ------------------------------
   Filtres (boutons catégories) en GRID (compact)
   ------------------------------ */

.poi-filter {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* un peu plus étroit */
  gap: 8px !important;
  justify-content: center !important;
  max-width: 650px;       /* largeur totale réduite */
  margin: 0 auto 10px auto !important;
}

.filter-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;

  background: #f5f5f5 !important;
  border: 1px solid #ccc !important;
  border-radius: 16px !important;    /* arrondi un peu plus petit */
  padding: 6px 12px !important;      /* ⬅️ réduit le padding */
  font-size: 13px !important;        /* ⬅️ texte un peu plus petit */
  font-weight: 500 !important;
  color: #333 !important;

  min-height: 42px !important;       /* ⬅️ hauteur mini réduite */
}

.filter-btn.active {
  background: #0073aa !important;
  color: #fff !important;
  border-color: #0073aa !important;
}

/* ------------------------------
   Galerie (popup)
   ------------------------------ */
.poi-gallery {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.poi-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,.3);
    border-radius: 4px;
}
.poi-thumb:hover {
    border-color: #0073aa;
}

/* ------------------------------
   Lightbox (images plein écran)
   ------------------------------ */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column; /* ✅ image + contrôles */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Image */
#lightbox-overlay img {
    max-width: 90%;
    max-height: 70%;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-bottom: 20px; /* espace sous image */
}

/* zone de contrôle */
.lightbox-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* croix */
#lightbox-close {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 8px 12px;
    line-height: 1;
    transition: background 0.2s;
}
#lightbox-close:hover {
    background: rgba(0,0,0,0.9);
}

/* flèches */
.lightbox-btn {
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 26px;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox-btn:hover {
    background: rgba(0,0,0,0.9);
}


/* ------------------------------
   Label permanent au-dessus du pin
   ------------------------------ */
.leaflet-tooltip.poi-label {
    background: rgba(255,255,255,0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 12px;
    font-weight: bold;
    color: #222;
    padding: 2px 6px;
}
