/* Mobile Filter Button */
.filter-toggle {
  display: none;
  padding: 10px 15px;
  background: #fff;
  color: #034A66;
  border: 1px solid #E4E6E8;
  border-radius: 6px;
  cursor: pointer;
}

/* Overlay */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}

.filter-overlay.active {
  display: block;
}

/* Layout */
.layout {
  display: flex;
}

/* Filter Panel */
.filter-panel {
  width: 100%;
  margin-bottom: 30px;
  background: #FDFAF4;
}

/* Header */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.filter-header h3 {
  font-size: 22px;
  color: #333436;
  line-height: 24px;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 0px;
}
.close-filter {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Filter Group */
.filter-group {
  margin-bottom: 8px;
}
.checkboxfilter {
  margin-bottom: 3px;
}
.checkboxfilter label {
  font-size: 14px;
}
.filter-title {
  font-size: 18px;
  color: #333436;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-title span {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.filter-group.open .filter-title span {
  transform: rotate(180deg);
}

/* Accordion Content */
.filter-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.filter-content ul{
  padding: 0px;
  margin: 0px;
}
.filter-content li{
  list-style: none;
}
.filter-group.open .filter-content {
  max-height: 500px;
  opacity: 1;
}

/* Content */
.content {
  flex: 1;
  padding: 20px;
}

/* ---------- RANGE SLIDER ---------- */
.filter-content input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

/* Webkit */
.filter-content input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(
    to right,
    #E52731 0%,
    #E52731 var(--range-progress),
    #ddd var(--range-progress),
    #ddd 100%
  );
  border-radius: 5px;
}

.filter-content input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #E52731;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: -6px;
  cursor: pointer;
}

/* Firefox */
.filter-content input[type="range"]::-moz-range-track {
  height: 6px;
  background: #ddd;
}

.filter-content input[type="range"]::-moz-range-progress {
  background: #E52731;
  height: 6px;
}

.filter-content input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #E52731;
  border-radius: 50%;
}

/* Tablet */
@media (max-width: 1080px) {
  .filter-panel {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 992px) {
  .filter-toggle {
    display: inline-block;
  }

  .filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    border-radius: 0;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;          /* ✅ ENABLE VERTICAL SCROLL */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;       /* ✅ ALLOW ONLY VERTICAL */
    padding: 15px 15px;
  }

  .filter-panel.active {
    transform: translateX(0);
  }

  .close-filter {
    display: block;
  }
}