
/* ======================================
   GOOGLE MATERIAL SYMBOLS ICONS
====================================== */
.material-symbols-outlined{
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ======================================
   BASE / LAYOUT FIXES
====================================== */
html, body{
  height: 100%;
  overflow: hidden;
}

footer, .footer, #footer{
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Variabelen (worden door JS gezet) */
:root{
  --global-header-h: 0px;
  --sp-search-header-h: 72px;
  --sp-filter-h: 0px;
  --sp-top-h: calc(var(--global-header-h) + var(--sp-search-header-h) + var(--sp-filter-h));
}

/* ======================================
   HEADER (fixed)
====================================== */
.sp-search-header{
  position: fixed;
  top: var(--global-header-h);
  left: 0;
  right: 0;
  background: var(--bg-ffffff, #ffffff);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 30px;
  border-bottom: 0px solid var(--bd-e6e8ef, #e6e8ef);
  margin-bottom: 0;
  z-index: 5000;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

/* country select */
.country-flag-icon{
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* search field */
.sp-search-field{ flex: 1; }
/* search button */
.sp-search-btn{ flex: 0 0 auto; }

/* inline radius dropdown in searchbar */
.radius-select-inline{
  height: 35px;
  border: none;
  background-color: transparent;
  padding: 0 34px 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--tx-0b1220, #0b1220);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  box-shadow: none;
  text-align: left;
}

.radius-select-inline:focus{
  outline: none;
}

.radius-select-inline::-ms-expand{
  display: none;
}

/* controls */
/* dropdowns */
.type-select, .layout-select, .radius-select{
  height: 35px;
  padding: 0 28px 0 12px;
  border: 1px solid #2b7dfa;
  border-radius: 5px;
  background-color: var(--bg-ffffff, #fff);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' 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 8px center;
  background-size: 16px;
  text-align: center;
  color: var(--tx-2b7dfa, #2b7dfa);
}
/* IE/old Edge */
.type-select::-ms-expand,
.layout-select::-ms-expand,
.radius-select::-ms-expand,
.sort-select::-ms-expand{
  display: none;
}

.filter-toggle-btn:hover{
  background: #004b94;
  color: #ffffff;
}

/* suggestions */
.suggestions-container{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-ffffff, white);
  border: 1px solid var(--bd-e5e7eb, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  max-height: 300px;
  overflow-y: auto;
  z-index: 6000;
  display: none;
}
.suggestion-item{
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--bd-f3f4f6, #f3f4f6);
  color: var(--tx-374151, #374151);
  font-size: 16px;
}
.suggestion-item:hover,
.suggestion-item.selected{
  background: var(--bg-e6f2ff, #e6f2ff);
}
.suggestion-item.error{
  color: var(--tx-dc2626, #dc2626);
  background: var(--bg-fee2e2, #fee2e2);
}

/* compact header heights */
.sp-search-header .country-select,
.sp-search-header .sp-search-field input,
.sp-search-header .sp-search-radius-inline,
.sp-search-header .radius-select-inline,
.sp-search-header .sp-search-btn button{
  height: 35px !important;
}
.sp-search-header .sp-search-field input{
  padding: 12px 20px;
  font-size: 16px;
}
.sp-search-header .filter-toggle-btn{
  height: 35px;
  padding: 0 20px;
}

/* ======================================
   FILTER OVERLAY + BLUR
====================================== */
.sp-filter-overlay.active{
  opacity: 1;
  pointer-events: auto;
}

/* FIX: header niet blur'en, maar verbergen tijdens filter-open */
body.filter-open .sp-search-header{
  opacity: 0 !important;
  pointer-events: none !important;
}

body.filter-open .sp-search-results-container{
  filter: blur(8px);
  transition: filter 0.25s ease;
  pointer-events: none;
  user-select: none;
}

/* ======================================
   FILTER PANEL (luxury drawer)
====================================== */
.sp-filter-panel.open{
  transform: translateX(0);
}

.sp-filter-subtitle{
  margin: 0;
  font-size: 14px;
  color: var(--tx-64748b, #64748b);
  line-height: 1.45;
}

.filter-section-head{
  margin-bottom: 14px;
}

.filter-chip-group{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.filter-chip-group-disabled{
  opacity: 0.9;
}

.filter-chip:hover{
  border-color: var(--bd-9ec2ff, #9ec2ff);
  color: var(--tx-0057d8, #0057d8);
  transform: translateY(-1px);
}

.filter-chip.active{
  background: #2b7dfa1a;
  border-color: rgba(43,125,250,0.35);
  color: var(--tx-004b94, #004b94);
}

.filter-chip:disabled{
  cursor: default;
}

.filter-row{
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter-row:last-child{
  margin-bottom: 0;
}

.filter-row-2col .filter-group{
  flex: 1 1 calc(50% - 8px);
}

.filter-group{
  flex: 1 1 200px;
}

.filter-group label{
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
  color: var(--tx-1e293b, #1e293b);
  font-size: 14px;
}

.filter-range{
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range span{
  color: #94a3b8;
  font-weight: 600;
}

.filter-range input:focus,
.filter-group select:focus{
  outline: none;
  border-color: #2b7dfa;
  box-shadow: 0 0 0 4px rgba(43,125,250,0.10);
}

.filter-range input:hover,
.filter-group select:hover{
  border-color: var(--bd-c2cede, #c2cede);
}

.apply-filters:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(43, 125, 250, 0.28);
}

/* ======================================
   MAIN LAYOUT (fixed viewport)
====================================== */
.sp-search-results-container{
  position: fixed;
  top: var(--sp-top-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  background: var(--bg-ffffff, #fff);
  transition: filter 0.25s ease;
}

/* Linkerkolom */
/* Rechterkolom */
/* Layout classes */
.sp-search-results-container.layout-list .map-column{ display: none; }
.sp-search-results-container.layout-list .results-list{ flex: 1; }
.sp-search-results-container.layout-map .results-list{ display: none; }
.sp-search-results-container.layout-map .map-column{ flex: 1; }

/* ======================================
   RESULTS HEADER + SORT
====================================== */
.results-header-top{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.results-count{
  font-weight: 700;
  margin: 0;
  font-size: 18px;
  color: var(--tx-0b1220, #0b1220);
}

.results-header-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-count-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.results-header-right{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-icon{
  font-size: 12px;
  color: var(--tx-2b7dfa, #2b7dfa);
}

.results-header-right label{
  display: none;
}

.sort-select{
  padding: 0 18px 0 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-2b7dfa, #2b7dfa);
  cursor: pointer;
}

/* ======================================
   LISTINGS LINKS
====================================== */
.results-grid.v2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background-color: var(--bg-ffffff, white);
  padding-top: 0px;
}

.sp-search-results-container.layout-list .results-grid.v2{
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 1500px){
  .sp-search-results-container.layout-list .results-grid.v2{
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1200px){
  .sp-search-results-container.layout-list .results-grid.v2{
    grid-template-columns: repeat(2, 1fr);
  }
}

.result-card.v2{
  background: var(--bg-ffffff, #fff);
  border-bottom: 0px solid var(--bd-eef0f3, #eef0f3);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px 8px 0px 0px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.result-card.v2:hover{
  transform: translateY(-3px);
  z-index: 2;
}
.result-card.flash{
  border: 3px solid #2b7dfa;
}

.result-card-link.v2{
  display: flex;
  flex: 1;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: auto;
}

.card-image-block.v2{ flex-shrink: 0; }

.large-image.v2{
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 8px;
}
.image-fade-layer{
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}
.image-fade-layer.is-visible{
  opacity: 1;
}
.large-image.v2::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height: 70%;
  background: linear-gradient(to top, rgb(0 0 0 / 29%), rgba(0, 0, 0, 0));
  pointer-events:none;
}

.price-overlay{
  position:absolute;
  left:12px;
  bottom:3px;
  z-index: 3;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.price-suffix{
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  margin-left: 6px;
}

.large-image:hover .image-nav{ opacity: 1; }
.image-nav.prev{ left: 10px; }
.image-nav.next{ right: 10px; }
.image-nav:hover{ background: var(--bg-ffffff, white); }

.card-info.v2{ padding: 9px 14px 14px 0px; }

.title-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.address-title{
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--tx-0b1220, #0b1220);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address-sub{
  margin-top: -6px;
  font-size: 13px;
  color: var(--tx-4b5563, #4b5563);
}

.result-features.v2{
  margin: 0px 0 0px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-334155, #334155);
  letter-spacing: 0.2px;
}
.result-broker.v2{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--tx-6b7280, #6b7280);
}

.no-results{
  padding: 30px;
  text-align: center;
  color: var(--tx-666666, #666);
}

.results-list::-webkit-scrollbar-track{ background: var(--bg-f1f1f1, #f1f1f1); }
.results-list::-webkit-scrollbar-thumb{ background: var(--bg-c1c1c1, #c1c1c1); border-radius: 3px; }
.results-list::-webkit-scrollbar-thumb:hover{ background: #a0a0a0; }

/* ======================================
   Map filters dropdown (BOTTOMRIGHT) + POI
====================================== */
.map-filter-dropdown{
  background: transparent;
}

.map-filter-dropdown-inner{
  position: relative;
}

.map-filter-btn{
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--bg-ffffff, #ffffff);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 26px;
  font-size: 14px;
  color: var(--tx-0b1220, #0b1220);
}

.map-filter-btn:hover{
  background: var(--bg-f4f4f4, #f4f4f4);
}

.map-filter-menu{
  display: none;
  position: absolute;
  min-width: 190px;
  background: rgba(var(--glass, 255, 255, 255), 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.22);
  padding: 10px 10px;
  z-index: 9999;
}

.leaflet-bottom.leaflet-right .map-filter-menu{
  bottom: calc(100% + 8px);
  top: auto;
  right: 0;
  left: auto;
}

.map-filter-menu.open{
  display: block;
}

.map-filter-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 6px;
  cursor: pointer;
  border-radius: 10px;
}

.map-filter-item:hover{
  background: rgba(43,125,250,0.08);
}

.map-filter-item input{
  width: 16px;
  height: 16px;
}

/* ======================================
   Leaflet popup styling
====================================== */
.leaflet-popup-modern .leaflet-popup-content-wrapper{
  border-radius: 5px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.22);
  border: 1px solid rgba(15,23,42,0.10);
}
.leaflet-popup-modern .leaflet-popup-content{ margin: 0; }

.leaflet-listing-popup{
  display:block;
  width:320px;
  overflow:hidden;
  border-radius:5px;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.leaflet-listing-popup .lp-image{
  height:180px;
  background-size:cover;
  background-position:center;
}
.leaflet-listing-popup .lp-body{
  padding:12px 14px 14px;
  background:var(--bg-ffffff, #fff);
}
.leaflet-listing-popup .lp-price{
  font-size:18px;
  font-weight:750;
  color:var(--tx-0b1220, #0b1220);
}
.leaflet-listing-popup .lp-title{
  margin-top:2px;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--tx-0b1220, #0b1220);
}
.leaflet-listing-popup .lp-sub{
  margin-top:2px;
  font-size:14px;
  color:var(--tx-475569, #475569);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.leaflet-listing-popup .lp-btn{
  display:inline-flex;
  margin-top:10px;
  width:100%;
  justify-content:center;
  align-items:center;
  height:38px;
  border-radius:10px;
  background:#2b7dfa;
  color:#fff;
  text-decoration:none;
  font-weight:650;
  font-size:13px;
}
.leaflet-listing-popup .lp-btn:hover{ background:#004b94; }

.leaflet-popup-close-button{
  display: none !important;
}

/* ======================================
   LARGE DESKTOP + MOBILE SEARCH CONTROLS
====================================== */
.type-select,
.layout-select,
.radius-select,{
  color: var(--tx-0b1220, #0b1220) !important;
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220) !important;
  opacity: 1;
}
.type-select:focus,
.layout-select:focus,
.radius-select:focus,{
  color: var(--tx-0b1220, #0b1220) !important;
  outline: none;
  border-color: #0b1220;
  box-shadow: 0 0 0 1px rgba(11,18,32,0.12);
}

.type-select,
.layout-select,
.radius-select{
  color: var(--tx-0b1220, #0b1220) !important;
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220);
}
.type-select option,
.layout-select option,
.radius-select option,
.sort-select option{
    color: var(--tx-0b1220, #0b1220) !important;
    background: var(--bg-ffffff, #ffffff);
}

/* Mobile hamburger inside compact search controls. Hidden by default, including desktop. */
.mobile-search-menu-toggle{
  display: none !important;
}

/* ======================================
   MOBILE
====================================== */
@media (max-width: 992px){
  .sp-search-header{
    padding: 12px 14px;
    border-bottom: none;
    background: var(--bg-ffffff, #ffffff);
  }

  .sp-search-header-container{
    max-width: none;
  }

    .sp-search-container{
    width: 100%;
  }

  .sp-search-radius-inline{
    border-left: 1px solid var(--bd-e6e8ef, #e6e8ef);
  }

  .radius-select-inline{
    font-size: 13px;
    padding: 0 30px 0 10px;
  }

    .filter-toggle-btn,
  .layout-select,
  .save-search-btn{
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

              body.search-controls-stuck .mobile-menu,
  body.search-controls-stuck .mobile-user-dropdown-content{
    top: 63px;
    height: calc(100vh - 63px);
  }
  @media (max-width: 640px){
    /* Op een telefoon vast aan boven- en onderkant, zodat het menu niet over de balk onderaan valt (iPhone). */
    body.search-controls-stuck .mobile-menu,
    body.search-controls-stuck .mobile-user-dropdown-content{
      top: 0;
      height: auto;
      bottom: 0;
    }
  }

    .radius-select{
    min-width: 78px;
    order: 1;
  }

  .filter-toggle-btn{
    order: 2;
    border: 1px solid #2b7dfa;
    color: var(--tx-2b7dfa, #2b7dfa);
  }

  .layout-select{
    display: inline-flex !important;
    visibility: visible !important;
    min-width: 92px;
    order: 3;
    color: var(--tx-2b7dfa, #2b7dfa);
    border: 1px solid #2b7dfa; 
  }

      .sp-search-header .country-select,
  .sp-search-header .sp-search-field input,
  .sp-search-header .sp-search-radius-inline,
  .sp-search-header .radius-select-inline,
  .sp-search-header .sp-search-btn button,
  .layout-select,
  .filter-toggle-btn,
  .save-search-btn,
  .mobile-search-menu-toggle{
    height: 42px !important;
  }

  .sp-search-results-container{
    flex-direction: column;
    height: auto;
  }

  .results-list,
  .map-column{
    flex: auto;
    width: 100%;
  }

  .map-column{
    height: 400px;
  }

  .results-list{
    padding: 15px;
  }

  .results-grid.v2{
    grid-template-columns: 1fr;
  }

  .sp-search-results-container.layout-list .results-grid.v2{
    grid-template-columns: 1fr;
  }

  .large-image.v2{
    height: 300px;
  }

  .address-title{
    max-width: 100%;
  }

  .results-header-bottom{
    flex-wrap: wrap;
    gap: 8px;
  }

  .results-count-row{
    align-items: center;
  }

  .results-header-right{
    width: auto;
    justify-content: flex-end;
  }

      .sp-filter-title{
    font-size: 24px;
  }

  .filter-chip-group{
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .filter-chip{
    padding: 0 6px !important;
    font-size: 13px !important;
  }

  .filter-row-2col .filter-group{
    flex: 1 1 100%;
  }

      .sp-search-results-container.layout-map .map-column,
  .sp-search-results-container.layout-both .map-column{
    min-height: 420px;
  }
}

/* ======================================
   SAVED SEARCHES
====================================== */
.save-search-btn:hover{
  background: #2b7dfa;
  color: #ffffff;
}
.save-search-btn:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}
.save-search-modal{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.save-search-modal.active{
  display: flex;
}
.save-search-modal-content{
  width: 100%;
  max-width: 420px;
  background: var(--bg-ffffff, #ffffff);
  border-radius: 5px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.save-search-modal-content h3{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--tx-0b1220, #0b1220);
}
.save-search-modal-content p{
  margin: 0 0 18px;
  color: var(--tx-64748b, #64748b);
  font-size: 14px;
  line-height: 1.45;
}
.save-search-input{
  width: 100%;
  height: 48px;
  border: 1px solid var(--bd-d7deea, #d7deea);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.save-search-input:focus{
  outline: none;
  border-color: #2b7dfa;
  box-shadow: 0 0 0 4px rgba(43,125,250,0.10);
}
.save-search-message{
  min-height: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--tx-dc2626, #dc2626);
}
.save-search-message.success{
  color: var(--tx-15803d, #15803d);
}
.save-search-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.save-search-cancel,
.save-search-submit{
  height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.save-search-cancel{
  background: var(--bg-eef2f7, #eef2f7);
  color: var(--tx-0f172a, #0f172a);
}
.save-search-submit{
  background: #2b7dfa;
  color: #ffffff;
}
.save-search-submit:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 992px){
  .save-search-btn{
    order: 4;
    height: 42px !important;
    color: var(--tx-2b7dfa, #2b7dfa);
    border: 1px solid #2b7dfa;
}
}

/* ======================================
   RESULTS HEADER LOCATION SUMMARY
====================================== */
.results-breadcrumb{
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin-bottom: 0px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--tx-4b5563, #4b5563);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb-home-icon{
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--tx-0b1220, #0b1220);
  fill: none;
  stroke: var(--tx-4b5563, #4b5563);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.results-breadcrumb span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb-separator{
  flex: 0 0 auto;
  color: #94a3b8;
}
.results-header-main{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.results-header-copy{
  min-width: 0;
  flex: 1;
}
.results-header-main .results-location{
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--tx-0b1220, #0b1220);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.results-header-main .results-count{
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--tx-2b7dfa, #2b7dfa);
}
@media (max-width: 992px){
  .results-header-main{
    flex-wrap: wrap;
  }
  .results-header-main .results-location{
    font-size: 16px;
  }
}

/* ======================================
   GOOGLE-LIKE MAP MARKERS + CLUSTERS
====================================== */
.leaflet-tile-pane{
  filter:saturate(1.08) brightness(1.02) contrast(1.01);
}

.leaflet-control-layers{
  border:none !important;
  border-radius:5px !important;
  box-shadow:0 10px 28px rgba(15,23,42,0.16) !important;
  overflow:hidden;
}
.leaflet-control-layers-toggle{
  width:50px !important;
  height:50px !important;
  background-color:rgba(var(--glass, 255, 255, 255), 0.96) !important;
}
.leaflet-control-layers-expanded{
  padding:10px 12px !important;
  background:rgba(var(--glass, 255, 255, 255), 0.96) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-radius:16px !important;
  color:var(--tx-0b1220, #0b1220);
  font-size:13px;
  font-weight:500;
}
.leaflet-control-layers label{
  margin:6px 0;
}

.leaflet-control-zoom,
.map-filter-btn,
.map-filter-menu{
  border:none !important;
  border-radius:5px !important;
  box-shadow:0 10px 28px rgba(15,23,42,0.16) !important;
  overflow:hidden;
}
.leaflet-control-zoom a{
  width:50px !important;
  height:50px !important;
  line-height:50px !important;
  border-bottom:1px solid var(--bd-efefef, #efefef);
  color:var(--tx-374151, #374151) !important;
  background:rgba(var(--glass, 255, 255, 255), 0.96) !important;
}
.leaflet-control-zoom a:hover{
  background:var(--bg-f3f4f6, #f3f4f6) !important;
  color:var(--tx-111827, #111827) !important;
}
.leaflet-control-attribution{
  background:rgba(var(--glass, 255, 255, 255), 0.82) !important;
  border-radius:8px 0 0 0;
  font-size:10px;
}
.listing-price-marker{
  background:transparent !important;
  border:0 !important;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large{
  background:#ffffff8c !important;
  border-radius:999px !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div{
  width:46px !important;
  height:46px !important;
  margin-left:7px !important;
  margin-top:7px !important;
  border-radius:999px !important;
  background:var(--bg-ffffff, #ffffff) !important;
  color:var(--tx-000000, #000000) !important;
  border:1px solid rgb(15 23 42 / 26%) !important;
  box-shadow:0 10px 24px rgba(15,23,42,0.18) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:46px !important;
}
.marker-cluster{
  filter:drop-shadow(0 8px 14px rgba(15,23,42,0.14));
}

/* ======================================
   FINAL MOBILE COMPACT BAR FIX
   - Header blijft weg tijdens compacte scroll-balk
   - Hamburger blijft rechts
   - Save search krijgt meer ruimte
   - Borders worden #2b7dfa in compacte scroll-balk
====================================== */
@media (max-width: 992px){
  body.search-controls-stuck .nav-bar{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

  body.search-controls-stuck .sp-search-header{
    top: 0 !important;
    border-bottom: 0px solid var(--bd-e6e8ef, #e6e8ef);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    z-index: 7000 !important;
}

  body.search-controls-stuck .sp-search-form{
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: translateY(-6px) !important;
}

  body.search-controls-stuck .sp-search-controls{
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

  body.search-controls-stuck .filter-toggle-btn{
    order: 1 !important;
    flex: 0 1 27% !important;
    min-width: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 13px !important;
    border-color: #2b7dfa !important;
    justify-content: center !important;
    color: var(--tx-2b7dfa, #2b7dfa);
  }

  body.search-controls-stuck .layout-select{
    order: 2 !important;
    flex: 0 1 25% !important;
    min-width: 0 !important;
    font-size: 13px !important;
    border-color: #2b7dfa !important;
    text-align: center !important;
    color: var(--tx-2b7dfa, #2b7dfa);
  }

  body.search-controls-stuck .save-search-btn{
    order: 3 !important;
    flex: 1 1 34% !important;
    min-width: 112px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
    border-color: #2b7dfa !important;
    color: var(--tx-2b7dfa, #2b7dfa);
    justify-content: center !important;
    text-align: center !important;
  }

  }

/* ======================================
   SEARCH HEADER FILTER ROW UPDATE
====================================== */
.type-select,
.layout-select,
.radius-select,
.filter-toggle-btn,
.save-search-btn,
.filter-dd-btn{
  height: 35px;
  border: 1px solid var(--bd-d8d8d8, #d8d8d8);
  border-radius: 8px;
  background-color: var(--bg-ffffff, #fff);
  color: var(--tx-001f1c, #001f1c) !important;
  -webkit-text-fill-color: var(--tx-001f1c, #001f1c) !important;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.type-select,
.layout-select,
.radius-select{
  min-width: 0;
  text-align: left;
}
.filter-toggle-btn,
.save-search-btn{
  padding: 0 14px;
  gap: 7px;
}
.filter-toggle-btn:hover,
.save-search-btn:hover{
  background: var(--bg-f7f8fa, #f7f8fa);
  color: var(--tx-001f1c, #001f1c);
}
.filter-dd{
  position: relative;
  flex: 0 0 auto;
}
.filter-dd-btn{
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.filter-dd-btn.has-value{
  border-color: #2b7dfa;
  box-shadow: inset 0 0 0 1px rgba(43,125,250,0.18);
}
.filter-dd-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 430px;
  max-width: calc(100vw - 28px);
  background: var(--bg-ffffff, #fff);
  border: 1px solid var(--bd-e5e7eb, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15,23,42,0.18);
  padding: 22px;
  display: none;
  z-index: 8000;
}
.filter-dd.open .filter-dd-menu{ display: block; }
.filter-dd-title{
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 18px;
  color: var(--tx-111827, #111827);
}
.filter-dd-price .filter-range input{
  height: 54px;
  border-radius: 9px;
  font-size: 17px;
}
.filter-dd-actions{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.filter-dd-reset{
  border: none;
  background: transparent;
  color: var(--tx-14747b, #14747b);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.filter-dd-done{
  min-width: 112px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #2b7dfa;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.filter-chip-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.filter-radio-chip input,
.segmented-options input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filter-radio-chip span{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--bd-d8d8d8, #d8d8d8);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.filter-radio-chip input:checked + span,
.segmented-options input:checked + span{
  border-color: #0b8793;
  background: var(--bg-eefafa, #eefafa);
  color: var(--tx-176f78, #176f78);
  box-shadow: inset 0 0 0 1px #0b8793;
}
.filter-dd-beds{
  width: 720px;
}
.range-pick-block + .range-pick-block{
  margin-top: 26px;
}
.range-pick-block strong{
  font-size: 19px;
  margin-right: 14px;
}
.range-pick-block > span{
  color: var(--tx-6b7280, #6b7280);
  font-size: 15px;
}
.segmented-options{
  display: flex;
  align-items: center;
  border: 1px solid var(--bd-dddddd, #dddddd);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
}
.segmented-options label{
  flex: 1 1 0;
  min-width: 0;
}
.segmented-options span{
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--bd-dddddd, #dddddd);
  font-size: 17px;
  cursor: pointer;
  white-space: nowrap;
}
.segmented-options label:last-child span{ border-right: none; }

/* full filter drawer: bottom actions on mobile and cleaner layout */
@media (max-width: 1280px){
  .sp-search-header-container{ max-width: 1120px; }
  .sp-search-form{ flex-basis: 300px; max-width: 300px; }
  .filter-dd-btn,.filter-toggle-btn,.save-search-btn{ padding-left: 10px; padding-right: 10px; }
  .type-select{ width: 116px; }
}

@media (max-width: 992px){
      .radius-select,
  .type-select,
  .layout-select,
  .filter-toggle-btn,
  .save-search-btn,
  .filter-dd-btn{
    flex: 0 0 auto !important;
    width: auto;
    height: 42px !important;
  }
  .filter-dd-menu{
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    max-height: 78vh;
    overflow: auto;
  }
  .filter-dd-beds{ width: auto; }
  .segmented-options span{ font-size: 14px; height: 48px; }
  .filter-chip-list{ grid-template-columns: 1fr; }
    .sp-filter-panel form{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 96px;
  }
    }

/* ======================================
   REQUESTED TOP FILTER BAR DROPDOWNS
====================================== */
.sp-search-btn button:hover{
    background: var(--bg-f7f8fa, #f7f8fa) !important;
    color: var(--tx-000000, #000000) !important;
}
.sp-search-radius-inline{
    flex: 0 0 auto;
    display: none !important;
    align-items: center;
    border-left: 1px solid var(--bd-e6e8ef, #e6e8ef);
    margin-left: auto;
}
.filter-dropdown-btn,
.type-select,
.layout-select,
.radius-select,
.filter-toggle-btn,
.save-search-btn{
  height: 35px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 5px !important;
  background-color: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0b1220, #0b1220) !important;
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  white-space: nowrap;
  box-sizing: border-box;
}
.filter-dropdown-btn i{
  font-size: 12px;
}
.radius-select{
    min-width: 76px;
    width: 74px;
}
.type-select{
    min-width: 112px;
    width: 128px;
}
.layout-select{
    width: 96px;
    min-width: 92px;
}
.filter-toggle-btn{
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-2b7dfa, #2b7dfa);
    border: 1px solid #2b7dfa;
    padding: 0 12px !important;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
}
.save-search-btn{
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-2b7dfa, #2b7dfa);
    border: 1px solid #2b7dfa;
    padding: 0 12px !important;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.filter-count-badge{
    min-width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 999px;
    background: #e23d3d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 18px;
    width: 18px;
    margin-left: 2px;
    font-weight: 600;
    text-align: center;
    -webkit-text-fill-color: #ffffff;
}
.price-histogram{
  height: 120px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 0 0 16px;
}
.price-histogram span{
  width: 18px;
  min-height: 14px;
  border-radius: 999px;
  background: #00372f;
  display: block;
}
.price-histogram span:nth-child(1){ height: 14px; }
.price-histogram span:nth-child(2){ height: 22px; }
.price-histogram span:nth-child(3){ height: 74px; }
.price-histogram span:nth-child(4){ height: 86px; }
.price-histogram span:nth-child(5){ height: 92px; }
.price-histogram span:nth-child(6){ height: 118px; }
.price-histogram span:nth-child(7){ height: 118px; }
.price-histogram span:nth-child(8){ height: 86px; }
.price-histogram span:nth-child(9){ height: 28px; }
.price-histogram span:nth-child(10){ height: 48px; }
.price-histogram span:nth-child(11){ height: 18px; }
.price-histogram span:nth-child(12){ height: 64px; }
.dropdown-range-line{
  height: 22px;
  border-top: 4px solid #0b1220;
  position: relative;
  margin-bottom: 24px;
}
.dropdown-range-line:before,
.dropdown-range-line:after{
  content: "";
  position: absolute;
  top: -13px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-ffffff, #ffffff);
  border: 2px solid var(--bd-d7d7d7, #d7d7d7);
}
.dropdown-range-line:before{ left: -10px; }
.dropdown-range-line:after{ right: -10px; }
.dropdown-input-row{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.dropdown-input-row input{
  width: 100%;
  height: 58px;
  border: 1px solid var(--bd-c7c7c7, #c7c7c7);
  border-radius: 5px;
  padding: 0 16px;
  font-size: 22px;
  color: var(--tx-0b1220, #0b1220);
}
.dropdown-input-row input::placeholder{
  color: var(--tx-8a8f99, #8a8f99);
}
.dropdown-input-row > span{
  color: var(--tx-636a75, #636a75);
  font-size: 22px;
}
.kind-option input{
  width: 18px;
  height: 18px;
}
.seg-title{
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 15px;
}
.seg-title strong{
  font-size: 24px;
  color: var(--tx-151515, #151515);
}
.seg-title span{
  font-size: 20px;
  color: var(--tx-737373, #737373);
}
.seg-option:last-child span{ border-right: 0; }
/* Mobile filter drawer buttons fixed to the bottom */
@media (max-width: 992px){
          .beds-menu{ width: auto; }
  .seg-row{ overflow-x: auto; }
  .seg-option{ min-width: 88px; }
  .sp-filter-panel{
    width: 100vw;
    display: flex;
    flex-direction: column;
    height: 100dvh;
}
  .sp-filter-panel-inner{
    padding: 0 16px 116px !important;
    height: 100dvh !important;
    overflow: hidden;
    overflow-y: auto !important;
}
    .apply-filters,
  .clear-filters{
    width: 50% !important;
    text-align: center;
    flex: 1 1 0;
    height: 54px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
}
  .apply-filters{
    background: #e23d3d !important;
    box-shadow: none !important;
  }
  .clear-filters{
    background: var(--bg-ffffff, #ffffff) !important;
    border: 1px solid var(--bd-d7deea, #d7deea) !important;
    color: var(--tx-18737a, #18737a) !important;
  }
  .type-select{
    display: inline-block !important;
    width: auto;
}
}

/* === FINAL FIX: top dropdown row + no unstyled dropdown content === */
.filter-dropdown-menu[hidden]{ display:none !important; }
.sp-search-header-container{
    max-width: 1445px !important;
    margin: 0 auto !important;
}
.sp-search-bar-wrapper{
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}
.sp-search-form{
    flex: 0 0 500px !important;
    max-width: 500px !important;
    margin: 0 !important;
    min-width: 500px !important;
}
.sp-search-container{
    display: flex;
    background: var(--bg-ffffff, #fff);
    border-radius: 5px !important;
    border: 1px solid var(--bd-e0e3ea, #e0e3ea) !important;
    position: relative;
    box-shadow: none !important;
    min-width: 0;
    height: 40px !important;
    overflow: visible !important;
}
.sp-search-field input{
    width: 100%;
    height: 35px !important;
    border: none;
    padding: 0 0px !important;
    font-size: 15px !important;
    outline: none;
    background: transparent;
}
.sp-search-btn button{
    width: 44px !important;
    height: 35px !important;
    border: none;
    background: var(--bg-ffffff, #fff) !important;
    color: var(--tx-000000, #000) !important;
    border-radius: 0 5px 5px 0 !important;
    cursor: pointer;
    font-size: 15px !important;
    transition: background 0.3s;
    border-left: 1px solid var(--bd-e0e3ea, #e0e3ea) !important;
}
.country-select{
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-ffffff, #fff);
    border-radius: 5px 0 0 5px !important;
    height: 35px !important;
    padding: 0 10px !important;
    border-right: 1px solid var(--bd-eeeeee, #eee);
    cursor: pointer;
    flex: 0 0 auto;
}
.sp-search-controls{
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

/* Meerdere plaatsen tegelijk zoeken: elke gekozen plaats wordt een grijze
   chip INSIDE de zoekbalk zelf (niet eronder), met het invoerveld er direct
   na, zodat je rechts naast de laatste chip de volgende plaats intypt. De
   balk blijft altijd 1 regel hoog: bij veel of lange plaatsen scrolt de
   chips+invoerveld-rij horizontaal i.p.v. dat de tekst naar een 2e regel
   wrapt (dat duwde de achtergrond/tekst scheef omdat de balk een vaste
   hoogte heeft). */
.sp-search-field{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    padding: 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    /* Dunne scrollbalk (5px) die onderin de balk past: de plaatsen zijn zo klein
       (24px hoog) en staan vast op 7px van de bovenkant, zodat er niets verspringt
       als de scrollbalk verschijnt. De balk scrolt zelf naar het invoerveld. */
    scrollbar-width: thin;
    scrollbar-color: #c4c9d2 transparent;
}

.sp-search-field::-webkit-scrollbar{ height: 5px; }
.sp-search-field::-webkit-scrollbar-button{ display: none; width: 0; height: 0; }
.sp-search-field::-webkit-scrollbar-track{ background: transparent; }
.sp-search-field::-webkit-scrollbar-thumb{ background: var(--bg-c4c9d2, #c4c9d2); border-radius: 3px; }

.sp-location-chips{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.sp-location-chip{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px 5px 10px;
    border-radius: 5px;
    background: var(--bg-eef0f3, #eef0f3);
    color: var(--tx-1f2937, #1f2937);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
}

.sp-location-chip-text{
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-location-chip-remove{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--tx-6b7280, #6b7280);
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sp-location-chip-remove:hover{ background: var(--bg-d7dbe1, #d7dbe1); color: var(--tx-1f2937, #1f2937); }
.sp-location-chip-remove .material-symbols-outlined{ font-size: 14px; }

.sp-search-field input#search-input{
    flex: 1 1 100px;
    /* Het invoerveld mag krimpen tot 56px voordat er gescrold hoeft te worden:
       de scrollbalk verschijnt zo pas als de balk echt (bijna) vol is. */
    min-width: 56px;
    width: auto;
}
.filter-dropdown{
    position: relative !important;
    flex: 0 0 auto !important;
}
.filter-dropdown-btn,.type-select,.layout-select,.radius-select,.filter-toggle-btn,.save-search-btn{ height:40px !important; min-height:40px !important; border:1px solid var(--bd-d5d7dc, #d5d7dc) !important; border-radius:5px !important; background:var(--bg-ffffff, #fff) !important; color:var(--tx-0b1220, #0b1220) !important; -webkit-text-fill-color:var(--tx-0b1220, #0b1220) !important; font-size:15px !important; font-weight:400 !important; white-space:nowrap !important; box-sizing:border-box !important; }
.filter-dropdown-btn{
    padding: 0 12px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}
.filter-dropdown-menu{
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    display: none !important;
    width: 420px;
    max-width: min(90vw, 520px);
    padding: 24px 30px 22px !important;
    background: var(--bg-ffffff, #fff) !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.20) !important;
    z-index: 9000 !important;
}
.filter-dropdown-menu.open{
    display: block !important;
}
.price-menu{ width:480px !important; }
.kind-menu{
    width: 430px !important;
}
.beds-menu{
    width: 760px !important;
    right: 0 !important;
    left: auto !important;
}
.dropdown-title{
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: var(--tx-002f2a, #002f2a) !important;
    margin-bottom: 22px;
    margin: 0 0 22px !important;
}
.kind-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 18px !important;
}
.kind-option{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 15px !important;
    color: var(--tx-0b1220, #0b1220) !important;
    cursor: pointer !important;
}
.seg-row{
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--bd-dedede, #dedede) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 28px !important;
}
.seg-option{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    cursor: pointer !important;
    position: relative !important;
}
.seg-option input{
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.seg-option span{
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: var(--tx-151515, #151515) !important;
    border-right: 1px solid var(--bd-dedede, #dedede) !important;
    padding: 0 14px !important;
}
.seg-option input:checked + span{
    background: var(--bg-eef8fa, #eef8fa) !important;
    color: var(--tx-18737a, #18737a) !important;
    outline: 3px solid #0b8792 !important;
    outline-offset: -5px !important;
    font-weight: 700 !important;
}
.dropdown-actions{
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 26px !important;
    padding-top: 28px !important;
}
.dropdown-reset{
    border: none !important;
    background: transparent !important;
    color: var(--tx-004b94, #004b94) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
.dropdown-apply{
    border: none !important;
    background: #004b94 !important;
    color: #fff !important;
    height: 54px !important;
    min-width: 130px !important;
    padding: 0 24px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
@media (max-width: 992px){
  .sp-search-bar-wrapper{
    display: block !important;
}
  .sp-search-form{
    max-width: none !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
    min-width: 0 !important;
}
    .filter-dropdown-menu{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none;
    max-height: calc(100dvh - 120px) !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
    padding: 20px !important;
}
  .beds-menu,.kind-menu,.price-menu{ width:auto !important; left:12px !important; right:12px !important; }
}

/* ======================================
   FINAL FIX: price range line + searchbar borders + country dropdown
   - Price dropdown range line is forced visible above the inputs.
   - Country area and search button no longer cover the search-container border.
   - Search container keeps overflow visible so the countries dropdown can open.
====================================== */
.sp-search-header .sp-search-container{
  overflow: visible !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 5px !important;
  background: var(--bg-ffffff, #ffffff) !important;
}

.sp-search-header .country-select,
.sp-search-header .sp-search-btn,
.sp-search-header .sp-search-btn button{
  box-sizing: border-box !important;
  height: 100% !important;
  align-self: stretch !important;
}

.sp-search-header .sp-search-btn button{
  border: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  line-height: 33px !important;
}

.sp-search-header .sp-search-btn button .material-symbols-outlined{
  font-size: 30px !important;
  line-height: 1 !important;
}

.price-menu .dropdown-range-line span,
.price-menu .dropdown-range-line::before{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #0b1220 !important;
  display: block !important;
}

.price-menu .dropdown-range-line::after{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 3px !important;
  height: 28px !important;
  background:
    radial-gradient(circle at left center, var(--bg-ffffff, #ffffff) 0 11px, var(--bg-d7d7d7, #d7d7d7) 12px 14px, transparent 15px),
    radial-gradient(circle at right center, var(--bg-ffffff, #ffffff) 0 11px, var(--bg-d7d7d7, #d7d7d7) 12px 14px, transparent 15px) !important;
  pointer-events: none !important;
}

.price-menu .dropdown-input-row{
  clear: both !important;
}


/* ======================================
   FINAL REQUEST: consistent dropdown arrows + layout on the far right
====================================== */
.sp-search-header .radius-select,
.sp-search-header .type-select,
.sp-search-header .layout-select{
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: var(--bg-ffffff, #ffffff) !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  background-size: 14px !important;
  padding-right: 30px !important;
}

.sp-search-header .filter-dropdown-btn::after,
.sp-search-header .filter-toggle-btn::after,
.sp-search-header .save-search-btn::after{
  content: none !important;
}

.layout-control{
  margin-left: 0;
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 35px;
}

.layout-control > .material-symbols-outlined{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 13px;
  color: var(--tx-0b1220, #0b1220);
  pointer-events: none;
}

.layout-control .layout-select{
  width: 118px !important;
  min-width: 118px !important;
  padding-left: 34px !important;
  text-align: left !important;
  cursor: pointer;
}

@media (max-width: 992px){
  .layout-control{
    margin-left: 0;
    order: 5;
    height: 42px !important;
  }
  .layout-control .layout-select{
    height: 42px !important;
    min-width: 118px !important;
  }
  .layout-control > .material-symbols-outlined{
    left: 12px;
  }
  .mobile-search-menu-toggle{
    display: none !important;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--bg-ffffff, #ffffff);
    color: var(--tx-0b1220, #0b1220);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    order: 6 !important;
}
  body.search-controls-stuck .layout-control{
    order: 4 !important;
    flex: 0 0 auto !important;
    height: 42px !important;
  }
  body.search-controls-stuck .layout-control .layout-select{
    width: 118px !important;
    min-width: 118px !important;
    height: 42px !important;
    font-size: 13px !important;
    border-color: #2b7dfa !important;
  }
  body.search-controls-stuck .mobile-search-menu-toggle{
    display: flex !important;
    order: 5 !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    margin-left: 0 !important;
}
}


/* ======================================
   MOBILE: only show Filter, Layout and Save search
====================================== */
@media (max-width: 992px){
  .sp-search-controls{
    width: 100%;
    margin-top: 10px;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--bg-ffffff, #ffffff);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 2px;
    overflow-y: visible !important;
    overflow: visible !important;
}

  .sp-search-controls .radius-select,
  .sp-search-controls .type-select,
  .sp-search-controls .filter-dropdown,
  .sp-search-controls .mobile-search-menu-toggle{
    display: none !important;
  }

  .sp-search-controls .filter-toggle-btn{
    order: 1 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    justify-content: center !important;
    padding: 0 10px !important;
    height: 42px !important;
    border-color: #2b7dfa !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  }

  .sp-search-controls .layout-control{
    order: 2 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
    height: 42px !important;
  }

  .sp-search-controls .layout-control .layout-select{
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    border-color: #2b7dfa !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
    padding-left: 34px !important;
    padding-right: 28px !important;
  }

  .sp-search-controls .layout-control > .material-symbols-outlined{
    color: var(--tx-2b7dfa, #2b7dfa) !important;
  }

  .sp-search-controls .save-search-btn{
    order: 3 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    justify-content: center !important;
    padding: 0 10px !important;
    height: 42px !important;
    border-color: #2b7dfa !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  }

  body.search-controls-stuck .sp-search-controls .radius-select,
  body.search-controls-stuck .sp-search-controls .type-select,
  body.search-controls-stuck .sp-search-controls .filter-dropdown,
  body.search-controls-stuck .sp-search-controls .mobile-search-menu-toggle{
    display: none !important;
  }

      body.search-controls-stuck .sp-search-controls .layout-control .layout-select{
    width: 100% !important;
    min-width: 0 !important;
  }

  }

/* ======================================
   FIX: keep Layout text visible on mobile sticky controls
   - Prevents the layout select from shrinking so far that only the icon remains.
   - Keeps Filter, Layout and Save search on one row on mobile.
====================================== */
@media (max-width: 992px){
  .sp-search-controls,
  body.search-controls-stuck .sp-search-controls{
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .sp-search-controls .filter-toggle-btn,
  body.search-controls-stuck .sp-search-controls .filter-toggle-btn{
    flex: 1 1 0 !important;
    min-width: 86px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

    .sp-search-controls .layout-control .layout-select,
  body.search-controls-stuck .sp-search-controls .layout-control .layout-select{
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    padding-left: 34px !important;
    padding-right: 26px !important;
    font-size: 13px !important;
    line-height: 42px !important;
    text-align: left !important;
    text-indent: 0 !important;
    overflow: visible !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  }

    .sp-search-controls .save-search-btn,
  body.search-controls-stuck .sp-search-controls .save-search-btn{
    flex: 1 1 0 !important;
    min-width: 96px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 360px){
  .sp-search-controls .layout-control,
  body.search-controls-stuck .sp-search-controls .layout-control,
  .sp-search-controls .layout-control .layout-select,
  body.search-controls-stuck .sp-search-controls .layout-control .layout-select{
    flex-basis: 108px !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
  }

  .sp-search-controls .filter-toggle-btn,
  body.search-controls-stuck .sp-search-controls .filter-toggle-btn{
    min-width: 76px !important;
  }

  .sp-search-controls .save-search-btn,
  body.search-controls-stuck .sp-search-controls .save-search-btn{
    min-width: 86px !important;
  }
}

/* ======================================
   FINAL FIX: one small dropdown arrow everywhere
   - Uses the same small SVG arrow as km/buy dropdowns.
   - Removes duplicate/native arrows where possible.
   - Country keeps only one small arrow.
====================================== */
.sp-search-header .radius-select,
.sp-search-header .type-select,
.sp-search-header .layout-select,
.sp-search-header .sort-select{
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  background-size: 14px !important;
  padding-right: 30px !important;
}

.sp-search-header .radius-select::-ms-expand,
.sp-search-header .type-select::-ms-expand,
.sp-search-header .layout-select::-ms-expand,
.sp-search-header .sort-select::-ms-expand,
.sp-search-header .country-select select::-ms-expand{
  display: none !important;
}

.sp-search-header .filter-dropdown-btn{
  position: relative !important;
  padding-right: 30px !important;
}

.sp-search-header .filter-dropdown-btn::after{
  content: "" !important;
  position: absolute !important;
  right: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px !important;
  pointer-events: none !important;
}

.sp-search-header .country-select{
    border-radius: 4px 0 0 4px !important;
    border-right: 1px solid var(--bd-e0e3ea, #e0e3ea) !important;
    padding: 0 10px !important;
    position: relative !important;
    z-index: 10001 !important;
    background-image: none !important;
}

.sp-search-header .country-select select,
.sp-search-header .country-select{
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.sp-search-header .country-select::after{
    content: none !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 14px !important;
    height: 14px !important;
    pointer-events: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px !important;
    display: none !important;
}


/* ======================================
   FINAL REQUEST: attached dropdown menus
   - Open menus sit directly against their trigger, with no gap.
   - Trigger and menu visually become one connected component.
   - Also applies the same connected style to search suggestions.
====================================== */
.sp-search-header .filter-dropdown.open .filter-dropdown-btn,
.sp-search-header .filter-dropdown:has(.filter-dropdown-menu.open) .filter-dropdown-btn{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-color: var(--bd-ffffff, #ffffff) !important;
  position: relative !important;
  z-index: 9002 !important;
}

.sp-search-header .filter-dropdown-menu{
  top: 100% !important;
  margin-top: -1px !important;
  border-radius: 0 0 14px 14px !important;
  border-top-left-radius: 0 !important;
  border-top: 1px solid rgba(15,23,42,0.10) !important;
  box-shadow: 0 18px 45px rgba(15,23,42,0.20) !important;
  z-index: 9001 !important;
}

.sp-search-header .filter-dropdown-menu.open{
  display: block !important;
}

.sp-search-header .sp-price-dropdown .filter-dropdown-menu,
.sp-search-header .sp-kind-dropdown .filter-dropdown-menu,
.sp-search-header .sp-beds-dropdown .filter-dropdown-menu{
  left: 0 !important;
}

.sp-search-header .sp-beds-dropdown .filter-dropdown-menu{
  right: auto !important;
}

.sp-search-header .suggestions-container{
  top: 100% !important;
  margin-top: -1px !important;
  left: -1px !important;
  right: -1px !important;
  border-radius: 0 0 8px 8px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-top: 0 !important;
  box-shadow: 0 18px 45px rgba(15,23,42,0.18) !important;
}

.sp-search-header .sp-search-container:focus-within{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  z-index: 9003 !important;
}

.sp-search-header .sp-search-container:focus-within .country-select{
  border-bottom-left-radius: 0 !important;
}

.sp-search-header .sp-search-container:focus-within .sp-search-btn button{
  border-bottom-right-radius: 0 !important;
}

@media (max-width: 992px){
  .sp-search-header .filter-dropdown-menu{
    top: auto !important;
    margin-top: 0 !important;
    border-radius: 14px !important;
  }
}

/* ======================================
   FINAL FIX: km, buy and layout are now custom attached dropdowns
   - Native select dropdowns cannot be styled/attached consistently by CSS.
   - These controls use the same custom dropdown structure as Price/Type/Beds.
====================================== */
.sp-search-header .select-filter-dropdown{
  position: relative !important;
  flex: 0 0 auto !important;
}

.sp-search-header .select-filter-dropdown .filter-dropdown-btn{
  height: 40px !important;
  min-height: 40px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 5px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0b1220, #0b1220) !important;
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 30px 0 12px !important;
  cursor: pointer !important;
}

.sp-search-header .sp-radius-dropdown .filter-dropdown-btn{ min-width: 76px !important; }
.sp-search-header .sp-type-dropdown .filter-dropdown-btn{ min-width: 112px !important; }

.sp-search-header .select-menu{
  top: 100% !important;
  margin-top: -1px !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 0 10px 10px !important;
}

.sp-search-header .select-dropdown-option{
  width: 100% !important;
  height: 42px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bd-eef0f3, #eef0f3) !important;
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0b1220, #0b1220) !important;
  font-size: 15px !important;
  text-align: left !important;
  padding: 0 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
}

.sp-search-header .select-dropdown-option:last-child{
  border-bottom: 0 !important;
}

.sp-search-header .select-dropdown-option:hover,
.sp-search-header .select-dropdown-option.active{
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
}

.sp-search-header .layout-select-native{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: -9999px !important;
}

.sp-search-header .layout-menu{
  width: 118px !important;
  min-width: 118px !important;
}

@media (max-width: 992px){
  .sp-search-controls .sp-radius-dropdown,
  .sp-search-controls .sp-type-dropdown{
    display: none !important;
  }

      .sp-search-controls .layout-control > .material-symbols-outlined,
  body.search-controls-stuck .sp-search-controls .layout-control > .material-symbols-outlined{
    left: 12px !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
}

  .sp-search-header .layout-menu{
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: auto !important;
    width: 118px !important;
    min-width: 118px !important;
    max-height: none !important;
    padding: 0 !important;
    border-radius: 0 0 10px 10px !important;
  }
}

/* ======================================
   FINAL FIX: Country dropdown attached to searchbar
   - Country now visually connects to its dropdown/suggestions.
   - Removes the gap between the country/search button area and the open dropdown.
====================================== */
.sp-search-header .sp-search-container.country-dropdown-open,
.sp-search-header .sp-search-container.country-suggestions-open{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  z-index: 9005 !important;
}

.sp-search-header .sp-search-container.country-dropdown-open .country-select,
.sp-search-header .sp-search-container.country-suggestions-open .country-select,
.sp-search-header .country-select.country-open{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-color: var(--bd-ffffff, #ffffff) !important;
  position: relative !important;
  z-index: 9006 !important;
}

.sp-search-header .sp-search-container.country-dropdown-open .sp-search-btn button,
.sp-search-header .sp-search-container.country-suggestions-open .sp-search-btn button{
  border-bottom-right-radius: 0 !important;
}

.sp-search-header .sp-search-container.country-dropdown-open .suggestions-container,
.sp-search-header .sp-search-container.country-suggestions-open .suggestions-container,
.sp-search-header .suggestions-container.country-open,
.sp-search-header .suggestions-container.show,
.sp-search-header .suggestions-container.active{
  top: 100% !important;
  margin-top: -1px !important;
  left: -1px !important;
  right: -1px !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
  z-index: 9004 !important;
}

.sp-search-header .sp-search-container.country-dropdown-open .suggestions-container,
.sp-search-header .sp-search-container.country-suggestions-open .suggestions-container{
  display: block;
}


/* ======================================
   FINAL FIX: search suggestions header alignment + English label
====================================== */
.sp-search-header .suggestion-header{
  padding: 12px 15px 6px !important;
  color: var(--tx-6b7280, #6b7280) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.sp-search-header .suggestion-item .material-symbols-outlined{
  width: 16px !important;
  margin-right: 8px !important;
  text-align: center !important;
}

/* ======================================
   FINAL REQUEST: search header order + button states
   - Order: searchbar, km, Filters, Price, Type, Beds & Baths, Save search, Layout.
   - Filters is blue with white text.
   - Layout keeps a blue border and blue text.
   - Other search-header dropdowns get a black border on hover.
   - Country select is intentionally excluded.
====================================== */
.sp-search-header .sp-search-controls .sp-radius-dropdown{ order: 1 !important; }
.sp-search-header .sp-search-controls .filter-toggle-btn{ order: 2 !important; }
.sp-search-header .sp-search-controls .sp-price-dropdown{ order: 4 !important; }
.sp-search-header .sp-search-controls .sp-kind-dropdown{ order: 5 !important; }
.sp-search-header .sp-search-controls .sp-beds-dropdown{ order: 6 !important; }
.sp-search-header .sp-search-controls .sp-type-dropdown{ order: 3 !important; }
.sp-search-header .sp-search-controls .save-search-btn{ order: 8 !important; }
.sp-search-header .sp-search-controls .layout-control{ order: 7 !important; }
.sp-search-header .sp-search-controls .mobile-search-menu-toggle{ order: 9 !important; }

.sp-search-header .filter-toggle-btn,
.sp-search-header .filter-toggle-btn:focus,
.sp-search-header .filter-toggle-btn:active{
  background: var(--bg-ffffff, #ffffff) !important;
  border-color: #2b7dfa !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa)  !important;
}

.sp-search-header .filter-toggle-btn .material-symbols-outlined,
.sp-search-header .filter-toggle-btn .filter-count-badge{
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.sp-search-header .filter-toggle-btn:hover .material-symbols-outlined{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.sp-search-header .filter-toggle-btn:hover{
  background: #004b94 !important;
  border-color: #004b94 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.sp-search-header .layout-control .filter-dropdown-btn.layout-select,
.sp-search-header .layout-control .filter-dropdown-btn.layout-select:focus,
.sp-search-header .layout-control .filter-dropdown-btn.layout-select:active,
.sp-search-header .layout-control .filter-dropdown-btn.layout-select:hover{
  background: var(--bg-ffffff, #ffffff) !important;
  border-color: #2b7dfa !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
}

.sp-search-header .sp-radius-dropdown .filter-dropdown-btn:hover,
.sp-search-header .sp-price-dropdown .filter-dropdown-btn:hover,
.sp-search-header .sp-kind-dropdown .filter-dropdown-btn:hover,
.sp-search-header .sp-beds-dropdown .filter-dropdown-btn:hover,
.sp-search-header .sp-type-dropdown .filter-dropdown-btn:hover{
  border-color: #000000 !important;
  color: var(--tx-0b1220, #0b1220) !important;
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220) !important;
  background: var(--bg-ffffff, #ffffff) !important;
}

.sp-search-header .save-search-btn:hover{
  border-color: #000000 !important;
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0b1220, #0b1220) !important;
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220) !important;
}

.sp-search-header .country-select:hover{
  border-right-color: var(--bd-e0e3ea, #e0e3ea) !important;
}

@media (max-width: 992px){
  .sp-search-header .sp-search-controls .filter-toggle-btn{
    order: 1 !important;
    background: var(--bg-ffffff, #ffffff) !important;
    border-color: #2b7dfa !important;
    color: #ffffff !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  }

  .sp-search-header .sp-search-controls .layout-control{
    order: 2 !important;
  }

  .sp-search-header .sp-search-controls .save-search-btn{
    order: 3 !important;
  }

  body.search-controls-stuck .sp-search-controls .filter-toggle-btn{
    order: 1 !important;
    flex: 1 1 0 !important;
    background: var(--bg-ffffff, #ffffff) !important;
    border-color: #2b7dfa !important;
    color: #ffffff !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
}

  body.search-controls-stuck .sp-search-controls .layout-control{
    order: 2 !important;
    flex: 1 1 0 !important;
}

  body.search-controls-stuck .sp-search-controls .save-search-btn{
    order: 3 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
}


/* ======================================
   FINAL FIX: working price histogram + real range slider
   - The previous .dropdown-range-line was decorative only.
   - These controls are real range inputs connected to price_min / price_max.
====================================== */
.price-menu .dropdown-range-line{
    display: none !important;
    width: calc(100% - 28px) !important;
    height: 34px !important;
    margin: 0 14px 24px !important;
    padding: 0 !important;
    border: 0 !important;
    position: relative !important;
}

.price-menu .price-histogram{
  height: 120px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 6px !important;
  padding: 0 0 14px !important;
  margin: 0 !important;
}

.price-menu .price-histogram span{
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 8px !important;
  min-height: 6px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #033463 !important;
  display: block !important;
}

.price-range-slider{
  position: relative !important;
  height: 34px !important;
  margin: 0 0 6px !important;
}

.price-range-track,
.price-range-selection{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.price-range-track{
  background: var(--bg-d7d7d7, #d7d7d7) !important;
}

.price-range-selection{
  background: #0b1220 !important;
}

.price-range-input{
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  z-index: 2 !important;
}

.price-range-input::-webkit-slider-runnable-track{
  height: 4px !important;
  background: transparent !important;
}

.price-range-input::-moz-range-track{
  height: 4px !important;
  background: transparent !important;
}

.price-range-input::-webkit-slider-thumb{
  width: 28px !important;
  height: 28px !important;
  margin-top: -12px !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  border: 2px solid var(--bd-d7d7d7, #d7d7d7) !important;
  box-shadow: 0 6px 16px rgba(15,23,42,0.18) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.price-range-input::-moz-range-thumb{
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  border: 2px solid var(--bd-d7d7d7, #d7d7d7) !important;
  box-shadow: 0 6px 16px rgba(15,23,42,0.18) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.price-range-input:focus{
  outline: none !important;
}

.price-range-input:focus::-webkit-slider-thumb{
  border-color: #2b7dfa !important;
  box-shadow: 0 0 0 4px rgba(43,125,250,0.14), 0 6px 16px rgba(15,23,42,0.18) !important;
}

.price-range-input:focus::-moz-range-thumb{
  border-color: #2b7dfa !important;
  box-shadow: 0 0 0 4px rgba(43,125,250,0.14), 0 6px 16px rgba(15,23,42,0.18) !important;
}

.price-range-labels{
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  color: var(--tx-64748b, #64748b) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.price-menu .price-input-row{
  margin-top: 0 !important;
}

@media (max-width: 992px){
  .price-menu .price-histogram{
    gap: 4px !important;
  }
}

/* ======================================
   FINAL REQUEST: active filters inside filter drawer
   - Shows the filters that are currently active when the Filters panel opens.
   - Range filters such as Price are shown as one combined chip.
====================================== */
.active-filter-summary-label{
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx-64748b, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.active-filter-summary-empty{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-f3f6fb, #f3f6fb);
  border: 1px solid var(--bd-e4eaf3, #e4eaf3);
  color: var(--tx-64748b, #64748b);
  font-size: 12px;
  font-weight: 650;
}

.sp-filter-header-copy{
    min-width: 0;
    flex: 1 1 auto;
}

@media (max-width: 992px){
  .active-filter-chips{
    max-width: none;
  }

  .active-filter-chip{
    font-size: 12px;
  }
}

/* ======================================
   FINAL REQUEST: open filter drawer styling
   - Clean white side drawer, no active-filters title.
   - Active filters are shown in a bordered box with removable chips.
   - Price min/max stays combined as one active filter chip.
====================================== */
.sp-filter-overlay{
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.34) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9000;
}

.sp-filter-panel{
    position: fixed;
    top: 0;
    right: 0;
    width: min(500px, 100vw) !important;
    height: 100vh;
    background: var(--bg-ffffff, #ffffff) !important;
    z-index: 9100;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow: hidden;
    border-left: 1px solid var(--bd-e6e8ef, #e6e8ef) !important;
}

.sp-filter-panel-inner{
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    background: var(--bg-ffffff, #ffffff) !important;
}

.sp-filter-header{
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--bd-edf0f4, #edf0f4) !important;
    position: sticky;
    top: 0;
    background: var(--bg-ffffff, #ffffff) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 3;
    padding: 22px 24px 18px !important;
    margin: 0 !important;
}

.sp-filter-title{
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 650 !important;
    color: var(--tx-0b1220, #0b1220) !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

.sp-filter-close{
    width: 36px !important;
    height: 36px !important;
    border: 0px solid var(--bd-d8dde8, #d8dde8);
    background: transparent !important;
    border-radius: 999px !important;
    cursor: pointer;
    font-size: 32px !important;
    line-height: 1;
    color: var(--tx-27364a, #27364a) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 300 !important;
}

.sp-filter-close:hover{
    background: var(--bg-f4f7fb, #f4f7fb) !important;
}

.active-filter-summary{
    margin-top: 8px;
    margin: 18px 0 0 !important;
    border-radius: 5px !important;
    background: var(--bg-ffffff, #ffffff) !important;
}

.active-filter-summary-label,
.active-filter-summary-empty{
  display: none !important;
}

.active-filter-chips{
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: none !important;
}

.active-filter-chip{
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    background: var(--bg-eaf4ff, #eaf4ff) !important;
    border: 0 !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.active-filter-chip:hover{
  background: var(--bg-ddecff, #ddecff) !important;
  color: var(--tx-004b94, #004b94) !important;
}

.active-filter-chip span:first-child{
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.active-filter-chip-remove{
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
}

.sp-filter-panel form{
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 79px) !important;
}

.filter-section-card{
    background: var(--bg-ffffff, #ffffff) !important;
    border-bottom: 1px solid var(--bd-edf0f4, #edf0f4) !important;
    border-radius: 0px;
    padding: 20px 24px !important;
    margin-bottom: 16px;
    margin: 0 !important;
}

.filter-section-head h3{
    margin: 0 0 4px;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--tx-111827, #111827) !important;
}

.filter-section-head span{
    display: none !important;
    font-size: 13px;
    color: var(--tx-64748b, #64748b);
}

.filter-row-2col{
  gap: 20px !important;
}

.filter-range input,
.filter-group select{
    width: 100%;
    height: 46px !important;
    padding: 0 14px;
    border: 1px solid var(--bd-cfd7e3, #cfd7e3) !important;
    border-radius: 4px !important;
    background: var(--bg-ffffff, #ffffff) !important;
    color: var(--tx-0f172a, #0f172a);
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: none !important;
}

.filter-chip{
    appearance: none;
    border: 1px solid var(--bd-d7deea, #d7deea);
    background: var(--bg-ffffff, #fff);
    color: var(--tx-0f172a, #0f172a);
    height: 38px !important;
    border-radius: 4px !important;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: none !important;
}

.filter-actions-bar{
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto !important;
    padding: 18px 24px !important;
    background: var(--bg-ffffff, #ffffff) !important;
    z-index: 2;
    border-top: 1px solid var(--bd-edf0f4, #edf0f4) !important;
    box-shadow: none !important;
}

.apply-filters{
    background: #2b7dfa !important;
    color: white;
    border: none;
    padding: 0 22px;
    height: 48px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: 700 !important;
    font-size: 14px;
    box-shadow: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-width: 220px !important;
}

.clear-filters{
    background: transparent !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    padding: 0 18px;
    height: 48px !important;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500 !important;
    border: 0 !important;
}

@media (max-width: 992px){
  .sp-filter-header{
    padding: 20px 16px 16px !important;
  }

  .active-filter-summary{
    padding: 12px !important;
  }

  .filter-section-card{
    padding: 18px 16px !important;
  }

  .filter-actions-bar{
    flex-direction: row !important;
    align-items: stretch;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    background: var(--bg-ffffff, #ffffff) !important;
    box-shadow: 0 -10px 28px rgba(15,23,42,0.10);
    z-index: 9200;
    border-top: 1px solid var(--bd-e6e8ef, #e6e8ef);
}
}

/* ======================================
   FINAL REQUEST: compact price dropdown
   - Makes only the Price dropdown smaller and more refined.
   - Keeps the rest of the search header and filter drawer unchanged.
====================================== */
.sp-search-header .sp-price-dropdown .filter-dropdown-menu,
.sp-search-header .price-menu{
  width: 360px !important;
  max-width: min(90vw, 360px) !important;
  padding: 14px 16px 16px !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16) !important;
}

.sp-search-header .price-menu .dropdown-title{
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  margin: 0 0 12px !important;
  color: var(--tx-0b1220, #0b1220) !important;
}

.sp-search-header .price-range-slider{
  height: 28px !important;
  margin: 0 0 4px !important;
}

.sp-search-header .price-range-track,
.sp-search-header .price-range-selection{
  top: 13px !important;
  height: 3px !important;
}

.sp-search-header .price-range-input{
  height: 28px !important;
}

.sp-search-header .price-range-input::-webkit-slider-thumb{
  width: 22px !important;
  height: 22px !important;
  margin-top: -9px !important;
  border-width: 2px !important;
  box-shadow: 0 4px 12px rgba(15,23,42,0.14) !important;
}

.sp-search-header .price-range-input::-moz-range-thumb{
  width: 22px !important;
  height: 22px !important;
  border-width: 2px !important;
  box-shadow: 0 4px 12px rgba(15,23,42,0.14) !important;
}

.sp-search-header .price-range-labels{
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin: 0 0 10px !important;
  color: var(--tx-64748b, #64748b) !important;
}

.sp-search-header .price-menu .dropdown-input-row,
.sp-search-header .price-menu .price-input-row{
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 0 !important;
}

.sp-search-header .price-menu .dropdown-input-row input,
.sp-search-header .price-menu .price-input-row input{
  height: 40px !important;
  border-radius: 5px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.sp-search-header .price-menu .dropdown-input-row > span,
.sp-search-header .price-menu .price-input-row > span{
  font-size: 14px !important;
  color: var(--tx-64748b, #64748b) !important;
}

.sp-search-header .price-menu .dropdown-actions{
  padding-top: 14px !important;
  gap: 12px !important;
}

.sp-search-header .price-menu .dropdown-reset{
  font-size: 13px !important;
  font-weight: 650 !important;
}

.sp-search-header .price-menu .dropdown-apply{
  height: 38px !important;
  min-width: 92px !important;
  padding: 0 16px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

@media (max-width: 992px){
  .sp-search-header .sp-price-dropdown .filter-dropdown-menu,
  .sp-search-header .price-menu{
    width: auto !important;
    max-width: none !important;
    left: 12px !important;
    right: 12px !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }
}

/* ======================================
   FINAL FIX: compact price histogram max height
   - Prevents individual bars from sticking out above the compact price dropdown.
   - Keeps the histogram visually balanced inside the smaller price filter.
====================================== */
.sp-search-header .price-menu .price-histogram{
    height: 82px !important;
    gap: 4px !important;
    padding: 0 0 10px !important;
    margin: 0 !important;
    max-height: 82px !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
}

.sp-search-header .price-menu .price-histogram span{
    min-width: 5px !important;
    min-height: 4px !important;
    border-radius: 999px 999px 0 0 !important;
    max-height: 72px !important;
}

.sp-search-header .price-menu .price-histogram span:nth-child(1){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(2){ height: 72px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(3){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(4){ height: 48px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(5){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(6){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(7){ height: 48px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(8){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(9){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(10){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(11){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(12){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(13){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(14){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(15){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(16){ height: 8px !important; }
.sp-search-header .price-menu .price-histogram span:nth-child(17){ height: 48px !important; }

@media (max-width: 992px){
  .sp-search-header .price-menu .price-histogram{
    height: 76px !important;
    max-height: 76px !important;
  }

  .sp-search-header .price-menu .price-histogram span{
    max-height: 66px !important;
  }
}

/* ======================================
   FINAL REQUEST: compact Beds & Baths dropdown
   - Matches the compact Price dropdown sizing and button styling.
   - Prevents the Beds & Baths menu from falling outside the viewport.
   - Makes the segmented choices smaller and cleaner.
====================================== */
.sp-search-header .sp-beds-dropdown .filter-dropdown-menu,
.sp-search-header .beds-menu{
  width: 360px !important;
  max-width: min(90vw, 360px) !important;
  right: 0 !important;
  left: auto !important;
  padding: 14px 16px 16px !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16) !important;
  overflow: hidden !important;
}

.sp-search-header .beds-menu .seg-title{
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.sp-search-header .beds-menu .seg-title strong{
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: var(--tx-0b1220, #0b1220) !important;
}

.sp-search-header .beds-menu .seg-title span{
  font-size: 11px !important;
  color: var(--tx-64748b, #64748b) !important;
}

.sp-search-header .beds-menu .seg-row{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin: 0 0 14px !important;
}

.sp-search-header .beds-menu .seg-option{
  flex: none !important;
  min-width: 0 !important;
}

.sp-search-header .beds-menu .seg-option span{
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 5px !important;
  padding: 0 8px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0b1220, #0b1220) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.sp-search-header .beds-menu .seg-option:last-child span{
  border-right: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
}

.sp-search-header .beds-menu .seg-option input:checked + span{
  background: #004b9412 !important;
  color: var(--tx-004b94, #004b94)!important;
  border-color: #004b94 !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px #0b8792 !important;
  font-weight: 700 !important;
}

.sp-search-header .beds-menu .dropdown-actions{
  padding-top: 2px !important;
  gap: 12px !important;
}

.sp-search-header .beds-menu .dropdown-reset{
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--tx-004b94, #004b94) !important;
}

.sp-search-header .beds-menu .dropdown-apply{
  height: 38px !important;
  min-width: 92px !important;
  padding: 0 16px !important;
  border-radius: 5px !important;
  background: #004b94 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

@media (max-width: 992px){
  .sp-search-header .sp-beds-dropdown .filter-dropdown-menu,
  .sp-search-header .beds-menu{
    width: auto !important;
    max-width: none !important;
    left: 12px !important;
    right: 12px !important;
    padding: 16px !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
  }

  .sp-search-header .beds-menu .seg-row{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ======================================
   FINAL REQUEST: compact Property Type dropdown
   - Matches the compact Price and Beds & Baths dropdown sizing.
   - Prevents the Property Type menu from becoming oversized.
   - Keeps the options clear in a smaller refined menu.
====================================== */
.sp-search-header .sp-kind-dropdown .filter-dropdown-menu,
.sp-search-header .kind-menu{
  width: 360px !important;
  max-width: min(90vw, 360px) !important;
  left: 0 !important;
  right: auto !important;
  padding: 14px 16px 16px !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16) !important;
  overflow: hidden !important;
}

.sp-search-header .kind-menu .dropdown-title{
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  margin: 0 0 12px !important;
  color: var(--tx-0b1220, #0b1220) !important;
}

.sp-search-header .kind-menu .kind-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 10px !important;
}

.sp-search-header .kind-menu .kind-option{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: var(--tx-0b1220, #0b1220) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

.sp-search-header .kind-menu .kind-option input{
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #2b7dfa !important;
}

.sp-search-header .kind-menu .dropdown-actions{
  padding-top: 14px !important;
  gap: 12px !important;
}

.sp-search-header .kind-menu .dropdown-reset{
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--tx-004b94, #004b94) !important;
}

.sp-search-header .kind-menu .dropdown-apply{
  height: 38px !important;
  min-width: 92px !important;
  padding: 0 16px !important;
  border-radius: 5px !important;
  background: #004b94 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

@media (max-width: 992px){
  .sp-search-header .sp-kind-dropdown .filter-dropdown-menu,
  .sp-search-header .kind-menu{
    width: auto !important;
    max-width: none !important;
    left: 12px !important;
    right: 12px !important;
    padding: 16px !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
  }

  .sp-search-header .kind-menu .kind-grid{
    grid-template-columns: 1fr !important;
  }
}

/* ======================================
   FINAL REQUEST: Beds & Baths option hover
   - Adds a clear hover state for 1+, 2+, 3+ etc.
   - Keeps the selected option styling stronger than hover.
====================================== */
.sp-search-header .beds-menu .seg-option:hover span,
.sp-search-header .beds-menu .seg-option:focus-within span{
  background: var(--bg-f2f7ff, #f2f7ff) !important;
}

.sp-search-header .beds-menu .seg-option input:checked + span,
.sp-search-header .beds-menu .seg-option:hover input:checked + span,
.sp-search-header .beds-menu .seg-option:focus-within input:checked + span{
  background: #004b9412 !important;
  color: var(--tx-004b94, #004b94) !important;
  border-color: #004b94 !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px #0b8792 !important;
  font-weight: 700 !important;
}


/* ======================================
   FINAL REQUEST: filter badge, drawer filters, lot/garage/listed date
====================================== */
.sp-filter-panel .drawer-price-histogram{
  height: 76px !important;
  max-height: 76px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 5px !important;
  padding: 2px 0 12px !important;
  margin: 0 0 10px !important;
  overflow: hidden !important;
}

.sp-filter-panel .drawer-price-histogram span{
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 5px !important;
  min-height: 5px !important;
  max-height: 64px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #033463 !important;
}

.filter-drawer-kind-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1px 14px !important;
}

.sp-filter-panel .kind-option{
  min-height: 34px !important;
}

.sp-filter-panel .kind-option input,
.filter-check-option input{
  accent-color: #2b7dfa !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.filter-check-option{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  border: 1px solid var(--bd-cfd7e3, #cfd7e3) !important;
  border-radius: 4px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0f172a, #0f172a) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.filter-check-option input{
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
}

@media (max-width: 992px){
  .filter-drawer-kind-grid{
    grid-template-columns: 1fr !important;
  }
}

/* ======================================
   FINAL REQUEST: drawer price slider, Since label, bordered drawer order
   - Full filter drawer now shows the same price range line with handles.
   - Property type sits directly between Price and Living area in the drawer.
   - Drawer filter blocks are visually separated with borders.
   - Filter count badge keeps readable white text.
====================================== */
.sp-search-header .filter-toggle-btn:hover .filter-count-badge{
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  border-color: var(--bd-ffffff, #ffffff) !important;
}

.sp-filter-panel .drawer-price-range-slider{
  display: block !important;
  position: relative !important;
  height: 30px !important;
  margin: 2px 0 6px !important;
}

.sp-filter-panel .drawer-price-range-slider .price-range-track,
.sp-filter-panel .drawer-price-range-slider .price-range-selection{
  top: 14px !important;
  height: 4px !important;
}

.sp-filter-panel .drawer-price-range-slider .price-range-track{
  background: var(--bg-d7d7d7, #d7d7d7) !important;
}

.sp-filter-panel .drawer-price-range-slider .price-range-selection{
  background: #0b1220 !important;
}

.sp-filter-panel .drawer-price-range-slider .price-range-input{
  height: 30px !important;
}

.sp-filter-panel .drawer-price-range-slider .price-range-input::-webkit-slider-thumb{
  width: 24px !important;
  height: 24px !important;
  margin-top: -10px !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  border: 2px solid var(--bd-d7d7d7, #d7d7d7) !important;
  box-shadow: 0 5px 14px rgba(15,23,42,0.16) !important;
}

.sp-filter-panel .drawer-price-range-slider .price-range-input::-moz-range-thumb{
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  border: 2px solid var(--bd-d7d7d7, #d7d7d7) !important;
  box-shadow: 0 5px 14px rgba(15,23,42,0.16) !important;
}

.sp-filter-panel .drawer-price-range-labels{
  margin: 0 0 12px !important;
  font-size: 12px !important;
  color: var(--tx-64748b, #64748b) !important;
}

.sp-filter-panel .filter-row{
  padding: 0 0 18px !important;
  margin: 0 0 18px !important;
  border-bottom: 1px solid var(--bd-edf0f4, #edf0f4) !important;
}

.sp-filter-panel .filter-row:last-child{
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

.sp-filter-panel .filter-drawer-kind-grid{
  padding: 2px 0 0 !important;
}

.sp-filter-panel .filter-drawer-kind-grid .kind-option{
  min-height: 40px !important;
  padding: 0 10px !important;
  border: 1px solid var(--bd-e2e8f0, #e2e8f0) !important;
  border-radius: 4px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-filter-panel .filter-drawer-kind-grid .kind-option:hover{
  border-color: #2b7dfa !important;
  background: var(--bg-f2f7ff, #f2f7ff) !important;
}

.sp-filter-panel .filter-drawer-kind-grid .kind-option:has(input:checked){
  border-color: #2b7dfa !important;
  background: var(--bg-f2f7ff, #f2f7ff) !important;
}

@media (max-width: 992px){
  .sp-filter-panel .filter-row{
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
  }
}


/* ======================================
   FINAL REQUEST: filter badge centered + Property Type font weight
====================================== */
.sp-search-header .filter-count-badge,
.filter-count-badge,
.sp-search-header .filter-toggle-btn .filter-count-badge{
    background: #2b7dfa !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #2b7dfa !important;
    opacity: 1 !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 18px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.sp-search-header .kind-menu .kind-option,
.sp-filter-panel .filter-drawer-kind-grid .kind-option{
  font-weight: 400 !important;
}


/* ======================================
   FINAL REQUEST: distance radius inside filter drawer
   - Adds a km radius slider above Price in the full filter drawer.
   - Keeps the existing top km dropdown unchanged.
====================================== */
.sp-filter-panel .drawer-radius-range{
  width: 100% !important;
}

.sp-filter-panel .radius-range-value{
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 0 8px !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  background: var(--bg-eaf4ff, #eaf4ff) !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.sp-filter-panel .radius-range-slider{
  position: relative !important;
  height: 30px !important;
  margin: 2px 0 6px !important;
}

.sp-filter-panel .radius-range-track,
.sp-filter-panel .radius-range-selection{
  position: absolute !important;
  left: 0 !important;
  top: 14px !important;
  height: 4px !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.sp-filter-panel .radius-range-track{
  right: 0 !important;
  background: var(--bg-d7d7d7, #d7d7d7) !important;
}

.sp-filter-panel .radius-range-selection{
  width: 0;
  background: #0b1220 !important;
}

.sp-filter-panel .radius-range-input{
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  z-index: 2 !important;
}

.sp-filter-panel .radius-range-input::-webkit-slider-runnable-track{
  height: 4px !important;
  background: transparent !important;
}

.sp-filter-panel .radius-range-input::-moz-range-track{
  height: 4px !important;
  background: transparent !important;
}

.sp-filter-panel .radius-range-input::-webkit-slider-thumb{
  width: 24px !important;
  height: 24px !important;
  margin-top: -10px !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  border: 2px solid var(--bd-d7d7d7, #d7d7d7) !important;
  box-shadow: 0 5px 14px rgba(15,23,42,0.16) !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.sp-filter-panel .radius-range-input::-moz-range-thumb{
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  border: 2px solid var(--bd-d7d7d7, #d7d7d7) !important;
  box-shadow: 0 5px 14px rgba(15,23,42,0.16) !important;
  cursor: pointer !important;
}

.sp-filter-panel .radius-range-input:focus{
  outline: none !important;
}

.sp-filter-panel .radius-range-input:focus::-webkit-slider-thumb{
  border-color: #2b7dfa !important;
  box-shadow: 0 0 0 4px rgba(43,125,250,0.14), 0 5px 14px rgba(15,23,42,0.16) !important;
}

.sp-filter-panel .radius-range-input:focus::-moz-range-thumb{
  border-color: #2b7dfa !important;
  box-shadow: 0 0 0 4px rgba(43,125,250,0.14), 0 5px 14px rgba(15,23,42,0.16) !important;
}

.sp-filter-panel .radius-range-labels{
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  color: var(--tx-64748b, #64748b) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* ======================================
   FINAL FIX: Distance radius is a separate drawer block above Price
====================================== */
.sp-filter-panel .filter-section-distance-radius{
  border-bottom: 1px solid var(--bd-edf0f4, #edf0f4) !important;
}

.sp-filter-panel .filter-section-distance-radius .filter-row{
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

.sp-filter-panel .filter-section-distance-radius .filter-section-head{
  margin-bottom: 12px !important;
}


/* ======================================
   SEARCH LIST + MAP POPUP: index-style feature icons
====================================== */
.result-features.v2.icon-features,
.leaflet-listing-popup .result-features.v2.icon-features{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx-334155, #334155);
  letter-spacing: 0.2px;
}

.result-features.v2.icon-features .feature-item,
.leaflet-listing-popup .result-features.v2.icon-features .feature-item{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.result-features.v2.icon-features .feature-icon,
.leaflet-listing-popup .result-features.v2.icon-features .feature-icon{
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-features.v2.icon-features span,
.leaflet-listing-popup .result-features.v2.icon-features span{
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.leaflet-listing-popup .lp-meta{
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--tx-334155, #334155);
}

.leaflet-listing-popup .lp-meta .result-features.v2.icon-features{
  gap: 10px;
}

.leaflet-listing-popup .lp-meta .feature-icon{
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

@media (max-width: 576px){
  .result-features.v2.icon-features{
    gap: 10px;
  }

  .result-features.v2.icon-features .feature-item{
    gap: 4px;
  }

  .result-features.v2.icon-features .feature-icon{
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}


/* ======================================
   FINAL REQUEST: mobile search starts with list + no Both layout option
====================================== */
@media (max-width: 992px){
  .sp-search-results-container.layout-both .map-column{
    display: none !important;
  }

  .sp-search-results-container.layout-both .results-list{
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  .sp-search-header .layout-menu .select-dropdown-option[data-layout-value="both"],
  .sp-search-header .layout-select-native option[value="both"],
  .desktop-layout-option[data-layout-value="both"]{
    display: none !important;
  }
}


/* ======================================
   FINAL FIX: equal icon spacing + 24px centered Layout icon
   - Layout uses the same inline icon + text structure as Save search.
   - The 24px icon is centered with flex instead of absolute positioning.
====================================== */
.sp-search-header .layout-control{
    height: 40px !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.sp-search-header .layout-control > .material-symbols-outlined{
    left: 12px !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
    font-size: 24px;
    display: none !important;
}

.sp-search-header .layout-control .filter-dropdown-btn.layout-select{
    width: 124px !important;
    min-width: 124px !important;
    padding-left: 34px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 28px 0 10px !important;
    line-height: 1 !important;
}

.sp-search-header .layout-control .filter-dropdown-btn.layout-select .material-symbols-outlined{
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  vertical-align: middle !important;
  pointer-events: none !important;
}

.sp-search-header .layout-control .layout-label{
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  height: 24px !important;
  line-height: 24px !important;
}

.sp-search-header .save-search-btn{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

@media (max-width: 992px){
  .sp-search-controls .layout-control,
  body.search-controls-stuck .sp-search-controls .layout-control{
    flex: 0 0 124px !important;
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    margin-left: 0 !important;
    overflow: visible !important;
    display: inline-flex !important;
    height: 42px !important;
}

  .sp-search-controls .layout-control .filter-dropdown-btn.layout-select,
  body.search-controls-stuck .sp-search-controls .layout-control .filter-dropdown-btn.layout-select{
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    height: 42px !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
    border-color: #2b7dfa !important;
    font-size: 13px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 0 26px 0 8px !important;
    line-height: 1 !important;
    text-align: left !important;
}

  .sp-search-controls .layout-control .filter-dropdown-btn.layout-select .material-symbols-outlined,
  body.search-controls-stuck .sp-search-controls .layout-control .filter-dropdown-btn.layout-select .material-symbols-outlined{
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
    font-size: 24px !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  }
}


/* ======================================
   FINAL REQUEST: Save search icon-only on desktop
   - Desktop: only the bookmark icon is shown.
   - Desktop spacing: Save search and Layout keep the same gap as all other filters.
   - Mobile: keeps the current icon + Save search text layout.
====================================== */
@media (min-width: 993px){
  .sp-search-header .sp-search-controls{
    gap: 6px !important;
  }

  .sp-search-header .save-search-btn{
    margin-left: 0 !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: 0 0 40px !important;
  }

  .sp-search-header .save-search-btn .save-search-text{
    display: none !important;
  }

  .sp-search-header .save-search-btn .material-symbols-outlined{
    margin: 0 !important;
  }

  .sp-search-header .layout-control{
    margin-left: 0 !important;
  }
}

@media (max-width: 992px){
  .sp-search-header .save-search-btn .save-search-text{
    display: inline-flex !important;
    align-items: center !important;
  }
}


/* ======================================
   FINAL REQUEST: Google Material icons for image arrows and property features
   - Image carousel arrows now use Material Symbols.
   - Listing and map popup feature icons use Google icons instead of custom SVGs.
====================================== */
.image-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 75%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    color: var(--tx-0b1220, #0b1220) !important;
}

.image-nav .material-symbols-outlined{
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
}

.result-features.v2.icon-features .feature-icon-material,
.leaflet-listing-popup .result-features.v2.icon-features .feature-icon-material{
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20 !important;
}

.leaflet-listing-popup .lp-meta .feature-icon-material{
  width: 15px !important;
  height: 15px !important;
  flex-basis: 15px !important;
  font-size: 15px !important;
}

@media (max-width: 576px){
  .result-features.v2.icon-features .feature-icon-material{
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
    font-size: 15px !important;
  }
}

/* ======================================
   FINAL REQUEST: modern sort dropdown menu only
   - Keeps the visible sort trigger with icon + selected label intact.
   - Replaces only the opened native dropdown list with a refined custom menu.
====================================== */
.sort-select-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select-native{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: -9999px !important;
}

.sort-select-trigger{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 118px !important;
  height: 28px !important;
  padding: 0 22px 0 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b1220' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 15px !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  text-align: left !important;
}

.sort-select-trigger:hover,
.sort-select-wrap.open .sort-select-trigger{
  color: var(--tx-004b94, #004b94) !important;
  -webkit-text-fill-color: var(--tx-004b94, #004b94) !important;
}

.sort-select-trigger:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(43,125,250,0.14) !important;
  border-radius: 5px !important;
}

.sort-select-current{
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-select-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 210px;
  max-height: 318px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(var(--glass, 255, 255, 255), 0.98);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.18);
  z-index: 8500;
}

.sort-select-wrap.open .sort-select-menu{
  display: block;
}

.sort-select-option{
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tx-0b1220, #0b1220);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.sort-select-option:hover,
.sort-select-option:focus-visible{
  outline: none;
  background: var(--bg-f2f7ff, #f2f7ff);
  color: var(--tx-004b94, #004b94);
}

.sort-select-option.active{
  background: var(--bg-eaf4ff, #eaf4ff);
  color: var(--tx-2b7dfa, #2b7dfa);
  font-weight: 700;
}

.sort-select-option.active::after{
  content: "check";
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.sort-select-menu::-webkit-scrollbar{
  width: 6px;
}

.sort-select-menu::-webkit-scrollbar-track{
  background: transparent;
}

.sort-select-menu::-webkit-scrollbar-thumb{
  background: var(--bg-c9d3e1, #c9d3e1);
  border-radius: 999px;
}

@media (max-width: 992px){
  .sort-select-menu{
    right: 0;
    min-width: 200px;
    max-width: calc(100vw - 30px);
  }
}

/* ======================================
   LARGE DESKTOP: bigger map on 24 inch screens
   - Makes the map wider and the listing column smaller.
   - Prevents listing images from stretching too much on large monitors.
====================================== */
@media (min-width: 1800px){
    }

/* ======================================
   FINAL REQUEST: location icon before results text
====================================== */
.results-location{
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tx-2b7dfa, #2b7dfa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.results-location .results-location-icon{
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--tx-2b7dfa, #2b7dfa);
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa);
}

.results-location .results-location-text{
  min-width: 0;
}

/* ======================================
   RESULTS SUMMARY CARD
   Rounded header based on the supplied reference image.
====================================== */
.results-header{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
    margin-bottom: 0px;
}

.results-summary-card{
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 10px 10px 10px 0;
  box-sizing: border-box;
}

.results-summary-content{
  flex: 1 1 auto;
  min-width: 0;
}

.results-summary-card .results-location{
  display: block;
  margin: 0;
  color: var(--tx-0b1220, #0b1220);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.20;
  white-space: normal;
  overflow: visible;
}

.results-summary-card .results-count-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
}

.results-summary-card .results-count{
  margin: 0;
  color: var(--tx-2f353e, #2f353e);
  font-size: 14px;
  font-weight: 400;
}

.results-summary-card .results-header-right{
  margin-left: auto;
}

.results-summary-card .sort-icon{
  color: var(--tx-000000, #000000);
  font-size: 18px;
}

.results-summary-card .sort-select-trigger{
  min-width: 124px !important;
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2f353e, #2f353e) !important;
}

@media (max-width: 992px){
  .results-header{
    margin-bottom: 14px;
    margin-top: 5px;
  }

  .results-summary-card{
    min-height: 0;
    padding: 18px 18px 18px 0;
    gap: 14px;
    border-radius: 24px;
  }

  .results-summary-card .results-location{
    font-size: 15px;
  }

  .results-summary-card .results-count-row{
    margin-top: 1px;
    gap: 10px;
  }

  .results-summary-card .results-count{
    font-size: 14px;
  }
}

@media (max-width: 520px){
  .results-summary-card{
    align-items: flex-start;
    padding: 5px 16px 6px 0px;
    border-radius: 5px;
  }
}

@media (max-width: 992px){
    .results-summary-content{
        width: 100%;
    }
}

/* ======================================
   FINAL MOBILE FIX: results count and sorting stay side by side
   Also keeps the location icon hidden on mobile only.
====================================== */
@media (max-width: 520px){
  .results-summary-card .results-count-row{
    align-items: center !important;
    flex-direction: row !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    width: 100% !important;
    padding-top: 5px;
}

  .results-summary-card .results-count{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .results-summary-card .results-header-right{
    margin-left: auto !important;
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
}

  .results-summary-card .sort-select-wrap,
  .results-summary-card .sort-select-trigger{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* ======================================
   MAPBOX GL JS MAP
====================================== */
#search-map{
    height: 100%;
    width: 100%;
    background: var(--bg-eef3f1, #eef3f1);
    filter: none;
    position: relative;
}

#search-map .mapboxgl-canvas{
  outline: none;
}

.mapboxgl-ctrl-bottom-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0 10px 10px 0;
}

.mapboxgl-ctrl-group{
  border-radius: 5px !important;
  box-shadow: 0 10px 28px rgba(15,23,42,0.16) !important;
  overflow: visible !important;
}

.mapboxgl-ctrl-group button{
  width: 50px !important;
  height: 50px !important;
  background-color: rgba(var(--glass, 255, 255, 255), 0.96) !important;
}

.mapboxgl-ctrl-group button + button{
  border-top: 1px solid var(--bd-efefef, #efefef) !important;
}

.mapboxgl-ctrl-attrib{
  font-size: 10px !important;
  background: rgba(var(--glass, 255, 255, 255), 0.82) !important;
}

.map-filter-dropdown.mapboxgl-ctrl{
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.map-filter-dropdown .map-filter-dropdown-inner{
  position: relative;
}

.map-filter-dropdown .map-filter-btn{
  width: 50px !important;
  height: 50px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: rgba(var(--glass, 255, 255, 255), 0.96) !important;
  box-shadow: 0 10px 28px rgba(15,23,42,0.16) !important;
  margin: 0px 10px 10px 0px;
}

.map-filter-dropdown .map-filter-menu{
  right: 0;
  bottom: calc(100% + 8px);
  top: auto;
  left: auto;
}

.mapboxgl-popup{
  z-index: 20;
}

.mapboxgl-popup-content{
  padding: 0 !important;
  overflow: visible;   /* de sluitknop steekt buiten de kaart uit */
  border-radius: 8px !important;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 18px 45px rgba(15,23,42,0.22) !important;
}

/* Sluitknop: een duidelijke ronde knop met schaduw, half buiten de rechterbovenhoek van de popup.
   Met !important en een iets specifiekere selector, anders wint de standaardopmaak van Mapbox (die later laadt). */
.mapboxgl-popup .mapboxgl-popup-close-button{
  width: 30px !important;
  height: 30px !important;
  right: -12px !important;
  top: -12px !important;
  z-index: 30;
  padding: 0 !important;
  border: 1px solid rgba(15,23,42,0.12) !important;
  border-radius: 999px !important;
  background: var(--bg-ffffff, #ffffff) !important;
  color: var(--tx-0b1220, #0b1220) !important;
  box-shadow: 0 4px 14px rgba(15,23,42,0.28);
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.mapboxgl-popup .mapboxgl-popup-close-button:hover{
  background: var(--bg-f1f5f9, #f1f5f9) !important;
  color: #000 !important;
}

/* De kaart zelf blijft afgerond; alleen de sluitknop steekt uit */
.mapbox-listing-popup .leaflet-listing-popup{
  border-radius: 8px;
}

/* Foto's bladeren in de popup: stippen onderaan, zoals op de woningpagina */
.leaflet-listing-popup .lp-image{
  position: relative;
  touch-action: pan-y;
}

.lp-dots{
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.lp-dots-window{
  overflow: hidden;
  max-width: 100%;
}

.lp-dots-track{
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  transition: transform .28s ease;
}

.lp-dot{
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  transition: width .2s ease, background .2s ease, transform .28s ease, opacity .28s ease;
}

.lp-dot.active{
  width: 18px;
  background: #ffffff;
}

.lp-dot.is-edge{
  transform: scale(.6);
  opacity: .75;
}
.mapboxgl-popup-tip{
  border-top-color: var(--bd-ffffff, #ffffff) !important;
}

.mapbox-token-warning{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--tx-0b1220, #0b1220);
  background: var(--bg-f8fafc, #f8fafc);
}

.mapbox-token-warning strong{
  font-size: 18px;
}

.mapbox-token-warning span{
  max-width: 420px;
  color: var(--tx-64748b, #64748b);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 992px){
  .mapboxgl-ctrl-bottom-right{
    padding: 0 8px 8px 0;
  }

  .mapboxgl-ctrl-group button,
  .map-filter-dropdown .map-filter-btn{
    width: 44px !important;
    height: 44px !important;
  }
}


/* === Material zoom icons === */
.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before{content:'add';}
.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before{content:'remove';}

/* ======================================
   FINAL FIX: remove default Mapbox zoom symbols
   - Hides the original bold Mapbox + and - icons.
   - Keeps only the Google Material Symbols add/remove icons.
====================================== */
.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in,
.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out{
    font-size: 0 !important;
    position: relative !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon,
.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{
  display: none !important;
  background-image: none !important;
}

.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in::before,
.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out::before{
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0,'wght' 200,'GRAD' 0,'opsz' 24;
    font-size: 24px;
    line-height: 1;
    display: flex !important;
    position: absolute !important;
    inset: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-indent: 0 !important;
    color: var(--tx-374151, #374151) !important;
    -webkit-text-fill-color: var(--tx-374151, #374151) !important;
    pointer-events: none !important;
}

/* ======================================
   FINAL REQUEST: rounded map + hidden results scrollbar
   - Gives the map on the right a 20px border radius.
   - Keeps the listings column scrollable without showing a scrollbar.
====================================== */
.map-column{
    flex: 0 0 45%;
    position: relative;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: ;
    z-index: 1;
}

#search-map,
#search-map .mapboxgl-map,
#search-map .mapboxgl-canvas-container,
#search-map .mapboxgl-canvas{
  border-radius: 10px !important;
}

.results-list{
    flex: 0 0 55%;
    overflow-y: auto;
    padding: 0px 10px 0px 30px;
    background: var(--bg-ffffff, #fff);
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

@media (max-width: 992px){
  .results-list{
    padding-left: 14px;
  }
}

/* Mobiel: de zwevende onderbalk (104px) mag de onderkant van de resultatenlijst niet afdekken. */
@media (max-width: 640px){
  .results-list{
    padding-bottom: 104px;
  }
}

.results-list::-webkit-scrollbar{
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* ======================================
   FINAL REQUEST: equal outer spacing around list and map
   - Keeps the existing left padding of the results list.
   - Adds matching whitespace to the right of the map.
   - Preserves the 20px rounded map corners.
   - Does not affect the mobile stacked layout.
====================================== */
@media (min-width: 993px){
  .sp-search-results-container{
    box-sizing: border-box !important;
    padding-right: 30px !important;
    padding-top: 15px;
  }

  .sp-search-results-container.layout-both{
    gap: 20px !important;
  }

  .sp-search-results-container.layout-both .results-list{
    flex: 0 0 calc(55% - 10px) !important;
  }

  .sp-search-results-container.layout-both .map-column{
    flex: 0 0 calc(45% - 10px) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding-bottom: 10px;
  }

  .sp-search-results-container.layout-map{
    padding-left: 30px !important;
  }

  .sp-search-results-container.layout-map .map-column{
    flex: 1 1 auto !important;
    width: auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding-bottom: 10px;
  }
}

@media (min-width: 1800px){
  .sp-search-results-container.layout-both .results-list{
    flex: 0 0 calc(45% - 10px) !important;
}

  .sp-search-results-container.layout-both .map-column{
    flex: 0 0 calc(55% - 10px) !important;
}
}
/* ======================================
   MAPBOX CLUSTER POPUP MET MEERDERE WONINGEN
====================================== */

.cluster-listings-popup{
  position: relative;
  border-radius: 8px;
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  background: var(--bg-ffffff, #ffffff);
}

.cluster-listing-content{
  width: 100%;
}

/*
 * De bestaande woningpopup wordt opnieuw gebruikt.
 * Hierdoor blijft dezelfde afbeelding-, prijs- en adresstijl behouden.
 */
.cluster-listings-popup .leaflet-listing-popup{
  width: 320px;
  max-width: 100%;
  border-radius: 0;
}

/* Navigatieknoppen */
.cluster-popup-nav{
  position: absolute;
  top: 90px;
  z-index: 20;

  width: 40px;
  height: 40px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(var(--glass, 255, 255, 255), 0.92);
  color: var(--tx-0b1220, #0b1220);

  box-shadow: 0 4px 14px rgba(15,23,42,0.24);

  transform: translateY(-50%);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.cluster-popup-prev{
  left: 10px;
}

.cluster-popup-next{
  right: 10px;
}

.cluster-popup-nav:hover{
  background: var(--bg-ffffff, #ffffff);
  transform: translateY(-50%) scale(1.05);
}

.cluster-popup-nav:active{
  transform: translateY(-50%) scale(0.96);
}

.cluster-popup-nav .material-symbols-outlined{
  width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;

  color: var(--tx-0b1220, #0b1220);
  -webkit-text-fill-color: var(--tx-0b1220, #0b1220);

  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
}

/* Teller, bijvoorbeeld 1 / 4 */
.cluster-popup-counter{
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 20;

  min-width: 48px;
  height: 26px;
  padding: 0 10px;

  border-radius: 999px;
  background: rgba(15,23,42,0.78);
  color: #ffffff;

  font-size: 12px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;

  transform: translateX(-50%);
  pointer-events: none;
}

/* Bij één woning zijn pijlen en teller niet nodig */
.cluster-popup-nav[hidden],
.cluster-popup-counter[hidden]{
  display: none !important;
}

/* Zorg dat de popup netjes binnen een mobiel scherm past */
@media (max-width: 576px){
  .cluster-listings-popup,
  .cluster-listings-popup .leaflet-listing-popup{
    width: min(320px, calc(100vw - 48px));
  }

  .cluster-popup-nav{
    width: 36px;
    height: 36px;
  }

  .cluster-popup-prev{
    left: 8px;
  }

  .cluster-popup-next{
    right: 8px;
  }
}


/* ======================================
   Gebied tekenen op de kaart
====================================== */
.map-draw-ctrl.mapboxgl-ctrl{ margin: 0 !important; }

.map-draw-ctrl .map-draw-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px !important;
  cursor: pointer;
  color: var(--tx-374151, #374151);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.map-draw-ctrl .map-draw-btn .material-symbols-outlined{
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.map-draw-ctrl .map-draw-btn.active{
  background-color: #2b7dfa !important;
  color: #ffffff;
}

#search-map.map-draw-mode .mapboxgl-canvas,
#search-map.map-draw-mode .mapboxgl-canvas-container{
  cursor: crosshair !important;
}

.map-draw-bar{
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 10px 8px 14px;
  background: var(--bg-ffffff, #ffffff);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.18);
  font-size: 13.5px;
  color: var(--tx-1f2937, #1f2937);
}

.map-draw-bar[hidden]{ display: none; }

.map-draw-hint{ line-height: 1.3; }

.map-draw-apply,
.map-draw-cancel{
  height: 32px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.map-draw-apply{
  border: 1px solid #2b7dfa;
  background: #2b7dfa;
  color: #ffffff;
}

.map-draw-apply:hover:not(:disabled){ background: #1a68e0; }

.map-draw-apply:disabled{
  border-color: var(--bd-e0e3ea, #e0e3ea);
  background: var(--bg-eef0f3, #eef0f3);
  color: #9ca3af;
  cursor: not-allowed;
}

.map-draw-cancel{
  border: 1px solid var(--bd-d5d7dc, #d5d7dc);
  background: var(--bg-ffffff, #ffffff);
  color: var(--tx-1f2937, #1f2937);
}

.map-draw-cancel:hover{ background: var(--bg-f3f4f6, #f3f4f6); }

.sp-area-chip{ flex: 0 0 auto; }

.sp-area-chip-icon{
  font-size: 15px;
  color: var(--tx-6b7280, #6b7280);
  margin-right: -1px;
}

/* Teken-knop precies in dezelfde kolom als de andere kaartknoppen */
.map-draw-ctrl.mapboxgl-ctrl{ margin: 0 10px 0 0 !important; }
@media (max-width: 992px){
  .map-draw-ctrl.mapboxgl-ctrl{ margin: 0 8px 0 0 !important; }
}

/* "+"-knop in de zoekbalk: laat zien dat er nog een plaats bij kan */
.sp-add-place-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0px dashed var(--bd-c4c9d2, #c4c9d2);
  border-radius: 5px;
  background: transparent;
  color: var(--tx-6b7280, #6b7280);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sp-add-place-btn[hidden]{ display: none; }
.sp-add-place-btn:hover{ background: var(--bg-eef0f3, #eef0f3); color: var(--tx-1f2937, #1f2937); }
.sp-add-place-btn .material-symbols-outlined{ font-size: 21px; }


/* ======================================
   Dropdowns als echt onderdeel van hun knop / de zoekbalk
   - Zelfde rand (#d5d7dc), zelfde 5px afronding, geen losse "zwevende" kaart.
   - Knop/zoekbalk gaat open aan de onderkant (rand weg) en loopt naadloos
     door in het menu; het menu heeft alleen zijn eigen zijranden/onderrand.
====================================== */
.sp-search-header .sp-search-container{
  border-color: var(--bd-d5d7dc, #d5d7dc) !important;
}

/* Filter-dropdowns (Price, Type, Beds & Baths, km, Buy, Layout) */
.sp-search-header .filter-dropdown .filter-dropdown-menu.open{
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 0 5px 5px 5px !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10) !important;
}

.sp-search-header .filter-dropdown .select-menu.open{
  border-radius: 0 0 5px 5px !important;
}

.sp-search-header .filter-dropdown.open > .filter-dropdown-btn,
.sp-search-header .filter-dropdown:has(> .filter-dropdown-menu.open) > .filter-dropdown-btn{
  border-color: var(--bd-d5d7dc, #d5d7dc) !important;
  border-bottom-color: var(--bd-ffffff, #ffffff) !important;
  border-radius: 5px 5px 0 0 !important;
  box-shadow: none !important;
}

/* Zoekbalk: alleen "open" als de suggestielijst echt zichtbaar is */
.sp-search-header .sp-search-container:focus-within:not(.country-suggestions-open):not(.country-dropdown-open){
  border-bottom-left-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}
.sp-search-header .sp-search-container:focus-within:not(.country-suggestions-open):not(.country-dropdown-open) .country-select{
  border-bottom-left-radius: 5px !important;
}
.sp-search-header .sp-search-container:focus-within:not(.country-suggestions-open):not(.country-dropdown-open) .sp-search-btn button{
  border-bottom-right-radius: 5px !important;
}

.sp-search-header .sp-search-container.country-dropdown-open,
.sp-search-header .sp-search-container.country-suggestions-open{
  border-bottom-color: var(--bd-ffffff, #ffffff) !important;
  border-radius: 5px 5px 0 0 !important;
}

/* Suggestielijst: zelfde rand als de zoekbalk, loopt er direct in over */
.sp-search-header .suggestions-container{
  top: 100% !important;
  margin-top: 0 !important;
  left: -1px !important;
  right: -1px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-top: 0 !important;
  border-radius: 0 0 5px 5px !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10) !important;
  background: var(--bg-ffffff, #ffffff) !important;
}

.sp-search-header .sp-search-container.country-dropdown-open .suggestions-container,
.sp-search-header .sp-search-container.country-suggestions-open .suggestions-container,
.sp-search-header .suggestions-container.country-open,
.sp-search-header .suggestions-container.show,
.sp-search-header .suggestions-container.active{
  top: 100% !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  border-radius: 0 0 5px 5px !important;
}

/* Beds & Baths-menu is rechts uitgelijnd met zijn knop: de rechterbovenhoek sluit aan */
.sp-search-header .sp-beds-dropdown .filter-dropdown-menu.open{
  border-radius: 5px 0 5px 5px !important;
}

/* ======================================
   Landenkeuze en Layout-menu ook als onderdeel van hun balk/knop
====================================== */
.sp-search-header .sp-search-container .country-panel{
  top: 100% !important;
  left: -1px !important;
  right: -1px !important;
  width: auto !important;
  max-height: min(70vh, 460px) !important;
  padding: 12px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-top: 0 !important;
  border-radius: 0 0 5px 5px !important;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10) !important;
}

.sp-search-header .country-panel .country-search-input{
  border-color: var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 5px !important;
}

.sp-search-header .country-panel .country-list{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-height: 340px !important;
}

@media (max-width: 480px){
  .sp-search-header .country-panel .country-list{
    grid-template-columns: 1fr !important;
  }
}

/* Zoekbalk "open" zodra het landenpaneel open is */
.sp-search-header .sp-search-container:has(.country-select.open){
  border-bottom-color: var(--bd-ffffff, #ffffff) !important;
  border-radius: 5px 5px 0 0 !important;
  position: relative;
  z-index: 9005 !important;
}
.sp-search-header .sp-search-container:has(.country-select.open) .country-select{
  border-bottom-left-radius: 0 !important;
}
.sp-search-header .sp-search-container:has(.country-select.open) .sp-search-btn button{
  border-bottom-right-radius: 0 !important;
}

/* Layout-menu even breed als zijn knop */
.sp-search-header .filter-dropdown .layout-menu.open{
  width: 100% !important;
  min-width: 100% !important;
}

/* Schaduw alleen naar beneden, zodat er geen grijze waas over de balk/knop ligt */
.sp-search-header .sp-search-container .country-panel,
.sp-search-header .suggestions-container,
.sp-search-header .filter-dropdown .filter-dropdown-menu.open{
  box-shadow: 0 14px 20px -12px rgba(15,23,42,0.22) !important;
}


/* Het tekeniconoon in de "Drawn area"-chip was 24px (standaard icoongrootte) en maakte die
   chip hoger dan de plaatsen: nu even hoog als een gewone plaats. */
.sp-search-field .sp-area-chip-icon.material-symbols-outlined{
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 16px;
}

/* Normale grootte zolang alles past. Past het niet meer (de scrollbalk zou nodig zijn),
   dan krijgt .sp-search-field de klasse .is-compact (via JS): kleinere plaatsen, zodat de
   dunne scrollbalk onderin de balk past zonder dat de balk hoger wordt of iets verspringt. */
.sp-search-field.is-compact{
    align-items: flex-start;
    padding-top: 6px;
}
.sp-search-field.is-compact .sp-location-chip{
    height: 24px;
    padding: 0 4px 0 9px;
    gap: 3px;
    font-size: 13px;
    line-height: 1;
    border-radius: 5px;
}
.sp-search-field.is-compact .sp-location-chip-remove{ width: 16px; height: 16px; }
.sp-search-field.is-compact .sp-location-chip-remove .material-symbols-outlined{ font-size: 13px; }
.sp-search-field.is-compact .sp-area-chip-icon.material-symbols-outlined{ width: 14px; height: 14px; font-size: 14px; flex-basis: 14px; }
.sp-search-field.is-compact .sp-add-place-btn{ width: 24px; height: 24px; }
.sp-search-field.is-compact .sp-add-place-btn .material-symbols-outlined{ font-size: 16px; }
.sp-search-field.is-compact input#search-input{ height: 24px !important; line-height: 24px; padding: 0 6px !important; }


/* ======================================
   Hartje + deelknop rechts van het adres in een zoekresultaat
   (zelfde pil-opmaak en iconen als op de woningpagina, op een witte achtergrond)
====================================== */
.card-photo-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--bd-e5e7eb, #e5e7eb);
    border-radius: 999px;
    background: var(--bg-f6f6f6, #f6f6f6);
}

.card-photo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--tx-000000, #000000);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.card-photo-action .material-symbols-outlined {
    font-size: 25px;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.card-photo-action:hover {
    background: var(--bg-ffffff, #ffffff);
    transform: scale(1.08);
}

.card-photo-action:active {
    background: var(--bg-ececec, #ececec);
    transform: scale(0.92);
}

/* ======================================
   Labels (For sale / New ...) linksboven op de foto van een zoekresultaat
   (zelfde pil-opmaak als op de woningpagina)
====================================== */
.card-photo-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.card-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 35px;
    background: rgba(15, 23, 42, 0.62);
    border: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}

.card-label-status {
    --dot: #18794e;
}

.card-label-new {
    --dot: #ec4899;
}

/* Geen gekleurde stip meer in het label: alleen de tekst */
.card-label-status::before,
.card-label-new::before {
    display: none;
}

.card-label-status.status-for_sale       { --dot: #18794e; }
.card-label-status.status-for_rent       { --dot: #005eb8; }
.card-label-status.status-under_contract { --dot: #ea7f1a; }
.card-label-status.status-sold           { --dot: #dc2626; }
.card-label-status.status-commercial     { --dot: #7c3aed; }




/* ======================================
   Zoekheader: alles met 35px afronding (zoekbalk, filters, knoppen)
   Een pil-vorm past niet bij een menu dat "vast" aan zijn knop zit, dus de menu's
   en suggestielijsten hangen nu los onder de pil (kleine tussenruimte, eigen afronding).
====================================== */
.sp-search-header .sp-search-container,
.sp-search-header .sp-search-container:focus-within:not(.country-suggestions-open):not(.country-dropdown-open),
.sp-search-header .sp-search-container.country-dropdown-open,
.sp-search-header .sp-search-container.country-suggestions-open,
.sp-search-header .sp-search-container:has(.country-select.open){
  border-radius: 35px !important;
  border-color: var(--bd-d5d7dc, #d5d7dc) !important;
}

.sp-search-header .country-select,
.sp-search-header .sp-search-container:focus-within:not(.country-suggestions-open):not(.country-dropdown-open) .country-select,
.sp-search-header .sp-search-container:has(.country-select.open) .country-select{
  border-radius: 35px 0 0 35px !important;
  padding-left: 14px !important;
}

.sp-search-header .sp-search-btn,
.sp-search-header .sp-search-btn button,
.sp-search-header .sp-search-container:focus-within:not(.country-suggestions-open):not(.country-dropdown-open) .sp-search-btn button,
.sp-search-header .sp-search-container:has(.country-select.open) .sp-search-btn button{
  border-radius: 0 35px 35px 0 !important;
}

.sp-search-header .filter-dropdown-btn,
.sp-search-header .select-filter-dropdown .filter-dropdown-btn,
.sp-search-header .filter-toggle-btn,
.sp-search-header .save-search-btn,
.sp-search-header .type-select,
.sp-search-header .layout-select,
.sp-search-header .radius-select,
.sp-search-header .filter-dropdown.open > .filter-dropdown-btn,
.sp-search-header .filter-dropdown:has(> .filter-dropdown-menu.open) > .filter-dropdown-btn,
.sp-search-header .filter-dropdown.open .filter-dropdown-btn,
.sp-search-header .filter-dropdown:has(.filter-dropdown-menu.open) .filter-dropdown-btn{
  border-radius: 35px !important;
  border-color: var(--bd-d5d7dc, #d5d7dc) !important;
}

/* Menu's en lijsten: los onder de pil, met afgeronde hoeken */
.sp-search-header .filter-dropdown .filter-dropdown-menu.open,
.sp-search-header .filter-dropdown .select-menu.open,
.sp-search-header .sp-beds-dropdown .filter-dropdown-menu.open,
.sp-search-header .filter-dropdown-menu{
  top: calc(100% + 8px) !important;
  margin-top: 0 !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 24px !important;
}

.sp-search-header .suggestions-container,
.sp-search-header .sp-search-container.country-dropdown-open .suggestions-container,
.sp-search-header .sp-search-container.country-suggestions-open .suggestions-container,
.sp-search-header .sp-search-container .country-panel{
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 0 !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 24px !important;
}

.sp-search-header .sp-search-container .country-panel,
.sp-search-header .suggestions-container,
.sp-search-header .filter-dropdown .filter-dropdown-menu.open{
  box-shadow: 0 12px 28px rgba(15,23,42,0.14) !important;
}

.sp-search-header .country-panel .country-search-input{
  border-radius: 35px !important;
  padding-left: 16px !important;
}

/* Mobiel: de zoekbalk is even hoog (42px) als de knoppen eronder (Filters, Layout, Save search). */
@media (max-width: 992px){
  .sp-search-header .sp-search-container{
    height: 42px !important;
    min-height: 42px !important;
  }
  .sp-search-header .sp-search-container .country-select,
  .sp-search-header .sp-search-container .sp-search-field,
  .sp-search-header .sp-search-container .sp-search-btn,
  .sp-search-header .sp-search-container #sp-search-submit-btn{
    height: 40px !important;
    min-height: 40px !important;
  }
}

/* Filters-knop: rand in hetzelfde blauw als de tekst "Filters" */
.sp-search-header .filter-toggle-btn,
.sp-search-header .filter-toggle-btn:hover,
.sp-search-header .filter-toggle-btn:focus-visible{
  border-color: #2b7dfa !important;
}

/* Mobiel: iets meer ruimte boven de zoekbalk (12px -> 20px) */
@media (max-width: 992px){
  body:not(.search-controls-stuck) .sp-search-header{
    padding-top: 20px;
  }
}

/* Mobiel: "Save search" past nu volledig (voorheen werd de tekst aan de rechterkant afgekapt):
   Filters en Layout nemen alleen de ruimte die ze nodig hebben, Save search krijgt de rest. */
@media (max-width: 992px){
  .sp-search-header .filter-toggle-btn{
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .sp-search-header .layout-control,
  .sp-search-header .layout-control .layout-select,
  body.search-controls-stuck .sp-search-header .layout-control,
  body.search-controls-stuck .sp-search-header .layout-control .layout-select{
    width: 112px !important;
    min-width: 112px !important;
    flex: 0 0 112px !important;
  }
  .sp-search-header .save-search-btn{
    flex: 1 1 auto !important;
    min-width: max-content !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
  }
}

/* Op smalle telefoons staat er "Save" in plaats van "Save search", zodat alles op een regel past. */
@media (max-width: 420px){
  .sp-search-header .save-search-btn .save-search-word{
    display: none;
  }
}


/* Kort meldinkje onderaan het scherm (bijv. "Link copied") na het delen van een woning */
.share-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 9000;
    padding: 10px 18px;
    border-radius: 35px;
    background: rgba(11, 18, 32, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* ======================================
   Zoekbalk met open suggestielijst: de balk blijft een complete pil.
   Oudere regels maakten de linker- en rechteronderhoek van het landvak en de zoekknop vierkant
   (omdat de lijst er toen "aan vast" zat). Die witte vierkante hoeken lagen over de afgeronde rand
   en veroorzaakten gaten in de border. De lijst hangt nu los onder de balk.
====================================== */
.sp-search-header .sp-search-container.country-dropdown-open .country-select,
.sp-search-header .sp-search-container.country-suggestions-open .country-select,
.sp-search-header .sp-search-container .country-select.country-open{
  border-radius: 35px 0 0 35px !important;
}

.sp-search-header .sp-search-container.country-dropdown-open .sp-search-btn,
.sp-search-header .sp-search-container.country-suggestions-open .sp-search-btn,
.sp-search-header .sp-search-container.country-dropdown-open .sp-search-btn button,
.sp-search-header .sp-search-container.country-suggestions-open .sp-search-btn button{
  border-radius: 0 35px 35px 0 !important;
}

/* Lijst: los onder de balk, zonder scrollbalk (scrollen met muiswiel of toetsen kan nog) */
.sp-search-header .sp-search-container.country-dropdown-open .suggestions-container,
.sp-search-header .sp-search-container.country-suggestions-open .suggestions-container,
.sp-search-header .suggestions-container.country-open,
.sp-search-header .suggestions-container.show,
.sp-search-header .suggestions-container.active{
  top: calc(100% + 9px) !important;
  margin-top: 0 !important;
  left: -1px !important;
  right: -1px !important;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc) !important;
  border-radius: 24px !important;
}

.sp-search-header .suggestions-container{
  padding: 6px 0 !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sp-search-header .suggestions-container::-webkit-scrollbar{
  display: none;
}


/* ======================================
   Mobiel: Filters, Layout en Save search netjes naast elkaar
   De Layout-keuzelijst was 12px breder dan zijn vak (112px breedte + opvulling en rand erbovenop) en
   schoof daardoor over de Save-knop. Nu past hij precies in zijn vak en delen de drie knoppen de ruimte.
====================================== */
@media (max-width: 992px){
  .sp-search-header .sp-search-controls{
    gap: 8px !important;
  }
  .sp-search-header .layout-control,
  body.search-controls-stuck .sp-search-header .layout-control{
    width: 112px !important;
    min-width: 112px !important;
    flex: 0 0 112px !important;
    box-sizing: border-box !important;
  }
  body .sp-search-header .layout-control .filter-dropdown-btn.layout-select,
  body.search-controls-stuck .sp-search-header .layout-control .filter-dropdown-btn.layout-select{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }
  .sp-search-header .save-search-btn{
    box-sizing: border-box !important;
    min-width: 0 !important;
    justify-content: center !important;
  }
}

/* Heel smalle telefoons (320-350px): alleen het icoon bij "Save", zodat niets over de rand loopt. */
@media (max-width: 350px){
  .sp-search-header .save-search-btn .save-search-text{
    display: none !important;
  }
  .sp-search-header .save-search-btn{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Telefoon: Filters, Layout en Save search krijgen precies evenveel ruimte, met 8px ertussen. */
@media (max-width: 560px){
  .sp-search-header .sp-search-controls .filter-toggle-btn,
  .sp-search-header .sp-search-controls .layout-control,
  .sp-search-header .sp-search-controls .save-search-btn,
  body.search-controls-stuck .sp-search-header .sp-search-controls .layout-control{
    flex: 0 0 calc((100% - 16px) / 3) !important;
    width: calc((100% - 16px) / 3) !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 350px){
  .sp-search-header .sp-search-controls .save-search-btn{
    flex: 0 0 46px !important;
    width: 46px !important;
  }
  .sp-search-header .sp-search-controls .filter-toggle-btn,
  .sp-search-header .sp-search-controls .layout-control,
  body.search-controls-stuck .sp-search-header .sp-search-controls .layout-control{
    flex: 0 0 calc((100% - 62px) / 2) !important;
    width: calc((100% - 62px) / 2) !important;
  }
}

/* Langere woorden in andere talen ("Enregistrer", "Affichage") mogen nooit tegen de rand of het pijltje aan lopen. */
@media (max-width: 560px){
  .sp-search-header .sp-search-controls .filter-toggle-btn,
  .sp-search-header .sp-search-controls .save-search-btn,
  .sp-search-header .sp-search-controls .layout-select{
    gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 14px !important;
  }
  .sp-search-header .sp-search-controls .layout-select{
    padding-right: 24px !important;
  }
  .sp-search-header .sp-search-controls .filter-toggle-btn > span:not(.material-symbols-outlined),
  .sp-search-header .sp-search-controls .save-search-text,
  .sp-search-header .sp-search-controls .layout-label{
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Andere taal dan Engels: de woorden zijn vaak langer ("Enregistrer", "Affichage"). Op een telefoon blijft er bij
   "Save search" dan alleen het icoon over, en Filters en Layout delen de rest gelijk. */
@media (max-width: 560px){
  html:not([lang="en"]) .sp-search-header .sp-search-controls .save-search-btn{
    flex: 0 0 46px !important;
    width: 46px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html:not([lang="en"]) .sp-search-header .sp-search-controls .save-search-text{
    display: none !important;
  }
  html:not([lang="en"]) .sp-search-header .sp-search-controls .filter-toggle-btn,
  html:not([lang="en"]) .sp-search-header .sp-search-controls .layout-control,
  html:not([lang="en"]) body.search-controls-stuck .sp-search-header .sp-search-controls .layout-control{
    flex: 0 0 calc((100% - 62px) / 2) !important;
    width: calc((100% - 62px) / 2) !important;
  }
}

/* Mobiel: alle drie de knoppen (Filters, Layout, Save search) hebben dezelfde blauwe rand en de inhoud staat
   precies in het midden. Het pijltje van Layout staat gewoon achter het woord in plaats van los rechts. */
@media (max-width: 992px){
  .sp-search-header .sp-search-controls .filter-toggle-btn,
  .sp-search-header .sp-search-controls .save-search-btn,
  body .sp-search-header .sp-search-controls .layout-control .filter-dropdown-btn.layout-select{
    border-color: #2b7dfa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  body .sp-search-header .sp-search-controls .layout-control .filter-dropdown-btn.layout-select{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  body .sp-search-header .sp-search-controls .layout-control .filter-dropdown-btn.layout-select::after{
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 0 0 4px !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 992px){
  .sp-search-header .sp-search-controls .layout-select .layout-label{
    flex: 0 1 auto !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .sp-search-header .sp-search-controls .layout-select .layout-icon{
    flex: 0 0 auto !important;
  }
}

/* Mobiel: de drie kaartknoppen (tekenen, kaartfilter, zoomen) staan direct boven het menu onderaan het scherm
   (menu = 12px marge + 75px hoogte), allemaal precies onder elkaar op dezelfde rechterrand en met overal
   dezelfde ruimte (8px) ertussen. Het i-knopje van de bronvermelding mag achter het menu blijven staan. */
@media (max-width: 992px){
  #search-map .mapboxgl-ctrl-bottom-right,
  .mapboxgl-ctrl-bottom-right{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    padding: 0 10px calc(99px + env(safe-area-inset-bottom, 0px)) 0 !important;
  }
  .mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl,
  .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl.map-draw-ctrl,
  .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl.map-filter-dropdown,
  .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl.mapboxgl-ctrl-group{
    margin: 0 !important;
    float: none !important;
  }
  /* Het kaartfilter had nog een eigen marge rechts en onder (10px), waardoor het naast de rest stond en de ruimte groter was. */
  .mapboxgl-ctrl-bottom-right .map-filter-dropdown .map-filter-btn{
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
  }
  .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-attrib{
    position: absolute !important;
    right: 10px !important;
    bottom: 8px !important;
    margin: 0 !important;
  }
}

/* Bedrijfspand te koop en te huur: "€ 450.000 · € 2.500/mo" */
.price-per-month {
    margin-left: 1px;
    font-size: 0.75em;
    font-weight: 600;
    opacity: 0.85;
}

/* Op een kaart staan koop- en huurprijs onder elkaar */
.price-overlay .price-sep { display: none; }
.price-overlay .price-sale,
.price-overlay .price-rent { display: block; white-space: nowrap; line-height: 1.25; }
.price-overlay .price-rent { font-size: 0.82em; }

/* Status / aanbod-keuzelijst: kleiner menu, rechts uitgelijnd zodat het niet buiten het scherm valt */
@media (min-width: 993px) {
  .sp-search-header .sp-status-dropdown .filter-dropdown-menu,
  .sp-search-header .sp-status-dropdown .status-menu {
    width: 250px !important;
    left: auto !important;
    right: 0 !important;
  }
}
.sp-search-header .sp-status-dropdown .status-grid {
  grid-template-columns: 1fr !important;
}

/* De verborgen keuzes in het filterpaneel (status per type) moeten echt verdwijnen */
.filter-section-status[hidden],
.filter-drawer-kind-grid[hidden] {
  display: none !important;
}

/* Status-keuzes (For sale / Under contract / Sold): meer ruimte tussen de vakjes */
.sp-filter-panel #filter-status-buy.filter-drawer-kind-grid,
.sp-filter-panel #filter-status-commercial.filter-drawer-kind-grid {
  gap: 12px 14px !important;
}
.sp-search-header .sp-status-dropdown .status-grid {
  gap: 14px !important;
}

/* Filterpaneel op een telefoon: vast aan boven- en onderkant in plaats van 100vh. Op iPhone is 100vh hoger dan het
   zichtbare scherm, waardoor de knoppen Reset en "Show results" onderaan deels buiten beeld vielen. */
@media (max-width: 992px) {
  .sp-filter-panel {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
  }
  .sp-filter-panel-inner {
    height: 100% !important;
  }
}

/* Foto's op de kaart: strook van drie plaatjes die met je vinger meeschuift */
.image-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300%;
  display: flex;
  z-index: 0;
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}
.image-slide {
  flex: 0 0 33.3333%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Teller rechtsonder op de foto ("1/12"): alleen op een telefoon / aanraakscherm, zonder pijltjes */
.image-counter {
  display: none;
}

@media (max-width: 640px), (hover: none) {
  .large-image.v2 .image-counter {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 23px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    pointer-events: none;
  }
}

/* ======================================
   TELEFOON, KAARTWEERGAVE
   De zoekbalk bovenaan krijgt dezelfde stijl als de menubalk onderaan: doorschijnend met blur, een stukje van de
   randen af en een blauwe rand. De kaart loopt eronder door, dus je ziet de kaart erachter.
====================================== */
@media (max-width: 640px) {
  body:has(.sp-search-results-container.layout-map) .sp-search-header {
    top: calc(12px + env(safe-area-inset-top)) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    padding: 10px !important;
    background: rgba(var(--glass, 255, 255, 255), 0.72) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid #2b7dfa9c !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14) !important;
  }

  /* De rij met knoppen heeft zelf geen witte achtergrond: tussen en rond de knoppen schemert de doorschijnende balk door */
  body:has(.sp-search-results-container.layout-map) .sp-search-header .sp-search-controls {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* De kaart vult het hele scherm; de woningen worden in het stuk tussen de twee balken gecentreerd (zie updateMapPadding) */
  body:has(.sp-search-results-container.layout-map) .sp-search-results-container.layout-map {
    top: 0 !important;
  }

  body:has(.sp-search-results-container.layout-map) .sp-search-results-container.layout-map .map-column {
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* Telefoon: Filters, Layout en Save search krijgen dezelfde blauwe rand, maar iets minder fel */
@media (max-width: 640px) {
  body .sp-search-header .sp-search-controls .filter-toggle-btn,
  body .sp-search-header .sp-search-controls .layout-control .filter-dropdown-btn.layout-select,
  body .sp-search-header .sp-search-controls .layout-control .layout-select,
  body .sp-search-header .sp-search-controls .save-search-btn {
    border-color: rgba(43, 125, 250, 0.45) !important;
  }
}

/* ======================================
   PAGINA'S ONDER DE LIJST (20 woningen per pagina)
   Alles op één regel: pijl, paginanummers en pijl.
====================================== */
.sp-pager {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 26px 0 40px;
  padding: 0 12px;
}

.sp-pager-page {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--bd-d5d7dc, #d5d7dc);
  border-radius: 10px;
  background: var(--bg-ffffff, #ffffff);
  color: var(--tx-1f2933, #1f2933);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.sp-pager-page:hover:not(.is-current):not(.is-disabled) {
  border-color: #2b7dfa;
  color: var(--tx-2b7dfa, #2b7dfa);
}

.sp-pager-page.is-current {
  border-color: #005eb8;
  background: #005eb8;
  color: #ffffff;
}

.sp-pager-arrow .material-symbols-outlined {
  font-size: 24px;
}

.sp-pager-page.is-disabled {
  color: #c3c8cf;
  background: var(--bg-f6f7f9, #f6f7f9);
  pointer-events: none;
}

.sp-pager-gap {
  flex: 0 0 auto;
  padding: 0 2px;
  color: var(--tx-6b7280, #6b7280);
}

@media (max-width: 640px) {
  .sp-pager {
    gap: 4px;
    margin-bottom: 120px;
    padding: 0 8px;
  }

  .sp-pager-page {
    min-width: 34px;
    height: 38px;
    padding: 0 6px;
    font-size: 14px;
  }

  .sp-pager-gap {
    padding: 0;
  }
}

/* Filters-knop: het icoon blijft blauw na aanraken of klikken (focus/active) en wordt alleen wit als de knop zelf
   donkerblauw wordt (hover). Eerder werd het icoon wit op een witte knop en viel het weg. */
body .sp-search-header .sp-search-controls .filter-toggle-btn .material-symbols-outlined {
  color: var(--tx-2b7dfa, #2b7dfa) !important;
  -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
}

@media (hover: hover) {
  body .sp-search-header .sp-search-controls .filter-toggle-btn:hover .material-symbols-outlined {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

/* Op een scherm met aanraking blijft de knop niet donkerblauw hangen na een tik (er is geen echte hover). */
@media (hover: none) {
  body .sp-search-header .sp-search-controls .filter-toggle-btn:hover {
    background: var(--bg-ffffff, #ffffff) !important;
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
    border-color: rgba(43, 125, 250, 0.45) !important;
  }

  body .sp-search-header .sp-search-controls .filter-toggle-btn:hover .material-symbols-outlined {
    color: var(--tx-2b7dfa, #2b7dfa) !important;
    -webkit-text-fill-color: var(--tx-2b7dfa, #2b7dfa) !important;
  }
}

/* ======================================
   ZOEKBALK EN KNOPPEN OP ELKE SCHERMBREEDTE
   - Vanaf 993px: alles op één rij. De zoekbalk krimpt tot 280px; past het nog niet, dan verbergt search_base.php
     (fitSearchControls) de minst belangrijke keuzelijsten (status, slaapkamers, type woning, prijs, Buy/Rent/Commercial).
     Ze staan allemaal ook in het filterpaneel (knop Filters).
   - Tablets (561-992px): twee rijen, en de drie knoppen delen de ruimte gelijk (zoals op een telefoon).
====================================== */
@media (min-width: 993px) {
  .sp-search-header #search-form.sp-search-form {
    flex: 1 1 500px !important;
    min-width: 280px !important;
    max-width: 500px !important;
  }

  /* De rij met knoppen neemt precies de ruimte die ze nodig heeft; de zoekbalk krijgt de rest (tussen 280 en 500px). */
  .sp-search-header .sp-search-controls {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
}

.sp-search-header .sp-search-controls .is-fit-hidden {
  display: none !important;
}

.sp-search-header .save-search-btn .save-search-word {
  margin-left: 0.3em;
}

@media (min-width: 561px) and (max-width: 992px) {
  .sp-search-header .sp-search-controls {
    gap: 10px !important;
  }

  .sp-search-header .sp-search-controls .filter-toggle-btn,
  .sp-search-header .sp-search-controls .layout-control,
  .sp-search-header .sp-search-controls .save-search-btn,
  body.search-controls-stuck .sp-search-header .sp-search-controls .layout-control {
    flex: 0 0 calc((100% - 20px) / 3) !important;
    width: calc((100% - 20px) / 3) !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  .sp-search-header .sp-search-controls .save-search-btn {
    gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Resultaten op een tablet: twee kolommen in plaats van één heel brede kaart per rij. */
@media (min-width: 600px) and (max-width: 992px) {
  .sp-search-results-container.layout-list .results-grid.v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sp-search-results-container.layout-list .results-grid.v2 .large-image.v2 {
    height: 230px;
  }
}

/* Muntfilter in het prijsmenu en de filterlade: alleen zichtbaar als er woningen in meer dan een munt zijn. */
.currency-filter { margin-top: 14px; }
.currency-filter-title { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--tx-0f172a, #0f172a); }
.currency-filter .currency-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-filter-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--tx-64748b, #64748b); }

/* ======================================
   SEARCH LIST + MAP POPUP: dunne verticale streepjes tussen slaapkamers, badkamers, woonoppervlak en perceel
====================================== */
.result-features.v2.icon-features .feature-item + .feature-item::before,
.leaflet-listing-popup .result-features.v2.icon-features .feature-item + .feature-item::before{
  content: "";
  flex: 0 0 1px;
  width: 1px;
  height: 14px;
  margin-right: 7px;
  background: var(--bd-d5d7dc, #cfd6df);
}

@media (max-width: 576px){
  .result-features.v2.icon-features .feature-item + .feature-item::before{
    height: 12px;
    margin-right: 5px;
  }
}

/* ======================================
   SEARCH CARD: prijs onder de foto, op één lijn met de knoppen (favoriet, delen, vergelijken)
====================================== */
.card-price{
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1px;
  color: var(--tx-0b1220, #0b1220);
}
.card-price .price-suffix{
  font-size: 12px;
  margin-left: 4px;
  color: var(--tx-4b5563, #4b5563);
}
.card-price .price-sep{ display: none; }
.card-price .price-sale,
.card-price .price-rent{ display: block; white-space: nowrap; line-height: 1.2; }
.card-price .price-rent{ font-size: 0.8em; color: var(--tx-4b5563, #4b5563); }

.card-info.v2 .address-title{
  flex: none;
  margin-top: 2px;
}
.card-info.v2 .address-sub{
  margin-top: 1px;
  line-height: 1.6;
}
.card-info.v2 .result-features.v2{
  margin-top: 5px;
}

/* Stippen en fototeller op de foto staan op dezelfde lijn: allebei 23 px hoog en 10 px van de onderkant */
.large-image.v2 .card-dots{
  bottom: 10px;
  box-sizing: border-box;
  height: 23px;
  padding: 0 10px;
}

/* Telefoon, kaartweergave: de zoekbalk met de knoppen zweeft bovenaan over de kaart en bedekte de teken-balk (met Apply en Cancel).
   De balk staat nu onderaan, direct boven het menu en links van de drie kaartknoppen. */
@media (max-width: 640px){
  .map-draw-bar{
    top: auto;
    bottom: calc(99px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 66px;
    transform: none;
    width: auto;
    max-width: none;
    justify-content: flex-start;
  }
}
