.filters {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
transition: max-height 0.5s 
ease, opacity 0.5s 
ease !important;
    display: flex !important
;
    flex-wrap: wrap !important;
    column-gap: 10px;
    justify-content: center;
}

.filters.visible {
  max-height: 500px !important; /* enough to animate */
  opacity: 1 !important;
}

.filters select,
.filters input[type="checkbox"] {
  display: inline-block !important;
  width: auto !important;
  min-width: 155px !important;  /* control width */
  max-width: 155px !important;  /* keep consistent */
  padding: 0.5rem 1rem !important;
  border: 1px solid #ccc !important;
  border-radius: 5px !important;
  font-size: 0.95rem !important;

}

.checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  white-space: nowrap !important;
}

.range-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 155px;
  max-width: 155px;
  height: 38px;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 0.95rem;
  color: #111827;
  cursor: pointer;
  appearance: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.range-trigger:hover,
.range-trigger:focus {
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.range-trigger__chev {
    font-size: 1.3rem;
    color: #000000;
    margin-left: 0.5rem;
}

.range-trigger__label {
  color: #111827;
  font-weight: 500;
}

.range-trigger__value {
  color: #374151;
  flex: 1;
  margin-left: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

/* ---- Range Popover (Min/Max box style) ---- */
.range-popover {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 16px;
  display: flex;
  gap: 16px;
  min-width: 420px;
  animation: fadeIn 0.15s ease-out;
}

.range-popover__col {
  flex: 1;
  min-width: 180px;
}

.range-popover__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
  margin-bottom: 6px;
}

.range-input {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 0.5rem;
  background: #f9fafb;
}

.range-input input {
  flex: 1;
  padding: 0.45rem 0.25rem;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  text-align: left;
}

.range-input input::placeholder {
  color: #9ca3af;
}

.range-input .unit {
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}