/* ── Section des filtres ───────────────────────────────────── */
.hebergements-filters {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  
}

.filters {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 68, 0.1);
  
}

/* ── Barre de recherche ────────────────────────────────────── */
.filter-search {
  margin-bottom: 1.5rem;
  position: relative;
}

.filter-search::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.filter-search input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.2rem;
  border: 2px solid #e5e7e9;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  background: #f8f9fa;
  transition: all 0.3s ease;
  color: #2c3e50;
}

.filter-search input:focus {
  border-color: #006644;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 102, 68, 0.1);
}

/* ── Filter row ────────────────────────────────────────────── */
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-row select {
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 2px solid #e5e7e9;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  background: #f8f9fa;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23006644'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: #f8f9fa;
}

.filter-row select:focus {
  border-color: #006644;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(0, 102, 68, 0.1);
}

/* ── Checkbox ouvert uniquement ───────────────────────────── */
.filter-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem !important;
  cursor: pointer;
  padding: 0.85rem 1.2rem;
  background: #f8f9fa;
  border: 2px solid #e5e7e9;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500 !important;
  color: #5a6c7d !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.filter-checkbox:hover {
  border-color: #006644;
  background: #e8f5f1;
  color: #006644 !important;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #006644;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Boutons actions ───────────────────────────────────────── */
.filters-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 2px solid #f0f2f4;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #004d33;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background: #006644;
  transform: translateY(-2px);
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #f0f2f4;
  color: #5a6c7d;
  border: 2px solid #e5e7e9;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background: #e5e7e9;
  border-color: #ccc;
  transform: translateY(-2px);
  color: #2c3e50;
}

/* ── Contenu principal ─────────────────────────────────────── */
.hebergements-content {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
  
}

.list-pane {
  display: flex;
  flex-direction: column;
  gap: 2rem;
 
}

/* ── Résultats header ──────────────────────────────────────── */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
 
}

.results-header h2 {
  font-size: 1rem;
  color: #5a6c7d;
  font-weight: 500;
  margin: 0;
  position: relative;
  padding-left: 1rem;
}

.results-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #006644, #00a86b);
  border-radius: 2px;
}

/* ── Message aucun résultat ────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-results p {
  color: #5a6c7d;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ── Liste hébergements ────────────────────────────────────── */
.hebergements-liste {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hebergement-item {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hebergement-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hebergement-image {
  position: relative;
  width: 280px;
  flex-shrink: 0;
}

.hebergement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-dispo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hebergement-details {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hebergement-details h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #2c3e50;
  font-weight: 700;
}

.hebergement-details .description {
  color: #666;
  line-height: 1.6;
  font-size: 0.92rem;
  flex: 1;
}

.hebergement-details .adresse {
  color: #888;
  font-size: 0.88rem;
}

/* ── Badges catégories ─────────────────────────────────────── */
.badge-categorie {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #007B5A;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  transition: background 0.2s;
}

.badge-categorie:hover {
  background: #005f45;
}

/* ── Footer carte ──────────────────────────────────────────── */
.hebergement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.hebergement-footer .note {
  font-weight: 600;
  color: #f5a623;
  font-size: 1rem;
}

.reviews-count {
  color: #888;
  font-size: 0.82rem;
  font-weight: 400;
  margin-left: 4px;
}

.btn-reserver {
  background: #007B5A;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.btn-reserver:hover {
  background: #005f45;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .filters { max-width: 95%; padding: 2rem; }
  .filter-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
}

@media (max-width: 768px) {
  .hebergements-filters { padding: 2rem 0; }
  .filters { padding: 1.5rem; margin: 0 1rem; }
  .filter-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .filter-checkbox { grid-column: 1 / -1; }
  .filters-actions { flex-direction: column; }
  .btn-apply, .btn-reset { width: 100%; justify-content: center; }
  .hebergement-item { flex-direction: column; }
  .hebergement-image { width: 100%; height: 200px; }
}

@media (max-width: 480px) {
  .filters { padding: 1rem; margin: 0 0.5rem; }
  .filter-row { grid-template-columns: 1fr; }
  .filter-search input { font-size: 0.9rem; }
  .hebergement-details h3 { font-size: 1.1rem; }
  .hebergement-footer { flex-direction: column; gap: 1rem; align-items: stretch; }
  .btn-reserver { width: 100%; text-align: center; }
}