/* ===================================================================
   FILTER SIDEBAR & FORMS
   =================================================================== */
.filter-sidebar h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0;
  color: var(--clr-med-blue);
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filter-group-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--clr-dark-blue);
}

.filter-checkbox {
  display: block;
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  line-height: 22px;
}
.filter-checkbox.is-parent {
  font-weight: bold;
}
.filter-child-group {
  padding-left: 12px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #fff;
  border: 1px solid #ccc;
  transition: background-color 0.2s ease;
}

/* Checkmark Box */
.checkmark svg {
  width: 24px;
}
.filter-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}
.filter-checkbox input[type="radio"]:checked ~ .checkmark {
  background-color: var(--clr-med-blue);
  border-color: var(--clr-med-blue);
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 0px;
  width: 8px;
  height: 13px;
  border: solid var(--clr-med-blue);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.filter-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Radio variant */
.filter-checkbox input[type="radio"] ~ .checkmark {
  border-radius: 50%;
}
.filter-checkbox input[type="radio"]:checked ~ .checkmark:after {
  display: none;
}
.filter-checkbox input[type="radio"]:checked ~ .checkmark::before {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.filter-checkbox .intensity-label {
  display: inline-block;
}
.filter-checkbox .intensity-label .star-rating {
  color: #333;
  vertical-align: middle;
}
.filter-checkbox .intensity-label .star {
  width: 18px;
  height: 18px;
}

.filter-reset {
  font-size: 0.9rem;
  color: #888;
  text-decoration: underline;
  margin-top: 0.75rem;
  display: inline-block;
}

/* Mobiele Filter Toggle */
.filter-toggle-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  color: #333;
}

.filter-toggle-mobile .arrow-icon {
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
    color: currentColor; /* Neemt tekstkleur over */
}

.filter-toggle-mobile[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

@media (min-width: 900px) {
  .filter-toggle-mobile {
    display: none;
  }
}

@media (max-width: 899px) {
  .filter-form {
    display: none;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fff;
  }
  .filter-toggle-mobile[aria-expanded="true"] + .filter-form {
    display: flex;
  }
}
