.all-filter-btn-overlay {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
  visibility: hidden;
  background-color: rgba(14, 14, 14, 0.568627451);
  overflow-y: auto;
  overflow-x: hidden;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: fixed;
  box-sizing: inherit;
  transition-delay: 0.75ms;
  min-height: calc(var(--vh, 1vh)*100);
}

.all-filter-drop-down-overlay {
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  position: relative;
  margin: 0;
  z-index: 10000;
  transition: opacity 150ms ease-out, transform 255ms cubic-bezier(0.175, 0.745, 0.425, 1.11);
  margin-left: 0;
  width: 380px !important;
  max-width: 90vw !important;
  min-width: 320px !important;
  margin-top: 0;
  opacity: 1;
  transform: none;
  min-height: 100%;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

.all-filter-drop-down {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.filter-drop-down-body-all-sec {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  height: 100% !important;
  width: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  gap: 16px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.filter-drop-down-body-all-sec::-webkit-scrollbar {
  width: 5px;
}

.filter-drop-down-body-all-sec::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-drop-down-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f7;
  height: 56px;
  min-height: 56px;
  background: #ffffff;
  position: relative;
}

.filter-reset {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  padding: 0;
}

.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12.5px;
  border-radius: 20px;
  font-weight: 600;
}

.filter-reset-btn:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.all-filter-heading {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-align: center;
  flex: 1;
  margin-right: 32px;
}

.all-filter-btn-sec {
  min-height: 60px;
  width: 100%;
  padding: 12px 18px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f7 !important;
  background: #ffffff;
  margin-top: auto;
  box-sizing: border-box;
}

.all-filter-inn-btn {
  height: 38px;
  width: 100%;
  border-radius: 20px;
  border: 1.5px solid #d1d5db;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apply-btn {
  background-color: var(--kf-red, #a30000) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(163, 0, 0, 0.25);
}

.apply-btn:hover {
  background-color: var(--kf-red-dark, #850000) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(163, 0, 0, 0.35);
}

.hd {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.no-of-beds-body,
.no-of-baths-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;

}

.beds-option,
.baths-option {
  border: 1px solid #222;
  height: 30px;
  width: 50px;
  border-radius: 12px;
  background-color: #fff;
  display: flex;
  justify-content: center;
}

.feature-body {
  display: flex;
  flex-direction: column;

}

.feature-button-container,
.prop-button-container,
.storey-container,
.prop-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 2%;
}

.filter-hd-btn-created {
  display: flex;
  flex-direction: column;
}

.expand-search-btn-container {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  flex-direction: row;
  gap: 2%;
}

.feature-btn,
.prop-type-btn,
.storey-btn,
.prop-status-btn {
  background-color: #fff;
  color: #222;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid #222;
}

.expand-search-btn {
  background-color: #fff;
  color: #222;
  border: 1px solid #222;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 38px;
  width: 95px;
  border-radius: 25px;

}

.filter-search-container {
  position: relative;
  width: 350px;
}

.filter-search-bar {
  width: 100%;
  padding: 10px 40px 10px 10px;
  /* Extra padding to make space for the icon */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 16px;
  /* Rounded corners */
  outline: none;
  border: 1px solid #222;
}

.filter-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
}

.filter-search-icon i {
  font-size: 18px;
  /* Size of the search icon */
}

/* .prop-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  } */

.prop-status-row {
  display: flex;
  gap: 10px;
  /* Space between New and Sold buttons */
}

.prop-status-btn {
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
}

.sold-options {
  display: none;
  /* Hide the sold options by default */
  margin-top: 10px;
  display: flex;
  gap: 10px;
  /* Align options in row */
}

.sold-option-btn {
  padding: 8px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
}

/* Display the sold options when the Sold button is clicked */
#sold-btn.active+#sold-options {
  display: flex;
}

.plus,
.prop-type-symbol {
  /* Adds space between text and the "+" sign */
  font-weight: bold;
  /* font-size: 20px; */
}

.font {
  font-size: 20px;
  margin-left: 10px;
}

.prop-type-symbol {
  font-size: 18px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .btn {
    max-width: calc(50% - 10px);
    /* 2 buttons per row on smaller screens */
  }
}

@media (max-width: 480px) {
  .btn {
    max-width: 100%;
    /* Full width buttons on very small screens */
  }
}

.filter-drop-down-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 2%;
}

.min-size-div,
.max-size-div {
  width: 200px;
  /* Custom width */
  height: 100px;
  /* Custom height */
  padding: 10px;
  box-sizing: border-box;
}

/* Custom styling for the dropdown input field */
.custom-dropdown {
  width: 140px;
  height: 60px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.custom-dropdown:focus {
  border-color: #007BFF;
}

.hyphen-btw {
  font-size: 12px;
}

.filter-toggle-container {
  display: flex;

}

.hd-with-toggle {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

}

/* Styling for the toggle switch */
.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* border:1px solid black; */
}

/* Inner circle that moves when toggled */
.toggle-circle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling for the tick and cross inside the circle */
.toggle-circle .tick,
.toggle-circle .cross {
  font-size: 18px;
  position: absolute;
  /* Positioning inside the circle */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Center the text */
  visibility: hidden;
  /* Hide by default */
}

/* Tick (✔) appears when toggle is on */
.toggle-switch.on .toggle-circle .tick {
  visibility: visible;
  color: green;
}

/* Cross (✖) appears when toggle is off */
.toggle-switch:not(.on) .toggle-circle .cross {
  visibility: visible;
  color: red;
}

/* Changing the position of the circle and background color when toggled */
.toggle-switch.on {
  background-color: #4CAF50;
}

.toggle-switch.on .toggle-circle {
  left: 30px;
}



.beds-option.functional,
.baths-option.functional,
.prop-type-btn.functional,
.storey-btn.functional,
.expand-search-btn.functional,
.feature-btn.functional {
  background-color: var(--kf-red, #a30000) !important;
  color: white !important;
  border-color: var(--kf-red, #a30000) !important;
  font-weight: 600;
}

.filter-close {
  position: absolute;
  top: 12px;
  right: 14px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 20px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10000;
}

.filter-close:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.filter-close:hover i {
  color: #000;
}

.prop-status,
.feature-button-container,
.prop-button-container,
.storey-container {
  flex-wrap: wrap;
}

/* Extra large devices (desktops > 1200px) */
@media (min-width: 1200px) {
  .all-filter-drop-down-overlay {
    width: 380px !important;
    max-width: 420px !important;
    min-width: 340px !important;
  }
}

/* Medium devices (tablets) */
@media (max-width: 991px) {

  .filter-drop-down-body-sec1,
  .filter-drop-down-body-sec2,
  .filter-drop-down-body-sec3,
  .filter-drop-down-body-sec4,
  .filter-drop-down-body-sec5,
  .filter-drop-down-body-sec8 {
    flex-direction: column;
  }

  .left-body,
  .right-body {
    width: 100%;
    padding: 0;
  }

  .search-container {
    width: 100%;
  }

  .min-size-div,
  .max-size-div {
    width: 100%;
    height: auto;
    padding: 5px 0;
  }

  .custom-dropdown {
    width: 100%;
  }

  .all-filter-inn-btn {
    width: 100%;
    height: 45px;
    font-size: 16px;
  }

  .filter-close {
    top: 12px;
    right: 12px;
    height: 36px;
    width: 36px;
    font-size: 20px;
  }
}

/* Small devices (mobile phones) */
@media (max-width: 576px) {
  .filter-reset-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .all-filter-heading {
    font-size: 22px;
  }

  .hd {
    font-size: 16px;
  }

  .beds-option,
  .baths-option,
  .storey-btn,
  .prop-type-btn,
  .feature-btn,
  .prop-status-btn,
  .expand-search-btn {
    width: 45%;
    font-size: 12px;
    padding: 8px;
  }

  .filter-close {
    top: 10px;
    right: 10px;
    height: 32px;
    width: 32px;
    font-size: 18px;
  }

  .search-container {
    width: 100%;
  }

  .all-filter-btn-sec {
    flex-direction: column;
    gap: 10px;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }


  .all-filter-inn-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .search-bar {
    padding: 10px 35px 10px 10px;
    font-size: 14px;
  }

  .search-icon i {
    font-size: 16px;
  }

  .all-filter-drop-down-overlay {
    min-height: 100dvh;
    height: 100dvh !important;
    border: 2px solid black;

    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .all-filter-btn-overlay {
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
  }

  .filter-drop-down-body-all-sec {
    padding-bottom: 10vh;
    /* ensure scroll space */
  }

  .all-filter-drop-down {
    width: 100%;
  }

}

/* ============================================================
   MODERN COMPACT & ALIGNED STYLING FOR PROPERTY LIST VIEW FILTERS
   ============================================================ */

/* Top Filter Toolbar Polish */
.list-all-filters {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

.list-all-filters::-webkit-scrollbar {
  height: 3px;
}

.list-all-filters::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Filter Bar Buttons - Compact & Aligned */
.dropdown-btn,
.filter-btn,
.map-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 16px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.dropdown-btn:hover,
.filter-btn:hover,
.map-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.filter-btn {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

.map-btn {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.clear-filters-btn {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 16px !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.clear-filters-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

/* Modal Drawer Overlay - Positioned below top red bar */
.all-filter-btn-overlay {
  top: 34px !important;
  height: calc(100vh - 34px) !important;
  min-height: calc(100vh - 34px) !important;
  background-color: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
}

.all-filter-drop-down-overlay {
  background-color: #ffffff !important;
  width: 30% !important;
  min-width: 350px !important;
  max-width: 440px !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15) !important;
  height: 100% !important;
  max-height: 100% !important;
}

@media (max-width: 768px) {
  .all-filter-drop-down-overlay {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
}

.all-filter-drop-down {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

/* Fixed Top Header */
.filter-drop-down-hd {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: #ffffff !important;
  height: 54px !important;
  padding: 0 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}

.filter-reset-btn {
  border-radius: 14px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  transition: all 0.18s ease !important;
}

.filter-reset-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.all-filter-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.filter-close {
  top: 11px !important;
  right: 16px !important;
  width: 30px !important;
  height: 30px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
}

.filter-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: scale(1.05);
}

/* Scrollable Container with Smooth Vertical Scrolling */
.filter-drop-down-body-all-sec {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  overscroll-behavior: contain;
}

/* Single Column Block Sections */
.filter-section-block {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}


.hd {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}

/* Compact Option Buttons & Pills inside Drawer */
.beds-option,
.baths-option,
.storey-btn,
.prop-type-btn,
.prop-status-btn,
.expand-search-btn,
.feature-btn,
.sold-option-btn {
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 5px 12px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.beds-option:hover,
.baths-option:hover,
.storey-btn:hover,
.prop-type-btn:hover,
.prop-status-btn:hover,
.expand-search-btn:hover,
.feature-btn:hover,
.sold-option-btn:hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Active Filter Options */
.beds-option.active,
.baths-option.active,
.storey-btn.active,
.prop-type-btn.active,
.prop-status-btn.active,
.expand-search-btn.active,
.feature-btn.active,
.sold-option-btn.active,
.beds-option.functional,
.baths-option.functional,
.storey-btn.functional,
.prop-type-btn.functional,
.prop-status-btn.functional,
.expand-search-btn.functional,
.feature-btn.functional,
.sold-option-btn.functional {
  background-color: var(--kf-red, #ab0606) !important;
  color: #ffffff !important;
  border-color: var(--kf-red, #ab0606) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(171, 6, 6, 0.22) !important;
}

/* Layout alignment for option containers */
.prop-status,
.no-of-beds-body,
.no-of-baths-body,
.storey-container,
.prop-button-container,
.expand-search-btn-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
}

/* Form Controls & Dropdowns */
.custom-dropdown,
.search-bar,
.alt-price,
.form-control {
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 12px !important;
  color: #0f172a !important;
  padding: 6px 10px !important;
  height: 34px !important;
  background-color: #ffffff !important;
  transition: all 0.18s ease !important;
}

.custom-dropdown:focus,
.search-bar:focus,
.alt-price:focus,
.form-control:focus {
  border-color: var(--kf-red, #ab0606) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(171, 6, 6, 0.12) !important;
}

/* Fixed Bottom Action Bar */
.all-filter-btn-sec {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 14px 20px !important;
  gap: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}

.all-filter-inn-btn {
  height: 38px !important;
  border-radius: 19px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

.apply-btn {
  background-color: var(--kf-red, #ab0606) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(171, 6, 6, 0.25) !important;
}

.apply-btn:hover {
  background-color: #8e0505 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(171, 6, 6, 0.35) !important;
}

#searchHistoryBtn {
  background-color: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

#searchHistoryBtn:hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}