/* Customize noUiSlider for the listing filter form */

.listing-filter-form .noUi-target {
  height: 10px;
  background: var(--aqua-mist);
  border: 1px solid var(--ocean-mid);
  border-radius: 4px;
  box-shadow: none;
}

/* Connect bar (active range) */
.listing-filter-form .noUi-connect {
  background: var(--aqua-light);
  transition: background 0.3s ease;
  position: relative;
}

/* Handle styling */
.listing-filter-form .noUi-handle {
  height: 18px;
  width: 18px;
  top: -5px;
  right: -9px;
  border-radius: 9px;
  background: var(--ocean-mid);
  border: 1px solid var(--navy-mid);
  box-shadow: none;
  cursor: pointer;
}

/* Hover/focus effect */
.listing-filter-form .noUi-handle:hover,
.listing-filter-form .noUi-handle:focus {
  box-shadow: 0 0 0 2px rgba(29, 110, 158, 0.4);
  outline: none;
}

/* Hide the default grip bars */
.listing-filter-form .noUi-handle::before,
.listing-filter-form .noUi-handle::after {
  display: none;
}

/* "Max" indicator pip on the track */
.listing-filter-form .nouislider .noUi-base::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 100%;
  background: rgba(255, 215, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

/* SLIDER CONTAINER STYLING */
.slider-container {
  position: relative;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: right;
  gap: 5px;
  margin-top: -21px;
}

.slider-container .nouislider {
  flex-grow: 0;
}

.slider-container .range-labels {
  white-space: nowrap;
  font-size: 0.9em;
  color: var(--ink-mid);
}

.budget-grid {
  display: grid;
  grid-template-rows: auto auto;
  gap: 3px;
  width: 330px;
  min-width: 330px;
}

.budget-grid .filter {
  width: 100%;
  box-sizing: border-box;
}
