/* --- Mise en page globale --- */
.gfmsv5-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  font-family: Arial, sans-serif;
}

/* Barre des filtres au-dessus de la carte */
.gfmsv5-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gfmsv5-filters select,
.gfmsv5-filters input {
  padding: 0.4rem 0.6rem;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.gfmsv5-filters label {
  font-weight: bold;
  margin-right: 0.4rem;
}

/* Carte + liste côte à côte */
.gfmsv5-main {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

/* Carte Google Maps */
#gfmsv5-map {
  flex: 2;
  min-height: 500px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Liste des résultats */
.gfmsv5-list {
  flex: 1;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fafafa;
}

.gfmsv5-counter {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Élément de la liste */
.gfmsv5-item {
  padding: 0.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gfmsv5-item:hover {
  background: #f0f8ff;
}

/* Badge coloré par engagement */
.gfmsv5-badge {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Infobulle Google Maps */
.gm-style .gm-style-iw {
  font-size: 14px;
  line-height: 1.4;
}

.gm-style .gm-style-iw strong {
  display: block;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .gfmsv5-main {
    flex-direction: column;
  }
  #gfmsv5-map, .gfmsv5-list {
    flex: 1;
    max-height: none;
  }
}
