
  /* ------------- TABS & FILTERS ------------- */
  .top-tabs-filters {
    margin: 70px auto 0 auto;
    max-width: 1100px;
    width: 97vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    position: relative;
    gap: 16px;
    margin-bottom: 0;
  }
.tabs {
  display: flex;
  gap: 7px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(32,32,32,0.09);
}


.tab {
  border: none;
  background: none;
  padding: 4px 18px;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  color: #474759;
  cursor: pointer;
  transition: background 0.13s, color 0.12s;
}

.tab.active,
.tab:hover {
  background: #ffeed9;
  color: #ff9500;
}

  .filter-bar {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 3px 24px rgba(230,155,0,0.03);
    margin: 0 auto 0 auto;
    width: fit-content;
    max-width: auto;
    max-height: 40px;
    z-index: 7;
    padding-left: 7px;
    padding-right: 7px;
    margin-bottom: 3px;
    margin-top: 0;
  }
  .filter-btn,
  .filter-bar select 
  #openPriceFilter
  {
    background: #faf7f4;
    border: none;
    outline: none;
    padding: 10px 32px 10px 18px;
    border-radius: 16px;
    font-size: 1 em;
    color: #5e5360;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.13s, box-shadow 0.13s;
    box-shadow: 0 2px 9px rgba(220,180,140,0.05);
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: auto;
  }
  .filter-btn i {
    font-size: 1.16em;
    color: #ff9900;
  }
  .filter-btn.active,
  .filter-bar select:focus,
  .filter-bar select:active {
    background: #fff3e5;
    color: #e88b00;
    box-shadow: 0 3px 12px #ffb3662b;
  }
  .filter-bar select {
    border: none;
    padding-right: 32px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='orange' 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 14px center;
    background-size: 18px 18px;
  }
  #openPriceFilter {

    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;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  #openPriceFilter:hover {
    background: #ffeaea;
    color: #b83838;
  }
  @media (max-width: 700px) {
    .filter-bar {
      flex-wrap: nowrap;
      gap: 6px;
      border-radius: 14px;
      min-height: 48px;
      padding: 7px 0;
      box-shadow: 0 2px 10px #ffd7b175;
      max-width: 99vw;
      overflow-x: auto;
    }
    .filter-btn, .filter-bar select {
      font-size: 1em;
      padding: 7px 10px 7px 9px;
      border-radius: 11px;
      min-width: 76px;
    }
  }

  /* ------------- MAP ------------- */
  #map {
    height: calc(100vh - 220px);
    width: 100vw;
    margin: 5px auto 0 auto;
    border-radius: 18px;
    border: 2px solid #ffc174;
    box-shadow: 0 7px 28px rgba(255,161,54,0.10);
    z-index: 1;
    position: relative;
  }

  .promoteur-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(255,161,54,0.12);
    border: 1.2px solid #fff;
    min-width: 36px;
    min-height: 36px;
    padding: 4px 7px 6px 7px;
  }

  .promoteur-marker-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: #f9f8fc;
    border-radius: 4px;
    margin-bottom: 3px;
  }

  .marker-badge {
    margin-top: 1px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 7px;
    padding: 2.5px 9px 2.5px 9px;
    color: #fff;
    line-height: 1.1;
    box-shadow: 0 1px 4px #fdc27630;
  }

  .marker-badge.launch { background: #8429d3; }
  .marker-badge.handover { background: #ff9100; }

  .promoteur-marker-arrow {
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    width: 12px; height: 7px;
    z-index: 5;
  }
  .promoteur-marker-arrow::after {
    content: "";
    display: block;
    width: 0; height: 0;
    margin: auto;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #fff;
  }


  /* ------------- POPUP PROJECT ------------- */
  /* Animation popup "scale from marker" */
  .project-popup-airbnb {
    background: #fff !important; /* fond bien blanc */
    border-radius: 22px;
    width: 290px;
    min-width: 200px;
    max-width: 98vw;
    box-shadow: 0 6px 30px rgba(30,30,34,0.12), 0 1px 8px #ffd6b440;
    padding: 0 0 12px 0;
    /* Animation effet sort du marker */
    animation: popupFromMarker 0.22s cubic-bezier(.61,.01,.74,1.05);
    transform-origin: bottom center;
  }

  @keyframes popupFromMarker {
    0% {
      opacity: 0;
      transform: scale(0.72) translateY(30px);
    }
    90% {
      opacity: 1;
      transform: scale(1.04) translateY(-7px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }


  .popup-close:hover { background: #ffeed9; color: #ff9100; }
  .popup-main-imgbox {
    width: 100%;
    height: 110px; /* plus haut qu'avant, augmente ici si besoin (ex: 130px) */
    background: #f5f5f7;
    border-radius: 22px 22px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
  }
  .popup-main-img {
    width: 100%;
    height: 110px; /* même valeur que ci-dessus */
    object-fit: cover;
    border-radius: 22px 22px 0 0;
  }

  .popup-logo {
    position: absolute;
    left: 17px;
    top: 17px;
    width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(40,30,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .popup-logo img {
    width: 42px; height: 42px; object-fit: contain;
    border-radius: 9px;
  }
  .popup-body {
    padding: 17px 22px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .popup-title {
    font-size: 1.32rem;
    font-weight: 700;
    color: #181818;
    margin-bottom: 1px;
  }
  .popup-location {
    font-size: 1.08rem;
    color: #888;
    margin-bottom: 8px;
  }
  .popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.09rem;
    margin-bottom: 6px;
  }
  .popup-price {
    font-weight: 600;
    color: #888;
  }
  .popup-status {
    padding: 6px 15px;
    border-radius: 13px;
    font-size: 0.97rem;
    font-weight: 700;
    margin-left: 10px;
    background: #ffeed9;
    color: #ff9100;
  }
  .popup-status.launch { background: #f6efff; color: #8429d3; }
  .popup-status.handover { background: #ffeed9; color: #ff9100; }
  .popup-details {
    display: flex;
    gap: 11px;
    font-size: 1.07rem;
    color: #888;
    margin-bottom: 6px;
  }
  .popup-details > div { white-space: nowrap; }
  .popup-info-list { margin: 9px 0 19px 0; color: #555; }
  .popup-detail { font-size: 1.08rem; }
  .popup-btn-cta {
    background: #ff9100;
    color: #fff;
    border: none;
    border-radius: 13px;
    font-size: 1.22rem;
    font-weight: 700;
    width: 100%;
    padding: 14px 0;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(255,161,54,0.11);
    transition: background 0.13s;
    margin-bottom: 8px;
  }
  .popup-btn-cta:hover { background: #fa8400; }
  .popup-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: 44px;
    height: 22px;
    z-index: 9;
    pointer-events: none;
  }
  .popup-arrow svg { display: block; }
  .leaflet-airbnb-popup .leaflet-popup-content-wrapper { background: none; box-shadow: none; border: none; }
  .leaflet-airbnb-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 355px;
    border-radius: 26px;
    box-shadow: 0 10px 44px rgba(35,28,12,0.17);
    background: none;
  }
  .leaflet-airbnb-popup .leaflet-popup-tip-container { display: none; }

  /* ------------- POPUP PRICE FILTER ------------- */
  #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;
  }

  /* ------ noUiSlider (prix) custom ------ */
  #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;
  }
  .validate-price-btn:hover { background: #f18101;}
  body.price-popup-open { overflow: hidden; }






@media (max-width: 700px) {
  html, body, #root, .app, .offplan-map-page, .main-container, .container {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    background: #faf8f6 !important;
  }

  .header2 {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px; z-index: 1100;
    background: #fff;
    width: 100vw !important;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .top-tabs-filters {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 68px 0 0 0 !important;
    padding: 0 !important;
  }

  .tabs { gap: 2px; }
  .tab { padding: 8px 9vw; font-size: 1rem; }

  .filter-bar {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 7px 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    align-items: center;
    scroll-behavior: smooth;
    background: #fff;
  }
  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-btn, .filter-bar select {
    font-size: 1em;
    padding: 9px 17px;
    border-radius: 11px;
    min-width: max-content;
    white-space: nowrap;
    margin: 0 !important;
  }

  .filter-bar > *:first-child {
    margin-left: 0 !important;
  }

  #map {
    width: 100vw !important;

    min-width: 0 !important;
    height: calc(100vh - 10px); /* ajuste selon tes autres éléments */
    border-radius: 0 !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  .project-popup-airbnb {
    max-width: 99vw !important;
    width: 99vw !important;
    left: 1vw !important;
  }

  .all-button { z-index: 1200 !important; display: none !important; }

  .offplan-map-page .header2 .all-button.mobile-open {
    display: flex !important;
  }
}





/* =======================================================================
   OFF-PLAN MAP – Filter pills (adaptation BUY)  |  N'altère pas .tabs/.tab
   ======================================================================= */

/* Palette */
:root{
  --pill-red:#e84242;
  --pill-red-hover:#ff5c5c;
  --pill-shadow:0 2px 12px rgba(232,66,66,.10);
}

/* Barre + rail horizontal */
.filter-bar{
  background:#fff;
  border-bottom:1px solid #e6e6e6;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
  height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px 0;
  z-index:7;
}

.filter-row-scroll{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-inline:10px;            /* évite que le 1er pill soit coupé */
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
}
.filter-row-scroll::-webkit-scrollbar{ display:none; }

/* Tous les éléments restent compacts et n’étirent pas */
.filter-bar > *,
.filter-row-scroll > *{
  flex:0 0 auto;
  height:48px;
  display:inline-flex;
  align-items:center;
}

/* ===================== SELECT pills ===================== */
.filter-bar select,
.filter-row-scroll select{
  display:inline-block !important;
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  font-family:'Montserrat',Arial,sans-serif;
  font-weight:600; line-height:1.1;
  color:var(--pill-red);
  background:#fff;
  border:1.5px solid var(--pill-red);
  border-radius:25px;
  padding:0 26px 0 14px;          /* compact */
  min-width:0 !important;          /* supprime les 120px forcés */
  width:auto !important;           /* largeur = contenu */
  max-width:none !important;
  white-space:nowrap !important;
  box-shadow:var(--pill-shadow);
  transition:background .15s,color .15s,border-color .15s,box-shadow .15s;
  background-image:url("data:image/svg+xml;utf8,<svg fill='red' width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5'/></svg>");
  background-repeat:no-repeat;
  background-position:right 8px center; /* caret rapprochée */
  background-size:12px 12px;
}
.filter-bar select:focus,
.filter-row-scroll select:focus{
  outline:none;
  border-color:#ff7a7a;
  box-shadow:0 0 0 3px rgba(232,66,66,.15);
}

/* ===================== BUTTON pills ===================== */
/* Par défaut = bouton rouge plein */
.filter-bar button,
.filter-row-scroll button{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:'Montserrat',Arial,sans-serif;
  font-weight:700; line-height:1;
  height:48px;
  padding:0 18px;                  /* compact */
  border-radius:25px;
  border:1.5px solid var(--pill-red);
  background:var(--pill-red);
  color:#fff;
  cursor:pointer;
  transition:background .15s, box-shadow .15s, border-color .15s, color .15s;
}
.filter-bar button:hover,
.filter-row-scroll button:hover{ background:var(--pill-red-hover); }

/* Variantes contour (Price & More Filters) */
#openPriceFilter,
#openMoreFilter{
  background:#fff;
  color:var(--pill-red);
  box-shadow:0 1px 7px rgba(232,66,66,.07);
}
#openPriceFilter:hover,
#openMoreFilter:hover{
  background:#ffeaea; color:#b83838;
}

/* Search / Reset restent en plein */
#searchBtn, #clearBtn{
  background:var(--pill-red);
  color:#fff;
  border:1.5px solid var(--pill-red);
}

/* Focus accessible */
#openPriceFilter:focus,
#openMoreFilter:focus,
#searchBtn:focus,
#clearBtn:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(232,66,66,.15);
}

/* ===================== Correctifs importants ===================== */
/* (1) Sélecteur cassé + typo dans ta base */
.filter-btn,
.filter-bar select,
#openPriceFilter{
  font-size:1em;                   /* corrige "1 em" */
}
/* (2) Empêche un display:flex hérité de déformer les <select> */
.filter-bar select,
.filter-row-scroll select{ align-items:center; }

/* ===================== Mobile ===================== */
@media (max-width:700px){
  .filter-bar{
    height:60px;
    padding:7px 0;
    justify-content:flex-start;    /* scroll horizontal naturel */
  }
  .filter-row-scroll{ gap:8px; padding-inline:8px; }
  .filter-row-scroll select,
  .filter-row-scroll button{
    height:38px;
    padding:0 14px;
    border-radius:16px;
    background-position:right 7px center !important;
    background-size:12px 12px !important;
  }
}

/* === (Optionnel) si tu veux la barre sticky, décommente :
.filter-bar{ position:sticky; top:120px; }
*/













/* 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;
  }
}



/* place le “card marker” au-dessus du point lat/lng */
.gm-card-pin{
  position: relative;
  transform: translate(-50%, calc(-100% - 8px)); /* ancre en bas-centre */
  pointer-events: auto;
}

/* style général de la carte (déjà proche de ce que tu as) */
.promoteur-marker{
  position: relative;
  background: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promoteur-marker-logo{ width:34px; height:34px; object-fit:cover; border-radius:8px; border:1px solid #eee; }
.promoteur-marker-title.small{ font-weight:700; font-size:12px; max-width:160px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.marker-badge{ font-size:11px; font-weight:700; border-radius:9px; padding:2px 8px; }
.marker-badge.launch{ background:#f6efff; color:#8429d3; }
.marker-badge.handover{ background:#fff6e0; color:#ff9100; }

/* le pointeur minimal : un petit point centré */
.promoteur-marker-pin{
  position:absolute;
  left:50%;
  bottom:-8px;
  transform:translateX(-50%);
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 0 0 2px #fff,           /* liseré blanc pour détacher sur la carte */
    0 2px 6px rgba(0,0,0,.25);/* petite ombre pour la profondeur */
  pointer-events:none;         /* le clic passe à la carte */
}



/* Supprime les marges internes de l'InfoWindow Google */
.gm-style-iw, .gm-style-iw-d { padding: 0 !important; }
.gm-style-iw-d { overflow: hidden !important; }



/* (Optionnel) cacher le "X" par défaut de Google pour garder seulement le tien */
.gm-ui-hover-effect { display: none !important; }

/* Carte interne de ton popup */
.offplan-iw{
  width: 300px;                 /* ajuste si besoin */
  background: #fff;
  border-radius: 14px;
  overflow: hidden;             /* pour que l'image colle aux bords arrondis */
  box-shadow: 0 4px 18px rgba(32,32,32,.14);
  position: relative;
}

/* Bandeau image full-bleed (augmente la hauteur ici) */
.offplan-iw-hero{
  height: 190px;                /* <<< plus haut qu’avant (mets 180/200 si tu veux) */
  line-height: 0;               /* supprime l'espace fantôme autour de l'image */
}
.offplan-iw-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;            /* recadre sans bandes */
  display: block;               /* retire l'espace inline */
}

/* Corps du contenu sous l'image */
.offplan-iw-body{ padding: 10px 14px 12px; }

/* Bouton close maison (coin haut droit) */



/* Supprime la croix native et les paddings internes de l'InfoWindow (source du "blanc" en haut) */
.gm-style-iw button.gm-ui-hover-effect { display:none !important; }
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-d {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
/* Pointe/tip Google (si tu n’en veux pas) */
.gm-style .gm-style-iw-tc { display:none !important; }

/* Carte du popup + image héro en haut qui couvre 100% */
.offplan-iw-card { 
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
}
.offplan-iw-hero{
  height: 130px;      /* ajuste ici la hauteur de l’image */
  line-height: 0;     /* évite tout espace fantôme au-dessus */
}
.offplan-iw-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;      /* supprime le petit blanc inline */
}

.offplan-iw-card{ position:relative; }

.offplan-iw-close{
 display: none;
}

/* Hover rouge clair pour le bouton Reset (écrase le style inline) */
#resetFilters:hover {
  background: #ff5c5c !important;
  color: #ffffff !important;
  border-color: #ff5c5c !important; /* si un border est appliqué ailleurs */
}
/* === OVERRIDES: pills compacts & tailles identiques à la 2e feuille === */

/* barre plus fine */
.filter-bar{
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  gap: 8px !important;
  padding: 8px 10px !important;
  height: 56px !important;
}

/* rangée et éléments à 40px */
.filter-row-scroll{
  gap: 8px !important;
  height: 40px !important;
}
.filter-bar > *,
.filter-row-scroll > *{
  height: 40px !important;
  align-items: center !important;
}

/* SELECTS compacts */
.filter-bar select,
.filter-row-scroll select{
  min-width: auto !important;
  width: auto !important;
  max-width: none !important;
  font-size: .95rem !important;
  padding: 0 20px 0 12px !important;
  border-radius: 18px !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
  /* au cas où un display:flex hérité gêne */
  align-items: center !important;
}

/* BOUTONS compacts (Search / Clear / Price / More Filters / etc.) */
.filter-bar button,
.filter-row-scroll button{
  font-size: .95rem !important;
  padding: 0 14px !important;
  min-width: auto !important;
  border-radius: 18px !important;
  line-height: 1 !important;
}

/* Search & Clear restent rouges */
#searchBtn, #clearBtn{
  background:#e84242 !important;
  border:1.5px solid #e84242 !important;
}
#searchBtn:hover, #clearBtn:hover{ background:#ff5c5c !important; }

/* Price & More Filters en contour rouge */
#openPriceFilter, #openMoreFilter{
  background:#fff !important;
  color:#e84242 !important;
  border:1.5px solid #e84242 !important;
}
#openPriceFilter:hover, #openMoreFilter:hover{ background:#ffeaea !important; }

/* Searchbar compacte (mêmes hauteurs) */
.search-autocomplete-wrapper{
  width: 320px !important;
  max-width: 360px !important;
  min-width: 240px !important;
  height: 40px !important;
}
#search{
  height: 40px !important;
  font-size: .95rem !important;
  padding: 0 14px !important;
  border-radius: 20px !important;
}

/* Fix typo: 1 em -> 1em */
.filter-btn,
.filter-bar select,
#openPriceFilter{
  font-size: 1em !important;
}

/* Mobile encore plus compact */
@media (max-width:700px){
  .filter-bar{ height: 50px !important; padding: 6px 8px !important; }
  .filter-row-scroll{ gap: 6px !important; }
  .filter-row-scroll select,
  .filter-row-scroll button{
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 16px !important;
    font-size: .93rem !important;
    background-position: right 7px center !important;
    background-size: 11px 11px !important;
  }
  .search-autocomplete-wrapper{ height: 38px !important; width: 100% !important; }
  #search{ height: 38px !important; }
}

/* --- Supprimer le carré/halo bleu autour du popup Google Maps --- */
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-d,
.gm-style .gm-style-iw-c:focus,
.gm-style .gm-style-iw-d:focus,
.offplan-iw-card,
.offplan-iw-card:focus,
.project-popup-airbnb,
.project-popup-airbnb:focus {
  outline: none !important;
  border: none !important;        /* au cas où un border est injecté */
}

/* Empêche un enfant de réactiver l’outline */
.gm-style .gm-style-iw-c *:focus { outline: none !important; }

/* Optionnel: retirer le flash bleu au tap sur mobile */
* { -webkit-tap-highlight-color: transparent; }




/* ===== PAGE FULLSCREEN, PAS DE SCROLL ===== */
html, body {
  height: 100dvh;          /* vrai viewport mobile */
  overflow: hidden;        /* empêche tout scroll de la page */
  background: #faf8f6;
}

body.offplan-map-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* header et barre tabs/filters restent auto-hauteur */
.header2,
.top-tabs-filters { flex: 0 0 auto; }

/* la carte prend TOUT l’espace restant, sans scroll page */
#map {
  flex: 1 1 auto;
  height: auto !important;           /* on laisse le JS fixer si besoin */
  width: 100vw !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  overscroll-behavior: none;         /* pas de rebond/chainage */
  touch-action: pan-x pan-y;         /* gestes sur la carte ok */
}

/* iOS: évite le défilement élastique global */
.offplan-map-page { overscroll-behavior: none; }

/* mobile: on garde l’en-tête fixe */
@media (max-width: 900px){
  .header2{ position: fixed; top: 0; left: 0; right: 0; z-index: 1100; }
  .top-tabs-filters{ margin-top: 54px !important; } /* hauteur du header */
}

