/**
 * range-slider.css
 * Shared dual-handle range slider used by the Filter Popup's optional
 * "Slider" style (Price / Building Area / Land Area). Opt-in — only renders
 * when a widget's "Filter Style" control is set to Slider; text-field
 * filters are completely unaffected by this file.
 */

/* Higher specificity than the base `.rpl-filter__range` flex/grid rules
   (listing-search-bar.css, listing-grid.css) so this override always wins
   regardless of stylesheet load order. */
.rpl-filter__range.rpl-filter__range--slider,
.elementor-widget-rpl-listing-grid .rpl-filter__range.rpl-filter__range--slider {
  display: block;
  width: 100%;
}

.rpl-rslider {
  padding: 4px 6px 0;
  user-select: none;
  -webkit-user-select: none;
}

.rpl-rslider__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.rpl-rslider__label-sep {
  opacity: 0.5;
  font-weight: 400;
}

.rpl-rslider__track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 0 9px;
}

.rpl-rslider__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 999px;
  background: #111827;
}

.rpl-rslider__thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  touch-action: none;
}

.rpl-rslider__thumb:hover,
.rpl-rslider__thumb:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.12);
}

.rpl-rslider__thumb:active {
  cursor: grabbing;
}
