/* POPUP BACKGROUND */
.values-filter-popup-bg {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.values-filter-popup-bg.show {
  display: flex;
}

/* POPUP CONTAINER */
.values-filter-popup {
  width: 340px;
  max-width: 75%;
  background: #fff;
  border-radius: 20px;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-family: 'Fredoka', Arial, sans-serif;
}

.values-filter-popup-bg.show .values-filter-popup {
  transform: scale(1);
  opacity: 1;
}

/* HEADER */
.filter-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #003a85;
}

.filter-popup-close {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.filter-popup-close:hover {
  transform: rotate(90deg);
  color: #ff5555;
}

/* FILTER SECTIONS */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-section label {
  font-weight: 600;
  color: #222;
  font-size: 15px;
}
.filter-section select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fafafa;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.filter-section select:hover {
  background: #fff;
  border-color: #bbb;
}
.filter-section select:focus {
  border-color: #265dff;
  box-shadow: 0 0 6px rgba(38,93,255,0.35);
}

/* BUTTONS */
.filter-popup-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  gap: 12px;
}
.filter-popup-buttons button {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-clear-btn {
  background: #f0f0f0;
  color: #555;
}
.filter-clear-btn:hover { background: #e0e0e0; }
.filter-apply-btn {
  background: #265dff;
  color: #fff;
}
.filter-apply-btn:hover {
  background: #003cb3;
  box-shadow: 0 4px 12px rgba(38,93,255,0.35);
}

/* RESPONSIVE */
@media (max-width: 400px) {
  .values-filter-popup { width: 90%; padding: 20px; gap: 15px; }
}





.filter-current {
    background: #f0f0f5;
    color: #333;
    font-weight: 600;
    margin: 20px 0 0px 0;
    border-radius: 12px;
    font-size: 15px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filter-current span.filter-clear-btn-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d9534f;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-current span.filter-clear-btn-current:hover {
    background: #c9302c;
}
