/* Mobile Filters Styles */

/* Hide desktop filters on mobile */
@media (max-width: 991px) {
  .desktop-filters {
    display: none !important;
  }
}

/* Hide mobile filters on desktop */
@media (min-width: 992px) {
  .mobile-filter-button {
    display: none !important;
  }
  
  .mobile-filters-offcanvas {
    display: none !important;
  }
}

@media (min-width: 1600px) {
  .mobile-map-button {
    display: none !important;
  }
  .mobile-map-offcanvas {
    display: none !important;
  }
}

/* Mobile Filter Button */
.mobile-filter-button,
.mobile-map-button {
  flex: 1;
}

.mobile-filter-button button,
.mobile-map-button button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  width: 100%;
}

.mobile-filter-button button svg,
.mobile-map-button button svg,
.custom-select__trigger svg {
  margin-right: 8px;
}

/* Offcanvas Panel */
.mobile-filters-offcanvas,
.mobile-map-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 9999999999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-filters-offcanvas h2,
.mobile-filters-offcanvas h3 {
  font-family: 'Raleway', serif;
}

.mobile-filters-offcanvas.active,
.mobile-map-offcanvas.active {
  display: flex;
}

/* Mobile Map Offcanvas Specific Styles */
.mobile-map-offcanvas .offcanvas-content {
  padding: 0;
  flex: 1;
}

#mobile-properties-map {
  height: 100%;
  width: 100%;
}

.offcanvas-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-header h2,
.offcanvas-header h3 {
  font-family: 'Raleway', serif;
  font-size: 14px;
  text-align: left;
}

.offcanvas-map-header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.offcanvas-header h2 {
  margin: 0;
  font-size: 20px;
  text-align: center;
  font-weight: 500;
}

.offcanvas-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offcanvas-footer {
  padding: 15px;
  border-top: 1px solid #e5e5e5;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 1;
}

.close-button {
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 99px;
}

.mobile-map-offcanvas .close-button {
  position: relative;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  padding: 10px;
  background-color: rgba(255, 255, 255, 1);
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
}

.cancel-button {
  background-color: #f5f5f5;
  border: none;
  border-radius: 30px;
  padding: 10px 15px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}

.apply-button {
  background-color: #c19051;
  border: none;
  border-radius: 30px;
  padding: 15px 20px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: 16px;
}

.offcanvas-content {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 10px; /* Ensure content isn't hidden behind sticky footer */
}

/* Filter Section Styles */
.filter-section {
  margin-bottom: 30px;
}

.filter-section h3 {
  font-size: 15px;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: left;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option-checkbox {
  display: flex;
  align-items: center;
}

.filter-option-checkbox label {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.filter-option-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.filter-option-checkbox span {
  margin-left: 5px;
}
