/* ============================================================
   VILLES — application de recherche de logements (villes/*.html)
   Sidebar fixe à gauche, barre de recherche sticky, liste
   d'annonces sur 2 colonnes et carte Leaflet sticky à droite.
   Toutes les couleurs viennent de tokens.css.
   ============================================================ */

.villes {
  --sidebar-w: 125px;   /* largeur de la sidebar */
  --search-h: 107px;    /* hauteur de la barre de recherche (sticky) */
  --app-pad: 40px;      /* marge interne de la zone principale */
  --map-h: 712px;       /* hauteur de la carte sur desktop */
  --gap: 40px;          /* gouttière liste / carte et entre les cartes annonces */
  background: var(--white);
}

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
  width: var(--sidebar-w); padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: var(--white); border-right: 1px solid var(--grey-100);
}
/* Le SVG contient le logo complet : on n'en montre que la marque (partie gauche) */
.sidebar__logo { display: block; width: 77px; height: 83px; overflow: hidden; }
.sidebar__logo img { width: 245px; height: 83px; max-width: none; }
.sidebar__nav { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.sidebar__btn { display: block; width: 24px; height: 24px; color: var(--grey-400); transition: color var(--dur) var(--ease); }
.sidebar__btn svg { width: 24px; height: 24px; }
.sidebar__btn:hover { color: var(--primary); }
.sidebar__version { font-size: 12px; line-height: 18px; font-weight: 700; color: var(--grey-400); text-align: center; }

/* ---------- Barre mobile (remplace la sidebar) ---------- */
.topbar {
  display: none; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px;
  background: var(--white); border-bottom: 1px solid var(--grey-100);
}
.topbar__logo { display: block; width: 38px; height: 40px; overflow: hidden; }
.topbar__logo img { width: 118px; height: 40px; max-width: none; }
.topbar__home { font-size: 15px; font-weight: 600; color: var(--primary); }

/* ---------- Zone principale ---------- */
.app { margin-left: var(--sidebar-w); min-height: 100vh; padding: 0 var(--app-pad); }

/* ---------- Barre de recherche + filtres ---------- */
.searchbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: var(--search-h); padding: 24px 0;
  background: var(--white); border-bottom: 1px solid var(--grey-100);
}
.search {
  display: flex; align-items: center; flex: 0 0 515px; height: 58px; padding: 0 4px 0 16px;
  border: 2px solid var(--primary); border-radius: var(--radius-md); background: var(--white);
}
.search__chip {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 32px; padding: 0 6px 0 12px; border-radius: var(--radius-md);
  background: var(--grey-100); font-size: 14px; line-height: 20px; letter-spacing: .25px; color: var(--ink);
}
.search__chip-close { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink-strong); border-radius: 50%; }
.search__chip-close:hover { background: var(--grey-200); }
.search__chip-close svg { width: 14px; height: 14px; }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.search__btn {
  flex: none; width: 50px; height: 48px; margin-left: auto;
  display: grid; place-items: center; border-radius: var(--radius-md);
  background: var(--primary); color: var(--white); transition: background var(--dur) var(--ease);
}
.search__btn:hover { background: var(--primary-hover); }
.search__btn svg { width: 22px; height: 22px; }
.searchbar__filters { display: flex; align-items: center; gap: 24px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 16px;
  border: 1px solid var(--grey-200); border-radius: var(--radius-md); background: var(--white);
  box-shadow: 0 2px 2px var(--ink-soft);
  font-size: 14.4px; line-height: 1.5; font-weight: 300; color: var(--ink-strong); white-space: nowrap;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--grey-400); box-shadow: 0 2px 6px var(--ink-soft); }
.filter svg { width: 18px; height: 18px; flex: none; }

/* ---------- Deux colonnes : liste + carte ---------- */
.app__body { display: flex; align-items: stretch; gap: var(--gap); } /* stretch : la colonne carte prend toute la hauteur, nécessaire au sticky */
.results { flex: 0 1 687px; min-width: 0; }
.mapbox { flex: 1 1 auto; min-width: 320px; }

/* En-tête de la liste (sticky sous la barre de recherche) */
.results__head {
  position: sticky; top: var(--search-h); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 77px; padding: 20px 0 16px;
  background: var(--white); border-bottom: 1px solid var(--grey-100);
}
.results__title { font-size: 17.6px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.sort {
  position: relative; display: inline-flex; align-items: center; flex: none; width: 180px; height: 36px;
  border: 1px solid var(--grey-400); border-radius: var(--radius-md); background: var(--white);
  box-shadow: 0 2px 7px var(--ink-soft);
}
.sort__select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 100%; padding: 0 36px 0 14px;
  border: 0; background: none; font: inherit; font-size: 12px; font-weight: 300; color: var(--ink); cursor: pointer;
}
.sort__select:focus-visible { outline: 0; }
.sort__chevron { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--grey-700); pointer-events: none; }

/* ---------- Grille des annonces ---------- */
.listings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); padding-top: 24px; }
.listing { display: flex; flex-direction: column; min-width: 0; }
.listing__posted { margin-bottom: 8px; font-size: 12px; line-height: 18px; font-weight: 300; color: var(--ink-strong); text-align: center; }
.listing__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-md); background: var(--grey-700);
}
.listing__link { display: block; height: 100%; }
.listing__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.listing:hover .listing__img { transform: scale(1.03); }
.listing__fav {
  position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; color: var(--white);
  filter: drop-shadow(0 1px 2px var(--ink-soft));
  transition: transform var(--dur) var(--ease);
}
.listing__fav:hover { transform: scale(1.1); }
.listing__fav svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.listing__fav.is-liked svg { fill: var(--red); stroke: var(--red); }
.listing__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 10px; }
.listing__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: .5; }
.listing__dots i.is-active { opacity: 1; }
.listing__badge {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: var(--radius-sm); background: var(--orange); color: var(--white);
  font-size: 12px; line-height: 18px; font-weight: 700; box-shadow: 0 2px 6px var(--ink-soft);
}
.listing__badge svg { width: 14px; height: 14px; }
.listing__title {
  margin-top: 8px; padding-bottom: 8px; font-size: 17.6px; line-height: 1.5; font-weight: 700; color: var(--ink-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing__title a:hover { color: var(--primary); }
.listing__meta { font-size: 12px; line-height: 18px; font-weight: 300; color: var(--ink-strong); }
.listing__price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; padding-left: 4px; }
.listing__price strong { font-size: 24px; line-height: 1; color: var(--primary-dark); }
.listing__price span { font-size: 12px; line-height: 1; font-weight: 300; color: var(--ink-strong); }
/* Annonce mise en avant depuis la carte */
.listing.is-active .listing__media { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Bandeau réassurance (Livin Protect / Livin Garant) */
.protect {
  grid-column: 1 / -1; display: flex; gap: 42px; padding: 16px 48px;
  border-radius: var(--radius-md); background: var(--grey-100);
}
.protect__item { display: flex; align-items: center; gap: 16px; flex: 1; }
.protect__icon { width: 40px; height: 40px; flex: none; color: var(--primary); }
.protect__title { font-family: var(--font-heading); font-size: 14.4px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.protect__text { font-size: 14.4px; line-height: 1.5; font-weight: 500; color: var(--ink); }

/* Bandeau alerte */
.alert-band {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 32px; border-radius: var(--radius-md); background: var(--grad-primary); color: var(--white);
  box-shadow: 0 2px 6px var(--ink-soft);
}
.alert-band__text { font-size: 16px; line-height: 24px; font-weight: 300; }
.alert-band__btn { flex: none; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-size: 12px; line-height: 20px; }
.alert-band__btn:hover { background: var(--grey-100); }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 16px; padding: 48px 0 64px; }
.pager__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 8px 12px;
  border-radius: var(--radius-md); background: var(--white); box-shadow: 0 2px 6px var(--ink-soft);
  font-family: var(--font-heading); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink-strong);
  transition: box-shadow var(--dur) var(--ease);
}
.pager__btn:hover:not([disabled]) { box-shadow: 0 4px 10px var(--ink-soft); }
.pager__btn[disabled] { background: var(--grey-400); color: var(--grey-700); cursor: default; }
.pager__btn svg { width: 20px; height: 20px; }
.pager__info { align-self: center; font-size: 14px; color: var(--grey-700); }

/* ---------- Carte ---------- */
.mapbox__inner {
  position: sticky; top: calc(var(--search-h) + 24px); margin-top: 24px;
  height: min(var(--map-h), calc(100vh - var(--search-h) - 48px)); overflow: hidden; border-radius: var(--radius-md); background: var(--grey-100);
  isolation: isolate;
}
.map { width: 100%; height: 100%; font-family: var(--font-body); }
/* Fond de carte adouci pour se rapprocher du style clair de l'original */
/* Fond CARTO Positron déjà clair : pas de filtre nécessaire (l’ancien filtre servait à adoucir les tuiles OSM) */
.map__tools {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 500;
  display: flex; align-items: flex-start; gap: 50px; pointer-events: none;
}
.map__tools > * { pointer-events: auto; }
.map__expand {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none;
  width: 70px; height: 53px; border-radius: var(--radius-sm);
  background: var(--grad-primary); color: var(--white); box-shadow: 0 2px 6px var(--ink-soft);
}
.map__expand svg { width: 20px; height: 20px; }
.map__expand-chevron { transition: transform var(--dur) var(--ease); }
.is-map-wide .map__expand-chevron { transform: rotate(180deg); }
.map__check {
  display: inline-flex; align-items: center; gap: 8px; max-width: 274px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--grey-400); border-radius: var(--radius-md); background: var(--white);
  box-shadow: 0 2px 2px var(--ink-soft);
  font-size: 14.4px; line-height: 1.5; font-weight: 300; color: var(--ink); cursor: pointer;
}
.map__check input { flex: none; width: 18px; height: 18px; margin: 0 6px; accent-color: var(--primary-dark); cursor: pointer; }

/* Carte agrandie : la liste disparaît, la carte prend toute la largeur */
.is-map-wide .results { display: none; }
.is-map-wide .mapbox { flex: 1 1 100%; }

/* Marqueurs = étiquettes de prix */
.map-marker { background: none; border: 0; }
.map-marker__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 3px 9px;
  border-radius: var(--radius-md); background: var(--white); box-shadow: 0 2px 6px var(--ink-soft), 0 0 0 1px var(--ink-soft);
  font-family: var(--font-heading); font-size: 12px; line-height: 1; font-weight: 700; color: var(--primary-dark);
  white-space: nowrap; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.map-marker__label--promo { color: var(--orange); }
.map-marker__label svg { width: 14px; height: 14px; }
.map-marker:hover, .map-marker.is-active { z-index: 1000 !important; }
.map-marker:hover .map-marker__label, .map-marker.is-active .map-marker__label {
  transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 4px 12px var(--ink-soft), 0 0 0 2px var(--primary);
}

/* Marqueur sélectionné (clic) : étiquette bleu foncé comme l'original */
.map-marker.is-selected { z-index: 1001 !important; }
.map-marker.is-selected .map-marker__label { background: var(--primary-dark); color: var(--white); box-shadow: 0 4px 12px var(--ink-soft); }
.map-marker.is-selected .map-marker__label--promo { background: var(--orange); }

/* Mini-carte de l'annonce en bas de la carte (clic sur un marqueur) */
.map-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1002;
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  max-height: calc(100% - 24px); background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden;
}
.map-card[hidden] { display: none; }
.map-card__media img { width: 200px; height: 100%; min-height: 150px; object-fit: cover; }
.map-card__body { position: relative; padding: 12px 40px 12px 0; min-width: 0; overflow-y: auto; }
.map-card__close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px var(--ink-soft); color: var(--ink); }
.map-card__close svg { width: 16px; height: 16px; }
.map-card__posted { font-size: 11px; color: var(--grey-700); }
.map-card__title { font-size: 16px; font-weight: 700; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 4px; }
.map-card__title a:hover { color: var(--primary); }
.map-card__meta { font-size: 12px; line-height: 16px; font-weight: 300; color: var(--ink-strong); }
.map-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.map-card__price strong { font-size: 20px; line-height: 1; color: var(--primary-dark); }
.map-card__price span { font-size: 12px; font-weight: 300; }
.map-card__btn { margin-top: 8px; padding: 6px 14px; font-size: 14px; line-height: 20px; }
@media (max-width: 767px) {
  .map-card { grid-template-columns: 120px 1fr; gap: 10px; }
  .map-card__media img { width: 120px; min-height: 120px; }
  .map-card__body { padding-right: 36px; }
  .map-card__btn { display: none; }
}

/* Contrôles Leaflet : zoom en bas à gauche, comme l'original */
.leaflet-bottom.leaflet-left .leaflet-control-zoom { margin: 0 0 16px 16px; border: 0; border-radius: var(--radius-xs); box-shadow: 0 0 0 2px var(--ink-soft); }
.leaflet-touch .leaflet-control-zoom a { width: 29px; height: 29px; line-height: 29px; font-size: 20px; font-family: var(--font-body); color: var(--ink); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .villes { --app-pad: 24px; --gap: 24px; }
  .search { flex-basis: 420px; }
  .results { flex-basis: 600px; }
  .map__tools { gap: 16px; }
  .map-card { grid-template-columns: 120px 1fr; gap: 10px; }
  .map-card__media img { width: 120px; min-height: 120px; }
  .map-card__body { padding-right: 36px; }
  .map-card__btn { display: none; }
}

@media (max-width: 991px) {
  .villes { --map-h: 260px; }
  .sidebar { display: none; }
  .topbar { display: flex; }
  .app { margin-left: 0; min-height: 0; padding: 0 16px; }
  .searchbar { position: static; height: auto; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .search { flex: 1 1 100%; height: 52px; }
  .searchbar__filters { width: 100%; gap: 12px; flex-wrap: wrap; }   /* pas d'overflow : les panneaux Budget/Surface doivent pouvoir dépasser */
  .filter { height: 44px; padding: 10px 14px; flex: none; }
  .filter__label { display: none; }
  .app__body { flex-direction: column; gap: 0; }
  .mapbox { order: -1; width: 100%; min-width: 0; }
  .mapbox__inner { position: relative; top: auto; margin-top: 16px; }
  .map-card { grid-template-columns: 120px 1fr; gap: 10px; }
  .map-card__media img { width: 120px; min-height: 120px; }
  .map-card__body { padding-right: 36px; }
  .map-card__btn { display: none; }
  .map__tools { top: 12px; left: 12px; right: 12px; gap: 12px; }
  .map__expand { width: 48px; height: 44px; }
  .map__check { padding: 6px 10px 6px 4px; font-size: 12px; line-height: 1.4; }
  .results { flex: none; width: 100%; }
  .results__head { position: static; height: auto; padding: 20px 0 12px; }
  .sort { width: 150px; height: 34px; }
  .listings { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .listing__posted { text-align: left; }
  .protect { flex-direction: column; gap: 16px; padding: 16px 20px; }
  .alert-band { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .pager { padding: 32px 0 48px; }
}

/* ============================================================
   Recherche de ville, filtres (panneaux + fenêtre), carrousel
   photo des cartes — rendent l'interface réellement fonctionnelle
   ============================================================ */

/* ---------- Sélecteur de ville ---------- */
.search { position: relative; }
.search__chip[hidden] { display: none; }
.search__list {
  position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); z-index: 40;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 8px; max-height: 320px; overflow: auto;
}
.search__list[hidden] { display: none; }
.search__list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink-strong); }
.search__list a:hover { background: var(--grey-100); color: var(--primary); }
.search__list a svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.search__list small { color: var(--grey-700); font-size: 12px; }
.search__empty { padding: 12px; font-size: 14px; color: var(--grey-700); }

/* ---------- Boutons de filtre ---------- */
.fwrap { position: relative; }
.filter.is-active, .fwrap.is-open .filter { background: var(--grey-700); color: var(--white); border-color: var(--grey-700); }
.filter__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700; }
.filter__count[hidden] { display: none; }
.filter.is-active .filter__count { background: var(--white); color: var(--grey-700); }

/* Panneau déroulant (Budget / Surface) */
.fpanel {
  position: absolute; left: 0; top: calc(100% + 16px); z-index: 45; width: 236px;
  background: var(--grey-100); border: 1px solid var(--grey-200); border-radius: var(--radius-sm); box-shadow: var(--shadow-btn); padding: 18px 18px 14px;
}
.fpanel[hidden] { display: none; }
.range { margin-bottom: 14px; }
.range__labels, .range__signs { display: flex; justify-content: space-between; font-size: 11px; font-style: italic; color: var(--ink); }
.range__signs { font-style: normal; font-size: 14px; margin-top: 4px; }
.range__track { position: relative; height: 4px; margin: 10px 6px 14px; border-radius: 2px; background: var(--grey-400); }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--primary); border-radius: 2px; }
.range__track input[type="range"] { position: absolute; left: -6px; right: -6px; top: -6px; width: calc(100% + 12px); height: 16px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.range__track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 0; pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 2px var(--white); }
.range__track input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 0; pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 2px var(--white); }
.fld { display: flex; align-items: center; height: 32px; margin-bottom: 10px; border: 1px solid var(--grey-400); border-radius: var(--radius-xs); background: var(--white); overflow: hidden; }
.fld input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink); -moz-appearance: textfield; }
.fld input::-webkit-outer-spin-button, .fld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fld span { padding: 0 10px; border-left: 1px solid var(--grey-400); font-size: 13px; line-height: 30px; color: var(--ink); }
.flink { font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.flink:hover { color: var(--primary); }

/* ---------- Fenêtre Filtres ---------- */
.fmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow: auto; }
.fmodal[hidden] { display: none; }
.fmodal__backdrop { position: fixed; inset: 0; background: var(--overlay); }
.fmodal__box { position: relative; width: 800px; max-width: 100%; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.fmodal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 16px; border-bottom: 1px solid var(--grey-100); }
.fmodal__title { font-size: 28px; }
.fmodal__x { width: 32px; height: 32px; color: var(--ink-strong); }
.fmodal__x svg { width: 22px; height: 22px; }
.fmodal__body { padding: 8px 28px; }
.fmodal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.fsec { padding: 18px 0; }
.fsec--full { border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
.fsec__title { font-size: 16px; font-weight: 600; color: var(--ink-strong); margin-bottom: 20px; }
.fchecks { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.fcheck { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: none; }
.fcheck small { display: block; font-size: 12px; color: var(--grey-700); margin-left: 4px; }
.fpair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld--labelled { display: grid; grid-template-columns: 1fr auto; height: auto; border: 0; background: none; overflow: visible; margin: 0; }
.fld--labelled .fld__lab { grid-column: 1 / -1; border: 0; padding: 0; background: none; line-height: 1.4; font-size: 14px; font-weight: 600; color: var(--ink-strong); margin-bottom: 6px; }
.fld--labelled .fld__lab i { font-weight: 400; font-style: italic; }
.fld--labelled input { height: 32px; border: 1px solid var(--grey-400); border-right: 0; border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.fld--labelled span { border: 1px solid var(--grey-400); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; background: var(--white); }
.fmodal__foot { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 20px 28px 28px; }
body.is-modal-open { overflow: hidden; }

/* Pastilles (badges) */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 12px; line-height: 18px; font-weight: 700; color: var(--white); box-shadow: 0 2px 6px var(--ink-soft); }
.tag--orange { background: var(--orange); }
.tag--green { background: var(--green); }
.tag--yellow { background: var(--yellow); color: var(--white); }
.tag--deep { background: var(--primary-dark); }
.tag--outline { background: var(--white); color: var(--peach); border: 1px solid var(--peach); box-shadow: none; }
.tag svg { width: 14px; height: 14px; }
.listing__badge.tag { position: absolute; top: 16px; left: 16px; }

/* ---------- Carrousel photo des cartes ---------- */
.listing__slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.listing__slides::-webkit-scrollbar { display: none; }
.listing__slides .listing__img { flex: 0 0 100%; scroll-snap-align: start; }
.listing__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-btn); color: var(--ink); display: grid; place-items: center;
  opacity: 0; transition: opacity var(--dur) var(--ease); z-index: 2;
}
.listing__arrow svg { width: 18px; height: 18px; }
.listing__arrow--prev { left: 12px; }
.listing__arrow--next { right: 12px; }
.listing__media:hover .listing__arrow { opacity: .95; }
@media (hover: none) { .listing__arrow { opacity: .9; } }

/* Marqueurs masqués par les filtres, liste vide */
.map-marker.is-hidden { display: none; }
.listings__empty { grid-column: 1 / -1; padding: 40px 0; font-size: 16px; color: var(--grey-700); }
.pager[hidden] { display: none; }

@media (max-width: 767px) {
  .fpanel { left: 0; width: 236px; }
  .fmodal { padding: 12px; }
  .fmodal__grid, .fpair { grid-template-columns: 1fr; }
  .fmodal__head, .fmodal__body, .fmodal__foot { padding-left: 16px; padding-right: 16px; }
  .fmodal__foot { flex-direction: column-reverse; gap: 14px; }
  .fmodal__foot .btn { width: 100%; }
}
