




/* ========== HEADER2 (GLOBAL) ========== */
.header2 {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 0 20px;
  z-index: 10;

  gap: 20px;
}
.logo {
  width: 130px;
  height: auto;
  margin: 0;
  display: block;
}
.all-button {
  display: flex; /* toujours visible en desktop */
  flex: 1;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
}
  


.profil-block {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.burger { display: none; } /* Cacher le burger en desktop */


/* ========== HEADER BUTTONS ========== */
.all-button button, .header-btn {
  flex: 1;
  max-width: 150px;
  padding: 8px 12px;
  border: none;
  background-color: rgb(255, 255, 255);
  color: rgb(104, 104, 104);
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s, height 0.2s;
  height: 60px;
  box-sizing: border-box;
}
.header-btn:hover {
  background-color: rgb(245, 245, 245);
  height: 60px;
}
.login-button {
  background-color: rgb(255, 255, 255);
  color: rgb(104, 104, 104);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  border-color: rgb(255, 153, 0);
}
.login-button {
  padding: 7px 16px;
  font-size: 1rem;
  height: auto;
  min-width: 0;
  max-width: 110px;
}
@media (max-width: 700px) {
  .login-button {
    padding: 6px 13px;
    font-size: 0.97rem;
    border-radius: 8px;
    max-width: 95px;
  }
}

/* ======= LE RESTE INCHANGÉ ======= */
.chatboat-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f2efff;
  color: #000000;
  border-radius: 12px;
  padding: 11px 24px;
  margin: 50px 0 14px 0;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
  border: 1.3px solid #dfd8ff;
  box-shadow: 0 2px 10px rgba(65,40,147,0.07);
  max-width: 470px;
}
.chatboat-banner:hover {
  background: #ebdfff;
  color: #ff8800;
  box-shadow: 0 2px 24px #00000040;
}
.chatboat-banner i {
  font-size: 1.35em;
  color: #ffa600;
}

.search-bar-sticky {
  display: none;
}

/* Centrer la barre de filtres UNIQUEMENT sur desktop */
@media (min-width: 900px) {
  .filter-bar {
    justify-content: center !important;
    max-width: 1200px;
    margin: 0 ;
  }
}



/* Search bar à GAUCHE, largeur fixe/mobile-friendly */
.search-autocomplete-wrapper {
  flex: none;
  min-width: 220px;   /* adapte à ta maquette : 220-320px */
  max-width: 330px;
  width: 290px;       /* 290px ou la largeur qui va bien sur mobile */
  margin-left: 0;
  margin-right: 7px;  /* petit espace avec les filtres */
  display: flex;
  align-items: center;
  height: 48px;
  box-sizing: border-box;
}

/* Ligne des filtres : scrollable si ça déborde */







/* BONUS : empêcher le scroll horizontal du body */
html, body {
  overflow-x: hidden !important;
}




.filter-bar > * {
  flex-shrink: 0;
  align-items: center;
  height: 48px; /* Aligne tout verticalement */
  display: flex;
}



.autocomplete-suggestions .suggestion,
#searchSuggestions .suggestion {
  padding: 12px 18px;
  font-size: 1.04em;
  cursor: pointer;
  color: #222;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
  transition: background 0.13s;
}
.autocomplete-suggestions .suggestion:last-child,
#searchSuggestions .suggestion:last-child { border-bottom: none; }
.autocomplete-suggestions .suggestion:hover,
#searchSuggestions .suggestion:hover,
.autocomplete-suggestions .suggestion.active,
#searchSuggestions .suggestion.active {
  background: #f4f6f8;
  color: #e77e23;
}

/* ---------- CORRECTION POPUP PRIX ----------- */
#priceFilterPopup {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 6000 !important;
  background: rgba(30,30,34,0.09);
  align-items: center !important;
  justify-content: center !important;
}
#priceFilterPopup.active { display: flex; }



.price-inputs input {
  width: 200px;                /* Encore plus large ! */
  font-size: 0.98em;           /* Légèrement plus petit */
  font-family: 'Menlo', 'Consolas', monospace;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  border: 1.3px solid #ffd9b7;
  padding: 6px 8px;
  background: #fafafc;
  outline: none;
  transition: border 0.13s, box-shadow 0.13s;
  box-shadow: 0 1px 6px #ffe4d352;
  color: #232323;
  min-width: 0;
  max-width: 98vw;
  overflow-x: auto;            /* Ajoute le scroll si besoin */
}




@media (max-width: 700px) {
  .price-inputs input { width: 90px; font-size: 1.02em; }
}


/* ------------------------------------------------------- */











/* Le reste de ton CSS inchangé... */




.buy-hook {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  text-align: left;
  font-size: 1.50rem;
  font-style: italic;
  color: #e57200;
  background: #fff7ed;
  border-left: 5px solid #f17100;
  border-right: 5px solid #f17100;
  border-radius: 0px 0 16px 16px;
  padding: 13px 0 13px 13px;
  box-shadow: 0 2px 8px rgba(241,113,0,0.07);
  letter-spacing: 0.5px;
  padding-left: 10%;
  margin-bottom: 30px;
  margin-top: 80px;
}

/* --- Résumé/compteur alignés --- */
.property-summary-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
}

.property-count {
  display: inline-block;
  padding: 8px 26px;
  margin: 30px 0 8px 0;
  background: linear-gradient(93deg, #ffcf93 0%, #f17100 90%);
  color: #fff;
  border-radius: 18px 8px 22px 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 14px rgba(241, 113, 0, 0.11);
  border: 1.5px solid #f9c97b;
  transition: box-shadow 0.16s;
}
.property-count:hover {
  box-shadow: 0 6px 24px rgba(241,113,0,0.22);
}
.property-types-summary {
  background: #fafafd;
  border-radius: 14px;
  margin: 0 0 24px 0;
  padding: 22px 30px 16px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 17px;
  color: #393958;
  box-shadow: 0 1px 9px rgba(44,33,93,0.04);
  width: 100%;
}
.pts-type {
  font-weight: 500;
  margin-right: 34px;
  margin-bottom: 6px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  padding: 0 2px;
}
.pts-type.selected {
  background: #f17100;
  color: #fff;
  border-radius: 7px;
  padding: 2px 12px;
}
.pts-count {
  color: #f17100;
  font-weight: 700;
  font-size: 1.01em;
}

.main-content-wrapper {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 36px;
}
.main-column {
  flex: 1 1 0;
  min-width: 0;
}
.map-aside {
  width: 370px;
  min-width: 230px;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(80,70,90,0.08);
  padding: 16px 16px 8px 16px;
  margin-top: 42px;
  position: sticky;
  top: 110px;
  height: fit-content;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-title {
  font-size: 18px;
  color: #000000;
  font-weight: 700;
  margin-bottom: 8px;
}
#miniMap {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: 1.5px solid #ececec;
  margin-bottom: 4px;
}

.property-listing {
  max-width: 1100px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.property-card {
  display: flex;
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.property-card:hover {
  box-shadow: 0 8px 32px rgba(100,100,160,0.09);
  border-color: #cfc6fa;
}
.carousel {
  width: 46%;
  min-width: 240px;
  max-width: 370px;
  height: 235px;
  position: relative;
  overflow: hidden;
  background: #f2f0f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 0;
}
.carousel img.active {
  display: block;
}
.image-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(30, 30, 34, 0.80);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(60,60,90,0.24);
  color: #fff;
  font-size: 22px;
  border: none;
  border-radius: 50%;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.12s;
  z-index: 1;
}
.carousel-btn:hover {

  color: #542d8a;
}
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.property-info {
  width: 54%;
  padding: 25px 24px 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.property-info h3 {
  margin: 0 0 9px 0;
  font-size: 22px;
  color: #3f265b;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.property-info p {
  font-size: 15px;
  margin: 8px 0 8px 0;
  color: #4d4d4d;
}
.agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.agent-info img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e6e6e6;
}
.property-actions {
  display: flex;
  gap: 11px;
  margin-top: 14px;
}
.property-actions button {
  flex: 1;
  padding: 10px 0;
  background: #ff8800;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.16s;
}
.property-actions button:hover {
  background: #d2c3fa;
  color: #542d8a;
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 34px auto 18px;
  gap: 8px;
  flex-wrap: wrap;
  user-select: none;
}
.page-btn {
  background-color: white;
  border: 1.2px solid #ccc;
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-size: 16px;
  min-width: 36px;
}
.page-btn:hover {
  background-color: #eee;
  border-color: #999;
}
.page-btn.active {
  background-color: #f17100;
  color: white;
  border-color: #f17100;
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #f9f9f9;
  padding: 40px 20px 20px;
  border-top: 1px solid #ddd;
  color: #444;
  font-family: Arial, sans-serif;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}
.footer-left {
  max-width: 300px;
}
.footer-logo {
  font-size: 24px;
  color: #ff9900;
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #444;
  text-decoration: none;
  font-size: 18px;
}
.footer-links a:hover {
  color: #ff9900;
}
.footer-socials {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer-socials img {
  width: 50px;
  height: 50px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.footer-socials img:hover {
  filter: grayscale(0%);
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #999;
}

/* --- BOUTON RETOUR EN HAUT --- */
#scrollToTopBtn {
  display: none;
}

/* --- FILTRE PRIX MINIMALISTE ET MODERNE --- */
#openPriceFilter {
  background: #fff;
  color: #e84242;
  border: 1.5px solid #e84242;
  border-radius: 25px;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(232,66,66,0.07);
  transition: background 0.14s, color 0.14s, border 0.14s;
}
#openPriceFilter:hover {
  background: #ffeaea;
  color: #b83838;
}

#priceFilterPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(30,30,34,0.09);
  align-items: center;
  justify-content: center;
}


#priceFilterPopup.active { display: flex; }
.price-popup-inner {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 34px rgba(240,90,0,0.10), 0 2px 8px #ffd6b440;
  width: 345px; min-width: 240px; max-width: 96vw;
  padding: 17px 19px 15px 19px;
  text-align: center; position: relative;
  animation: popupAppear .22s cubic-bezier(.61,.01,.74,1.05);
  border: 1.3px solid #ffe7cb;
}
@keyframes popupAppear { 0% { transform: scale(0.92); opacity: 0;} 100% { transform: none; opacity: 1;} }
.price-popup-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px;
}
.price-popup-header span {
  font-size: 1.13em; font-weight: 700; color: #ff8300; letter-spacing: 0.18px;
}
#closePricePopup {
  background: none; border: none; font-size: 1.6em; color: #ff8300; cursor: pointer;
  border-radius: 8px; padding: 1px 7px; transition: background 0.16s;
}
#closePricePopup:hover { background: #fff5e2;}
#priceHistogram {
  width: 100% !important; max-width: 325px; height: 40px;
  margin: 2px 0 7px 0; border-radius: 8px;
  display: block;
}
.price-hist-label {
  font-size: 0.81em; color: #b7b7b7; margin-bottom: 2px; margin-top: -4px;
  text-align: left; font-weight: 400; padding-left: 2px;
}
.price-inputs {
  display: flex;
   align-items: center; 
   justify-content: center; 
   gap: 10px;
  margin-bottom: 35px;
}
.price-inputs input {
  text-align: center; font-weight: 600;
  border-radius: 8px; border: 1.3px solid #ffd9b7; padding: 6px 3px;
  background: #fafafc; outline: none; transition: border 0.13s, box-shadow 0.13s;
  box-shadow: 0 1px 6px #ffe4d352;
  color: #232323;
}
.price-inputs input:focus { border-color: #ff8300; background: #fff; box-shadow: 0 1px 10px #ffe2c9c7;}
.selected-price-label {
  margin: 10px 0 6px 0;
  font-size: 1.09em;
  font-weight: 700;
  color: #f17100;
  letter-spacing: 0.05px;
  text-align: center;
  text-shadow: 0 2px 12px #ffe2c940;
}
.slider-main { margin-bottom: 6px; margin-top: 0; }
.slider-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.93em; color: #c7c7c7;
  margin: 0 1px 2px 1px; font-weight: 500; letter-spacing: 0.11px;
}





#priceSlider .noUi-base {
  background: #ffe8d6;
  height: 5px;
  border-radius: 4px;
  margin-top: 1px;
}
#priceSlider .noUi-connect {
  background: linear-gradient(90deg,#ffd399 0%,#ff9100 100%);
  height: 5px;
  border-radius: 4px;
}
#priceSlider .noUi-handle {
  background: #fff2e6;
  border: 2px solid #ff9100;
  width: 18px; height: 18px;
  border-radius: 50%;
  top: -7px;
  box-shadow: 0 1px 8px #ffd7b150;
  cursor: pointer;
  transition: border 0.15s;
}
#priceSlider .noUi-handle:focus {
  border: 2.5px solid #f17100;
  outline: none;
}
#priceSlider .noUi-tooltip {
  margin-bottom: 12px;
  background: #ffad55;
  color: #fff;
  font-size: 0.91em;
  border-radius: 7px;
  border: none;
  font-weight: 600;
  padding: 3px 10px;
  box-shadow: 0 1px 8px #ffd7b175;
}

#priceSlider .noUi-horizontal .noUi-handle { top: -7px; }
.validate-price-btn {
  margin-top: 10px;
  background: linear-gradient(93deg,#ffb473 0%,#f17100 90%);
  color: #fff;
  border: none; border-radius: 21px;
  padding: 11px 40px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 13px #ffd6b49e;
  transition: background 0.16s, box-shadow 0.13s;
  letter-spacing: 0.4px;
}


#priceSlider, #priceSlider .noUi-target {
  overflow: visible !important;
  position: relative;
}

#priceSlider .noUi-tooltip {
  white-space: nowrap;
  min-width: 72px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 13px;
  font-size: 1.08em;
  font-weight: bold;
  z-index: 50;
  /* Garde ta couleur/background si tu veux */
}






.validate-price-btn:hover { background: #f18101;}
body.price-popup-open { overflow: hidden; }

.search-autocomplete-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 300px;
  vertical-align: middle;
}


/* Suggestions dropdown */

#search {
  font-size: 1.18em;
  padding: 10px 30px;  /* Plus de hauteur et d’espace à gauche/droite */
  border-radius: 32px; /* Plus arrondi si tu veux */
  width: 100%;
  box-sizing: border-box;
}


#search:focus {
  border: 1.5px solid #ff902b;
}
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 ;
  border: 1px solid #ececec;
  border-top: none;
  box-shadow: 0 3px 12px 0 rgba(44,39,56,.09);
  background: #fff;
  z-index: 25;
  min-width: 100%;
  max-height: 182px;
  overflow-y: auto;
  margin-top: -1px;
  display: none;
  padding: 0;
}
.autocomplete-suggestions.visible { display: block; }
.autocomplete-suggestions .suggestion {
  padding: 12px 18px;
  font-size: 1.04em;
  cursor: pointer;
  color: #222;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
  transition: background 0.13s;
}
.autocomplete-suggestions .suggestion:last-child { border-bottom: none; }
.autocomplete-suggestions .suggestion:hover,
.autocomplete-suggestions .suggestion.active {
  background: #f4f6f8;
  color: #e77e23;
}
#searchSuggestions {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 19;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 5px 20px rgba(60,40,20,0.12);
  width: 100%;
  min-width: 200px;
  max-width: 430px;
  margin-top: 2px;
  border-radius: 16px;
  overflow: hidden;
  display: none;
}
.suggestion-pf-item {
  display: flex;
  align-items: flex-start;
  padding: 13px 20px 8px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f4f4f4;
  transition: background 0.13s;
  font-size: 1.04em;
}
.suggestion-pf-item:last-child { border-bottom: none; }
.suggestion-pf-item:hover { background: #faf6ff; }
.suggestion-pf-icon {
  color: #ff5500;
  font-size: 1.19em;
  margin-right: 14px;
  margin-top: 4px;
  flex-shrink: 0;
}
.suggestion-pf-label {
  display: inline;
  flex-direction: column;
  line-height: 1.17;
}
.suggestion-pf-label strong {
  color: #2c2c2c;
  font-weight: bold;
}
.suggestion-pf-area {
  color: #8c8c8c;
  font-size: 0.94em;
  font-weight: 400;
  margin-top: 0.5px;
  margin-bottom: 2px;
}


/* --- Searchbar harmonisée (copie/colle tout ça en bas de ton CSS) --- */
.search-autocomplete-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;           /* Même hauteur que filtres */
  width: 270px;           /* Largeur desktop raisonnable */
  min-width: 200px;
  max-width: 320px;
  margin-right: 4px;
  z-index: 1101 !important;
  flex-shrink: 0;
}

#search {
  width: 100%;
  height: 48px;           /* Même hauteur que filtres */
  font-size: 1.07em;
  padding: 0 18px;        /* Moins large et plus équilibré */
  border-radius: 25px;
  border: 1.5px solid #e6e6e6;
  background: #fff;
  box-sizing: border-box;
  transition: border 0.14s;
}
#search:focus {
  border: 1.5px solid #ff902b;
}

/* Suggestions dropdown (inchangé) */
#searchSuggestions, .autocomplete-suggestions {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 1105 !important;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 5px 20px rgba(60,40,20,0.13);
  min-width: 100%;
  max-width: 420px;
  margin-top: 2px;
  border-radius: 16px;
  overflow: hidden;
  display: none;
}
#searchSuggestions.visible,
.autocomplete-suggestions.visible { display: block; }




#moreFilterPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(30,30,34,0.09);
  align-items: center;
  justify-content: center;
}
#moreFilterPopup.active { display: flex; }

.more-filter-inner {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 34px rgba(240,90,0,0.10), 0 2px 8px #ffd6b440;
  width: min(98vw, 540px);
  min-width: 320px;
  max-width: 96vw;
  padding: 17px 19px 15px 19px;
  text-align: left;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: popupAppear .22s cubic-bezier(.61,.01,.74,1.05);
  border: 1.3px solid #ffe7cb;
  z-index: 11060;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}


.more-filter-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px;
}
.more-filter-header span {
  font-size: 1.13em; font-weight: 700; color: #ff8300; letter-spacing: 0.18px;
}
#closeMoreFilter {
  background: none; border: none; font-size: 1.6em; color: #ff8300; cursor: pointer;
  border-radius: 8px; padding: 1px 7px; transition: background 0.16s;
  position: relative;
}
#closeMoreFilter:hover { background: #fff5e2;}
.filter-section { margin-bottom: 16px; }
.filter-section label { font-weight: bold; margin-bottom: 5px; display: block; color: #3c2b10; font-size: 1.04em;}
.more-filter-inner input[type="text"] {
  border: 1.2px solid #ffd9b7;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 1.07em;
  background: #fafafc;
  margin-bottom: 2px;
  width: 100%;
  outline: none;
  margin-top: 6px;
  transition: border 0.14s, background 0.14s;
}
.more-filter-inner input[type="text"]:focus {
  border-color: #ff8300;
  background: #fff;
}
.apply-filters-btn {
  display: block;
  margin: 16px auto 0 auto;
  background: linear-gradient(93deg,#ffb473 0%,#f17100 90%);
  color: #fff;
  border: none; border-radius: 21px;
  padding: 11px 40px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 13px #ffd6b49e;
  transition: background 0.16s, box-shadow 0.13s;
  letter-spacing: 0.4px;
}
.apply-filters-btn:hover { background: #f18101;}


#openMoreFilter {
  background: #fff;
  color: #e84242;
  border: 1.5px solid #e84242;
  border-radius: 25px;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(232,66,66,0.07);
  transition: background 0.14s, color 0.14s, border 0.14s;
}
#openMoreFilter:hover {
  background: #ffeaea;
  color: #b83838;
}



#moreFilterPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(30,30,34,0.09);
  align-items: center;
  justify-content: center;
}
#moreFilterPopup.active { display: flex; }

.more-filter-inner {
  /* CENTRAGE VERTICAL + HORIZONTAL TOUJOURS */
  position: relative; /* PAS fixed ici ! */
  left: 0;
  top: 0;
  transform: none;
  margin: 0 auto;
  /* largeur et max-width = centre naturel */
  width: min(98vw, 540px);
  min-width: 320px;
  max-width: 96vw;
  /* reste inchangé */
  /* ... */
}



.amenities-section label {
  font-weight: 700;
  font-size: 1.07em;
  color: #ff8300;
  margin-bottom: 7px;
  display: block;
}
/* 1. Uniformiser la taille des checkboxes et garder un style moderne */
.amenities-list input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0 7px 0 0;
  border: 2px solid #ff8300;
  border-radius: 5px;
  background: #fff;
  vertical-align: middle;
  transition: border 0.16s, box-shadow 0.13s;
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.amenities-list input[type="checkbox"]:checked {
  background-color: #ff8300;
  border: 2px solid #ff8300;
}
.amenities-list input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  position: absolute;
  left: 4px;
  top: 0.5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* 2. Réduire la taille globale et empêcher le débordement de la grid */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 colonnes */
  gap: 10px 16px;
  margin-top: 8px;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 3. Chaque label est aligné proprement */
.amenities-list label {
  font-weight: 500;
  font-size: 1em;
  color: #353535;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}




/* 4. Champ area: largeur adaptée */
.more-filter-inner input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1.08em;
  padding: 8px 13px;
  margin-bottom: 2px;
  margin-top: 6px;
  border: 1.2px solid #ffd9b7;
  border-radius: 8px;
  background: #fafafc;
  outline: none;
  transition: border 0.14s, background 0.14s;
}


.more-filter-inner {
  width: min(98vw, 540px);
  min-width: 320px;
  max-width: 96vw;
  /* garde le reste inchangé */
}

@media (max-width: 700px) {

  html, body {
    min-width: 0;
    width: 100vw;
    background: #faf8f6;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .header2 {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    background-color: white;
    padding: 0 8px;


  }
  .burger {
    flex: none;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 36px;
    height: 36px;
    margin-right: 0;
    cursor: pointer;
  }


.header-logo-center {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
}
.logo {
  display: inline-block;
  height: 34px;
  width: auto;
  max-width: 120px;
  vertical-align: middle;
}
.profil-block {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 50px;
  margin-left: 0;
  white-space: nowrap;
}

.all-button {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 54px;
  left: 0;
  width: 100vw;
  z-index: 20;
  box-shadow: 0 2px 20px rgba(0,0,0,0.11);
  padding: 16px 0;
  gap: 0;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100vw;
}
.all-button.mobile-open {
  display: flex;
}





  /* MENU BURGER ouvert DESSOUS le header2 (fixed) */
  .burger-menu {
    display: none;
    flex-direction: column;
    width: 100vw;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 54px; /* JUSTE SOUS le header */
    left: 0; right: 0;
    z-index: 1099;
    padding-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .burger-menu.show { display: flex; }
  .burger-menu a, .burger-menu .burger-menu-link {
    display: block;
    font-size: 1.12em;
    color: #444;
    padding: 13px 20px 13px 18px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background .13s;
  }
  .burger-menu a:hover, .burger-menu .burger-menu-link:hover {
    background: #faf8f6;
    color: #e3801c;
  }

  /* SEARCHBAR toujours sticky SOUS le header (+ menu ouvert) */
  .search-autocomplete-wrapper {
    position: fixed !important;
    top: 54px;
    left: 0; right: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 60px;
    background: #fff;
    padding: 0 !important; /* Correction ici */
    z-index: 1098;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    transition: top 0.2s;
  }
  .search-autocomplete-wrapper input[type="text"], #search {
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.15em;
    border-radius: 22px;
    border: 1.5px solid #e6e6e6;
    background: #fff;
    padding: 14px 17px;
    margin: 0;
    display: block;
    height: 38px;
  }
  .filter-bar {
    position: fixed !important;
    top: 97px !important; /* 54(header) + 54(search) */
    left: 0; right: 0;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 0 !important; /* Correction ici */
    background: #fff;
    z-index: 1097;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #ececec;
    height: 60px;
    box-sizing: border-box;
    transition: top 0.2s;
  }
  
  .main-content-wrapper {
    padding-top: 154px !important; /* 54+54+46 */
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }





  /* MAIN CONTENT commence APRÈS tout ce qui est sticky (header + searchbar + filtres) */
  .main-content-wrapper {
    padding-top: 158px !important; /* 54(header) + 58(searchbar) + 46(filtres) */
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
  }
  /* Décale aussi quand menu ouvert */
  body.menu-open .main-content-wrapper {
    padding-top: calc(158px + 42vh) !important;
  }

  /* Le reste inchangé : cartes, carousels, etc. */
  .buy-hook { display: none; }
  .property-listing { gap: 16px; max-width: 100vw; padding: 0; }
  .property-card { flex-direction: column; width: 100vw; border-radius: 0; border: none; box-shadow: 0 1px 8px rgba(100,100,120,0.08); margin-bottom: 9px; overflow: hidden; padding: 0;}
  .carousel { width: 100vw; min-width: 100vw; max-width: 100vw; height: 220px; border-radius: 0;}
  .carousel img { width: 100vw; min-width: 100vw; max-width: 100vw; height: 220px; border-radius: 0; object-fit: cover; display: block; margin: 0 auto;} /* Correction ici */
  .property-info { width: 100vw; padding: 15px 13px 15px 15px; gap: 4px; text-align: left;}
  .property-info h3 { font-size: 1.17em; margin-bottom: 7px;}
  .property-info p, .property-info span { font-size: 1.05em;}
  .agent-info { margin: 10px 0 0 0; gap: 6px;}
  .property-actions button:not(.whatsapp-btn) { display: none !important;}
  .property-actions .whatsapp-btn { flex: 1; padding: 12px 0; border-radius: 22px; font-size: 1.1em; text-align: center; background: #43d854; color: #fff; max-width: 98vw; margin: 0 auto; display: block;}
  .site-footer { padding: 19px 7px 10px; font-size: 13px; margin-top: 23px;}
  .footer-links, .footer-socials { gap: 7px;}
  .footer-logo { font-size: 18px; }
  #scrollToTopBtn { display: none !important; }
  #priceFilterPopup, #moreFilterPopup {
  z-index: 11060 !important;
}
#searchSuggestions,
.autocomplete-suggestions {
  z-index: 11050 !important;
}

  .carousel-arrow { display: none !important; }
  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0; right: 0;
    bottom: 10px;
    z-index: 12;
    pointer-events: none;
  }
  .carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.8;
    border: 1.5px solid #eee;
    transition: 0.2s;
    pointer-events: auto;
  }
  .carousel-dot.active {
    background: #fff;
    opacity: 1;
    border-color: #6b42a0;
    box-shadow: 0 0 0 2px #6b42a033;
  }

  /* Fix divers pour modales, sliders, etc (inchangé) */
  .price-popup-inner {
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85vw !important;
    max-width: 90vw !important;
    padding: 18px 2vw !important;
    border-radius: 16px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    
  }

  .slider-main,
  #priceSlider,
  .slider-labels {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  
  }
  .slider-labels > span:first-child,
  .slider-labels .slider-min-label {
    margin-left: 0 !important;
    padding-left: 2px !important;
    max-width: 96px;
    overflow: visible !important;
    left: 0;
    position: relative;
    box-sizing: border-box;
        margin-bottom: 60px;
  }
  .slider-labels > span:last-child,
  .slider-labels .slider-max-label {
    margin-right: 0 !important;
    padding-right: 2px !important;
    max-width: 96px;
    overflow: visible !important;
    right: 0;
    position: relative;
    box-sizing: border-box;
    margin-bottom: 60px;
  }

.price-inputs{
  margin-top: 10px;
  margin-bottom: 3px;
}

  .more-filter-inner {
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 30px) !important;
    min-width: 0 !important;
    max-width: 420px !important;
    border-radius: 14px !important;
    top: 170px !important;
    max-height: 55vh !important;
    height: auto !important;
    overflow-y: auto !important;
    box-sizing: border-box;
    padding: 18px 12px 18px 12px !important;
    background: #fff;
    z-index: 11060 !important;
  }
  .more-filter-header {
    position: relative;
    top: 0;
    background: #fff;
    z-index: 1;
    padding-bottom: 8px;
  }
  .carousel {
  width: 95vw;          /* un peu moins que 100vw pour laisser de l’espace */
  max-width: 420px;     /* limite sur grands écrans mobiles */
  margin: 0 auto;       /* centrage horizontal */
  height: 220px;
  overflow: hidden;     /* cache ce qui dépasse */
  border-radius: 0;
  position: relative;
  display: block;
}
.carousel img {
  width: 100%;          /* prend toute la largeur du carrousel */
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 0;
}



  html, body, .main-content-wrapper {
    max-width: 100vw !important;
    min-width: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #faf8f6 !important;
  }
  .carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 0; right: 0;
  bottom: 13px;
  z-index: 2;
  pointer-events: none; /* important pour ne pas bloquer les swipes */
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
  border: 1.5px solid #eee;
  transition: 0.22s;
  pointer-events: auto; /* Si tu veux rendre les dots cliquables */
}
.carousel-dot.active {
  background: #fff;
  opacity: 1;
  border-color: #6b42a0;
  box-shadow: 0 0 0 2px #6b42a033;
}

  .chatboat-banner {
  margin-top: 190px;
  }
}


/* Fait en sorte que chaque filtre garde toute sa largeur sur desktop et mobile */
.filter-row-scroll select,
.filter-row-scroll button {
  min-width: 90px !important;   /* Ajuste la valeur ici si besoin */
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: initial !important;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 1em;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

/* Si un bouton a un texte plus long ("More filters", "Search", etc.), force un min-width plus grand */
.filter-row-scroll #openMoreFilter,
.filter-row-scroll #openPriceFilter,
.filter-row-scroll #searchBtn,
.filter-row-scroll #clearBtn {
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}




/* Supprime tout gap entre searchbar et boutons */


.search-autocomplete-wrapper {
  margin-right: 0 !important;
}

/* Search arrondi à gauche, bordure droite = none */
.search-autocomplete-wrapper input, #search {
  border-radius: 32px 32px 32px 32px !important;
  border-right: none !important;
  height: 48px !important;
  background: #fff !important;
  border: 2px solid #ededed !important;
  font-size: 1.14em;
}

/* Premier bouton : arrondi à droite, border-left none, chevauche la searchbar */


/* Pour que tout soit aligné */
.filter-row-scroll > * {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}

/* Pour éviter le bug border */
.search-autocomplete-wrapper input:focus, .filter-row-scroll > *:first-child:focus {
  z-index: 10;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 20px; /* Ajuste la valeur pour avoir le même espacement que sur la 3e image */
  overflow-x: auto; 
  /* padding-bottom: 10px; <-- optionnel si besoin */
  background: transparent; /* ou la couleur de fond, si nécessaire */
}



.filters-container {
  display: flex;
  align-items: center;
  gap: 20px; /* adapte la valeur à ton besoin visuel */
}

.filter-row-scroll {
  gap: 16px !important;
}


@media (max-width: 700px) {
  .search-autocomplete-wrapper {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 8px !important;
  }
  .search-autocomplete-wrapper input[type="text"], #search {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 9px 16px !important;
    font-size: 1.09em !important;
    border-radius: 22px !important;
    margin: 0;
  }


}









/* Espace seulement entre les deux */
.search-autocomplete-wrapper {
  margin-right: 0 !important; /* Aucun margin ici */

}
.filter-row-scroll > *:first-child {
  margin-left: 14px !important; /* Espace du bouton à droite de la searchbar */
}





/* RESET de base */
.header2, .all-button, .profil-block {
  box-sizing: border-box;
}

.header2 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 0 28px;
}

/* Logo & Burger */
.logo {
  height: 38px;
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-right: 16px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 27px;
  height: 3px;
  background: #ff6600;
  border-radius: 2px;
  transition: 0.25s;
}

/* Nav */
.all-button {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.header-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: #474747;
  background: none;
  border: none;
  padding: 10px 19px;
  border-radius: 7px;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.header-btn:hover,
.header-btn.active {
  background: #faf7f3;
  color: #ff6600;
  box-shadow: 0 1px 4px 0 rgba(255, 102, 0, 0.09);
}

/* Dropdown - Desktop Only */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 99;
}

.buy-button {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.arrow {
  font-size: 0.8em;
  transition: transform 0.2s;
}
.dropdown.open .arrow {
  transform: rotate(180deg);
}
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 112%;
  min-width: 170px;
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(31,31,35,0.10);
  border-radius: 10px;
  z-index: 12;
  padding: 7px 0;
  animation: fadeIn 0.17s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px);}
  to { opacity: 1; transform: translateY(0);}
}
.dropdown.open .dropdown-content {
  display: block;
}
.dropdown-option {
  padding: 13px 20px 13px 24px;
  display: block;
  font-weight: 600;
  color: #ff6600;
  background: none;
  border: none;
  font-size: 1.03rem;
  text-align: left;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  text-decoration: none;
}
.dropdown-option:hover {
  background: #ff6600;
  color: #fff;
}

/* Profil */
.profil-block {
  margin-left: 16px;
}

/* Responsive : MOBILE (<900px) */
@media (max-width: 900px) {
  .header2 {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 12px;
    min-height: 52px;
  }
  .logo {
    margin: 0 auto;
    height: 30px;
  }
  .burger {
    display: flex;
  }
  .profil-block {
    margin-left: auto;
    margin-right: 0;
  }
  /* Nav menu mobile */
  .all-button {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    width: 100%;
    box-shadow: none;
    padding: 18px 0 0 0;
    position: absolute;
    left: 0;
    top: 55px;
    z-index: 21;
    border-radius: 0 0 15px 15px;
    border-top: 1.5px solid #ececec;
    display: none; /* sera activé par JS burger */
  }
  .all-button.menu-open {
    display: flex;
  }
  .header-btn,
  .all-button > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 0 14px 24px;
    margin: 0;
    font-size: 1.13rem;
    border-radius: 0;
    background: none;
    color: #454545;
    font-weight: 600;
    box-shadow: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.13s, color 0.13s;
  }
  .header-btn:hover,
  .all-button > a:hover {
    background: #fff3e6;
    color: #ff6600;
  }
  /* Plus de dropdown sur mobile */
  .dropdown, .dropdown-content {
    display: none !important;
  }
  /* Montrer les 3 liens Buy/Rent/Commercial sur mobile */
  .mobile-buy-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0 0 0 0;
    gap: 0;
  }
  .mobile-buy-menu a {
    color: #454545;
    font-weight: 600;
    background: none;
    border: none;
    padding: 14px 0 14px 24px;
    text-align: left;
    width: 100%;
    font-size: 1.13rem;
    margin: 0;
    border-radius: 0;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
    transition: color 0.15s, background 0.15s;
  }
  .mobile-buy-menu a:hover {
    color: #ff6600;
    background: #fff3e6;
  }
  /* One-line for chat property AI */
  .chat-button {
    white-space: nowrap;  
    max-width: 97vw;
  }
}

/* Désactive le menu mobile sur desktop */
@media (min-width: 901px) {
  .mobile-buy-menu {
    display: none !important;
  }
}


.search-autocomplete-wrapper { position: relative; }
.autocomplete-suggestions{
  position:absolute; top:100%; left:0;
  min-width:100%;
  width:min(640px, 90vw);
  background:#fff; border:1px solid #ececec; border-radius:12px;
  box-shadow:0 8px 28px rgba(0,0,0,.08);
  z-index:50; display:none;
}
.autocomplete-suggestions.visible{ display:block; }
.autocomplete-suggestions .suggestion-label{
  white-space: normal; word-break: break-word; /* ← plus de coupe */
}

/* --- Suggestions de la barre de recherche --- */
#searchSuggestions .suggestion { 
  display:flex; align-items:center; gap:.6rem;
}
#searchSuggestions .suggestion-icon {
  /* l'icône héritera de cette couleur */
  color: var(--brand-orange, #ff7a00);
}
#searchSuggestions .suggestion:hover .suggestion-icon {
  filter: brightness(.9);
}








/* Supprime tout décalage résiduel de la searchbar */
.search-autocomplete-wrapper{
  margin-left: 0 !important;
}





















/* Bouton "Search" à l'intérieur de l'input */
.search-autocomplete-wrapper { position: relative; }

/* on libère de la place pour le bouton à droite */
#search{
  padding-right: 102px !important;  /* >= largeur du bouton */
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 20px !important;
}

/* bouton interne */
.search-go{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1.7px solid #e84242;
  background: #e84242;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(232,66,66,0.08);
  z-index: 1;              /* au-dessus de l’input, en-dessous des suggestions */
}

.search-go i{ font-size: 0.95rem; line-height: 1; }
.search-go:hover{ background:#ff5c5c; border-color:#ff5c5c; }

/* alignements desktop identiques aux filtres */
.search-autocomplete-wrapper{ height: 40px !important; }

/* mobile : on réduit le bouton et on masque le mot "Search" si l'espace manque */
@media (max-width: 700px){
  #search{ padding-right: 56px !important; height: 38px !important; line-height: 38px !important; }
  .search-go{ height: 32px; padding: 0 10px; right: 5px; }
  .search-go .lbl{ display: none; }  /* ne garder que l’icône en mobile */
}

/* garder les suggestions par-dessus le bouton */
#searchSuggestions,
.autocomplete-suggestions{ z-index: 1105 !important; }





/* La search peut rétrécir en premier, les chips restent sur une ligne */
.search-autocomplete-wrapper{ flex:1 1 clamp(220px,26vw,320px); min-width:180px; }
.filter-row-scroll{ flex:0 0 auto; overflow-x:auto; }
.filter-row-scroll > *{ flex:0 0 auto; }



/* === Filtres : thème & variables === */
:root{
  --accent:#e84242;          /* rouge des chips */
  --chip-bg:#fff;
  --chip-text:#e84242;
  --chip-radius:25px;
  --chip-h:48px;
}

/* ===== Barre de filtres (sous le header) ===== */



/* ===== Search ===== */
.search-autocomplete-wrapper{
  position:relative;
  display:flex;
  align-items:center;
  height:var(--chip-h);
  /* la search s’adapte : rétrécit si manque de place */
  flex:1 1 clamp(220px,26vw,320px);
  min-width:180px;
  max-width:420px;
}
#search{
  width:100%;
  height:var(--chip-h);
  border:1.5px solid #e6e6e6;
  border-radius:25px;
  padding:0 18px;
  font-size:1.07rem;
  background:#fff;
  transition:border .14s;
  box-sizing:border-box;
}
#search:focus{ border-color:#ff902b; }

/* suggestions au-dessus de tout */
#searchSuggestions,
.autocomplete-suggestions{
  position:absolute; left:0; right:0; top:100%;
  z-index:1105 !important;
  background:#fff; border:1px solid #ececec; border-radius:16px;
  box-shadow:0 5px 20px rgba(60,40,20,.13);
  margin-top:2px; overflow:hidden; display:none;
}
#searchSuggestions.visible,
.autocomplete-suggestions.visible{ display:block; }
.autocomplete-suggestions .suggestion,
#searchSuggestions .suggestion{
  padding:12px 18px; font-size:1.04em; cursor:pointer; color:#222;
  border-bottom:1px solid #f2f2f2; transition:background .13s;
}
.autocomplete-suggestions .suggestion:last-child,
#searchSuggestions .suggestion:last-child{ border-bottom:none; }
.autocomplete-suggestions .suggestion:hover,
#searchSuggestions .suggestion:hover{ background:#f4f6f8; color:#e77e23; }

/* ===== Rangée de filtres ===== */
.filter-row-scroll{
  display:flex; align-items:center;
  gap:12px;
  height:var(--chip-h);
  white-space:nowrap;
  /* si ça dépasse, on scrolle (sur mobile/écrans étroits) */
  overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  flex:0 0 auto;
}
.filter-row-scroll > *{ flex:0 0 auto; height:var(--chip-h); }



/* ===== Boutons ===== */
/* outline (Price, More Filters) */
#openPriceFilter, #openMoreFilter{
  background:#fff; color:var(--chip-text);
  border:1.7px solid var(--accent);
  border-radius:var(--chip-radius);
  padding:0 26px; font-size:16px; font-weight:700; cursor:pointer;
  box-shadow:0 1px 7px rgba(232,66,66,.07);
  transition:background .14s, color .14s, border .14s;
}
#openPriceFilter:hover, #openMoreFilter:hover{
  background:#ffeaea; color:#b83838; border-color:#ff5c5c;
}

/* pleins (Search, Clear) */
#searchBtn, #clearBtn{
  background:var(--accent); color:#fff;
  border:1.7px solid var(--accent);
  border-radius:var(--chip-radius);
  padding:0 26px; font-size:16px; font-weight:700; cursor:pointer;
  min-width:90px; transition:background .15s, box-shadow .16s;
}
#searchBtn:hover, #clearBtn:hover{ background:#ff5c5c; }

/* ===== Popups (Price / More Filters) ===== */
#priceFilterPopup, #moreFilterPopup{
  display:none; position:fixed; inset:0; z-index:6000 !important;
  background:rgba(30,30,34,.09);
  align-items:center; justify-content:center;
}
#priceFilterPopup.active, #moreFilterPopup.active{ display:flex; }

.price-popup-inner, .more-filter-inner{
  background:#fff; border-radius:22px;
  border:1.3px solid #ffe7cb;
  box-shadow:0 8px 34px rgba(240,90,0,.10), 0 2px 8px #ffd6b440;
  width:min(96vw, 540px); min-width:320px; max-width:96vw;
  padding:17px 19px 15px; box-sizing:border-box; position:relative;
}
.price-popup-header, .more-filter-header{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:2px;
}
.price-popup-header span, .more-filter-header span{
  font-size:1.13em; font-weight:700; color:#ff8300;
}
#closePricePopup, #closeMoreFilter{
  background:none; border:none; font-size:1.6em; color:#ff8300;
  cursor:pointer; border-radius:8px; padding:1px 7px;
}

/* Slider noUi (si utilisé) — look discret */
#priceSlider .noUi-base{ background:#ffe8d6; height:5px; border-radius:4px; }
#priceSlider .noUi-connect{ background:linear-gradient(90deg,#ffd399 0%,#ff9100 100%); }
#priceSlider .noUi-handle{
  background:#fff2e6; border:2px solid #ff9100; width:18px; height:18px; border-radius:50%;
  top:-7px; box-shadow:0 1px 8px #ffd7b150;
}

/* Champs prix */
.price-inputs{ display:flex; align-items:center; justify-content:center; gap:10px; margin:12px 0 22px; }
.price-inputs input{
  width:200px; text-align:center; font-weight:600;
  border-radius:8px; border:1.3px solid #ffd9b7; padding:6px 8px;
  background:#fafafc; outline:none; transition:border .13s, box-shadow .13s;
  box-shadow:0 1px 6px #ffe4d352; color:#232323;
}













/* ============ PIXEL-LOCK OVERRIDE — FILTER BAR & BOUTONS (exact comme la référence) ============ */

/* Conteneur (mêmes métriques que ta ref) */
.filter-bar{
  background:#fff !important;
  padding:12px 14px !important;
  margin-top:0 !important;
  box-shadow:0 2px 8px rgba(0,0,0,0.03) !important;
  border-bottom:1px solid #e6e6e6 !important;
  position: sticky !important;
  top:60px !important;
  z-index:9 !important;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch !important;
  white-space:nowrap !important;
  width:100vw !important;
  min-width:100vw !important;
  height:68px !important;
}

/* Ligne scrollable */
.filter-row-scroll{
  display:flex !important;
  flex-direction:row !important;
  gap:10px !important;
  overflow-x:auto !important;
  white-space:nowrap !important;
  align-items:center !important;
  height:48px !important;
}


/* ===== Selects (contour rouge) ===== */
.filter-bar select,
.filter-row-scroll select{
  appearance:none !important;
  background:#fff !important;
  color:#e84242 !important;
  border:1.5px solid #e84242 !important;
  border-radius:25px !important;
  padding:0 26px !important;
  font-size:16px !important;
  font-weight:bold !important;
  cursor:pointer !important;
  box-shadow:0 2px 12px rgba(232,66,66,0.10) !important;
  transition:background .15s, color .14s, border .14s !important;
  min-width:120px !important; max-width:210px !important;
  height:48px !important; box-sizing:border-box !important;
  background-image:url("data:image/svg+xml;utf8,<svg fill='red' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat:no-repeat !important;
  background-position:right 16px center !important;
  background-size:18px 18px !important;
  padding-right:40px !important;
}

/* ===== Boutons (plein vs contour) ===== */

/* Pleins: Search + Clear */
.filter-bar #searchBtn,
.filter-bar #clearBtn,
.filter-row-scroll #searchBtn,
.filter-row-scroll #clearBtn,
.filter-bar button[data-variant="primary"],
.filter-row-scroll button[data-variant="primary"]{
  background:#e84242 !important;
  color:#fff !important;
  border:1.5px solid #e84242 !important;
  border-radius:25px !important;
  padding:0 26px !important;
  font-size:16px !important; font-weight:bold !important;
  cursor:pointer !important;
  height:48px !important; min-width:90px !important; margin:0 4px !important;
  box-sizing:border-box !important;
  transition:background .15s, box-shadow .16s !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
.filter-bar #searchBtn:hover,
.filter-bar #clearBtn:hover,
.filter-row-scroll #searchBtn:hover,
.filter-row-scroll #clearBtn:hover,
.filter-bar button[data-variant="primary"]:hover,
.filter-row-scroll button[data-variant="primary"]:hover{ background:#ff5c5c !important; }

/* Contour: Price + More Filters */
#openPriceFilter, #openMoreFilter,
.filter-bar button[data-variant="outline"],
.filter-row-scroll button[data-variant="outline"]{
  background:#fff !important;
  color:#e84242 !important;
  border:1.5px solid #e84242 !important;
  border-radius:25px !important;
  padding:0 26px !important;
  font-size:16px !important; font-weight:bold !important;
  cursor:pointer !important;
  height:48px !important; min-width:120px !important;
  box-shadow:0 1px 7px rgba(232,66,66,0.07) !important;
  transition:background .14s, color .14s, border .14s !important;
}
#openPriceFilter:hover, #openMoreFilter:hover,
.filter-bar button[data-variant="outline"]:hover,
.filter-row-scroll button[data-variant="outline"]:hover{
  background:#ffeaea !important; color:#b83838 !important; border-color:#ff5c5c !important;
}

/* Inputs numériques alignés */
.filter-bar input[type="number"]{ height:48px !important; }

/* Centrage desktop (identique à ta ref) */
@media (min-width:900px){
  .filter-bar{ justify-content:center !important; max-width:1200px !important; margin:0 auto !important; }
}

/* Hauteurs & rayons en mobile (identiques à la ref) */
@media (max-width:700px){
  .filter-row-scroll select,
  .filter-row-scroll button,
  .filter-bar select,
  .filter-bar button{
    height:38px !important; min-height:38px !important; max-height:38px !important;
    padding:0 18px !important; font-size:1.01em !important; border-radius:22px !important; line-height:1.1 !important;
  }
}
























/* === ALIGNER LA SEARCHBAR SUR LA COLONNE DES BIENS (gauche) === */
:root{ --col:1100px; } /* même largeur que .property-listing/.property-summary-wrapper */

.filter-bar{
  justify-content:flex-start !important;
  width:100vw !important; min-width:100vw !important;
  padding-left:max(1px, calc((100vw - var(--col))/2)) !important; /* aligne à gauche des cartes */
  padding-right:14px !important;
  gap:10px !important; height:58px !important;
}

/* Search en premier, large, rétrécit si besoin et peut déborder à droite */
.search-autocomplete-wrapper{
  order:0 !important;
  flex:0 1 clamp(260px, 34vw, 520px) !important;
  max-width:520px !important; min-width:220px !important;
  margin-right:6px !important;
}
#search{ width:100% !important; }

/* Les filtres restent à droite et scrollent si ça déborde */
.filter-row-scroll{
  order:1 !important; flex:1 1 auto !important;
  overflow-x:auto !important; -webkit-overflow-scrolling:touch !important;
}

/* Texte + compact sur les chips/boutons */
.filter-row-scroll select,
.filter-row-scroll button,
#openPriceFilter,#openMoreFilter,#searchBtn,#clearBtn{
  height:40px !important; border-radius:22px !important;
  padding:0 14px !important; font-size:.96rem !important;
}

/* Raccourcir visuellement la punchline */
.buy-hook{ font-size:1rem !important; line-height:1.25 !important; max-width:var(--col) !important; margin-left:auto !important; margin-right:auto !important; }

/* Mobile: search en 1re ligne, left; filtres dessous en scroll */
@media (max-width:700px){
  .filter-bar{ flex-wrap:wrap !important; height:auto !important; padding:10px 12px !important; }
  .search-autocomplete-wrapper{ flex:1 1 100% !important; max-width:100% !important; min-width:0 !important; margin:0 0 8px 0 !important; }
  .filter-row-scroll{ width:100% !important; }
}




/* === UNIFORMISER TAILLE SEARCH & BOUTONS (exactement identiques) === */
:root{
  /* ajuste UNE SEULE VALEUR si tu veux plus/moins petit */
  --chip-h: 40px;          /* hauteur (ex: 40px) */
  --chip-radius: 20px;     /* arrondi */
  --chip-font: 0.96rem;    /* taille texte */
  --chip-pad-x: 14px;      /* padding horizontal */
}

/* barre = un peu plus haute que les chips pour le souffle */
.filter-bar{
  height: calc(var(--chip-h) + 20px) !important;
}

/* SEARCH (wrapper + input) */
.search-autocomplete-wrapper{
  order: 0 !important;
  flex: 0 1 clamp(240px, 24vw, 300px) !important; /* largeur plus compacte */
  max-width: 300px !important;
  min-width: 220px !important;
  height: var(--chip-h) !important;
}
#search{
  height: var(--chip-h) !important;
  line-height: calc(var(--chip-h) - 2px) !important;
  border-radius: var(--chip-radius) !important;
  font-size: var(--chip-font) !important;
  padding: 0 var(--chip-pad-x) !important;
}

/* BOUTONS & SELECTS — mêmes dimensions que la search */
.filter-row-scroll > *,
.filter-bar select,
.filter-bar button{
  height: var(--chip-h) !important;
  min-height: var(--chip-h) !important;
  max-height: var(--chip-h) !important;
  border-radius: var(--chip-radius) !important;
  font-size: var(--chip-font) !important;
  padding: 0 var(--chip-pad-x) !important;
  box-sizing: border-box !important;
}

/* icône chevron des <select> alignée avec la nouvelle hauteur */
.filter-bar select{
  padding-right: calc(var(--chip-pad-x) + 16px) !important;
  background-size: 16px 16px !important;
  background-position: right 10px center !important;
}

/* MOBILE : même logique, un poil plus petit */
@media (max-width:700px){
  :root{
    --chip-h: 38px;
    --chip-radius: 19px;
    --chip-font: 0.97rem;
    --chip-pad-x: 12px;
  }
  .search-autocomplete-wrapper{
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}


/* Nudge léger à gauche (ajuste la valeur) */
@media (min-width: 900px){
  .filter-bar .search-autocomplete-wrapper{
    margin-left: -28px !important; /* -6px à -12px selon ton goût */
  }
}



/* Evite le débordement dû à 100vw + padding */
.filter-bar{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Sécurité anti-débordement sur la ligne de filtres */
.filter-row-scroll{
  max-width: 100% !important;
}

/* (optionnel) si un composant force 100vw, on neutralise */
@media (min-width: 900px){
  .search-autocomplete-wrapper,
  .filter-bar,
  .header2{
    max-width: 100% !important;
  }
}

/* ====== 2) Bouton Clear bien arrondi (pill) ====== */
#clearBtn{
  border-radius: 9999px !important;   /* full pill */
  padding: 0 26px !important;         /* garde la même hauteur/respiration */
  line-height: 1 !important;
}

#clearBtn:hover{
  background: #ff5c5c !important;
  border-color: #ff5c5c !important;
}


/* Montre entièrement le bouton Clear (respire à droite) */
.filter-bar{
  width: 100vw !important;           /* évite le débordement dû à 100vw */
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden   !important;      /* garde le défilement si ça déborde vraiment */
}

/* La rangée de chips a aussi un petit padding droit */
.filter-row-scroll{
  padding-right: 20px !important;

}

/* Si tu as ça quelque part, on l’annule pour ne pas couper le Clear */
html, body{
  overflow-x: visible !important;   /* (au lieu de hidden) */
}

/* === Espace searchbar ↔︎ 1er bouton (Commercial Rent) === */
.filter-bar{
  column-gap: 4px !important;   /* avant ~12px ; ajuste 4–8px si besoin */
}

.search-autocomplete-wrapper{
  margin-right: 0 !important;   /* pas d’espace ajouté côté search */
}

.filter-row-scroll{
  padding-left: 0 !important;   /* pas de padding fantôme */
}
.filter-row-scroll > *:first-child{
  margin-left: 4px !important;  /* mini souffle entre search et le 1er chip */
}
/* Garde le scroll au doigt/trackpad mais masque la barre */
.filter-row-scroll{
  overflow-x: auto;              /* on conserve le défilement si besoin */
  -ms-overflow-style: none;      /* IE/Edge */
  scrollbar-width: none;         /* Firefox */
}
.filter-row-scroll::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

/* 1) Le wrapper devient la "pile" la plus haute */
.search-autocomplete-wrapper{
  position: relative !important;
  z-index: 11050 !important; /* > à la filter-bar/le header */
  overflow: visible !important; /* rien ne coupe le dropdown */
}

/* 2) Le dropdown passe encore au-dessus du wrapper */
#searchSuggestions,
.autocomplete-suggestions{
  position: absolute !important;
  left: 0; right: 0; top: 100%;
  z-index: 11060 !important;   /* plus haut que tout le reste */
  display: none;                /* .visible -> display:block en JS */
}

/* 3) S'assurer que la barre de filtres ne clippe pas */
.filter-bar{
  overflow: visible !important;
  z-index: 100 !important;      /* bien en dessous du dropdown */
}


/* --- Remettre le dropdown du header AU-DESSUS des filtres --- */
/* Les modales/suggestions restent au top (≈11060 dans ton CSS) */
.filter-bar{
  z-index: 11000 !important;         /* sous le header */
  overflow: visible !important;
}

.header2{
  z-index: 11040 !important;          /* au-dessus de la filter-bar */
  overflow: visible !important;
}

.all-button,
.dropdown{
  position: relative !important;
  z-index: 11045 !important;          /* pile au-dessus */
  overflow: visible !important;
}

.dropdown-content{
  z-index: 11050 !important;          /* < 11060 des popups/suggestions */
}












/* ====== MOBILE ONLY (<=700px) — header/search/filtres collés + anti-scroll latéral ====== */
@media (max-width:700px){
  :root{
    --m-header:54px;   /* hauteur header */
    --m-search:44px;   /* hauteur searchbar */
    --m-filters:44px;  /* hauteur bandeau filtres */
    --m-gutter:12px;   /* padding horizontal */
  }

  /* Empêche tout déplacement latéral */
  html, body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
    overscroll-behavior-x:none !important;
    touch-action:pan-y !important;
    position:relative !important;
  }

  /* Header fixe en haut */
  .header2{
    position:fixed !important;
    top:0 !important; left:0 !important; right:0 !important;
    height:var(--m-header) !important;
    padding:0 var(--m-gutter) !important;
    margin:0 !important;
    background:#fff !important;
    z-index:11040 !important;
  }

  /* Search juste sous le header, sans écart */
  .search-autocomplete-wrapper{
    position:fixed !important;
    top:var(--m-header) !important;
    left:0 !important; right:0 !important;
    width:100% !important; max-width:100% !important; min-width:0 !important;
    height:var(--m-search) !important;
    padding:0 var(--m-gutter) !important;
    background:#fff !important;
    border-bottom:1px solid #eee !important;
    z-index:11030 !important;
  }
  #search{
    height:calc(var(--m-search) - 8px) !important;
    line-height:calc(var(--m-search) - 10px) !important;
  }

  /* Filtres collés sous la search, centrés, scroll horizontal si besoin */
  .filter-bar{
    position:fixed !important;
    top:calc(var(--m-header) + var(--m-search)) !important;
    left:0 !important; right:0 !important;
    height:var(--m-filters) !important;
    width:100% !important; max-width:100% !important;
    padding:0 var(--m-gutter) !important;
    background:#fff !important;
    border-bottom:1px solid #ececec !important;
    overflow:visible !important;
    z-index:11020 !important;
  }

  /* Assure l'affichage complet de "Property Type" & co */


  /* Neutralise tous les 100vw qui provoquent le “glissement” */
  .header2,
  .search-autocomplete-wrapper,
  .filter-bar,
  .filter-row-scroll,
  .property-summary-wrapper,
  .property-listing,
  .property-card,
  .property-info,
  .carousel{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .property-card{ border-left:0; border-right:0; border-radius:0; }
  .carousel,
  .carousel img{ height:220px !important; object-fit:cover !important; }

  /* Popups ne débordent pas en largeur */
  #priceFilterPopup .price-popup-inner,
  #moreFilterPopup .more-filter-inner{
    max-width:calc(100% - 24px) !important;
  }



  /* === SCROLL HORIZONTAL UNIQUEMENT POUR LES FILTRES === */
.filter-bar{
  width: 100% !important;            /* évite le 100vw qui crée du dépassement */
  display: flex !important;
  gap: 8px !important;
  overflow: hidden !important;       /* pas de scroll ici */
  box-sizing: border-box !important;
}

.search-autocomplete-wrapper{
  flex: 0 0 auto !important;         /* largeur fixe pour la search */
}

}




/* === MOBILE: barre de filtres scrollable horizontalement === */
@media (max-width:700px){
  /* Le parent cadre la zone (ne scrolle pas lui-même) */
  .filter-bar{
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* La search garde sa largeur, ne scrolle pas */
  .search-autocomplete-wrapper{
    flex: 0 0 auto !important;
  }

  /* La rangée de chips = zone scrollable */
  .filter-row-scroll{
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;

    -webkit-overflow-scrolling: touch; /* inertie iOS */
    touch-action: pan-x;                /* gestes horizontaux */
    overscroll-behavior-x: contain;     /* évite le “rebond” */
    scrollbar-width: none;              /* masque la barre (Firefox) */
  }
  .filter-row-scroll::-webkit-scrollbar{ display:none; } /* Chrome/Safari */
  .filter-row-scroll > *{ flex: 0 0 auto !important; }   /* chaque chip garde sa taille */
}



/* === HARD OVERRIDE — Mobile : la barre des filtres scrolle === */
@media (max-width:700px){
  .filter-bar{
    display: flex !important;
    align-items: center !important;

    /* la barre EST la zone scrollable */
    overflow-x: auto !important;
}


}


/* --- plus bas dans ton fichier --- */
.all-button,
.dropdown{
  position: relative !important;
  z-index: 11045 !important;
}













/* ===== Z-INDEX MAP (FINAL, À COLLER EN BAS) ===== */
:root{
  --z-content: 1;
  --z-filters: 1110;        /* filtres */
  --z-search: 1120;         /* search bar */
  --z-menu: 1150;           /* menu mobile (all-button) */
  --z-header: 1200;         /* header + logo */
  --z-suggestions: 1300;    /* suggestions de recherche */
  --z-modal: 6000;          /* popups (prix / more) */
}

/* Header au-dessus de tout le contenu */
.header2{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header) !important;
}

/* Desktop: on laisse la nav vivre "normalement" (pas de hack global) */
@media (min-width: 901px){
  .all-button, .dropdown{ position: relative !important; z-index: auto !important; }
}

/* Mobile : menu sous le header, plein écran */
@media (max-width: 900px){
  .header2{
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .burger{ grid-column: 1; }
  .logo{ grid-column: 2; justify-self: center; }
  .profil-block{ grid-column: 3; justify-self: end; }

  .header2 .all-button{
    position: fixed !important;
    top: 54px !important;           /* hauteur du header mobile */
    left: 0 !important; right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    z-index: var(--z-menu) !important;   /* SOUS le header */
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .header2 .all-button.menu-open,
  .header2 .all-button.mobile-open{ display: flex !important; }

  .search-autocomplete-wrapper{ z-index: var(--z-search) !important; }
  .filter-bar{ z-index: var(--z-filters) !important; }
}

/* Suggestions au-dessus de la search/filtres, sous les modales */
#searchSuggestions,
.autocomplete-suggestions{
  z-index: var(--z-suggestions) !important;
}

/* Popups en tout premier plan */
#priceFilterPopup, #moreFilterPopup{
  z-index: var(--z-modal) !important;
}





/* MOBILE — logo centré quoi qu'il arrive */
@media (max-width: 900px){
  .header2{
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important; /* gauche = droite */
    align-items: center !important;
    padding-left: 12px;             /* mêmes paddings des 2 côtés */
    padding-right: 12px;
  }

  /* place les éléments dans la grille */
  .burger{ grid-column: 1; justify-self: start; min-width: 44px; }
  .profil-block{ grid-column: 3; justify-self: end; }

  /* si tu as un wrapper .header-logo-center */
  .header-logo-center{ grid-column: 2; justify-self: center !important; }

  /* sinon, directement le logo */
  .logo{
    grid-column: 2;
    justify-self: center !important;
    margin: 0 !important;
    transform: none !important;
  }
}









/* === MOBILE (<=900px) — Logo fixe & parfaitement centré === */
@media (max-width:900px){

  


  /* LOGO centré au pixel près et taille inchangée */
  .logo{
    position: absolute !important;
    left: -80%!important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: none !important;
    margin: 0 !important;
    display: block !important;
  }

}



@media (max-width:700px){
  .property-card .carousel{ 
    position: relative;
    width: 100vw; max-width: 420px; margin: 0 auto;
    height: 220px; overflow: hidden; 
  }
  .property-card .carousel-track{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .property-card .carousel-track::-webkit-scrollbar{ display:none; }
  .property-card .carousel-track img{
    flex: 0 0 100%;
    width: 100%; height: 220px;
    object-fit: cover;
    scroll-snap-align: center;
    display: block;
  }
  /* cache les flèches en mobile */
  .property-card .carousel .carousel-btn{ display:none !important; }

  /* points bien centrés */
  .property-card .carousel .carousel-dots{
    position:absolute; left:50%; bottom:12px; transform:translateX(-50%);
    display:flex; gap:8px; z-index:3; pointer-events:none;
  }
  .property-card .carousel .carousel-dot{
    width:8px; height:8px; border-radius:50%;
    background:#fff; opacity:.85; border:1.5px solid #eee;
    pointer-events:auto;
  }
  .property-card .carousel .carousel-dot.active{
    opacity:1; border-color:#6b42a0; box-shadow:0 0 0 2px #6b42a033;
  }
}




/* === FIX OVERLAP: header & dropdown au-dessus de la barre de filtres === */
.header2{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 11040 !important;          /* header au-dessus */
  overflow: visible !important;
}

.filter-bar{
  z-index: 11020 !important;           /* filtres en-dessous du header */
  overflow: visible !important;
}

.dropdown{ position: relative !important; }
.dropdown-content{
  position: absolute !important;
  z-index: 11050 !important;           /* menu déroulant au-dessus des filtres */
}




/* commun */

.property-card .carousel img{ width:100%; height:100%; object-fit:cover; }

/* Desktop : 1 image visible, recadrée */
@media (min-width:701px){
  .property-card .carousel{ position:relative; overflow:hidden; }
  .property-card .carousel img{ position:absolute; inset:0; display:none; }
  .property-card .carousel img.active{ display:block; }
}

/* Mobile : galerie scrollable (pas d'absolu, pas de display:none) */
@media (max-width:700px){
  .property-card .carousel-track{
    display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  }
  .property-card .carousel-track img{
    position:static; flex:0 0 100%; display:block; /* chaque image prend 100% de la largeur */
  }
}

@media (max-width:900px){
  .all-button, .burger-menu{
    position: fixed !important;         /* s’affiche sous le header */
    top: 54px !important; left: 0; right: 0;
    z-index: 9999 !important;           /* AU-DESSUS de tout */
  }
  .search-autocomplete-wrapper, .filter-bar{
    z-index: 9990 !important;           /* en-dessous du menu */
  }
}
