
.price-range-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-values {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    color: #0073aa;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    color: #666;
}

.price-range-wrapper input[type="range"] {
    position: absolute;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    margin: 15px 0;
}

.price-range-wrapper input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #d000b7;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    width: 100%;
    background: #ccc;
    border-radius: 3px;
    z-index: 1;
    margin: 18px 0;
}

.slider-track::before {
    content: '';
    position: absolute;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(to right, #d000b7, #cc00ff);
    left: 0;
    right: 0;
    z-index: 2;
}
/* --- Base --- */
.price-range-wrapper{
    position:relative;
    max-width:500px
}
.price-range-wrapper .slider-track{
  position:relative;
  height:6px;
  border-radius:3px;
  background:#ccc;
}

/* --- Rangos superpuestos --- */
.price-range-wrapper input[type="range"]{
  position:absolute;
  left:0;
  right:0;
  top:33px; /* encima de la pista */
  width:100%;
  height:6px;
  margin:0;
  -webkit-appearance:none;
  appearance:none;
  background:transparent;
  border:0;
  pointer-events:none;           /* el track NO recibe eventos */
}

/* Orden por defecto: mínimo por encima del máximo */
#minPrice{ z-index:3; }
#maxPrice{ z-index:2; }

/* Los pulgares SÍ reciben eventos */
.price-range-wrapper input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#d000b7;
  border:2px solid #fff;
  box-shadow:0 0 3px rgba(0,0,0,.3);
  pointer-events:auto; 
  cursor:pointer;
  position:relative; 
  z-index:5;
}
.price-range-wrapper input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%; 
  background:#d000b7; 
  border:2px solid #fff;
  box-shadow:0 0 3px rgba(0,0,0,.3); 
  pointer-events:auto; 
  cursor:pointer; 
  position:relative; 
  z-index:5;
}

/* Firefox: ocultar la barra nativa (usamos nuestra track) */
.price-range-wrapper input[type="range"]::-moz-range-track{
    background:transparent;border:0
}
