#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* PANEL DEFAULT */
#villaFilterPanel {
  position: fixed;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

/* =========================
   DESKTOP → Slide-in links
========================= */
@media (min-width: 768px) {
  #villaFilterPanel {
    top: 80px;
    left: 0;                    /* statt right */
    width: 280px;
    transform: translateX(-100%); /* von links außerhalb starten */
  }

  #villaFilterPanel.open {
    transform: translateX(0);     /* rein sliden */
  }
}

/* =========================
   MOBILE → Bottom Sheet
========================= */
@media (max-width: 767px) {
  #villaFilterPanel {
    left: 0;
    bottom: 0;
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transform: translateY(100%);
  }

  #villaFilterPanel.open {
    transform: translateY(0);
  }
}

/* HEADER */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
}

/* CLOSE BUTTON */
.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* BODY */
.panel-body {
  padding: 10px;
  max-height: 60vh;
  overflow-y: auto;
}

/* FOOTER */
.panel-footer {
  padding: 10px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}
      #villaFilterForm .form-check {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  background-color: #fff;
}

#villaFilterForm .form-check:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

/* Input verstecken */
#villaFilterForm .form-check-input {
  display: none;
}

/* Label als Checkbox darstellen */
#villaFilterForm .form-check-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
}

/* Box */
#villaFilterForm .form-check-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 0px;
  background: #fff;
  transition: all 0.2s;
}

/* Haken */
#villaFilterForm .form-check-input:checked + .form-check-label::after {
  content: "✔";
  position: absolute;
  left: 3px;
  top: 0px;
  font-size: 14px;
  color: white;
}

/* Checked Zustand */
#villaFilterForm .form-check-input:checked + .form-check-label::before {
  background-color: #a3d7df; /* Bootstrap Primary */
  border-color: #a3d7df;
}

/* Optional: Hover Effekt auf aktive Checkbox */
#villaFilterForm .form-check:hover .form-check-label::before {
  border-color: #999;
}  
     