/* ──────────────────────────────────────────────
   maisons.css — Page listing des maisons Boolva
   ────────────────────────────────────────────── */

.bm-wrap {
  position: relative;
  background:
    radial-gradient(44% 36% at 6% 18%, rgba(120,170,235,.32), transparent 60%),
    radial-gradient(48% 42% at 97% 58%, rgba(120,170,235,.28), transparent 62%),
    radial-gradient(40% 30% at 50% 2%, rgba(245,185,53,.05), transparent 60%),
    #fff;
  padding: 100px 22px 72px;
  min-height: 80vh;
  /* variables locales */
  --bm-navy:      #13294B;
  --bm-amber:     #F5B935;
  --bm-amber-drk: #E5A91A;
  --bm-muted:     #6B7A90;
  --bm-shadow:    0 24px 50px -30px rgba(19,41,75,.45);
}

/* Panneau blanc arrondi */
.bm-panel {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border-radius: 36px;
  box-shadow: var(--bm-shadow);
  padding: 56px clamp(24px, 5vw, 72px) 64px;
}

/* Titre principal */
.bm-title {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
  color: var(--bm-navy);
  text-align: center;
  margin: 0;
}

/* ── Barre de recherche ── */
.bm-search {
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}

.bm-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(540px, 100%);
  border: 1.6px solid #B7C6E6;
  border-radius: 999px;
  padding: 7px 8px 7px 26px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}

.bm-search__bar:focus-within {
  border-color: var(--bm-amber);
  box-shadow: 0 0 0 4px rgba(245,185,53,.2);
}

.bm-search__bar input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  color: var(--bm-navy);
  padding: 9px 0;
  -webkit-appearance: none;
  appearance: none;
}

.bm-search__bar input::placeholder { color: var(--bm-muted); }

.bm-search__go {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bm-amber);
  color: var(--bm-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .16s;
}

.bm-search__go:hover { background: var(--bm-amber-drk); }

/* ── Filtres / tri ── */
.bm-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 44px 0 32px;
  flex-wrap: wrap;
}

.bm-count {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bm-muted);
}

.bm-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--bm-muted);
}

.bm-sort__label { font-weight: 500; white-space: nowrap; }

.bm-sort__opt {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-muted);
  border: 1.4px solid #D0DBF0;
  transition: border-color .16s, color .16s, background .16s;
  text-decoration: none !important;
  background: #fff;
  white-space: nowrap;
}

.bm-sort__opt:hover,
.bm-sort__opt.on {
  border-color: var(--bm-navy);
  color: var(--bm-navy) !important;
  background: #EEF2F8;
}

/* ── Grille cartes ── */
.bm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 28px;
}

/* Carte */
.bm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bm-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #D9D9D9;
  position: relative;
}

.bm-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
  float: none !important;
  transition: transform .3s ease;
}

.bm-card__thumb:hover img { transform: scale(1.04); }

/* Placeholder initiales */
.bm-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(19,41,75,.045) 0 12px, transparent 12px 24px),
    #DBDBDB;
}

.bm-card__ph span {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: rgba(19,41,75,.3);
  letter-spacing: -.02em;
}

.bm-card__name {
  margin: 18px 0 0;
  text-align: center;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bm-navy);
}

.bm-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

.bm-card__name a:hover { color: #1F3A6B; }

.bm-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

/* Étoiles (même pattern que pm-stars dans maison.php) */
.bm-stars {
  display: inline-flex;
  gap: 2px;
}

.bm-star {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #D4DAE4;
  flex-shrink: 0;
}

.bm-star__bg {
  width: 100%;
  height: 100%;
  display: block;
}

.bm-star__fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
  width: var(--fill, 0%);
  color: #F5B935;
}

.bm-star__fill svg {
  width: 16px;
  height: 16px;
  display: block;
}

.bm-card__avis {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--bm-muted);
}

.bm-card__meta {
  margin-top: 4px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  color: var(--bm-muted);
  text-align: center;
}

.bm-card__more {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  color: var(--bm-muted);
  text-decoration: underline !important;
  text-underline-offset: 2px;
  transition: color .14s;
}

.bm-card__more:hover { color: var(--bm-navy) !important; }

/* ── État vide ── */
.bm-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--bm-muted);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Pagination ── */
.bm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 52px 0 6px;
  flex-wrap: wrap;
}

.bm-pager__nav,
.bm-pager__pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--bm-navy);
  text-decoration: none !important;
  background: transparent;
  transition: background .15s;
}

.bm-pager__nav:hover,
.bm-pager__pg:hover { background: #EEF2F8; color: var(--bm-navy) !important; }

.bm-pager__pg.on {
  background: #1C1C1E;
  color: #fff !important;
  border-radius: 8px;
}

.bm-pager__dots {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  color: var(--bm-muted);
  padding: 0 4px;
  cursor: default;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .bm-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
}

@media (max-width: 740px) {
  .bm-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

@media (max-width: 640px) {
  .bm-wrap { padding-top: 88px; padding-bottom: 48px; padding-left: 14px; padding-right: 14px; }
  .bm-panel { padding: 36px 18px 48px; border-radius: 22px; }
  .bm-title { font-size: 26px; }
  .bm-filters { flex-direction: column; align-items: flex-start; }
  .bm-sort { gap: 6px; }
}

@media (max-width: 380px) {
  .bm-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
