/* =============================================================================
   LOGEMENTS.CSS — Page Trouver votre logement · Keymojo
   Variables héritées de style.css : #046053 vert, #ff7348 corail, #f7f0ea beige
============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   HERO LISTING — Carrousel dans la section hero verte
───────────────────────────────────────────────────────────────────────────── */
.hero-listing-section {
  background: url('../assets/img/background.webp') repeat;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 0;
  overflow: hidden;
  position: relative;
}

.hero-listing-text {
  text-align: center;
  padding: 0 2rem 3rem;
  max-width: 100rem;
  margin: 0 auto;
}

.hero-listing-text .h1 { margin-bottom: 0; }

.hero-listing-desc {
  text-align: center;
  padding: 3rem 2rem 4rem;
  max-width: 70rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3.6rem, 5vw, 6.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: #ff7348;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Carrousel Swiper dans le hero */
.listing-carousel-wrapper {
  width: 100%;
  padding-bottom: 5rem;
  perspective: 1400px;
}

.listing-carousel {
  width: 100%;
  padding: 2rem 0 4rem;
  overflow: visible;
}

.listing-carousel .swiper-slide {
  width: 60rem;
  max-width: 90vw;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.5s ease,
              filter 0.5s ease;
  transform: scale(0.80);
  opacity: 0.40;
  filter: blur(3px);
  will-change: transform, opacity, filter;
}

.listing-carousel .swiper-slide-prev {
  transform: scale(0.87) rotateY(14deg);
  opacity: 0.58;
  filter: blur(1.5px);
}

.listing-carousel .swiper-slide-next {
  transform: scale(0.87) rotateY(-14deg);
  opacity: 0.58;
  filter: blur(1.5px);
}

.listing-carousel .swiper-slide-active {
  transform: scale(1.04);
  opacity: 1;
  filter: none;
  z-index: 2;
  position: relative;
}

/* Navigation arrows — très visibles sur fond vert */
.hero-listing-section .listing-swiper-prev,
.hero-listing-section .listing-swiper-next {
  width: 5.2rem !important;
  height: 5.2rem !important;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  --swiper-navigation-color: #046053;
  color: #046053 !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.hero-listing-section .listing-swiper-prev:hover,
.hero-listing-section .listing-swiper-next:hover {
  background: #fff !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.hero-listing-section .listing-swiper-prev::after,
.hero-listing-section .listing-swiper-next::after {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  color: #046053 !important;
}

.hero-listing-section .listing-swiper-prev { left: 2.4rem !important; }
.hero-listing-section .listing-swiper-next { right: 2.4rem !important; }

/* ─────────────────────────────────────────────────────────────────────────────
   CARD ANNONCE — Template carrousel (mini) + résultats
───────────────────────────────────────────────────────────────────────────── */
.listing-card {
  background: #fff;
  border-radius: 1.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: 30rem;
  box-shadow: 0 8px 40px rgba(4, 96, 83, 0.13);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.listing-card:hover {
  box-shadow: 0 16px 60px rgba(4, 96, 83, 0.2);
  transform: translateY(-3px);
}

/* Côté gauche — photos */
.listing-card-photos {
  width: 42%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #e8e0d8;
}

.listing-card-photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-card-photo-main {
  transform: scale(1.04);
}

/* Miniatures — bande frosted glass en bas de la photo */
.listing-card-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.listing-card-thumbs::-webkit-scrollbar { display: none; }

.listing-card-thumb {
  width: 7rem;
  height: 5.2rem;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 2px solid rgba(232, 220, 210, 0.72);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.listing-card-thumb:hover { border-color: rgba(232, 220, 210, 1); }

/* Badge type logement */
.listing-card-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(4, 96, 83, 0.88);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  backdrop-filter: blur(4px);
}

/* Côté droit — infos */
.listing-card-info {
  flex: 1;
  padding: 2.2rem 2.8rem 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header : titre à gauche, prix à droite */
.listing-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.listing-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2e2b;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.listing-card-location {
  font-size: 1.1rem;
  font-weight: 600;
  color: #046053;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Prix affiché dans le header */
.listing-card-price {
  flex-shrink: 0;
  text-align: right;
}

.listing-card-loyer-montant {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #046053;
  line-height: 1.1;
}

.listing-card-loyer-detail {
  display: block;
  font-size: 1.1rem;
  color: #b4cfcb;
  margin-top: 0.2rem;
}

/* Grille de caractéristiques */
.listing-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-bottom: 1.4rem;
}

.listing-card-spec {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.55rem;
  color: #046053;
  font-weight: 600;
}

.listing-card-spec svg {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  color: #b4cfcb;
}

/* Bande conditions — plein-bord en bas de la card */
.listing-card-footer {
  margin-top: auto;
  margin-left: -2.8rem;
  margin-right: -2.8rem;
  margin-bottom: 0;
  padding: 1.4rem 2.8rem 2rem;
  background: #f7f0ea;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-top: 1.5px solid rgba(4, 96, 83, 0.07);
}

.listing-card-conditions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.listing-card-cond-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(4, 96, 83, 0.85);
  background: rgba(4, 96, 83, 0.09);
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  white-space: nowrap;
}

.listing-card-cond-item svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  color: #046053;
  opacity: 0.55;
}

.listing-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #ff7348;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.1rem 2.2rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.listing-card-cta:hover {
  background: #ff8f6d;
  transform: translateY(-1px);
  color: #fff;
}

.listing-card-cta svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* DPE — couleurs utilisées dans la modale specs */
.dpe-A, .dpe-B { background: #00a550; color: #fff; }
.dpe-C { background: #6dc048; color: #046053; }
.dpe-D { background: #ffda00; color: #046053; }
.dpe-E { background: #f7941d; color: #fff; }
.dpe-F, .dpe-G { background: #ed1c24; color: #fff; }

/* ─────────────────────────────────────────────────────────────────────────────
   MOTEUR DE RECHERCHE — Section 2
───────────────────────────────────────────────────────────────────────────── */
.search-engine-section {
  background: #f7f0ea;
  padding: 5rem 0;
  border-bottom: 1.5px solid rgba(4, 96, 83, 0.08);
}

.search-engine-inner {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.search-engine-title {
  font-size: 2rem;
  font-weight: 700;
  color: #046053;
  margin-bottom: 3rem;
  text-align: center;
}

/* Carte par sous-section */
.search-section {
  background: #fff;
  border: 1.5px solid rgba(4, 96, 83, 0.1);
  border-radius: 1.6rem;
  padding: 2.4rem 2.8rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 2px 12px rgba(4, 96, 83, 0.05);
}

.search-section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.search-section-icon {
  width: 3.6rem;
  height: 3.6rem;
  background: rgba(4, 96, 83, 0.08);
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-section-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  stroke: #046053;
}

.search-section-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #046053;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-section-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.6rem;
  align-items: start;
}

/* Champ de filtre générique */
.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.search-field--wide {
  grid-column: 1 / -1;
}

.search-field-conditional {
  display: none;
}

.search-field-hint {
  font-size: 1.15rem;
  color: #b4cfcb;
  font-style: italic;
}

.search-field-optional {
  font-size: 1.1rem;
  font-weight: 400;
  color: #b4cfcb;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Locality tag input ──────────────────────────────────────────────────── */
.locality-input-wrapper {
  position: relative;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 1rem;
  background: #fff;
  padding: 0.6rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.8rem;
  cursor: text;
  transition: border-color 0.2s ease;
}

.locality-input-wrapper:focus-within,
.locality-input-wrapper.has-tags { border-color: #046053; }

.locality-tags {
  display: contents;
}

.locality-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4, 96, 83, 0.1);
  color: #046053;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  border-radius: 10rem;
  white-space: nowrap;
}

.locality-tag-label { line-height: 1; }

.locality-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(4, 96, 83, 0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.locality-tag-remove:hover { background: rgba(4, 96, 83, 0.3); }

.locality-tag-remove svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: #046053;
}

#filter-ville-search {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.5rem;
  color: #046053;
  font-family: inherit;
  min-width: 16rem;
  flex: 1;
  padding: 0.4rem 0;
}

#filter-ville-search::placeholder { color: #b4cfcb; }

/* Dropdown suggestions */
.locality-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid rgba(4, 96, 83, 0.15);
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(4, 96, 83, 0.12);
  list-style: none;
  padding: 0.6rem;
  margin: 0;
  z-index: 100;
  overflow: hidden;
}

.locality-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
  outline: none;
}

.locality-dropdown-item:hover,
.locality-dropdown-item:focus { background: rgba(4, 96, 83, 0.07); }

.ldi-city {
  font-size: 1.45rem;
  font-weight: 600;
  color: #046053;
}

.ldi-zip {
  font-size: 1.3rem;
  color: #b4cfcb;
  font-weight: 500;
  background: rgba(4, 96, 83, 0.06);
  padding: 0.2rem 0.8rem;
  border-radius: 10rem;
}

.search-field label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #046053;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-field input[type="text"],
.search-field input[type="number"],
.search-field select {
  height: 4.8rem;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 1rem;
  padding: 0 1.6rem;
  font-size: 1.5rem;
  color: #046053;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.search-field input[type="number"] {
  -moz-appearance: textfield;
}

.search-field input[type="number"]::-webkit-inner-spin-button,
.search-field input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.4;
}

.search-field input[type="text"]:focus,
.search-field input[type="number"]:focus,
.search-field select:focus {
  outline: none;
  border-color: #ff7348;
}

/* Select avec flèche custom */
.search-field-select-wrapper {
  position: relative;
}

.search-field-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #b4cfcb;
  pointer-events: none;
}

/* Pills (nb pièces, type bien, type bail…) */
.search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.search-pill {
  padding: 0.8rem 1.6rem;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 10rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: #046053;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.search-pill:hover { border-color: #ff7348; color: #ff7348; }
.search-pill.active {
  background: #046053;
  border-color: #046053;
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STEPPER — Formulaire multi-étapes
───────────────────────────────────────────────────────────────────────────── */

/* Conteneur principal — caché par défaut, géré par JS */
#search-stepper {
  display: none;
}

.search-stepper {
  background: #fff;
  border-radius: 2rem;
  padding: 3.2rem 3.2rem 2.4rem;
  box-shadow: 0 4px 40px rgba(4, 96, 83, 0.10);
}

/* Supprimer la carte interne des panels — déjà dans une carte */
.stepper-panel .search-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}

/* ── Champs de saisie standalone ────────────────────────────────────────── */
#filter-quartier,
#filter-surface,
#filter-chambres {
  height: 4.8rem;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 1rem;
  padding: 0 1.4rem;
  font-size: 1.5rem;
  color: #046053;
  background: #fafdfb;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}

#filter-quartier:focus,
#filter-surface:focus,
#filter-chambres:focus {
  outline: none;
  border-color: #046053;
  box-shadow: 0 0 0 3px rgba(4, 96, 83, 0.08);
  background: #fff;
}

#filter-quartier::placeholder,
#filter-surface::placeholder,
#filter-chambres::placeholder { color: #b4cfcb; }

#filter-surface::-webkit-inner-spin-button,
#filter-chambres::-webkit-inner-spin-button { opacity: 0.4; }

/* ── Select condition de bail ────────────────────────────────────────────── */
#filter-condition-bail {
  height: 4.8rem;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 1rem;
  padding: 0 3.6rem 0 1.4rem;
  font-size: 1.5rem;
  color: #046053;
  background: #fafdfb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046053' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 1.2rem center / 1.6rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#filter-condition-bail:focus {
  outline: none;
  border-color: #046053;
  box-shadow: 0 0 0 3px rgba(4, 96, 83, 0.08);
  background-color: #fff;
}

/* État sauvegardé (affiché après enregistrement) */
.search-criteria-saved {
  display: none; /* affiché via JS : style.display = 'flex' */
  background: #fff;
  border: 1.5px solid rgba(4, 96, 83, 0.15);
  border-radius: 1.6rem;
  padding: 2rem 2.4rem;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(4, 96, 83, 0.06);
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.criteria-saved-check {
  width: 3.6rem;
  height: 3.6rem;
  background: #046053;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.criteria-saved-check svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke: #fff;
}

.criteria-saved-body {
  flex: 1;
  min-width: 0;
}

.criteria-saved-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #046053;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.criteria-saved-count {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ff7348;
  margin-top: 0.6rem;
}

.criteria-saved-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.criteria-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(4, 96, 83, 0.08);
  color: #046053;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 10rem;
}

.criteria-tag--removable {
  padding-right: 0.6rem;
}

.criteria-tag-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 96, 83, 0.15);
  border: none;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.criteria-tag-x svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: #046053;
}

.criteria-tag-x:hover {
  background: rgba(4, 96, 83, 0.3);
}

.criteria-tag--empty {
  background: transparent;
  color: #b4cfcb;
  font-weight: 400;
  font-style: italic;
}

.criteria-saved-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.criteria-btn-modifier {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #046053;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease;
}

.criteria-btn-modifier:hover { background: #034840; }

.criteria-btn-modifier svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: #fff;
}

.criteria-btn-reset {
  font-size: 1.3rem;
  font-weight: 500;
  color: #c0392b;
  background: none;
  border: 1.5px solid rgba(192, 57, 43, 0.22);
  border-radius: 0.6rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.criteria-btn-reset:hover {
  color: #96261c;
  background: rgba(192, 57, 43, 0.06);
  border-color: rgba(192, 57, 43, 0.4);
}

/* ── Barre filtres actifs (au-dessus de la grille résultats) ── */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
  background: rgba(4, 96, 83, 0.05);
  border: 1.5px solid rgba(4, 96, 83, 0.12);
  border-radius: 1rem;
  padding: 0.9rem 1.4rem;
}

.active-filters-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: #046053;
  opacity: 0.7;
}

.active-filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.active-filters-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #c0392b;
  background: none;
  border: 1.5px solid rgba(192, 57, 43, 0.25);
  border-radius: 0.6rem;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  flex-shrink: 0;
  white-space: nowrap;
}

.active-filters-reset svg {
  width: 1.3rem;
  height: 1.3rem;
}

.active-filters-reset:hover {
  color: #96261c;
  background: rgba(192, 57, 43, 0.07);
  border-color: rgba(192, 57, 43, 0.4);
}

/* Mobile — grid 2 zones : icône+bouton ligne 1 / tags ligne 2 */
@media (max-width: 640px) {
  .active-filters-bar {
    display: grid;
    grid-template-areas:
      "icon reset"
      "tags tags";
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.5rem 0.6rem;
    padding: 0.9rem 2rem;
    margin: 0 -2rem;
    border-radius: 0;
    width: calc(100% + 4rem);
  }
  .active-filters-icon { grid-area: icon; }
  .active-filters-reset {
    grid-area: reset;
    justify-self: start;
  }
  .active-filters-tags {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

/* Indicateur de progression */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.8rem;
  padding-bottom: 2.4rem;
  border-bottom: 1.5px solid rgba(4, 96, 83, 0.08);
}

.stepper-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: default;
}

.stepper-dot {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 2px solid rgba(4, 96, 83, 0.2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
}

.stepper-dot-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #b4cfcb;
  transition: opacity 0.2s ease;
}

.stepper-dot-check {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  stroke: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stepper-step-indicator.active .stepper-dot {
  border-color: #046053;
  background: #046053;
}

.stepper-step-indicator.active .stepper-dot-num { color: #fff; }

.stepper-step-indicator.completed .stepper-dot {
  border-color: #046053;
  background: #046053;
}

.stepper-step-indicator.completed .stepper-dot-num { opacity: 0; }
.stepper-step-indicator.completed .stepper-dot-check { opacity: 1; }

.stepper-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #b4cfcb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.stepper-step-indicator.active .stepper-label,
.stepper-step-indicator.completed .stepper-label { color: #046053; }

.stepper-connector {
  flex: 1;
  height: 2px;
  background: rgba(4, 96, 83, 0.15);
  margin: 0 1.2rem;
  margin-bottom: 2.6rem;
  min-width: 4rem;
  max-width: 12rem;
  transition: background 0.25s ease;
}

/* Panels (une étape visible à la fois) */
.stepper-panel {
  display: none;
  animation: stepFadeIn 0.25s ease;
}

.stepper-panel.active { display: block; }

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step indicators — cliquables pour les étapes complétées */
.stepper-step-indicator.completed { cursor: pointer; }
.stepper-step-indicator.completed .stepper-dot:hover { background: #034840; }

/* Budget range groupé */
.budget-range {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.budget-range input[type="number"] {
  flex: 1;
  height: 4.8rem;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 1rem;
  padding: 0 1.2rem;
  font-size: 1.5rem;
  color: #046053;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease;
  -moz-appearance: textfield;
  appearance: none;
}

.budget-range input[type="number"]:focus { outline: none; border-color: #ff7348; }
.budget-range input[type="number"]::-webkit-inner-spin-button { opacity: 0.4; }

.budget-range-sep {
  font-size: 1.4rem;
  font-weight: 600;
  color: #b4cfcb;
  flex-shrink: 0;
}

.budget-range-unit {
  font-size: 1.3rem;
  font-weight: 600;
  color: #046053;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Live count dans le footer du stepper */
.stepper-footer-center {
  flex: 1;
  text-align: center;
}

.stepper-live-count {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #046053;
  background: rgba(4, 96, 83, 0.08);
  border-radius: 2rem;
  padding: 0.5rem 1.4rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stepper-live-count.visible { opacity: 1; }
.stepper-live-count.no-results {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Pied du stepper — navigation */
.stepper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1.5px solid rgba(4, 96, 83, 0.08);
}

.stepper-footer-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stepper-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 10rem;
  color: #046053;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1rem 2rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.stepper-btn-prev:hover { border-color: #046053; background: rgba(4, 96, 83, 0.04); }

.stepper-btn-prev svg,
.stepper-btn-next svg {
  width: 1.6rem;
  height: 1.6rem;
}

.stepper-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #046053;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.1rem 2.8rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease;
}

.stepper-btn-next:hover { background: #034840; }

.stepper-btn-save {
  display: none;
  align-items: center;
  gap: 0.8rem;
  background: #ff7348;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.1rem 2.8rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease;
}

.stepper-btn-save:hover { background: #ff8f6d; }

.stepper-btn-save svg {
  width: 1.7rem;
  height: 1.7rem;
}

/* Supprimer le border-bottom de la dernière .search-section dans les panels */
.stepper-panel .search-section {
  margin-bottom: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

/* Responsive stepper */
@media (max-width: 600px) {
  .stepper-label { display: none; }
  .stepper-connector { min-width: 2.4rem; max-width: 6rem; margin: 0 0.8rem 0; }
  .stepper-footer { flex-direction: column-reverse; gap: 1.2rem; }
  .stepper-footer-right { width: 100%; }
  .stepper-btn-next,
  .stepper-btn-save { width: 100%; justify-content: center; }
  .stepper-btn-prev { width: 100%; justify-content: center; }
  .criteria-saved-actions { width: 100%; }
  .criteria-btn-modifier { flex: 1; justify-content: center; }
}

/* ── Compaction mobile : hero + moteur (s'applique page maître ET pages-ville,
   le moteur étant un composant partagé). Objectif : moins de vide vert dans le
   hero et un moteur tenant sur ~½ écran. ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero : supprime l'espace vert excédentaire (min-height 70vh forçait du vide) */
  .hero-listing-section { min-height: auto; padding-top: 3.5rem; }
  .listing-carousel-wrapper { padding-bottom: 2rem; }
  .hero-listing-text { padding-bottom: 1.6rem; }
  .hero-listing-desc { padding: 1rem 2rem 2.4rem; }

  /* Moteur : compact */
  .search-engine-section { padding: 2.4rem 0; }
  .search-engine-title { font-size: 1.7rem; margin-bottom: 1.4rem; }
  .search-stepper { padding: 1.8rem 1.6rem 1.6rem; border-radius: 1.4rem; }
  .stepper-nav { margin-bottom: 1.4rem; padding-bottom: 1.2rem; }
  .search-section-fields { gap: 1rem; }
  .search-field { gap: 0.5rem; }
  .search-field input[type="text"],
  .search-field input[type="number"],
  .search-field select { height: 4.2rem; }
  .search-field-hint { font-size: 1.15rem; line-height: 1.3; }
}

/* Boutons d'action recherche (conservé pour compatibilité) */
.search-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  justify-content: center;
}

.search-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #ff7348;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.4rem 4rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.search-btn-submit:hover { background: #ff8f6d; }

.search-btn-submit svg {
  width: 1.8rem;
  height: 1.8rem;
}

.search-btn-reset {
  font-size: 1.4rem;
  color: #b4cfcb;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.search-btn-reset:hover { color: #046053; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION RÉSULTATS — Section 3
───────────────────────────────────────────────────────────────────────────── */
.results-section {
  background: #fff;
  padding: 6rem 0 8rem;
}

.results-inner {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.results-header {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3.6rem;
}

.results-title {
  font-size: 2rem;
  font-weight: 700;
  color: #046053;
  margin: 0;
}

/* Grille résultats (cards non-scrollables) */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.8rem;
}

/* Portrait layout — carrousel hero + grille résultats */
.listing-carousel .listing-card,
.results-grid .listing-card {
  flex-direction: column;
  height: auto;
}

.listing-carousel .listing-card-photos,
.results-grid .listing-card-photos {
  width: 100%;
  height: 26rem;
}

.listing-carousel .listing-card-cta,
.results-grid .listing-card-cta {
  width: fit-content;
  margin: 0 auto;
}

/* Message aucun résultat */
.results-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  color: rgba(4, 96, 83, 0.5);
}

.results-empty p { font-size: 1.6rem; line-height: 1.6; }
.results-empty .cta-secondary { margin-top: 2.4rem; }

/* ─────────────────────────────────────────────────────────────────────────────
   MODALE ANNONCE AGRANDIE
───────────────────────────────────────────────────────────────────────────── */
.listing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 30, 25, 0.65);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.listing-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.listing-modal {
  background: #faf7f4;
  width: 100%;
  max-width: 92rem;
  max-height: 92vh;
  border-radius: 2.4rem 2.4rem 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.05, 0.64, 1);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 96, 83, 0.15) transparent;
}

.listing-modal-overlay.open .listing-modal {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .listing-modal-overlay { align-items: center; }
  .listing-modal {
    border-radius: 2.4rem;
    max-height: 88vh;
  }
}

/* Bouton fermeture */
.listing-modal-close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #f7f0ea;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.listing-modal-close:hover { background: rgba(4, 96, 83, 0.1); }

.listing-modal-close svg {
  width: 1.8rem;
  height: 1.8rem;
  color: #046053;
}

/* Galerie photos dans la modale */
.listing-modal-gallery {
  position: relative;
}

.listing-modal-photo-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 55vh;
  background: #111;
}

.listing-modal-photo-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(0.6);
  transform: scale(1.12);
  pointer-events: none;
}

.listing-modal-photo-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.listing-modal-thumbstrip {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.6rem;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: none;
}

.listing-modal-thumbstrip::-webkit-scrollbar { display: none; }

.listing-modal-thumb {
  width: 7.5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.listing-modal-thumb.active,
.listing-modal-thumb:hover {
  opacity: 1;
  border-color: #ff7348;
}

/* Contenu modale */
.listing-modal-body {
  padding: 3.2rem;
}

.listing-modal-header {
  margin-bottom: 2.4rem;
}

.listing-modal-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #046053;
  margin-bottom: 0.4rem;
}

.listing-modal-subtitle {
  font-size: 1.5rem;
  color: #ff7348;
  font-weight: 600;
}

/* Grille détail caractéristiques — 2×2 cards avec pastille inclinée */
.listing-modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-bottom: 2.4rem;
}

.listing-modal-specs-section {
  position: relative;
  background: #f7f0ea;
  border-radius: 1.4rem;
  padding: 3.6rem 2rem 2rem;
}

.listing-modal-specs-pill {
  position: absolute;
  top: -1.2rem;
  left: 1.6rem;
  background: #046053;
  color: #fff;
  border-radius: 10rem;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transform: rotate(-2deg);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(4, 96, 83, 0.22);
}

.listing-modal-specs-section:nth-child(2) .listing-modal-specs-pill {
  background: #ff7348;
  box-shadow: 0 3px 10px rgba(255, 115, 72, 0.28);
}
.listing-modal-specs-section:nth-child(3) .listing-modal-specs-pill {
  background: #7B52B5;
  box-shadow: 0 3px 10px rgba(123, 82, 181, 0.28);
}
.listing-modal-specs-section:nth-child(4) .listing-modal-specs-pill {
  background: #1A7EC8;
  box-shadow: 0 3px 10px rgba(26, 126, 200, 0.28);
}

.listing-modal-specs-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.6rem;
}

.listing-modal-specs-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.listing-modal-spec-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #9db8b4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-label-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.listing-modal-spec-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #046053;
}

/* Badges conditions de location */
.listing-modal-cond-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.listing-modal-cond-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 10rem;
  padding: 0.5rem 1.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  background: rgba(4, 96, 83, 0.08);
  color: #046053;
}

.listing-modal-cond-badge--coloc {
  background: rgba(255, 115, 72, 0.1);
  color: #ff7348;
}

.listing-modal-cond-badge--mobilite {
  background: rgba(26, 126, 200, 0.1);
  color: #1A7EC8;
}

.listing-modal-cond-badge--etudiant {
  background: rgba(123, 82, 181, 0.1);
  color: #7B52B5;
}

.dpe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Description — rubriques structurées par thème */
.listing-modal-description {
  margin-bottom: 3.2rem;
}

.desc-section {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(4, 96, 83, 0.07);
}

.desc-section:last-child { border-bottom: none; }

.desc-section-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.desc-section-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desc-section-icon img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

/* Couleurs par rubrique (DA Keymojo) */
.desc-section--intro .desc-section-icon       { background: rgba(4, 96, 83, 0.10);   color: #046053; }
.desc-section--description .desc-section-icon { background: rgba(4, 96, 83, 0.10);   color: #046053; }
.desc-section--conditions .desc-section-icon  { background: rgba(123, 82, 181, 0.12); color: #7B52B5; }
.desc-section--financier .desc-section-icon   { background: rgba(255, 115, 72, 0.12); color: #ff7348; }
.desc-section--energie .desc-section-icon     { background: rgba(26, 126, 200, 0.12); color: #1A7EC8; }
.desc-section--honoraires .desc-section-icon  { background: rgba(4, 96, 83, 0.10);   color: #046053; }
.desc-section--conclusion .desc-section-icon  { background: transparent; }

.desc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}
.desc-section--description .desc-section-title { color: #046053; }
.desc-section--conditions .desc-section-title  { color: #7B52B5; }
.desc-section--financier .desc-section-title   { color: #ff7348; }
.desc-section--energie .desc-section-title     { color: #1A7EC8; }
.desc-section--honoraires .desc-section-title  { color: #046053; }
.desc-section--conclusion .desc-section-title  { color: #046053; }

.desc-section-body {
  flex: 1;
  min-width: 0;
}

.desc-section-body p {
  font-size: 1.5rem;
  line-height: 1.75;
  color: #3d5c58;
  margin: 0 0 0.7rem;
}

.desc-section-body p:last-child { margin-bottom: 0; }

.desc-section-body strong {
  font-weight: 700;
  color: #1a2e2b;
}

/* Greeting intro — "Bienvenue chez Keymojo" en orange */
.desc-greeting {
  color: #ff7348;
  font-weight: 700;
}

/* Ligne de référence annonce */
.desc-ref {
  margin-top: 1rem !important;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(4, 96, 83, 0.15);
  font-size: 1.3rem !important;
  color: #9db8b4 !important;
}

.desc-ref strong {
  color: #9db8b4 !important;
  font-weight: 600;
}

/* Listes à puces dans les rubriques */
.modal-desc-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-desc-list li {
  font-size: 1.5rem;
  line-height: 1.65;
  color: #3d5c58;
  padding-left: 1.6rem;
  position: relative;
}

.modal-desc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #046053;
  font-weight: 700;
  font-size: 1.2rem;
  top: 0.15em;
}

/* Footer modale — CTA candidature */
.listing-modal-footer {
  border-top: 1.5px solid rgba(4, 96, 83, 0.08);
  padding-top: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.listing-modal-loyer-display {
  font-size: 2.8rem;
  font-weight: 700;
  color: #046053;
}

.listing-modal-loyer-display small {
  font-size: 1.4rem;
  font-weight: 400;
  color: #b4cfcb;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORMULAIRE DE CANDIDATURE (dans la modale)
───────────────────────────────────────────────────────────────────────────── */
.candidature-form-wrapper {
  display: none;
  border-top: 1.5px solid rgba(4, 96, 83, 0.08);
  padding-top: 2.8rem;
  margin-top: 2.4rem;
}

.candidature-form-wrapper.visible { display: block; }

.candidature-form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #046053;
  margin-bottom: 2rem;
}

.candidature-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.candidature-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.candidature-form-field label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #046053;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.candidature-form-field input {
  height: 4.8rem;
  border: 1.5px solid rgba(4, 96, 83, 0.2);
  border-radius: 1rem;
  padding: 0 1.6rem;
  font-size: 1.5rem;
  color: #046053;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

/* Placeholders = exemples : gris clair + italique pour qu'on comprenne
   qu'il faut écrire par-dessus (et ne pas les confondre avec une valeur saisie). */
.candidature-form-field input::placeholder {
  color: #b9b9b9;
  font-style: italic;
  opacity: 1; /* Firefox réduit l'opacité par défaut */
}

.candidature-form-field input:focus {
  outline: none;
  border-color: #ff7348;
}

.candidature-form-field.full-width { grid-column: 1 / -1; }

.candidature-form-field .field-error {
  font-size: 1.2rem;
  color: #e84060;
  display: none;
}

.candidature-form-field.has-error input { border-color: #e84060; }
.candidature-form-field.has-error .field-error { display: block; }

/* Honeypot — invisible et hors flux */
.candidature-honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.candidature-form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.candidature-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #ff7348;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.3rem 3.2rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.candidature-btn-submit:hover { background: #ff8f6d; }

.candidature-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.candidature-rgpd {
  font-size: 1.2rem;
  color: #b4cfcb;
  line-height: 1.5;
}

/* Pop-up confirmation */
.candidature-success-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 30, 25, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.candidature-success-popup.open {
  opacity: 1;
  pointer-events: all;
}

.candidature-success-box {
  background: #fff;
  border-radius: 2rem;
  padding: 4rem 3.6rem;
  max-width: 52rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 80px rgba(4, 96, 83, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.candidature-success-popup.open .candidature-success-box { transform: scale(1); }

.candidature-success-icon {
  width: 6rem;
  height: 6rem;
  background: rgba(4, 96, 83, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.4rem;
  color: #046053;
}

.candidature-success-icon svg { width: 3rem; height: 3rem; }

.candidature-success-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #046053;
  margin-bottom: 1.6rem;
}

.candidature-success-subtitle {
  font-size: 1.4rem;
  color: rgba(4, 96, 83, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.candidature-success-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.candidature-success-step {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  background: rgba(4, 96, 83, 0.06);
  border-radius: 1.2rem;
  padding: 1.4rem 1.6rem;
}

.candidature-success-step--alert {
  background: rgba(255, 115, 72, 0.08);
  border: 1.5px solid rgba(255, 115, 72, 0.3);
}

.step-num {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #046053;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidature-success-step--alert .step-num {
  background: #ff7348;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.step-body strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: #046053;
}

.candidature-success-step--alert .step-body strong {
  color: #c0480a;
}

.step-body span {
  font-size: 1.3rem;
  color: rgba(4, 96, 83, 0.65);
}

.candidature-success-contact {
  font-size: 1.4rem;
  color: rgba(4, 96, 83, 0.6);
  margin-bottom: 2rem;
}

.candidature-success-phone {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff7348;
  display: block;
  margin-top: 1.2rem;
}

.candidature-success-close {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #046053;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.1rem 2.8rem;
  border-radius: 10rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.candidature-success-close:hover { background: #034a40; }

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION FAQ — bas de page
───────────────────────────────────────────────────────────────────────────── */
.logements-faq-section {
  background: url('../assets/img/background.webp') repeat;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .results-grid { grid-template-columns: 1fr; }
  .listing-card { flex-direction: column; }
  .listing-card-photos { width: 100%; height: 18rem; }
  .listing-modal-specs-rows { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .listing-carousel .swiper-slide { width: 90vw; }
  .search-filters-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .listing-modal-body { padding: 2rem; }
  .listing-modal-photo-wrapper { height: 40vh; }
  .listing-modal-specs-grid { grid-template-columns: 1fr; }
  .candidature-form { grid-template-columns: 1fr; }
  .listing-modal-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .listing-card-info { padding: 1.8rem 2rem 0; }
  .listing-card-loyer-montant { font-size: 1.8rem; }
  .listing-card-cta { font-size: 1.3rem; padding: 1rem 1.8rem; }
  .listing-card-footer { margin-left: -2rem; margin-right: -2rem; padding-left: 2rem; padding-right: 2rem; }
  .hero-listing-section .listing-swiper-prev,
  .hero-listing-section .listing-swiper-next {
    width: 3.8rem !important;
    height: 3.8rem !important;
  }
  .hero-listing-section .listing-swiper-prev { left: 0.8rem !important; }
  .hero-listing-section .listing-swiper-next { right: 0.8rem !important; }
  .hero-listing-section .listing-swiper-prev::after,
  .hero-listing-section .listing-swiper-next::after { font-size: 1.2rem !important; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   BLOC ÉDITORIAL SEO
───────────────────────────────────────────────────────────────────────────── */
.editorial-seo {
  padding: 6rem 0;
  background: #fff;
}

.editorial-seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) {
  .editorial-seo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.editorial-seo-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #046053;
  margin: 0 0 1.2rem;
}

.editorial-seo-col > .editorial-seo-h2:not(:first-child) {
  margin-top: 3.2rem;
}

.editorial-seo-h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #046053;
  margin: 2rem 0 0.6rem;
}

.editorial-seo p {
  font-size: 1.5rem;
  line-height: 1.75;
  color: #3d5c58;
  margin: 0 0 0.8rem;
}

.editorial-seo-link {
  color: #046053;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(4, 96, 83, 0.3);
  transition: border-color 0.2s ease;
}

.editorial-seo-link:hover {
  border-color: #046053;
}

/* Liste des villes (bloc éditorial SEO dynamique) */
.editorial-seo-villes {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
}
.editorial-seo-villes li {
  padding: 0.5rem 0;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #555;
  border-bottom: 1px solid rgba(4, 96, 83, 0.08);
}
.editorial-seo-villes li:last-child {
  border-bottom: none;
}

/* ─── Pages de destination géographiques /location-{ville} ─────────────── */
.ville-listing-section {
  padding: 4rem 0 2rem;
}
/* Page-ville uniquement : resserre l'espace header → moteur (le sélecteur sibling
   ne matche que la page-ville — le bouton toggle est exclusif aux pages-ville). */
.ville-search-toggle + .search-engine-section {
  padding-top: 2.5rem;
}

/* ── Toggle moteur sur mobile (pages-ville) ─────────────────────────────────
   Bouton masqué sur desktop (moteur toujours visible). Sur mobile il replie le
   moteur par défaut et le révèle au clic — piloté par aria-expanded (pur CSS). */
.ville-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  width: calc(100% - 4rem);
  max-width: 110rem;
  margin: 0 auto 1rem;
  padding: 1.4rem 2rem;
  background: #046053;
  color: #fff;
  border: none;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
}
.ville-search-toggle svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.ville-search-toggle .ville-search-toggle-chevron {
  margin-left: auto;
  transition: transform .25s ease;
}
.ville-search-toggle[aria-expanded="true"] .ville-search-toggle-chevron {
  transform: rotate(180deg);
}
@media (max-width: 768px) {
  .ville-search-toggle { display: flex; }
  .ville-search-toggle[aria-expanded="false"] + .search-engine-section {
    display: none;
  }
}

/* ── Curseur de rayon (pages-ville) — le champ est révélé par initVilleLock ── */
.rayon-control {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.rayon-control input[type="range"] {
  flex: 1;
  accent-color: #046053;
  height: 4px;
  cursor: pointer;
}
.rayon-value {
  flex-shrink: 0;
  min-width: 12rem;
  text-align: right;
  font-weight: 600;
  color: #046053;
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .rayon-value { min-width: 9rem; font-size: 1.4rem; }
}
.ville-back-link {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: #046053;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.4rem;
}
.ville-back-link:hover { text-decoration: underline; }
.ville-listing-title {
  color: #046053;
  margin-bottom: 1rem;
}
.ville-listing-intro {
  font-size: 1.7rem;
  color: #555;
  max-width: 70rem;
  margin-bottom: 0;
}
/* Carte rendue comme un lien (page ville) : hérite du style .listing-card */
.listing-card--link {
  text-decoration: none;
  color: inherit;
}
.listing-card-cta-link {
  display: inline-block;
  margin-top: auto;
  color: #f97316;
  font-weight: 700;
  font-size: 1.4rem;
}

/* ─── Moteur de filtres simple des pages /location-{ville} ─────────────── */
.ville-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.6rem 2.4rem;
  padding: 1.8rem 2rem;
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 4px 24px rgba(4, 96, 83, 0.08);
  margin-bottom: 1.4rem;
}
.ville-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ville-filter-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #046053;
}
.ville-filters #vf-budget,
.ville-filters #vf-pieces {
  border: 1px solid rgba(4, 96, 83, 0.25);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  min-width: 12rem;
}
.ville-filter-reset {
  margin-left: auto;
  background: none;
  border: none;
  color: #f97316;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.8rem 0;
}
.ville-filter-reset:hover { text-decoration: underline; }
.ville-results-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 2rem;
}
.ville-no-result {
  font-size: 1.6rem;
  color: #555;
  padding: 3rem 0;
}
