/* Destination : assets/css/biens.css */

.nh-page-hero-sm { padding: 3.5rem 0 2.5rem; }

.nh-biens-section { padding-top: 3rem; }

/* ============================================================
   FILTRES
   ============================================================ */
.nh-filters-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--nh-white);
  border: 2px solid var(--nh-rose);
  color: var(--nh-rose);
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.nh-filters {
  background: var(--nh-white);
  border-radius: var(--nh-radius-lg);
  box-shadow: var(--nh-shadow-sm);
  padding: 1.75rem;
  position: sticky;
  top: 96px;
}

.nh-filters-header { display: none; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nh-filters-header h2 { font-size: 1.1rem; margin: 0; }
.nh-filters-close { background: var(--nh-rose-light); color: var(--nh-rose); border: none; width: 34px; height: 34px; border-radius: 50%; }

.nh-filter-group { margin-bottom: 1.4rem; }
.nh-filter-group > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--nh-grey-600);
  margin-bottom: 0.6rem;
}
.nh-filter-group select,
.nh-filter-group input[type="text"],
.nh-filter-group input[type="number"] {
  width: 100%;
  border: 2px solid var(--nh-grey-300);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  background: var(--nh-cream);
  color: var(--nh-dark);
}
.nh-filter-group select:focus,
.nh-filter-group input:focus { outline: none; border-color: var(--nh-rose); }

.nh-filter-double { display: flex; gap: 0.6rem; }

.nh-filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nh-pill { position: relative; cursor: pointer; }
.nh-pill input { position: absolute; opacity: 0; }
.nh-pill span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--nh-grey-300);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nh-grey-600);
  transition: var(--nh-transition);
}
.nh-pill input:checked + span { background: var(--nh-gradient-primary); border-color: transparent; color: var(--nh-white); }

.nh-filters-reset { display: block; text-align: center; font-size: 0.82rem; font-weight: 600; margin-top: 0.9rem; color: var(--nh-grey-600); }
.nh-filters-reset:hover { color: var(--nh-rose); }

/* ============================================================
   BARRE DE RÉSULTATS
   ============================================================ */
.nh-results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.nh-results-count { font-weight: 700; color: var(--nh-dark); margin: 0; }
.nh-sort-form { display: flex; align-items: center; gap: 0.6rem; }
.nh-sort-form label { color: var(--nh-rose); }
.nh-sort-form select {
  border: 2px solid var(--nh-grey-300);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: var(--nh-white);
  color: var(--nh-dark);
}

/* ============================================================
   CARTES BIENS (mêmes classes que sur l'accueil, ajouts spécifiques)
   ============================================================ */
.nh-property-card { display: block; background: var(--nh-white); border-radius: var(--nh-radius-md); overflow: hidden; box-shadow: var(--nh-shadow-sm); transition: var(--nh-transition); color: var(--nh-dark); height: 100%; }
.nh-property-card:hover { transform: translateY(-6px); box-shadow: var(--nh-shadow-md); color: var(--nh-dark); }
.nh-property-media { position: relative; }
.nh-property-img { aspect-ratio: 4 / 3; }
.nh-property-media img.nh-property-img { width: 100%; height: 100%; object-fit: cover; }
.nh-property-media .nh-badge { position: absolute; top: 0.9rem; left: 0.9rem; }
.nh-badge-featured-pos { top: 0.9rem; right: 0.9rem; left: auto; }
.nh-property-body { padding: 1.4rem; }
.nh-property-city { font-size: 0.78rem; color: var(--nh-grey-600); margin-bottom: 0.3rem; }
.nh-property-city i { color: var(--nh-rose); }
.nh-property-body h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.nh-property-specs { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0 0 1rem; font-size: 0.82rem; color: var(--nh-grey-600); }
.nh-property-specs i { color: var(--nh-rose); margin-right: 0.3rem; }
.nh-property-price { font-weight: 800; font-size: 1.1rem; color: var(--nh-rose-dark); margin: 0; }

/* ============================================================
   ÉTAT VIDE
   ============================================================ */
.nh-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--nh-white);
  border-radius: var(--nh-radius-lg);
  box-shadow: var(--nh-shadow-sm);
}
.nh-empty-state i { font-size: 2.5rem; color: var(--nh-rose); margin-bottom: 1.2rem; }
.nh-empty-state h3 { margin-bottom: 0.8rem; }
.nh-empty-state p { color: var(--nh-grey-600); max-width: 420px; margin: 0 auto 1.5rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.nh-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.nh-page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--nh-white);
  color: var(--nh-dark);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--nh-shadow-sm);
  transition: var(--nh-transition);
}
.nh-page-link:hover { background: var(--nh-rose-light); color: var(--nh-rose-dark); }
.nh-page-link.active { background: var(--nh-gradient-primary); color: var(--nh-white); box-shadow: var(--nh-shadow-glow); }
.nh-page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   RESPONSIVE : filtres en panneau mobile
   ============================================================ */
@media (max-width: 991.98px) {
  .nh-filters-toggle { display: flex; }

  .nh-filters {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(88vw, 380px);
    border-radius: 0;
    z-index: 1210;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nh-filters.nh-open { transform: translateX(0); }
  .nh-filters-header { display: flex; }

  .nh-filters-backdrop {
    position: fixed; inset: 0;
    background: rgba(43, 27, 30, 0.45);
    z-index: 1200;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .nh-filters-backdrop.show { opacity: 1; visibility: visible; }
}