/* ============================================================
   Immo-Hub — Pages listing (typologies)
   Filtres popover · 3 vues : liste / grille / carte
   ============================================================ */

/* ── Switcher typologies ─────────────────────────────────── */
.ih-typoswitch {
  background: var(--ih-surface);
  border-bottom: 1px solid var(--ih-line);
}
.ih-typoswitch__inner {
  max-width: var(--ih-max-w);
  margin: 0 auto;
  padding: 12px var(--ih-side-pad);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ih-typoswitch__inner::-webkit-scrollbar { height: 4px; }
.ih-typoswitch__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #f2f3f6;
  color: var(--ih-ink-soft);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--ih-transition);
}
.ih-typoswitch__chip:hover {
  background: var(--ih-line);
  color: var(--ih-ink);
}
.ih-typoswitch__chip.is-active {
  background: var(--ih-ink);
  color: #fff;
}
.ih-typoswitch__count {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  opacity: 0.6;
}
.ih-typoswitch__chip.is-active .ih-typoswitch__count { opacity: 0.85; }

/* ── Hero ────────────────────────────────────────────────── */
.ih-listing-hero {
  padding: 48px var(--ih-side-pad) 36px;
  background: var(--ih-surface);
  border-bottom: 1px solid var(--ih-line);
}
.ih-listing-hero__inner {
  max-width: var(--ih-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.ih-listing-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--ih-cyan-tint);
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 11px;
  font-family: var(--ih-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ih-cyan-700);
  font-weight: 600;
}
.ih-listing-hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ih-cyan);
}
.ih-listing-hero__title {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 16px;
}
.ih-listing-hero__title-em {
  font-family: var(--ih-font-serif);
  font-style: italic;
}
.ih-listing-hero__title-muted {
  color: var(--ih-muted);
  font-weight: 400;
}
.ih-listing-hero__desc {
  font-size: 16px;
  font-weight: 400; /* v0.66.174 — desc est un <h2> (SEO) : neutralise le gras par défaut */
  color: var(--ih-muted);
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}
.ih-listing-hero__desc strong {
  color: var(--ih-ink);
  font-weight: 500;
}
.ih-listing-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ih-listing-hero__stat {
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-radius: 14px;
  padding: 16px;
}
.ih-listing-hero__stat--featured {
  background: var(--ih-ink);
  color: #fff;
  border-color: var(--ih-ink);
}
.ih-listing-hero__stat-value {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-family: var(--ih-font-serif);
  line-height: 1;
}
.ih-listing-hero__stat-label {
  font-size: 12px;
  color: var(--ih-muted);
  margin-top: 8px;
}
.ih-listing-hero__stat--featured .ih-listing-hero__stat-label { color: rgba(255, 255, 255, 0.92); }
.ih-listing-hero__stat-source {
  font-size: 10px;
  color: var(--ih-muted-2);
  margin-top: 6px;
  font-family: var(--ih-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ih-listing-hero__stat--featured .ih-listing-hero__stat-source { color: rgba(255, 255, 255, 0.6); }

/* ── Barre de filtres (form) ─────────────────────────────── */
.ih-filters {
  position: sticky;
  top: 10px; /* v0.61.0 — léger écart en haut quand la barre se fige au scroll */
  z-index: 12;
  background: var(--ih-surface);
  border-bottom: 1px solid var(--ih-line);
  box-shadow: 0 2px 0 rgba(10, 13, 18, 0.02);
  /* v0.12.31 — la gouttière est portée par __top et __chips, PAS ici.
     L'hypothèse héritée d'immo (« __inner des hero sont sans padding ») est
     fausse sur invest : `.invest-page__hero-inner` est max-width AVEC padding.
     Résultat, la barre démarrait à 32 px quand tout le reste démarre à 52. */
  padding: 0;
}
.ih-filters__top {
  padding: 14px var(--ih-side-pad);
  max-width: var(--ih-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* v0.62.0 — barre de filtres sur 2 lignes (pages localisation) :
   Ligne 1 = switcher + vues ; Ligne 2 = recherche + transaction + filtres + tri. */
.ih-filters__top--nav { padding-bottom: 6px; }
.ih-filters__top--filters {
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--ih-line);
  padding-top: 12px;
}
.ih-filters__top--filters .ih-filters__spacer { display: none; }   /* remplacé par margin-left auto sur le tri */
.ih-filters__top--filters .ih-filters__sort { margin-left: auto; }

/* v0.62.3 — hauteur HOMOGÈNE de tous les contrôles de la ligne 2 (38px). */
.ih-filters__top--filters .ih-filters__toggle,
.ih-filters__top--filters .ih-filter-chip__btn,
.ih-filters__top--filters .ih-filters__sort-btn,
.ih-filters__top--filters .ih-filters__reset,
.ih-filters__top--filters .ih-filters__search--inline {
  height: 38px;
  box-sizing: border-box;
}
.ih-filters__top--filters .ih-filter-chip__btn,
.ih-filters__top--filters .ih-filters__sort-btn,
.ih-filters__top--filters .ih-filters__reset {
  display: inline-flex;
  align-items: center;
}
.ih-filters__top--filters .ih-filters__toggle { align-items: stretch; }

/* Bouton Réinitialiser — alignement + hover « en défonce » (enfoncé) */
.ih-filters__top--filters .ih-filters__reset:hover {
  background: var(--ih-accent-tint);
  border-style: solid;
  box-shadow: inset 0 2px 4px rgba(10, 13, 18, 0.18);
}

/* Recherche libre « inline » : pilule épurée, loupe (submit) à DROITE en défonce.
   Placée après le filtre Ville (v0.62.3). */
.ih-filters__search--inline {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 1 280px;
  max-width: 280px;
  /* v0.64.10 — hauteur fixe 38px par défaut (alignée sur les autres contrôles).
     Avant, sans hauteur, la pilule retombait à la hauteur du texte (~22px) sur les
     barres `.ih-filters__top` non `--filters` (archive-offre, /type-de-bien/...). */
  height: 38px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ih-line);
  border-radius: 999px;
  background: var(--ih-bg);
  overflow: hidden;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ih-filters__search--inline:focus-within {
  border-color: var(--ih-cyan-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 192, 255, .12);
}
.ih-filters__search--inline .ih-filters__search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 6px 0 16px;
  font-size: 14px;
  box-shadow: none;
}
.ih-filters__search--inline .ih-filters__search-input:focus {
  background: transparent;
  box-shadow: none;
}
.ih-filters__search--inline .ih-filters__search-clear {
  position: static;
  transform: none;
  font-size: 20px;
  padding: 0 2px;
  flex: 0 0 auto;
}
.ih-filters__search-go {
  flex: 0 0 auto;
  height: 100%;
  width: 44px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ih-ink);
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .30);   /* effet « défonce » / enfoncé */
  transition: background .15s;
}
.ih-filters__search-go:hover { background: var(--ih-cyan-700); }
.ih-filters__search-go svg { color: #fff; }
.ih-filters__sep { height: 24px; }
.ih-filters__spacer { flex: 1; }

/* v0.59.9 — Recherche libre (dans le titre) sur les pages localisation */
.ih-filters__search {
  position: relative;
  max-width: var(--ih-max-w);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ih-filters__search-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: var(--ih-muted);
  pointer-events: none;
}
.ih-filters__search-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--ih-line);
  border-radius: 999px;
  background: var(--ih-bg);
  font-size: 15px;
  color: var(--ih-ink);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ih-filters__search-input:focus {
  border-color: var(--ih-cyan-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 192, 255, .12);
}
.ih-filters__search-clear {
  font-size: 22px;
  line-height: 1;
  color: var(--ih-muted);
  text-decoration: none;
  padding: 0 4px;
  flex: 0 0 auto;
}
.ih-filters__search-clear:hover { color: var(--ih-ink); }
.ih-filters__search-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--ih-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.ih-filters__search-btn:hover { background: var(--ih-cyan-700); transform: translateY(-1px); }

/* Toggle transaction */
.ih-filters__toggle {
  display: flex;
  gap: 2px;
  background: #f2f3f6;
  padding: 3px;
  border-radius: 999px;
}
.ih-filters__toggle-btn {
  border: none;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--ih-muted);
  text-decoration: none;
  transition: var(--ih-transition);
}
.ih-filters__toggle-btn.is-active {
  background: var(--ih-surface);
  color: var(--ih-ink);
  box-shadow: 0 1px 3px rgba(10, 13, 18, 0.1);
}

/* Tri */
.ih-filters__sort { position: relative; }
.ih-filters__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  background: var(--ih-surface);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ih-ink-soft);
  transition: var(--ih-transition);
}
.ih-filters__sort-btn:hover {
  border-color: var(--ih-ink-soft);
  color: var(--ih-ink);
}
.ih-filters__sort-label {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ih-muted-2);
}
.ih-filters__sort-value { font-weight: 500; color: var(--ih-ink); }

/* Toggle vue */
.ih-filters__view {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ih-muted);
}
.ih-filters__view-label {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ih-muted-2);
}
.ih-filters__view-group {
  display: flex;
  gap: 2px;
  background: #f2f3f6;
  padding: 3px;
  border-radius: 8px;
}
.ih-filters__view-btn {
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--ih-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--ih-transition);
}
.ih-filters__view-btn:hover { color: var(--ih-ink); }
.ih-filters__view-btn.is-active {
  background: var(--ih-surface);
  color: var(--ih-ink);
  box-shadow: 0 1px 3px rgba(10, 13, 18, 0.1);
}
.ih-filters__view-btn-label {
  font-size: 13px;
  font-weight: 500;
}

/* ── CTA "Voir sur la carte" (v0.43.5) — pill cyan plein, taille primaire ── */
.ih-filters__view-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px; /* v0.62.2 — harmonisé avec le groupe Blocs/Liste (8px) */
  background: var(--ih-cyan);
  color: #fff; /* v0.12.46 — texte BLANC : le fond est le cyan de marque, l'encre foncée y passait mal (demande user). L'état actif, sur fond ink, était déjà en blanc. */
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--ih-transition);
  font-family: inherit;
  box-shadow: 0 4px 14px -2px rgba(0, 200, 224, 0.45);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.ih-filters__view-map > span { white-space: nowrap; }
/* Petit pulse subtil pour attirer l'œil à l'arrivée sur la page */
.ih-filters__view-map::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 10px; /* v0.62.2 — suit le radius 8px du bouton (inset -2px) */
  border: 2px solid var(--ih-cyan);
  opacity: 0.5;
  animation: ih-map-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ih-map-pulse {
  0%   { transform: scale(1);    opacity: 0.5; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}
.ih-filters__view-map:hover,
.ih-filters__view-map:focus-visible {
  background: var(--ih-cyan-600, var(--ih-cyan));
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(0, 200, 224, 0.6);
}
.ih-filters__view-map.is-active {
  background: var(--ih-ink);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(10, 13, 18, 0.4);
}
.ih-filters__view-map.is-active::before { display: none; }
.ih-filters__view-map svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Chips */
.ih-filters__chips {
  padding: 14px var(--ih-side-pad); /* v0.12.31 — même gouttière que __top */
  max-width: var(--ih-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ih-filter-chip { position: relative; }
.ih-filter-chip__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--ih-line);
  background: var(--ih-surface);
  color: var(--ih-ink-soft);
  transition: var(--ih-transition);
}
.ih-filter-chip__btn:hover {
  border-color: var(--ih-ink-soft);
  color: var(--ih-ink);
}
.ih-filter-chip.is-active .ih-filter-chip__btn,
.ih-filter-chip.is-open .ih-filter-chip__btn {
  background: var(--ih-ink);
  color: #fff;
  border-color: var(--ih-ink);
}
.ih-filter-chip__value {
  font-size: 12px;
  opacity: 0.85;
  font-family: var(--ih-font-mono);
}

.ih-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--ih-cyan-tint);
  color: var(--ih-cyan-700);
  cursor: pointer;
  transition: var(--ih-transition);
  user-select: none;
}
.ih-filter-tag input { display: none; }
.ih-filter-tag:hover { background: var(--ih-cyan); color: var(--ih-ink); }
.ih-filter-tag.is-active {
  background: var(--ih-cyan-700);
  color: #fff;
}

.ih-filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ih-accent-700);
  text-decoration: none;
  border-radius: 999px;
  border: 1px dashed var(--ih-accent-tint);
  transition: var(--ih-transition);
}
.ih-filters__reset:hover {
  background: var(--ih-accent-tint);
  border-style: solid;
}

/* ── Popovers ────────────────────────────────────────────── */
.ih-pop { position: relative; }
.ih-pop__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius);
  box-shadow: var(--ih-shadow-lg);
  padding: 16px;
  z-index: 100;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.ih-pop.is-open .ih-pop__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ih-pop__panel--sm { min-width: 200px; }
.ih-pop__panel--md { min-width: 280px; }
.ih-pop__panel--lg { min-width: 480px; }
.ih-pop__panel--range { min-width: 280px; }
/* v0.66.131 — ≤860px (mobiles + tablettes portrait) : popover de filtre en bottom-sheet
   plein largeur (sinon, ouvert près du bord droit, il débordait de ~51px en 768px). */
@media (max-width: 860px) {
  .ih-pop__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    max-width: none;
    min-width: 0;
  }
}

.ih-pop__title {
  font-size: 11px;
  font-family: var(--ih-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ih-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
/* v0.66.40 — Toggle unité de prix (Annuel / Mensuel) dans la facette Budget. */
.ih-pop__unit {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.ih-pop__unit-btn {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--ih-line);
  background: var(--ih-surface);
  color: var(--ih-muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}
.ih-pop__unit-btn.is-active {
  background: var(--ih-ink);
  color: #fff;
  border-color: var(--ih-ink);
}
.ih-pop__hint {
  font-size: 12px;
  color: var(--ih-muted);
  margin: 0;
  line-height: 1.45;
}

.ih-pop__range {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
}
.ih-pop__range label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ih-pop__range label span {
  font-size: 11px;
  color: var(--ih-muted);
  font-family: var(--ih-font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ih-pop__range input {
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  background: var(--ih-bg);
}
.ih-pop__range input:focus {
  outline: none;
  border-color: var(--ih-cyan);
  background: var(--ih-surface);
}
.ih-pop__range-sep {
  font-size: 13px;
  color: var(--ih-muted-2);
  padding-bottom: 10px;
}

.ih-pop__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ih-pop__preset {
  border: 1px solid var(--ih-line);
  background: var(--ih-bg);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--ih-font-mono);
  cursor: pointer;
  color: var(--ih-ink-soft);
  transition: var(--ih-transition);
}
.ih-pop__preset:hover {
  border-color: var(--ih-cyan);
  color: var(--ih-cyan-700);
}

.ih-pop__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 14px;
}
.ih-pop__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}
.ih-pop__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
}
.ih-pop__check:hover { background: var(--ih-bg); }
.ih-pop__check input { margin: 0; accent-color: var(--ih-ink); }
.ih-pop__check span:first-of-type { flex: 1; }
.ih-pop__check-count {
  font-size: 11px;
  font-family: var(--ih-font-mono);
  color: var(--ih-muted-2);
}

/* Facet désactivée (count dynamique = 0 avec les filtres courants).
   Évite "le filtre dit 85 mais le listing affiche 0" — cf. brief Nicolas. */
.ih-pop__check.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ih-pop__radios {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.ih-pop__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.ih-pop__radio:hover { background: var(--ih-bg); }
.ih-pop__radio input { accent-color: var(--ih-ink); }

.ih-pop__dpe {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.ih-pop__dpe-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
  user-select: none;
}
.ih-pop__dpe-item input { display: none; }
.ih-pop__dpe-item span { position: relative; z-index: 1; }
.ih-pop__dpe-item--a { background: #00a651; }
.ih-pop__dpe-item--b { background: #4cae4f; }
.ih-pop__dpe-item--c { background: #c5d92a; color: #2a2a2a; }
.ih-pop__dpe-item--d { background: #fff200; color: #2a2a2a; }
.ih-pop__dpe-item--e { background: #fdb913; }
.ih-pop__dpe-item--f { background: #f37021; }
.ih-pop__dpe-item--g { background: #ed1c24; }
.ih-pop__dpe-item:has(input:checked) {
  box-shadow: 0 0 0 3px var(--ih-ink) inset;
  transform: scale(1.05);
}

.ih-pop__item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ih-ink-soft);
  text-decoration: none; /* v0.61.0 — .ih-pop__item utilisé aussi en <a> (tri zones) */
}
.ih-pop__item:hover { background: var(--ih-bg); color: var(--ih-ink); }
.ih-pop__item.is-active {
  background: var(--ih-ink);
  color: #fff;
  font-weight: 500;
}

.ih-pop__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ih-line);
  padding-top: 12px;
  margin-top: 12px;
}
.ih-pop__panel--sm .ih-pop__actions {
  border: none;
  padding-top: 0;
  margin-top: 4px;
  justify-content: flex-end;
}
.ih-pop__clear {
  border: none;
  background: transparent;
  color: var(--ih-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.ih-pop__clear:hover { color: var(--ih-accent-700); }

/* ── Résultats / header ──────────────────────────────────── */
.ih-listing-results {
  padding: 28px var(--ih-side-pad) 56px;
  background: #fafbfc;
  min-height: 60vh;
}
.ih-listing-results__inner {
  max-width: var(--ih-max-w);
  margin: 0 auto;
}
.ih-listing-results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.ih-listing-results__count {
  font-size: 15px;
  color: var(--ih-muted);
}
.ih-listing-results__count strong {
  color: var(--ih-ink);
  font-weight: 500;
  font-size: 17px;
}
.ih-listing-results__sep {
  margin: 0 8px;
  color: var(--ih-muted-2);
}
.ih-listing-results__alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--ih-line);
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--ih-surface);
  color: var(--ih-ink-soft);
  cursor: pointer;
  font-family: inherit;
  transition: var(--ih-transition);
}
.ih-listing-results__alert:hover {
  border-color: var(--ih-cyan);
  color: var(--ih-cyan-700);
}

/* ── Vue LISTE ───────────────────────────────────────────── */
.ih-listing-items--list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ih-card-list {
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius-lg);
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ih-card-list:hover {
  border-color: var(--ih-cyan-tint);
  box-shadow: var(--ih-shadow);
}
.ih-card-list__img-link { display: block; }
.ih-card-list__img {
  position: relative;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
}
.ih-card-list__img img,
.ih-card-list__img .ih-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ih-card-list__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ih-card-list__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-ink-soft);
  transition: var(--ih-transition);
}
.ih-card-list__fav:hover {
  background: var(--ih-accent);
  color: #fff;
}

.ih-card-list__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ih-card-list__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ih-muted);
  font-size: 12px;
}
.ih-card-list__ref {
  font-family: var(--ih-font-mono);
  color: var(--ih-muted-2);
  font-size: 11px;
}
.ih-card-list__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 4px 0 0;
}
.ih-card-list__title a {
  color: var(--ih-ink);
  text-decoration: none;
}
.ih-card-list__title a:hover { color: var(--ih-cyan-700); }

.ih-card-list__meta {
  display: flex;
  gap: 24px;
  color: var(--ih-ink-soft);
  font-size: 13px;
  flex-wrap: wrap;
}
.ih-card-list__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ih-muted);
}
.ih-card-list__meta-item strong {
  color: var(--ih-ink);
  font-weight: 500;
}
.ih-card-list__meta-label {
  font-size: 11px;
  font-family: var(--ih-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ih-muted-2);
}
.ih-card-list__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.ih-card-list__pricing {
  padding: 20px;
  border-left: 1px solid var(--ih-line);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.ih-card-list__price-label {
  font-size: 11px;
  color: var(--ih-muted);
  font-family: var(--ih-font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ih-card-list__price {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ih-ink);
  margin-top: 4px;
  line-height: 1.1;
}
.ih-card-list__price-m2 {
  font-size: 12px;
  color: var(--ih-muted);
  margin-top: 4px;
  font-family: var(--ih-font-mono);
}

/* ── Vue GRILLE (blocs compacts) ─────────────────────────── */
.ih-listing-items--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ih-card-grid {
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.ih-card-grid:hover {
  border-color: var(--ih-cyan-tint);
  box-shadow: var(--ih-shadow);
  transform: translateY(-2px);
}
.ih-card-grid__img-link { display: block; }
.ih-card-grid__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ih-card-grid__img img,
.ih-card-grid__img .ih-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ih-card-grid__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
}
.ih-card-grid__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-ink-soft);
  transition: var(--ih-transition);
}
.ih-card-grid__fav:hover {
  background: var(--ih-accent);
  color: #fff;
}
.ih-card-grid__type {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 13, 18, 0.78);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
/* v0.66.39 — Tag transaction (Achat / Location / AMI) plus visible : fond foncé, typo bleu clair. */
.ih-tag--trans {
  background: #0f1320;
  color: #8fd0ff;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(143, 208, 255, .28);
}
/* v0.66.39 — Badges Territoire d'Industrie / Clé en main (remplacent le badge type sur l'image). */
.ih-tag--ti {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}
.ih-tag--cle {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}
.ih-card-grid__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
/* v0.66.49 — Catégories dans le CORPS de carte (type de bien + secteur(s)),
   homogène sur toutes les vues. Remplace l'ancien badge type-de-bien sur l'image
   + l'unique secteur des cartes zone (désormais TOUS les secteurs). */
.ih-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* v0.66.50 — tags catégories cliquables (raccord avec le filtre). */
.ih-card-cats a.ih-tag {
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.ih-card-cats a.ih-tag:hover {
  border-color: var(--ih-cyan-600);
  color: var(--ih-cyan-700);
  background: var(--ih-cyan-tint);
}
.ih-card-grid__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ih-muted);
  font-size: 11.5px;
}
.ih-card-grid__title {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.ih-card-grid__title a {
  color: var(--ih-ink);
  text-decoration: none;
}
.ih-card-grid__title a:hover { color: var(--ih-cyan-700); }
.ih-card-grid__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ih-ink-soft);
  flex-wrap: wrap;
}
.ih-card-grid__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ih-card-grid__dpe {
  font-family: var(--ih-font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.04em;
}
.ih-card-grid__dpe--a { background: #00a651; }
.ih-card-grid__dpe--b { background: #4cae4f; }
.ih-card-grid__dpe--c { background: #c5d92a; color: #2a2a2a; }
.ih-card-grid__dpe--d { background: #fff200; color: #2a2a2a; }
.ih-card-grid__dpe--e { background: #fdb913; }
.ih-card-grid__dpe--f { background: #f37021; }
.ih-card-grid__dpe--g { background: #ed1c24; }

.ih-card-grid__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ih-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ih-card-grid__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--ih-ink);
  letter-spacing: -0.015em;
}
.ih-card-grid__price-m2 {
  font-size: 11px;
  color: var(--ih-muted);
  font-family: var(--ih-font-mono);
}

/* ── Vue CARTE ───────────────────────────────────────────── */
.ih-listing-map {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 12px;
  height: calc(100vh - 240px);
  min-height: 540px;
  border-radius: var(--ih-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ih-line);
  background: var(--ih-surface);
}
.ih-listing-map__pane {
  position: relative;
  background: var(--ih-bg);
  isolation: isolate; /* v0.50.7 — confine les z-index Leaflet (controls 1000, popups 700) dans ce stacking context, pour qu'ils ne percent pas au-dessus du header/topbar/mega-menu */
}
.ih-listing-map__canvas {
  width: 100%;
  height: 100%;
}
/* v0.11.48 — #invest-map (id, height:600px dans invest.css) doit remplir le pane du split. */
.ih-listing-map__pane #invest-map { height: 100%; border: 0; border-radius: 0; }
.ih-listing-map__notice {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ih-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--ih-shadow-sm);
  z-index: 400;
  font-family: var(--ih-font-mono);
}
.ih-listing-map__list {
  background: var(--ih-surface);
  border-left: 1px solid var(--ih-line);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ih-listing-map__list-head {
  font-size: 11px;
  font-family: var(--ih-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ih-muted);
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--ih-line);
  margin-bottom: 4px;
}

/* Card map (sidebar) */
.ih-card-map {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.ih-card-map:hover {
  background: var(--ih-bg);
}
.ih-card-map.is-active {
  background: var(--ih-cyan-tint);
  box-shadow: 0 0 0 1px var(--ih-cyan) inset;
}
.ih-card-map--no-coords {
  opacity: 0.55;
}
.ih-card-map__img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ih-bg);
}
.ih-card-map__img img,
.ih-card-map__img .ih-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ih-card-map__badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  padding: 2px 6px;
}
.ih-card-map__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ih-card-map__loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ih-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ih-card-map__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ih-card-map__title a {
  color: var(--ih-ink);
  text-decoration: none;
}
.ih-card-map__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  font-size: 12px;
}
.ih-card-map__surface {
  color: var(--ih-muted);
  font-family: var(--ih-font-mono);
}
.ih-card-map__price {
  color: var(--ih-ink);
  font-weight: 600;
}

/* MarkerCluster — couleurs HUB (override des defaults verts/jaunes/rouges) */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background-color: rgba(0, 192, 255, 0.25); }
.marker-cluster-small  div,
.marker-cluster-medium div,
.marker-cluster-large  div {
  background-color: var(--ih-cyan, #00c0ff);
  color: #fff;
  font-family: var(--ih-font-mono);
  font-weight: 600;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(10, 13, 18, 0.25);
}

/* Pin Leaflet — teardrop SVG (location bleu nuit / vente corail / ZAE cyan) */
.ih-pin { background: transparent; border: none; }
.ih-pin__shape {
  display: block;
  width: 32px;
  height: 42px;
  filter: drop-shadow(0 2px 4px rgba(10, 13, 18, 0.35));
  transition: transform 0.15s ease;
}
.ih-pin__shape svg { display: block; width: 100%; height: 100%; }
.ih-pin__shape--location svg path { fill: var(--ih-ink); }
.ih-pin__shape--vente    svg path { fill: var(--ih-accent); }
.ih-pin__shape--zae      svg path { fill: var(--ih-cyan-700); }
.leaflet-marker-icon:hover .ih-pin__shape { transform: scale(1.15); }

/* Popup Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: var(--ih-radius) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: 240px !important; }
.ih-map-popup img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.ih-map-popup__body { padding: 12px; }
.ih-map-popup__loc {
  font-size: 11px;
  color: var(--ih-muted);
  margin-bottom: 4px;
}
.ih-map-popup__title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ih-ink) !important;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.3;
}
.ih-map-popup__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--ih-line);
  padding-top: 8px;
  font-size: 12px;
}
.ih-map-popup__row strong { font-size: 14px; color: var(--ih-ink); }

/* ── Empty state ─────────────────────────────────────────── */
.ih-listing-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--ih-surface);
  border: 1px dashed var(--ih-line);
  border-radius: var(--ih-radius-lg);
}
.ih-listing-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--ih-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-muted-2);
}
.ih-listing-empty h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}
.ih-listing-empty p {
  color: var(--ih-muted);
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 14.5px;
  line-height: 1.5;
}
.ih-listing-empty__actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Pivot off-market ────────────────────────────────────── */
.ih-listing-pivot {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--ih-ink); /* v0.11.15 — harmonisé sur .ih-sidebar-pivot (bleu nuit + halo) */
  color: #fff;
  border-radius: var(--ih-radius-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.ih-listing-pivot::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--ih-accent);
  opacity: 0.25;
  filter: blur(56px);
  pointer-events: none;
}
.ih-listing-pivot > * {
  position: relative;
  z-index: 1;
}
.ih-listing-pivot__eyebrow {
  font-size: 11px;
  font-family: var(--ih-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ih-cyan); /* v0.11.15 — cyan comme .ih-sidebar-pivot__eyebrow */
  margin-bottom: 8px;
}
.ih-listing-pivot__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ih-listing-pivot__title-light {
  opacity: 0.85;
  font-weight: 400;
}
.ih-listing-pivot__cta {
  background: var(--ih-surface);
  color: var(--ih-ink); /* v0.11.15 — texte navy sur bouton blanc (fond CTA bleu nuit) */
}

/* ── Pagination ──────────────────────────────────────────── */
.ih-listing-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.ih-listing-pagination__pages {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.ih-listing-pagination__pages .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ih-ink);
  text-decoration: none;
  transition: var(--ih-transition);
  gap: 4px;
}
/* v0.12.49 — aligné sur la pagination de /news/ (demande user), qui utilise
   les boutons du thème : page courante en CYAN et non en encre foncée, pastille
   arrondie, et un contour discret sur les autres pages pour qu'on les voie. */
.ih-listing-pagination__pages .page-numbers {
  border: 1px solid var(--ih-line, #e6e8ee);
  border-radius: 999px;
  font-weight: 500;
}
.ih-listing-pagination__pages .page-numbers:hover {
  border-color: var(--ih-cyan);
  color: var(--ih-cyan-700);
  background: transparent;
}
.ih-listing-pagination__pages .page-numbers.current {
  background: var(--ih-cyan);
  border-color: var(--ih-cyan);
  color: #fff;
  font-weight: 600;
}
.ih-listing-pagination__pages .page-numbers.current:hover {
  background: var(--ih-cyan);
  color: #fff;
}
.ih-listing-pagination__pages .page-numbers.dots {
  color: var(--ih-muted-2);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ih-listing-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .ih-listing-hero__title { font-size: 42px; }
  .ih-listing-map { grid-template-columns: 1fr; height: auto; }
  .ih-listing-map__pane { height: 460px; }
  .ih-listing-map__list {
    border-left: none;
    border-top: 1px solid var(--ih-line);
    max-height: 380px;
  }
}

@media (max-width: 1024px) {
  .ih-card-list { grid-template-columns: 200px 1fr 200px; }
  .ih-filters__view-label,
  .ih-filters__sort-label { display: none; }
}

@media (max-width: 820px) {
  .ih-card-list {
    grid-template-columns: 1fr;
  }
  .ih-card-list__img { min-height: 180px; }
  .ih-card-list__pricing {
    border-left: none;
    border-top: 1px solid var(--ih-line);
    flex-direction: row;
    align-items: center;
  }
  .ih-listing-pivot { grid-template-columns: 1fr; text-align: center; }
  .ih-listing-pivot__cta { justify-self: center; }
  .ih-pop__panel--lg { min-width: 320px; }
  .ih-pop__cols { grid-template-columns: 1fr; }
  .ih-filters__top { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 640px) {
  .ih-listing-hero__title { font-size: 34px; }
  .ih-listing-hero__stats { grid-template-columns: 1fr 1fr; }
  .ih-listing-hero__stat:nth-child(3) { grid-column: span 2; }
  .ih-filters__chips { gap: 6px; }
  .ih-filter-chip__btn,
  .ih-filter-tag { font-size: 12px; padding: 6px 10px; }
  .ih-listing-items--grid { grid-template-columns: 1fr; gap: 12px; } /* A9 — 1 carte/ligne mobile */
  .ih-card-grid__title { font-size: 13px; }
}

@media (max-width: 420px) {
  .ih-listing-items--grid { grid-template-columns: 1fr; }
}

/* ═══ Mobile-first « recherche d'abord » — inspiration SeLoger (v0.66.139) ═══
   Sur téléphone : on va droit aux résultats (pas de hero éditorial ni de texte SEO qui
   allonge le scroll), la carte passe en plein écran, et un bouton flottant bascule
   Carte ↔ Liste. Le contenu masqué reste dans le DOM (SEO préservé). */

/* Bouton flottant Carte/Liste — caché sur desktop */
.ih-map-fab { display: none; }

@media (max-width: 768px) {
  /* 1) A10 — garder le H1 visible (compact) sur mobile, masquer le reste du hero éditorial. */
  .ih-type-mesh,
  .ih-listing-pivot { display: none; }
  /* Retour user — padding horizontal = var(--ih-side-pad) pour aligner le H1 sur le reste. */
  .ih-listing-hero,
  .ih-zones-hero { padding: 14px var(--ih-side-pad) 6px !important; min-height: 0 !important; background: none !important; }
  .ih-listing-hero__pill, .ih-listing-hero__desc, .ih-listing-hero__stats, .ih-listing-hero__terr,
  .ih-zones-hero__pill, .ih-zones-hero__desc, .ih-zones-hero__stats, .ih-zones-hero__stat { display: none !important; }
  .ih-listing-hero__title, .ih-zones-hero__title { font-size: 22px !important; line-height: 1.2 !important; margin: 0 !important; color: var(--ih-ink) !important; }
  /*
   * 🔴 BLANC SUR BLANC. Le <h1> ne porte pas son texte : il est composé de
   * DEUX spans, `__title-em` et `__title-muted`, qui déclarent leur propre
   * couleur BLANCHE pour le héros sombre du desktop (bloc « dégradé bleu »
   * plus bas dans ce fichier). Ici on repasse le fond en blanc
   * (`background: none !important`) et on recolore le <h1>… mais la couleur
   * du parent ne l'emporte jamais sur celle des enfants.
   *
   * Résultat : TOUT le titre du listing était invisible sur mobile, ce qui
   * donnait un héros d'apparence vide sous l'en-tête. Signalé par le user le
   * 2026-09-30, après que j'aie d'abord conclu à tort à un simple excès de
   * marge.
   *
   * 🔁 À retenir : quand on inverse le fond d'un composant par média, il faut
   * recolorer TOUS ses descendants qui déclarent une couleur, pas seulement
   * la racine.
   */
  .ih-listing-hero__title-em { color: var(--ih-ink) !important; }
  .ih-listing-hero__title-muted { color: var(--ih-muted) !important; }

  /* 2) Carte plein écran : la carte occupe l'écran, la liste latérale disparaît */
  .ih-listing-map { grid-template-columns: 1fr; height: auto; gap: 0; }
  .ih-listing-map__pane { height: calc(100dvh - 150px); min-height: 420px; }
  .ih-listing-map__list { display: none; }

  /* 3) Le listing = recherche : on masque la barre contact collante (le contact se fait
        sur la fiche annonce). Seul le bouton Carte/Liste reste flottant. */
  body.post-type-archive-offre .ih-sticky-contact,
  body.post-type-archive-zone_activite .ih-sticky-contact,
  body.tax-type-de-bien .ih-sticky-contact,
  body.tax-type-de-transaction .ih-sticky-contact,
  body.tax-secteur-d-activite .ih-sticky-contact { display: none !important; } /* A2 — archives taxo = pages recherche → pas de barre contact (évite l'overlap avec le FAB Carte) */

  /* 3b) Vue CARTE plein écran : on retire le footer + on décluttere la carte */
  body.ih-map-view .ih-footer-wrap { display: none; }
  body.ih-map-view .ih-listing-map__pane { height: calc(100dvh - 208px); min-height: 460px; }
  body.ih-map-view .ih-listing-map .leaflet-control-layers { display: none; }
  body.ih-map-view .ih-listing-map__notice { display: none; }

  /* 4) Bouton flottant Carte/Liste (pilule centrée en bas) */
  .ih-map-fab {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--ih-ink, #0f1b2d);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.14);
  }
  .ih-map-fab svg { flex: none; }
  .ih-map-fab--onmap { background: var(--ih-cyan, #06b6d4); color: #06202a; }
}

/* ═══ Panneau de filtres unique — bar mobile + overlay plein écran (v0.66.144) ═══
   Desktop : les wrappers sont transparents (display:contents) → aucun changement.
   Mobile : une barre compacte « Filtres » ouvre un panneau plein écran (façon SeLoger). */
.ih-filters__mobilebar,
.ih-filters__panelhead,
.ih-filters__panelfoot { display: none; }
.ih-filters__panel,
.ih-filters__panelbody { display: contents; }

@media (max-width: 768px) {
  /* Barre compacte sticky */
  .ih-filters__mobilebar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 500;
    padding: 10px var(--ih-side-pad);
    background: var(--ih-bg); border-bottom: 1px solid var(--ih-line);
  }
  .ih-filters__open {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ih-ink, #0f1b2d); color: #fff; font-weight: 600; font-size: 15px;
  }
  .ih-filters__open-badge {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ih-cyan, #06b6d4); color: #06202a; font-size: 12px; font-weight: 700;
  }
  .ih-filters__mobilecount { color: var(--ih-muted); font-size: 14px; }
  .ih-filters__mobilecount strong { color: var(--ih-text); }

  /* Panneau plein écran — au-dessus du header du site et du FAB */
  .ih-filters__panel {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 9999;
    background: var(--ih-bg);
    transform: translateY(100%); transition: transform .28s ease;
    visibility: hidden;
  }
  body.ih-filters-locked .ih-map-fab { display: none; } /* le FAB ne doit pas percer le panneau */
  /* Le form .ih-filters est sticky z:12 → il crée un contexte d'empilement qui piège le
     panneau sous le header (z:100). Quand le panneau est ouvert, on hisse le form au-dessus
     du header pour que le panneau plein écran recouvre tout. */
  body.ih-filters-locked .ih-filters { z-index: 9999; }
  .ih-filters__panel.is-open { transform: translateY(0); visibility: visible; }
  .ih-filters__panelhead {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px var(--ih-side-pad); border-bottom: 1px solid var(--ih-line);
    position: sticky; top: 0; background: var(--ih-bg); z-index: 2;
  }
  .ih-filters__paneltitle { font-size: 18px; font-weight: 700; }
  .ih-filters__panelclose { background: 0; border: 0; font-size: 30px; line-height: 1; color: var(--ih-muted); cursor: pointer; padding: 0 4px; }
  .ih-filters__panelbody {
    display: block; flex: 1 1 auto; overflow-y: auto;
    padding: 16px var(--ih-side-pad) 24px;
  }
  /* Empilement vertical dans le panneau + on retire le toggle de vue (remplacé par le FAB) */
  .ih-filters__panelbody .ih-filters__top { flex-direction: column; align-items: stretch; gap: 14px; }
  .ih-filters__panelbody .ih-filters__view,
  .ih-filters__panelbody .ih-filters__spacer,
  .ih-filters__panelbody .ih-filters__sep,
  .ih-filters__panelbody .ih-divider--v { display: none; }
  .ih-filters__panelbody .ih-filters__chips { flex-wrap: wrap; gap: 10px; margin-top: 6px; }
  /* Les popovers de chips (bottom-sheet) doivent passer AU-DESSUS du panneau */
  .ih-filters__panel .ih-pop__panel { z-index: 10000; }
  /* Recherche libre : dans le panneau vertical, le `flex:0 1 280px` transformait le
     280px en HAUTEUR (grosse pilule) → on réinitialise en pleine largeur, 48px de haut. */
  .ih-filters__panelbody .ih-filters__search--inline {
    flex: none; width: 100%; max-width: none; height: 48px; border-radius: 12px;
  }
  .ih-filters__panelbody .ih-filters__search-go { width: 48px; }

  /* Pied collant : CTA Afficher les résultats */
  .ih-filters__panelfoot {
    display: flex; align-items: center; gap: 14px;
    padding: 14px var(--ih-side-pad); border-top: 1px solid var(--ih-line);
    position: sticky; bottom: 0; background: var(--ih-bg);
  }
  .ih-filters__apply { flex: 1 1 auto; justify-content: center; }
  .ih-filters__panelreset { color: var(--ih-muted); text-decoration: underline; font-size: 14px; white-space: nowrap; }
  body.ih-filters-locked { overflow: hidden; }
}

/* ─── Template Type de bien : Maillage géographique + SEO Text ────────────
   Brief Nicolas template #1 — sections affichées seulement quand un type est filtré. */
.ih-type-mesh {
  padding: 56px 0 32px;
  background: var(--ih-cream);
  border-top: 1px solid var(--ih-line);
}
.ih-type-mesh__title {
  font-family: var(--ih-font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ih-ink);
}
.ih-type-mesh__desc {
  color: var(--ih-muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.ih-type-mesh__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ih-type-mesh__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius);
  color: var(--ih-ink);
  text-decoration: none;
  font-size: 14px;
  transition: var(--ih-transition);
}
.ih-type-mesh__item:hover {
  border-color: var(--ih-cyan-600);
  color: var(--ih-cyan-700);
}
.ih-type-mesh__item-name { flex: 1; }
.ih-type-mesh__item-count {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  color: var(--ih-muted);
  background: var(--ih-cream);
  padding: 3px 8px;
  border-radius: var(--ih-radius-full);
}
@media (max-width: 900px) { .ih-type-mesh__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ih-type-mesh__grid { grid-template-columns: 1fr; } }

.ih-type-seo {
  padding: 32px 0 64px;
  background: var(--ih-cream);
}
.ih-type-seo__title {
  font-family: var(--ih-font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ih-ink);
}
.ih-type-seo__body {
  /* v0.65.6 — pleine largeur + 2 colonnes (fini le bloc étroit 820px + vide à droite). */
  max-width: none;
  columns: 2;
  column-gap: 56px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ih-ink-soft);
}
.ih-type-seo__body > :first-child { margin-top: 0; }
.ih-type-seo__body p { margin: 0 0 14px; break-inside: avoid; }
.ih-type-seo__body p:last-child { margin-bottom: 0; }
/* h2/h3 internes : ne pas couper une section entre 2 colonnes, ni orpheliner un titre en bas de colonne. */
.ih-type-seo__body h2,
.ih-type-seo__body h3 { break-inside: avoid; break-after: avoid; }
.ih-type-seo__body h2 {
  font-size: clamp(28px, 3vw, 30px);
  line-height: 1.25;
  margin: 1.4em 0 .5em;
}
.ih-type-seo__body h3 {
  font-size: clamp(19px, 2.2vw, 21px);
  line-height: 1.3;
  margin: 1em 0 .35em;
}
/* v0.66.174 — H4 (WYSIWYG) : marge dessus/dessous (portage immo). */
.ih-type-seo__body h4 {
  font-size: clamp(16px, 1.9vw, 17px);
  line-height: 1.35;
  margin: 1em 0 .5em;
  break-inside: avoid;
  break-after: avoid;
}
/* v0.66.174 — listes à puces/numéros visibles (portage immo). */
.ih-type-seo__body ul,
.ih-type-seo__body ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
  break-inside: avoid;
}
.ih-type-seo__body ul { list-style: disc; }
.ih-type-seo__body ol { list-style: decimal; }
.ih-type-seo__body li { margin: 0 0 .35em; }
.ih-type-seo__body strong { color: var(--ih-ink); font-weight: 500; }
@media (max-width: 720px) {
  .ih-type-seo__body { columns: 1; }
}

/* ============================================================
   v0.49.1 — POI infrastructure overlay (aéroports + ports)
   ============================================================ */
.ih-poi-icon {
    background: transparent !important;
    border: none !important;
}
.ih-poi-icon__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ih-poi-icon--airport .ih-poi-icon__inner {
    background: #2e3a55; /* var(--ih-ink-soft) — bleu nuit pour aéroports */
}
.ih-poi-icon--port .ih-poi-icon__inner {
    background: #0088b8; /* var(--ih-cyan-700) — cyan plus foncé pour ports */
}
.ih-poi-icon:hover .ih-poi-icon__inner {
    transform: scale(1.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Popup POI (override Leaflet default) */
.ih-poi-popup {
    font-family: var(--ih-font-sans);
    padding: 4px 0;
    min-width: 140px;
}
.ih-poi-popup__type {
    font-family: var(--ih-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ih-muted);
    margin-bottom: 4px;
}
.ih-poi-popup__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ih-ink);
    line-height: 1.25;
}
.ih-poi-popup__code {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    background: var(--ih-bg);
    border-radius: 3px;
    font-family: var(--ih-font-mono);
    font-size: 10px;
    color: var(--ih-muted);
    letter-spacing: 0.08em;
}

/* Layer control Leaflet — style cohérent avec la nav */
.leaflet-control-layers {
    border-radius: 8px !important;
    border: 1px solid var(--ih-line) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    font-family: var(--ih-font-sans) !important;
    font-size: 13px !important;
}
.leaflet-control-layers-toggle {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px 20px !important;
}

/* ============================================================
   v0.49.2 — Padding popups Leaflet + légende déployée
   ============================================================ */

/* Padding plus généreux dans les bulles d'info de la map */
.ih-listing-map .leaflet-popup-content-wrapper {
    padding: 6px 4px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20, 37, 70, .15);
}
.ih-listing-map .leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.45;
}
.ih-listing-map .leaflet-popup-tip {
    box-shadow: 0 4px 8px rgba(20, 37, 70, .08);
}

/* Espacements internes des contenus de popup */
.ih-map-popup,
.ih-poi-popup {
    padding: 2px 0;
}
.ih-map-popup img {
    margin-bottom: 10px;
    border-radius: 6px;
}
.ih-map-popup__body {
    padding: 0;
}
.ih-poi-popup__name {
    margin-top: 2px;
}
.ih-poi-popup__code {
    margin-top: 8px;
}

/* Layer control "Légende" déployée par défaut + style cohérent DS */
.ih-listing-map .leaflet-control-layers {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--ih-line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20, 37, 70, .12);
    font-family: var(--ih-font-sans);
    font-size: 13px;
    color: var(--ih-ink);
}
.ih-listing-map .leaflet-control-layers-expanded {
    padding: 12px 14px;
    min-width: 160px;
}
.ih-listing-map .leaflet-control-layers-list {
    margin: 0;
}
.ih-listing-map .leaflet-control-layers label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-weight: 500;
}
.ih-listing-map .leaflet-control-layers label input[type="checkbox"] {
    margin: 0;
    accent-color: var(--ih-cyan);
}
.ih-listing-map .leaflet-control-layers-overlays::before {
    content: 'Layers';
    display: block;
    font-family: var(--ih-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ih-muted);
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ih-line);
}

/* v0.64.6 — hauteur HOMOGÈNE (38px) des contrôles de la barre /zones-activites/
   (la barre utilise .ih-filters__top, hors scope de la règle --filters). */
#ih-zones-filters .ih-filters__search--inline,
#ih-zones-filters .ih-filter-chip__btn,
#ih-zones-filters .ih-filters__sort-btn,
#ih-zones-filters .ih-filters__reset,
#ih-zones-filters .ih-filters__view-group,
#ih-zones-filters .ih-filters__view-btn,
#ih-zones-filters .ih-filters__view-map,
#ih-partner-filters .ih-filters__search--inline,
#ih-partner-filters .ih-filter-chip__btn,
#ih-partner-filters .ih-filters__reset {
  height: 38px;
  box-sizing: border-box;
}
#ih-zones-filters .ih-filter-chip__btn,
#ih-zones-filters .ih-filters__sort-btn,
#ih-zones-filters .ih-filters__reset,
#ih-zones-filters .ih-filters__view-btn,
#ih-zones-filters .ih-filters__view-map,
#ih-partner-filters .ih-filter-chip__btn,
#ih-partner-filters .ih-filters__reset {
  display: inline-flex;
  align-items: center;
}
/* v0.64.7 — la barre de filtres partenaires a besoin d'un peu d'air vertical */
#ih-partner-filters .ih-filters__top { padding: 12px var(--ih-side-pad); } /* v0.12.33 — garder la gouttière, sinon la barre se décale de 32px */

/* v0.64.5 — Bloc éditorial SEO en bas de /zones-activites/ */
.ih-zones-editorial {
    padding: 8px var(--ih-side-pad) 56px;
}
.ih-zones-editorial__inner {
    max-width: 820px;
}
.ih-prose h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ih-ink);
    margin: 0 0 12px;
}
.ih-prose p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ih-ink-soft, #2e3a55);
    margin: 0 0 14px;
}
.ih-prose p:last-child { margin-bottom: 0; }
.ih-prose a {
    color: var(--ih-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* Listes : le reset global (hubs/base.css) met list-style:none → rétabli ici
   pour les blocs éditoriaux (parité avec immo). */
.ih-prose ul,
.ih-prose ol {
    margin: 0 0 14px;
    padding-left: 1.4em;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ih-ink-soft, #2e3a55);
}
.ih-prose ul { list-style: disc; }
.ih-prose ol { list-style: decimal; }
.ih-prose li { margin: 0 0 6px; }
.ih-prose ul:last-child,
.ih-prose ol:last-child { margin-bottom: 0; }

/* v0.64.19 — barres de filtres des listings IN-PAGE (shortcodes sites-clé/TI/intl) :
   pas de chrome sticky (la barre vit dans le flux de la section, pas en tête d'archive). */
.ih-cleinmain-listing .ih-filters,
.ih-ti-annonces .ih-filters,
.ih-intl-listing .ih-filters {
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  margin: 0 0 20px;
}
#ih-cleinmain-filters .ih-filters__search--inline, #ih-cleinmain-filters .ih-filter-chip__btn, #ih-cleinmain-filters .ih-filters__reset,
#ih-ti-filters .ih-filters__search--inline, #ih-ti-filters .ih-filter-chip__btn, #ih-ti-filters .ih-filters__reset,
#ih-intl-filters .ih-filters__search--inline, #ih-intl-filters .ih-filter-chip__btn, #ih-intl-filters .ih-filters__reset {
  height: 38px;
  box-sizing: border-box;
}
#ih-cleinmain-filters .ih-filter-chip__btn, #ih-cleinmain-filters .ih-filters__reset,
#ih-ti-filters .ih-filter-chip__btn, #ih-ti-filters .ih-filters__reset,
#ih-intl-filters .ih-filter-chip__btn, #ih-intl-filters .ih-filters__reset {
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   v0.11.34 — Généralisation du HEADER BLEU sur invest.
   Le hero listings passe du fond clair au dégradé bleu (comme
   .invest-page__hero) + textes en blanc. Side-pad déplacé sur
   __inner pour aligner avec header / sections / footer.
   ============================================================ */
.ih-listing-hero {
  background: linear-gradient(135deg, var(--ih-cyan) 0%, var(--ih-cyan-700) 100%);
  color: #fff;
  border-bottom: none;
  padding: 56px 0 40px;
}
.ih-listing-hero__inner { max-width: var(--ih-max-w); margin: 0 auto; padding: 0 var(--ih-side-pad); }
.ih-listing-hero__title, .ih-listing-hero__title-em { color: #fff; }
.ih-listing-hero__title-muted { color: rgba(255,255,255,.72); }
.ih-listing-hero__desc, .ih-listing-hero__desc strong { color: rgba(255,255,255,.92); }
.ih-listing-hero__pill { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }
.ih-listing-hero__pill-dot { background: #fff; }
.ih-listing-hero__stat { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.ih-listing-hero__stat--featured { background: rgba(255,255,255,.16); }
.ih-listing-hero__stat-value { color: #fff; }
.ih-listing-hero__stat-label { color: rgba(255,255,255,.85); }
.ih-listing-hero__stat-source { color: rgba(255,255,255,.6); }

/* Les « … » ne sont pas une page : ni cadre, ni interaction. */
.ih-listing-pagination__pages .page-numbers.dots {
  border-color: transparent;
}

/* v0.13.7 — Le bloc de résultats n'était pas aligné sur la barre de filtres
   qui le surmonte : la barre est bornée à 1400 px et centrée, les résultats
   couraient sur toute la largeur. Le compteur et la première carte
   commençaient donc 20 px plus à gauche que les filtres. */
.ih-listing-results {
  max-width: var(--ih-max-w);
  margin-inline: auto;
}

/* v0.13.15 — Pagination au pouce.
   ⚠️ CETTE RÈGLE DOIT VIVRE ICI. La même surcharge posée dans `invest.css`
   restait sans effet : `pages/listing.css` est chargé APRÈS et redéfinit le
   même sélecteur à spécificité égale, donc il gagne. C'est le geste
   « chercher », le plus utilisé sur mobile : 36 px ne suffisent pas. */
@media (max-width: 768px) {
  .ih-listing-pagination__pages .page-numbers {
    min-width: 44px;
    min-height: 44px;
  }
}
