.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: 0px 1px 5px 0px rgba(0, 0, 0, 0.3019607843),
    0px 5px 20px 6px rgba(0, 0, 0, .1490196078);
  background-color: #fff;
  position: relative;
  margin: auto;
  z-index: 10000;
  transition: opacity 150ms ease-out, transform 255ms cubic-bezier(0.175, 0.745, 0.425, 1.11);
  margin-left: 0;
  max-width: 60%;
  /* width:40%; */
  min-width: 30%;
  margin-top: 0;
  opacity: 1;
  transform: none;
  min-height: 100%;
  height: 100% !important;
}

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

.filter-drop-down-body-all-sec {
  display: flex;
  flex-direction: column;
  padding: 2%;
  height: 100% !important;
  width: 100%;
  overflow-y: auto !important;
  gap: 2%;
  /* border:1px solid black; */
}

.filter-drop-down-hd {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 10vw;
}

.filter-reset {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  /* border:1px solid black; */
  width: 45%;
  padding-left: 2%;
}

.filter-reset-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  font-size: 14px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
  justify-content: flex-start;
  border-radius: 18px;
  font-weight: 500;
}

.all-filter-heading {
  font-size: 28px;
  font-weight: 400;
}

.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-sec6,
.filter-drop-down-body-sec7,
.filter-drop-down-body-sec8 {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  flex-direction: row;
  padding-left: 2%;
  margin-top: 1%;
}

.left-body {
  width: 45%;
  display: flex;
  flex-direction: column;

}

.right-body {
  width: 48%;
  display: flex;
  flex-direction: column;
  padding-right: 1%;

}

.prop-status {
  display: flex;
  flex-direction: row;
}

.all-filter-btn-sec {
  min-height: 4.5vw;
  width: 100%;
  padding: 5% 2%;
  display: flex;
  flex-direction: row;
  gap: 4%;
  justify-content: center;
  align-items: center;
  border-top: 0.1vw solid rgba(14, 14, 14, .1803921569) !important;
}

.all-filter-inn-btn {
  height: 4vw;
  width: 45%;
  border-radius: 3vw;
  border: 0.2vw solid #222;
  justify-content: center;
  align-items: center;
  display: flex;
}

.all-filter-inn-btn:hover {
  cursor: pointer;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 4px 8px 0 rgba(0, 0, 0, 0.19);
}

.apply-btn {
  background-color: #222;
  color: #fff;
}
/* Hover state */
.apply-btn:hover {
  background-color: #444;  /* Change to a lighter shade on hover */
}

/* Active/clicked state */
.apply-btn:active {
  background-color: #888;  /* Change to a different color when clicked */
}

.hd {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.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;
}



.filter-close:hover {
  background-color: rgba(14, 14, 14, 0.568627451);
  opacity: 1;
  /* Change to opacity: 1 on hover */
  cursor: pointer;
}


.beds-option.functional {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.baths-option.functional {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.prop-type-btn.functional {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.feature-btn.functional {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.storey-btn.functional {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.expand-search-btn.functional {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.filter-close {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: rgba(14, 14, 14, 0.568);
  color: #fff;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid black;
  cursor: pointer;
  transition: opacity 300ms ease-in-out;
  z-index: 10000;
}

/* On hover */
.filter-close:hover {
  opacity: 1;
  background-color: #fff;
}

.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 {
    max-width: 60%;
    min-width: 30%;
  }
}

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

}