.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;

  display: flex;
  justify-content: flex-end;
}

/* old.css .sidebar ile uyumlu panel */
.filter-panel {
  width: 240px;
  max-width: min(240px, 92vw);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;

  background: #fef7e5;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;

  animation: slideIn 0.6s ease;
}

.filter-panel.closing {
  animation: slideOut 0.6s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* old.css .sidebar h2 — sabit başlık */
.filter-header {
  flex-shrink: 0;
  padding: 24px 24px 0;
  box-sizing: border-box;
}

.filter-header h2 {
  margin: 0;
  padding-bottom: 12px;
  color: #3d2012;
  font-size: 24px;
  font-weight: 600;
  font-family: inherit;
  border-bottom: 1px solid rgba(61, 32, 18, 0.15);
}

/* Kaydırılabilir gövde (gruplar + footer) */
.filter-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px 24px;
  box-sizing: border-box;
}

/* GROUP */
.filter-group {
  background: #f4ebdd;
  border: 1px solid rgba(61, 32, 18, 0.08);

  border-radius: 18px;
  padding: 14px 16px;

  margin-bottom: 12px;

  cursor: pointer;
  transition: 0.3s ease;

  position: relative;
}

.filter-group:hover {
  transform: translateY(-2px);
  background: #efe3d4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* TITLE */
.filter-title {
  color: #3d2012;
  font-size: 15px;
  font-weight: 600;
}

.filter-title2 {
  color: rgba(61, 32, 18, 0.55);
  font-size: 12px;
  margin-top: 4px;
}

/* ARROW */
.sidebar-arrow {
  position: absolute;
  right: 14px;
  top: 14px;

  font-size: 22px;
  color: rgba(61, 32, 18, 0.35);

  transition: 0.3s ease;
}

.filter-group:hover .sidebar-arrow {
  transform: translateX(4px);
}

/* OPTIONS */
.filter-options {
  max-height: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 0;

  transition: max-height 0.4s ease, margin 0.3s ease;
}

.filter-group.open .filter-options {
  max-height: 220px;
  margin-top: 10px;
}

/* LABEL */
.filter-options label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  color: rgba(61, 32, 18, 0.8);

  cursor: pointer;

  padding: 6px 8px;
  border-radius: 10px;

  transition: 0.2s ease;
}

.filter-options label:hover {
  background: rgba(61, 32, 18, 0.06);
}

/* RADIO STYLE CHECKBOX */
.filter-options input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 14px;
  height: 14px;

  border: 2px solid rgba(61, 32, 18, 0.5);
  border-radius: 50%;

  display: grid;
  place-content: center;
}

.filter-options input[type="checkbox"]:checked {
  border-color: #3d2012;
}

.filter-options input[type="checkbox"]:checked::before {
  content: "";
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #3d2012;
}

/* FOOTER */

.filter-footer {
  margin-top: 20px;
}

/* RESET BUTTON */

.reset-filters-btn {
  width: 100%;

  border: none;
  background: transparent;

  color: rgba(61, 32, 18, 0.7);

  font-size: 12px;
  font-weight: 500;

  padding: 10px 12px;

  cursor: pointer;

  transition: 0.2s ease;
}

.reset-filters-btn:hover {
  color: #3d2012;
}

/* DIVIDER */

.filter-divider {
  width: 100%;
  height: 1px;

  background: rgba(61, 32, 18, 0.12);

  margin: 6px 0 14px;
}

/* SAVE BUTTON */

.save-filters-btn {
  width: 100%;

  border: none;
  border-radius: 14px;

  background: #3d2012;
  color: #fef7e5;

  padding: 12px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.25s ease;
}

.save-filters-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
