html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #fef7ef;
  overflow: hidden;
}


/* ========== HEADER ========== */
.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;
  display: block;
}
.all-button {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
}
.header-btn {
  max-width: 150px;
  padding: 8px 12px;
  border: none;
  background: #fff;
  color: #686868;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, height 0.2s;
  height: 60px;
}
.header-btn:hover {
  background: #f5f5f5;
}
.login-button {
  background: #fff;
  color: #686868;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ff9900;
}
.profil-block {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.burger { display: none; }

/* ========== SIDEBAR ========== */
.multi-sidebar {
  width: 250px;
  background: #fff7ed;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 1.5px solid #f2e8dc;
  box-shadow: 1px 0 10px rgba(255,168,16,0.04);
  z-index: 10;
  min-width: 190px;
  max-width: 350px;
  position: relative;
}
.multi-logo {
  text-align: center;
  font-size: 2.1rem;
  color: #ff9100;
  margin: 30px 0 19px 0;
  font-weight: bold;
  letter-spacing: 1px;
}
.multi-new-chat-btn {
  margin: 0 20px 16px 20px;
  padding: 13px 0;
  border-radius: 16px;
  background: #ff9100;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.multi-new-chat-btn:hover {
  background: #ffb33a;
  color: #fff;
}
.multi-chat-list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0 10px 0 10px;
  padding-bottom: 24px;
}
.multi-chat-list-item {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 14px;
  color: #3a2c14;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;

  transition: border 0.18s, background 0.13s;
}
.multi-chat-list-item.active,
.multi-chat-list-item:focus {
  background: #fff4e6;
  border: 1.5px solid #ff9100;
  color: #ff9100;
}
.multi-chat-list-item:hover:not(.active) {
  background: #ffe1b9;
}
.multi-chat-list-item span {
  display: block;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delete-chat-btn {
  background: none;
  border: none;
  color: #b1a89c;
  cursor: pointer;
  font-size: 1.04rem;
  margin-left: 5px;
  padding: 2px 2px 2px 7px;
  opacity: 0.7;
  transition: color 0.15s, opacity 0.12s;
  outline: none;
}
.delete-chat-btn:hover {
  color: #ff9100;
  opacity: 1;
}
.multi-shortcuts {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  padding: 20px 0 18px 0;
  border-top: 1px solid #ffe6c3;
  background: #fff7ed;
}
.sidebar-btn {
  width: 44px;
  height: 44px;
  background: #ff9100;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px rgba(255,168,16,0.07);
}
.sidebar-btn.active,
.sidebar-btn:focus {
  background: #fff;
  color: #ff9100;
  outline: none;
  border: 2.5px solid #ff9100;
}
.sidebar-btn:hover:not(.active) {
  background: #ffb33a;
  color: #fff;
}

/* ========== LAYOUT PRINCIPAL ========== */
.main-layout {
  display: flex;
  height: calc(100vh - 60px);
  width: 100vw;
  margin-top: 60px;
  position: relative;
}
.main-content-v2 {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: transparent;
  height: 100%;
  min-height: 0;
}
.content-card-wrap {
  width: 100vw;
  max-width: 1600px;
  margin: auto;
  background: #fff;
  border-top: 1px solid rgb(222, 222, 222);
  box-shadow: 0 8px 32px rgba(170,120,40,0.08);
  display: flex;
  min-width: 800px;
  height: 95vh;
  overflow: hidden;
  min-height: 0;
  position: relative;
  margin-top: 0;
}
@media (max-width: 1150px) {
  .main-content-v2, .content-card-wrap { flex-direction: column; }
  .chat-col-v2, .properties-col-v2 { min-width: unset; width: 100%; }
  .properties-col-v2 { padding: 24px; }
  .chat-col-v2 { padding: 0; border-right: none;}
}

/* ========== CHAT COLONNE ========== */
.chat-col-v2 {
  width: 38%;
  min-width: 340px;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  background: #fff;
  
  height: 100%;
  min-height: 0;
  position: relative;
}
.multi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 42px 18px 36px;
  background: #fff;
  font-size: 1.23rem;
  font-weight: 700;
  color: #181d1e;

  min-height: 34px;
}
.multi-reset-btn {
  background: none;
  border: none;
  color: #ff9100;
  font-size: 1.17rem;
  cursor: pointer;
  padding: 7px 0 0 7px;
  margin-left: 9px;
}
.chat-messages-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}
#chat-messages-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  padding: 18px 36px 0 36px;
  box-sizing: border-box;
}
.chat-message-bot {
  background: #fff;
  color: #222;
  align-self: flex-start;
  border-radius: 20px;
  padding: 18px 24px 15px 24px;
  font-size: 1.11rem;
  box-shadow: 0 2px 18px 0 rgba(253, 139, 8, 0.07);
  max-width: 88%;
  margin: 0;
  border: 1.1px solid #f6e7cc;
}
.chat-message-user {
  background: #ff9100;
  color: #fff;
  align-self: flex-end;
  border-radius: 20px;
  padding: 18px 24px 15px 24px;
  font-size: 1.11rem;
  font-weight: 500;
  box-shadow: 0 2px 18px 0 rgba(253, 139, 8, 0.07);
  max-width: 88%;
  margin: 0;
  border: 1.1px solid #ffe2bb;
}
.chat-input-form-v2 {
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;

  padding: 14px 36px 14px 36px;
  box-sizing: border-box;
  gap: 10px;
  margin-bottom: 0;
}
.chat-input-form-v2 input {
  flex: 1;
  border-radius: 22px;
  border: 1.5px solid #eaeaea;
  font-size: 1.11rem;
  padding: 13px 20px;
  outline: none;
  transition: border 0.18s;
}
.chat-input-form-v2 input:focus {
  border: 1.5px solid #ff9100;
}
.chat-input-form-v2 button {
  border: none;
  background: #ff9100;
  color: #fff;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  font-size: 1.22rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.chat-input-form-v2 button:hover {
  background: #ffba49;
}
.chat-input-btns-row {
  display: flex;
  gap: 12px;
  margin-top: 0;
  padding: 0 36px 10px 36px;
  background: #fff;
  margin-bottom: 15px;
}
.chat-pick-btn-v2 {
  background: #ff9100;
  border: none;
  border-radius: 22px;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
}
.chat-pick-btn-v2.active,
.chat-pick-btn-v2:active,
.chat-pick-btn-v2:focus {
  background: #ff9100;
  color: #fff;
}
.chat-pick-btn-v2:not(.active):hover {
  background: #fff0dc;
  color: #ff9100;
}

/* ========== PROPRIÉTÉS (CARDS) ========== */
.properties-col-v2 {
  flex: 1;
  padding: 48px 48px 0 48px;
  background: #fff;
  overflow-y: auto;
  min-width: 440px;
  height: 100%;
  min-height: 0;
}
.property-card-ui-v2 {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 18px 0 rgba(253,139,8,0.09);
  margin-bottom: 55px;
  padding: 28px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  transition: box-shadow 0.18s;
}
.property-card-ui-v2:hover {
  box-shadow: 0 4px 24px 0 rgba(253,139,8,0.13);
}
.property-img-v2 {
  width: 100%;
  border-radius: 17px;
  object-fit: cover;
  margin-bottom: 16px;
}
.property-title-ui-v2 {
  font-size: 1.29rem;
  font-weight: 700;
  color: #181d1e;
  margin-bottom: 7px;
}
.property-loc-ui-v2 {
  color: #b8b8b8;
  font-size: 1.07rem;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.property-features-ui-v2 {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1.08rem;
  color: #666;
  margin-bottom: 12px;
}
.property-desc-ui-v2 {
  font-size: 1.13rem;
  color: #464646;
  margin-bottom: 18px;
}
.property-price-ui-v2 {
  font-size: 1.14rem;
  font-weight: 700;
  color: #24292c;
  margin-bottom: 12px;
}
.property-actions-ui-v2 {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.property-actions-ui-v2 button {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: 10px;
  background: #ff9100;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.property-actions-ui-v2 button:hover {
  background: #ffba49;
}
.properties-col-v2::-webkit-scrollbar {
  width: 8px;
  background: #f1f1f1;
}
.properties-col-v2::-webkit-scrollbar-thumb {
  background: #ffd39b;
  border-radius: 6px;
}

/* ========== SPLITTER MOBILE ========== */
@media (max-width: 800px) {
  .burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: none;
    border: none;
    padding: 0;
  }
  .burger span {
    display: block;
    width: 25px;
    height: 4px;
    margin: 3.2px 0;
    background: #ff9900;
    border-radius: 5px;
    transition: 0.2s;
  }
  .main-layout {
    flex-direction: column;
    margin-top: 54px;
    height: calc(100vh - 54px);
  }
  .multi-sidebar {
    position: fixed !important;
    left: -100vw;
    top: 0;
    bottom: 0;
    width: 80vw;
    max-width: 320px;
    min-width: 180px;
    z-index: 2000;
    height: 100vh;
    background: #fff7ed;
    box-shadow: 7px 0 32px 2px rgba(170,120,40,0.09);
    transition: left 0.32s;
    flex-direction: column;
  }
  .multi-sidebar.open {
    left: 0 !important;
  }
  .mobile-sidebar-overlay {
    display: none;
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: transparent;
    z-index: 1100;
  }
  .mobile-sidebar-overlay.active {
    display: block !important;
  }
  .content-card-wrap,
  .main-content-v2 {
    flex-direction: column !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #split-mobile-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 54px) !important;
    min-height: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .chat-col-v2 {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: unset !important;
    border: none !important;
    padding-bottom: 0 !important;
    flex: unset;
    height: 58vh;
    min-height: 70px;
    overflow: hidden;
  }
  .properties-col-v2 {
    padding: 12px 6px 0 6px !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    background: #fff;
    height: 38vh !important;
    min-height: 120px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    border-top: 1.5px solid #ffe6c3;
    box-shadow: 0 -4px 28px rgba(220,150,50,0.06);
  }
  .property-card-ui-v2 { max-width: 99vw; padding: 13px 6px; margin-bottom: 20px; }
  .property-img-v2 
  { height: 130px; }

  .multi-header { padding: 14px 8px 10px 8px !important; font-size: 1.03rem; }
  .chat-input-form-v2, .chat-input-btns-row, #chat-messages-container { padding-left: 8px !important; padding-right: 8px !important; }
  .chat-messages-scroll {
    max-height: 45vh;
    min-height: 40px;
    overflow-y: auto;
    margin-bottom: 8px;
    background: #fff;
  }
  .chat-input-form-v2 {
    padding: 10px 8px 10px 8px !important;
  }
  .chat-input-btns-row {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 8px 18px 8px !important;
    background: #fff;
    z-index: 2;
  }
  .splitter-bar {
    width: 100vw;
    height: 24px;
    background: #ffe4bb;
    cursor: ns-resize;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(253,139,8,0.07);
    border-top: 1px solid #ffba49;
    border-bottom: 1px solid #ffd099;
    touch-action: none;
    transition: background 0.12s;
    display: block;
    position: relative;
  }
  .splitter-bar:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 4px;
    background: #ffba49;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    opacity: 0.8;
  }
}

/* Desktop version for splitter (hide if not mobile) */
@media (min-width: 801px) {
  .splitter-bar { display: none !important; }
}

/* Hide burger and overlay on desktop */
@media (min-width: 801px) {
  .burger, .mobile-sidebar-overlay { display: none !important; }
  .multi-sidebar { left: 0 !important; position: relative !important; }
}


.fav-btn {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 10;
  font-size: 1.7rem;
  padding: 0;
  transition: transform 0.1s;
}
.fav-btn:active { transform: scale(0.88);}
.fav-btn .fa-heart {
  color: #fff;
  text-shadow: 0 2px 6px #999, 0 0px 1px #ccc;
  transition: color 0.2s;
  stroke: #ff9100;
  stroke-width: 24;
}
.fav-btn.fav-active .fa-heart {
  color: #ff9100;
  text-shadow: 0 3px 12px #ffd8a7, 0 1px 1px #fff5e5;
}
.property-card-ui-v2 {
  position: relative;
}














.chat-pick-btn-v2 {
  background: #fff0dc;
  color: #ff9100;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.chat-pick-btn-v2.active,
.chat-pick-btn-v2:active,
.chat-pick-btn-v2:focus {
  background: #ff9100 !important;
  color: #fff !important;
  border: 2px solid #ff9100 !important;
  box-shadow: 0 2px 9px rgba(255,145,0,0.11);
}




/* Bouton chat mobile à droite de "Chat" */
.chat-toggle-btn-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ff9900;
  cursor: pointer;
  margin-left: 8px;
}

@media (max-width: 800px) {
  .chat-toggle-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}






.multi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  color: #181d1e;

  min-height: 34px;
  position: relative;
}

.multi-header #current-chat-title {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  font-size: 1.1rem;
}

.chat-toggle-btn-mobile {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ff9900;
  cursor: pointer;
}

@media (min-width: 801px) {
  .chat-toggle-btn-mobile {
    display: none;
  }
}














/* 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;
  }

}

@media (max-width: 800px) {
  .chat-pick-btn-v2:last-child {
    margin-right: 12px;
  }
}






/* --- Image un peu plus grande (desktop) --- */
.property-img-v2{
  height: 260px;            /* 210px -> 260px */
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Mobile : un peu plus grande aussi --- */
@media (max-width: 800px){
  .property-img-v2{
    height: 160px;          /* 130px -> 160px */
  }
}



/* Center title, location, features and price inside the cards (this page only) */
#property-cards-container .property-card-ui-v2 {
  margin: 0 auto;                 /* centre la carte */
}


/* rows that are flex: center them horizontally */
#property-cards-container .property-loc-ui-v2,
#property-cards-container .property-features-ui-v2 {
   margin-left: 30px;
}

.property-title-ui-v2{
  margin-left: 30px;
}

.property-price-ui-v2{
  margin-left: 30px;
}

.property-desc-ui-v2{
  margin-left: 30px;
}



.prop-slider {
  margin-left: 30px;
}













/* ===== Areaforyou → Chat drawer au-dessus du header + corrections ===== */
@media (max-width:800px){
  /* Drawer au-dessus de tout (y compris le header) */
  .multi-sidebar{
    position: fixed !important;
    top: 0; bottom: 0; left: -100vw;
    width: 80vw; max-width: 320px; min-width: 180px;
    height: 100dvh;
    background: #fff7ed;
    z-index: 200000 !important;
    transition: left .32s;
  }
  .multi-sidebar.open{ left: 0 !important; }

  /* Overlay au-dessus du header */
  .mobile-sidebar-overlay{
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.18);
    z-index: 199990 !important;
  }
  .mobile-sidebar-overlay.active{ display: block !important; }

  /* Le bouton d’ouverture se cache quand le drawer est ouvert */
  body.drawer-open .chat-toggle-btn-mobile{ display: none !important; }

  /* Cacher le burger du header pendant l’ouverture, pour éviter tout chevauchement */
  body.drawer-open .header2 .burger{
    visibility: hidden; pointer-events: none;
  }

  /* 🔥 Supprimer la flèche/poignée latérale si elle existe (legacy) */
  .chat-prompt-tab,
  .side-tab,
  .drawer-handle,
  .chat-side-handle{ display: none !important; }
}


  /* ------------- 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: 99vw;
    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;
    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;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: calc(100vh - 210px); /* ajuste selon tes autres éléments */
    border-radius: 0 !important;
    margin: 10px 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;
  }



  .offplan-map-page .header2 .all-button.mobile-open {
    display: flex !important;
  }
}


















/* 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;
}



@media (max-width: 768px) {
  /* Cache complètement la sidebar */


  /* Le conteneur prend toute la largeur */
  .main-content-v2,
  .content-card-wrap,
  .properties-col-v2 {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden
  }

  /* Les cartes occupent toute la largeur */
  #property-cards-container,
  .property-card-ui-v2 {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 -7px auto !important;
    overflow-x: hidden;
  }

.property-actions-ui-v2 button:first-child {
  margin-left: 30px; /* ajuste la valeur selon ton besoin */
}


/* Pousse l'entrée + les boutons tout en bas du panneau chat */
.chat-col-v2 {
  display: flex;
  flex-direction: column;
  min-height: 0; /* important pour que le scroll fonctionne en flex */
}

#chat-messages-scroll {
  flex: 1 1 auto;   /* occupe l’espace restant */
  min-height: 0;    /* évite de forcer une hauteur minimale */
  overflow-y: auto; /* scroll des messages uniquement */
}

/* Le premier élément du bloc bas pousse tout le reste vers le bas */
.chat-input-form-v2 {
  margin-top: auto; /* colle le formulaire + ce qui suit (les 3 boutons) au bas du panneau */
}

/* s’assurer que les boutons ne sont PAS en position fixed */
.chat-input-btns-row {
  position: static; /* au cas où tu avais mis fixed avant */
  margin-top: 8px;  /* petit espace au-dessus, optionnel */
}

/* si tu avais ajouté du padding-bottom global, on l’annule ici */
@media (max-width: 768px) {
  body, .chat-col-v2 { padding-bottom: 0 !important; }
}


}



/* Base iOS: on s’aligne sur la visual viewport */
:root {
  --vh: 1vh; /* fallback */
}

/* Empêche l’ancrage qui “saute” quand la hauteur change */
html { overflow-anchor: none; }

/* Utilise la variable partout où tu as 100vh / 100dvh */
html, body {
  height: calc(var(--vh, 1vh) * 100);
  min-height: calc(var(--vh, 1vh) * 100);
  background: #fef7ef;
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  overflow: hidden;
}

/* --- zone layout principale --- */
.main-layout {
  height: calc(var(--vh) * 100 - 60px); /* 60px = header */
}

/* En mobile tu as mis 100dvh : remplace par var(--vh) */
@media (max-width: 800px) {
  .content-card-wrap,
  .main-content-v2 {
    height: calc(var(--vh) * 100) !important;
  }
  #split-mobile-container {
    height: calc(var(--vh) * 100 - 54px) !important; /* header mobile 54px */
  }
  .chat-col-v2 {
    /* garde tes pourcentages si tu veux, la hauteur parente est stabilisée */
    height: 58vh; /* ou fixe : calc((var(--vh)*100 - 54px) * 0.58) */
    min-height: 70px;
  }
  .properties-col-v2 {
    height: 38vh !important; /* ou calc(...) comme ci-dessus */
  }

  /* marge basse qui tient compte du safe area */
  .chat-input-form-v2,
  .chat-input-btns-row {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}

/* Fallback WebKit ancien : */
@supports (-webkit-touch-callout: none) {
  html, body {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
}


@media (max-width:800px){
  .prop-slider .nav,
  .prop-slider .count-badge{ display:none !important; }

  .prop-slider{ position:relative; }
  .prop-dots{
    position:absolute;
    bottom:12px;
    left:50%;
    transform:translateX(-50%);   /* ← centrage horizontal */
    display:flex; gap:8px; z-index:6;
  }
  .prop-dot{
    width:10px; height:10px; border-radius:50%;
    background:#fff;
    box-shadow:0 0 0 2px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.25);
    opacity:.95; border:none; padding:0;
  }
  .prop-dot.active{
    box-shadow:0 0 0 2px #6a42f4, 0 2px 6px rgba(0,0,0,.25);
  }
}







/* iOS: évite le zoom auto quand on focus un input (>=16px) */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* iOS: évite le double-tap zoom sur les éléments cliquables */
button, a, .splitter-bar, .chat-pick-btn-v2, .header-btn {
  touch-action: manipulation;
}

/* Empêche l’effet “rebond” qui décale tout quand on atteint le haut/bas */
html, body {
  overscroll-behavior: none;
}

/* Quand le clavier est ouvert, on peut réduire subtilement la marge sous la zone d’input */
body.keyboard-open .chat-input-form-v2,
body.keyboard-open .chat-input-btns-row {
  padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
}

/* Assure que la zone scrollable est bien le conteneur des messages, pas le body */
#chat-messages-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



/* icône à gauche du titre dans la barre */
.multi-header {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.chat-trigger{
  display:inline-flex; align-items:center; gap:10px;
  background:transparent; border:0; cursor:pointer; padding:6px 8px;
}
.chat-icon{ font-size:20px; color:#f28a1a; }
#current-chat-title{ font-weight:800; font-size:20px; }

/* si ta sidebar utilise déjà .open, rien à changer.
   sinon dé-commente ces 2 règles :

.multi-sidebar{ transform:translateX(-100%); transition:transform .2s ease; }
.multi-sidebar.open{ transform:translateX(0); }
*/


/* --- Sidebar fermée par défaut (hors flux, ne prend plus de place) --- */
.multi-sidebar{
  position: fixed;              /* la sort du layout */
  left: 0;
  top: var(--headerH, 80px);    /* ajusté en JS ci-dessous */
  height: calc(100vh - var(--headerH, 80px));
  width: 260px;                 /* ta largeur */
  z-index: 2000;
  background: inherit;          /* garde ton style existant */
  transform: translateX(-110%); /* cachée */
  visibility: hidden;
  transition: transform .22s ease, visibility .22s;
}
.multi-sidebar.open{
  transform: translateX(0);     /* visible quand .open */
  visibility: visible;
}

/* overlay réutilise ta classe existante si tu l’as déjà */
.mobile-sidebar-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.25);
  z-index: 1999; display: none;
}
.mobile-sidebar-overlay.active{ display:block; }






/* ==== FORCE la carte blanche à prendre tout l'écran sous le header ==== */
:root{ --headerH: 60px; }               /* hauteur du header */

.main-layout{
  margin-top: var(--headerH);           /* on garde l'espace du header */
  height: auto !important;              /* laisse le parent respirer */
}

.main-content-v2{
  height: calc(100vh - var(--headerH)) !important;  /* hauteur réelle dispo */
  align-items: stretch !important;
}

.content-card-wrap{
  height: calc(150h - var(--headerH)) !important;  /* au lieu de 95vh */
  margin: 0 auto !important;                         /* supprime le centrage vertical */
  min-height: 0 !important;                          /* pas de contrainte parasite */
  overflow: hidden;                                   /* comme avant */
}

/* Colonne chat : s'étire bien et l'input reste collé en bas */
.chat-col-v2{
  height: 99.4% !important;
  display: flex !important;
  flex-direction: column !important;
}

.chat-messages-scroll{ flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.chat-input-form-v2{ margin-top: auto; }


/* Version béton : le conteneur blanc est fixé à l’écran */
.content-card-wrap{
  position: fixed !important;
  top: 60px; left: 0; right: 0; bottom: 0;
  height: auto !important;
  margin: 0 !important;
}



/* === Élargar la colonne chat (global, hors mobile) === */
.chat-col-v2{
  /* au lieu de width/max-width actuels */
  flex: 0 0 70% !important;   /* largeur cible (essaie 46–50%) */
  max-width: 780px !important;
  min-width: 360px !important;
  width: auto !important;     /* on laisse flex gérer */
}

/* La colonne droite prend le reste automatiquement */
.properties-col-v2{
  flex: 1 1 0 !important;
}

/* (optionnel) on réduit un peu les paddings pour gagner de l’espace utile */
.multi-header{
  padding-left: 24px !important;
  padding-right: 24px !important;
}
#chat-messages-container,
.chat-input-form-v2{
  padding-left: 24px !important;
  padding-right: 24px !important;
}










/*******************************
 FUTURISTE MINIMAL — OVERRIDES
 Place tout en bas de ton CSS
*******************************/

/* === Palette & rayons === */
:root{
  --brand:#ff9100;
  --ink:#222;
  --card:#ffffffcc;              /* verre léger */
  --stroke:#f1e7d9;
  --glow:0 0 0 3px rgba(255,145,0,.15);
  --r:16px;                      /* rayon par défaut */
}

/* === Arrière-plan “tech” très discret === */
body{
  background:
    radial-gradient(60vw 60vw at 120% -10%, #fff7e8 0%, transparent 55%),
    radial-gradient(60vw 60vw at -10% 120%, #fff4e0 0%, transparent 55%),
    repeating-linear-gradient(90deg, #fff0 0 99px, #fff7ee 100px 101px);
}

/* === Colonne chat style ‘pane’ futuriste === */
.chat-col-v2{
  flex: 0 0 50% !important;
  max-width: 880px !important;
  min-width: 520px !important;
  background: #fff5;
  backdrop-filter: blur(6px);
  border-right: none !important;
  display:flex; flex-direction:column;
}


/* Zone de messages centrée et aérée */
#chat-messages-container{
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 12px 140px;
  gap: 18px;
  line-height: 1.6;
  font-size: 16.5px;
}

/* Cartes messages : “verre + liseré” */
.chat-message-bot,
.chat-message-user{
  border-radius: calc(var(--r) + 2px);
  border: 1px solid var(--stroke);
  box-shadow: 0 6px 18px rgba(0,0,0,.03);
  backdrop-filter: blur(2px);
  padding: 14px 16px;
  max-width: 85ch;
}
.chat-message-bot{
  background: var(--card);
  color: var(--ink);
}
.chat-message-user{
  background: #fff6ec;
  border-color: #ffe2c6;
}

/* Accent “code futuriste” dans le texte si tu en as */
.chat-message-bot code, .chat-message-user code{
  background: #fff2e6;
  border: 1px solid #ffe0c0;
  padding: 2px 6px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

/* Composer flottant simple + halo futuriste au focus */
.chat-input-form-v2{
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, #fff0 0%, #fff 40%);
  padding: 16px 18px 22px !important;
  border-top: none !important;
}
.chat-input-form-v2 input{
  border-radius: 22px;
  border: 1px solid #efefef;
  background: #fff;
  padding: 14px 18px;
  transition: box-shadow .15s, border .15s, transform .06s;
}
.chat-input-form-v2 input:focus{
  border-color: var(--brand);
  box-shadow: var(--glow);
}

/* Bouton envoyer = “puck” néon discret */
.chat-input-form-v2 button{
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #ffb866 0%, var(--brand) 55%, #f07f00 100%);
  box-shadow: 0 6px 18px rgba(255,145,0,.18);
}
.chat-input-form-v2 button:hover{ transform: translateY(-1px); }

/* Chips (Rent/Buy/Off Plan) minimal glass */
.chat-input-btns-row{
  max-width: 760px; margin: 6px auto 0; padding: 0 12px 16px !important; gap: 8px;
}
.chat-pick-btn-v2{
  background: #fff8;
  border: 1px solid #ffe1c7;
  color: #e67800;
  padding: 8px 12px; border-radius: 14px;
  transition: transform .08s, box-shadow .12s, background .12s;
}
.chat-pick-btn-v2:hover{ box-shadow: var(--glow); background:#fff; }

/* Colonne propriétés : pas de séparation, respi */
.properties-col-v2{
  border-left: none !important;
  background: #fff;
  padding-top: 24px;
}

/* Scrollbar fine (Chrome/Edge) */
.chat-messages-scroll::-webkit-scrollbar{ width:8px; }
.chat-messages-scroll::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg,#ffd39b,#ffb066);
  border-radius: 8px;
}

/* Petits micro-interactions */
.header-btn:hover{ transform: translateY(-1px); }


/* Curseur animé pendant la frappe */
.typing-caret { display:inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Un peu d’air entre messages (lecture agréable) */
.chat-message-user, .chat-message-bot { margin: 14px 0; }
.chat-message-bot .msg-actions { margin-top: 6px; opacity:.75; display:flex; gap:8px; }











/************ FIX chat lisibilité + chargement ************/

/* USER: bulle orange + texte blanc */
.chat-message-user {
  background: #ff9100 !important;
  border-color: #ffb366 !important;
  color: #fff !important;
}
.chat-message-user p,
.chat-message-user span,
.chat-message-user a,
.chat-message-user strong,
.chat-message-user em,
.chat-message-user code {
  color: #fff !important;
}


.chat-message-bot a { color: #e67800 !important; }

/* Placeholder + saisie dans l’input */
.chat-input-form-v2 input { color: #1f2328 !important; }
.chat-input-form-v2 input::placeholder { color: #9aa1a9 !important; }

/* “Chargement / en cours de frappe” (bulle grise lisible) */
#assistant-draft,
#assistant-typing,
.thinking,
.is-typing {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffff !important;
  color: #7a5a2b !important;
  border: 1px solid #ffe2c6 !important;
  box-shadow: 0 2px 12px rgba(255,145,0,.08);
  font-weight: 600;
}

/* Bouton “Stop” dans cette bulle */
#assistant-draft .stop,
#assistant-typing .stop,
.thinking .stop,
#stop-generation,
.stop-btn {
  display: inline-flex;
  padding: 6px 12px;
  background: #fff7f7;
  color: #c23b2a;
  border: 1px solid #ffd1c7;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s, box-shadow .12s, background .12s;
}
#assistant-draft .stop:hover,
#assistant-typing .stop:hover,
.thinking .stop:hover,
#stop-generation:hover,
.stop-btn:hover {
  background: #ffeaea;
  box-shadow: 0 0 0 3px rgba(255,105,97,.15);
  transform: translateY(-1px);
}












/* 1) Nettoyage de la bulle brouillon : pas de zone "Stop", pas de caret */
#assistant-draft .msg-actions,
.typing-caret,
.chat-message-bot .read-toggle { 
  display: none !important;
}

/* 2) Texte "normal" côté assistant */
.chat-message-bot { 
  font-weight: 400 !important;
  color: #222 !important;
}
.chat-message-bot .msg {
  line-height: 1.55;
  color: #222;
}
.chat-message-bot .msg strong { font-weight: 600; }

/* 3) Listes lisibles (plus de carré fantôme, marges propres) */
.chat-message-bot .msg ul,
.chat-message-bot .msg ol {
  margin: .4em 0 .6em 1.2em;   /* marge gauche douce */
  padding: 0;
}
.chat-message-bot .msg li { 
  font-weight: 400;
  list-style-position: outside;
}
.chat-message-bot .msg li:empty { display: none; } /* évite un "petit carré" résiduel */
.chat-message-bot .msg ol > li::marker { 
  color: #8a8a8a; 
  font-weight: 600; 
}

/* 4) Pas d’arrière-plan/bande sous la bulle (on simplifie l’aspect) */
.chat-message-bot,
.chat-message-user {
  box-shadow: 0 2px 18px 0 rgba(253,139,8,0.07);
  border-radius: 20px;
  border-width: 1.1px;
  border-style: solid;
}
.chat-message-bot { border-color: #f6e7cc; background: #fff; }
.chat-message-user { border-color: #ffe2bb; background: #ff9100; color: #fff; }

/* 5) Sécurités de mise en page (pas d’offset/marge parasite) */
#chat-messages-container .chat-message-bot,
#chat-messages-container .chat-message-user {
  margin-left: 0 !important;
}




.ai-areas { margin-top: 8px; display:flex; flex-wrap:wrap; gap:10px; }
.ai-areas a {
  font-weight: 700; text-decoration: underline; cursor: pointer;
}
.ai-areas a:hover { opacity:.8; }




/* Centrage simple du chat dans la colonne gauche */
#chat-col-v2 {
  display: flex;
  flex-direction: column;
}

/* même largeur pour le header, la zone messages et l’input */
#chat-col-v2 .multi-header,
#chat-col-v2 #chat-messages-scroll,
#chat-col-v2 #chat-form {
  max-width: 760px;   /* ajuste si tu veux plus/moins large */
  width: 100%;
  margin-left: auto;
  margin-right: auto; /* => centré */
}

/* petite respiration entre la liste et l’input (optionnel) */
#chat-col-v2 #chat-form { 
  margin-top: 10px;
}










/* === Barre d'entrée : full-width, sans bloc blanc autour === */
#chat-form{
  display:flex;                 /* input + bouton côte à côte */
  align-items:center;
  gap:12px;                     /* espace entre input et flèche */
  width:100%;
  padding:0 !important;         /* retire tout padding du form */
  margin:0 !important;          /* pas d'espace au-dessus/ côtés */
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Le champ en lui-même (prend tout l'espace) */
#chat-form input#user-input{
  flex:1 1 auto;                /* prend la largeur dispo */
  width:auto;                   /* pas de largeur fixe */
  height:56px;
  border-radius:28px;
  border:1px solid #e9e9eb;
  padding:0 18px;
  background:#fff;
  box-shadow:none;
  margin:0;                     /* pas d'espace parasite */
}

/* Le bouton flèche : élément indépendant, pas posé sur l'input */
#chat-form button[type="submit"]{
  position:static !important;   /* surtout PAS absolute */
  flex:0 0 56px;
  width:56px; height:56px;
  border-radius:50%;
  margin:0;
  box-shadow:none;
  /* garde ton dégradé existant si tu en as un */
}

/* Au cas où un wrapper autour du form ajoute du padding/marge */
#chat-col-v2 .chat-input,
#chat-col-v2 .chat-footer,
#chat-col-v2 .chat-form-outer{
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* critical: allow flex shrink to avoid pushing the right pane */
#chat-form { min-width: 0; }
#chat-form input#user-input { min-width: 0; }

/* small lateral padding so it looks neat, but does not eat space */
#chat-col-v2{
  padding: 0 12px 12px !important;  /* left/right 12px, bottom 12px */
  min-width: 0;                      /* allow column to shrink */
  box-sizing: border-box;
}

/* make sure the arrow button never stretches the row */
#chat-form button[type="submit"]{
  flex: 0 0 56px;         /* fixed size */
  max-width: 56px;
}



