/* ========== 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 auto;
  }
}

.filter-bar {
  background: #fff;
  padding: 12px 14px 12px 14px;  /* Moins de padding en haut/bas */
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 60px;
  z-index: 9;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;      /* Petit espace entre searchbar et filtres */
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  width: 100vw;
  min-width: 100vw;
  height: 68px;   /* Barre fine */
}

/* ...ET TOUT LE RESTE DE TON CSS ICI, INCHANGÉ... */
/* (Tu n’as qu’à coller la suite comme dans ton fichier d’origine, tout est OK) */




.filter-bar > * {
  flex-shrink: 0;
  align-items: center;
  height: 48px; /* Aligne tout verticalement */
  display: flex;
}

/* ---------- CORRECTION Z-INDEX SUGGESTIONS -------------- */
.search-autocomplete-wrapper {
  position: relative;
  width: 360px;
  min-width: 240px;
  max-width: 420px;
  margin-right: 2px;
  display: flex;
  align-items: center;
  height: 48px;
  z-index: 1101 !important; /* Correction : wrapper très haut */
}

#searchSuggestions,
.autocomplete-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1105 !important; /* Correction : suggestions au top */
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 5px 20px rgba(60,40,20,0.13);
  min-width: 100%;
  max-width: 440px;
  margin-top: 2px;
  border-radius: 16px;
  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;
  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; }

body, html, .filter-bar {
  overflow: visible !important; /* Pour être certain que rien ne coupe le popup */
}

.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; }
}


/* ------------------------------------------------------- */

.filter-row-scroll {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  align-items: center;
  height: 48px;
}

.filter-bar select,
.filter-row-scroll select {
  appearance: none;
  background: #fff;
  color: #e84242;
  border: 1.5px solid #e84242;
  border-radius: 25px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(232,66,66,0.10);
  transition: background 0.15s, color 0.14s, border 0.14s;
  min-width: 120px;
  max-width: 210px;
  height: 48px;
  box-sizing: border-box;
  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>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
  padding-right: 40px;
}

.filter-bar input[type="number"] {
  height: 48px;
}

.filter-bar button,
.filter-row-scroll button {
  background: #e84242;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  height: 48px;
  min-width: 90px;
  margin: 0 4px;
  box-sizing: border-box;
  transition: background 0.15s, box-shadow 0.16s;
  align-items: center;
  display: flex;
  justify-content: center;
}

.filter-bar #clearBtn,
.filter-row-scroll #clearBtn {
  background: #e84242;
  color: #fff;
  border: 1.5px solid #e84242;
  margin-left: 6px;
}
.filter-bar #clearBtn:hover,
.filter-bar #searchBtn:hover,
.filter-bar button:hover,
.filter-row-scroll #clearBtn:hover,
.filter-row-scroll #searchBtn:hover,
.filter-row-scroll button:hover {
  background: #ff5c5c;
}




.filter-bar-inner {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 1200px;   /* Ou la largeur centrale désirée */
  margin: 0 auto;
  justify-content: center;   /* Ou flex-start si tu veux à gauche */
  align-items: center;
}





/* 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: 2;
}
.carousel-btn:hover {
  background: #cfc6fa;
  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-autocomplete-wrapper {
  min-width: 460px;
  max-width: 540px;
  width: 420px;        /* Tu peux encore augmenter si tu veux plus large */
  flex-shrink: 0;
}

#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) --- */
.filter-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
  width: 100vw;
  min-width: 100vw;
}

.filter-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100vw;
       /* <- important pour éviter le débordement */
}
.filter-bar > * {
  flex-shrink: 1;       /* pas 0 sinon ça ne rapetisse jamais ! */
  min-width: 0;
}

.search-autocomplete-wrapper {
  position: relative;
  flex-shrink: 0;
  min-width: 180px;    /* ou 120px si tu veux */
  max-width: 350px;
  width: 100%;         /* pour qu’elle rapetisse mais reste visible */
  margin-right: 2px;
  display: flex;
  align-items: center;
  height: 48px;
}


#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;
    overflow-x: hidden !important;
    background: #faf8f6;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .header2 {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: white;
    padding: 0 8px;
    z-index: 10;

  }
  .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;
  }
  .burger span {
    height: 4px;
    width: 25px;
    background: #ff9900;
    margin: 3.2px 0;
    border-radius: 5px;
    display: block;
    transition: 0.2s;
  }

.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: 108px !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: 8px;
    border-bottom: 1px solid #ececec;
    height: 60px;
    overflow-x: auto;
    box-sizing: border-box;
    transition: top 0.2s;
  }
  .filter-row-scroll {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: auto;
    gap: 6px;
  }
  .main-content-wrapper {
    padding-top: 154px !important; /* 54+54+46 */
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Quand menu burger ouvert : la filter-bar descend aussi (en JS avec .menu-open sur body) */
  body.menu-open .filter-bar {
    top: calc(112px + 42vh); /* Ajuste selon la taille du menu */
  }

  /* ROW scrollable des filtres */
  .filter-row-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: 48px !important;
    height: 48px !important;
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100vw;
    box-sizing: border-box;
    min-width: 0;
    z-index: 1;
    touch-action: pan-x;
    overscroll-behavior-y: contain;
  }
  .filter-row-scroll::-webkit-scrollbar { display: none; }
  .filter-row-scroll select,
  .filter-row-scroll button {
    font-size: 1em;
    min-width: 82px;
    max-width: 130px;
    padding: 8px 8px;
    border-radius: 16px;
    height: 38px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 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;
    overflow-x: hidden !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;
  }
}


















/* 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;
}

.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;
  }
}

/* === ORANGE BRAND === */
:root{
  --accent-orange: #f17100; /* même orange que l'histogramme */
}

/* Suggestions (les deux variantes de ton markup) */
#searchSuggestions .suggestion-icon i,
#searchSuggestions .suggestion-pf-icon i,
.autocomplete-suggestions .suggestion-icon i,
.autocomplete-suggestions .suggestion-pf-icon i {
  color: var(--accent-orange) !important;
  --fa-primary-color: var(--accent-orange); /* FA6 compat */
}

/* (Optionnel) garder l’orange au survol/selection */
#searchSuggestions .suggestion:hover .suggestion-icon i,
#searchSuggestions .suggestion:focus .suggestion-icon i,
#searchSuggestions .suggestion-pf-item:hover .suggestion-pf-icon i,
#searchSuggestions .suggestion-pf-item:focus .suggestion-pf-icon i {
  color: var(--accent-orange) !important;
}







/* === FIX BUY: search trop large => “Clear” invisible === */

/* 1) Neutraliser les anciennes largeurs globales */
.search-autocomplete-wrapper{
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
}

/* 2) Desktop: search compacte, identique à rent */
@media (min-width: 900px){
  .filter-bar{ 
    height: 64px !important; 
    padding-top: 10px !important; 
    padding-bottom: 2px !important;  /* colle visuellement au contenu */
    box-shadow: 0 1px 3px rgba(0,0,0,.02) !important;
  }

  .filter-bar .search-autocomplete-wrapper{
    /* largeur contrôlée : ne “mange” plus les boutons */
    flex: 0 0 clamp(240px, 26vw, 320px) !important;
    width: clamp(240px, 26vw, 320px) !important;
    min-width: 0 !important;
    max-width: 320px !important;
  }

  #search{
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 20px !important;
    padding: 0 14px !important;
    font-size: 1.03rem !important;
  }

  /* chips/boutons à la même hauteur, un peu resserrés */
  .filter-row-scroll{ gap: 8px !important; overflow-x: auto; }
  .filter-row-scroll > *{ flex: 0 0 auto !important; }
  .filter-row-scroll select,
  .filter-row-scroll button{
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 20px !important;
    font-size: 15px !important;
  }
  .filter-row-scroll select{
    padding-right: 30px !important;
    background-size: 16px 16px !important;
    background-position: right 10px center !important;
  }
}




/* Cacher les flèches du carrousel en MOBILE uniquement */
@media (max-width: 768px) {
  .carousel-btn {
    display: none !important;
  }
  /* Images du carrousel : une seule visible */
.carousel img {
  display: none;
}



}


