/* ================================
   Logements Map – Style global
   ================================ */

.lm-wrap {
  display: flex;
  margin-top: 30px;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.lm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
  margin-top: 80px; /* espace sous le menu */
}

/* ajuste automatiquement si tu es connecté à WordPress */
body.admin-bar .lm-filters {
  margin-top: 112px; /* 80 + 32px pour la barre d’admin */
}

@media (max-width: 782px) {
  body.admin-bar .lm-filters {
    margin-top: 126px; /* admin bar mobile */
  }
}

.lm-filters label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #111;
}

.lm-filters input,
.lm-filters select,
.lm-filters button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.lm-filters button {
  background: #111;
  color: #fff;
  cursor: pointer;
}

.lm-filters button:hover {
  background: #333;
}

/* Carte */
#lm-map {
  width: 100%;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
  position: relative;
}

/* Liste des logements */
#lm-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.lm-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lm-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.lm-card .body {
  padding: 10px;
  color: #111;
}

.lm-card .title {
  font-weight: 600;
  margin-bottom: 6px;
}
