/* Refurb-style dual range slider — price & year filters */

.pl-rs.pl-fd-slider-wrap {
    position: relative;
    height: auto;
    margin: 0 8px 0;
    padding-top: 36px;
}

.pl-rs-bubbles {
    position: relative;
    height: 0;
    z-index: 3;
    pointer-events: none;
}

.pl-rs-bubble {
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    margin-top: -6px;
    padding: 5px 9px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    line-height: 1.2;
}

.pl-rs-slider {
    position: relative;
    height: 28px;
}

.pl-rs .pl-fd-track {
    height: 3px;
    background: #e4e4e4;
    border-radius: 2px;
}

.pl-rs .pl-fd-range {
    display: none;
}

.pl-rs .pl-fd-thumb {
    height: 28px;
}

.pl-rs .pl-fd-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 20px;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    cursor: grab;
    pointer-events: all;
    background-image: linear-gradient(to right, transparent 9px, #bbbbbb 9px, #bbbbbb 10px, transparent 10px, transparent 16px, #bbbbbb 16px, #bbbbbb 17px, transparent 17px);
}

.pl-rs .pl-fd-thumb::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.pl-rs .pl-fd-thumb::-moz-range-thumb {
    width: 26px;
    height: 20px;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    cursor: grab;
    pointer-events: all;
}

.pl-rs-ticks {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 14px;
    margin: 6px 4px 4px;
    padding: 0 2px;
}

.pl-rs-tick {
    flex: 1;
    max-width: 1px;
    height: 5px;
    background: #dddddd;
    margin: 0 1px;
}

.pl-rs-tick--major {
    height: 9px;
    background: #cccccc;
}

.pl-rs-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: #888888;
    padding: 0 2px 2px;
    margin-bottom: 4px;
}

/* Hide legacy min/max inputs & value rows when enhanced */
.pl-rs--enhanced-wrap .pl-fd-price-inputs,
.pl-rs--enhanced-wrap .pl-fd-year-display,
.pl-rs--enhanced-wrap .mf-price-vals,
.pl-rs--enhanced-section .pl-fd-price-inputs,
.pl-rs--enhanced-section .pl-fd-year-display {
    display: none !important;
}

/* Panel / drawer spacing */
.pl-fd-panel .pl-rs.pl-fd-slider-wrap,
.mf-section-body .pl-rs.pl-fd-slider-wrap,
.pl-mob-filter-section .pl-rs.pl-fd-slider-wrap {
    margin-bottom: 2px;
}

.pl-fd-panel .pl-rs-labels,
.mf-section-body .pl-rs-labels {
    margin-bottom: 0;
}

/* Legacy end markers — hide when enhanced sibling exists */
.pl-rs--enhanced-section .pl-fd-price-markers {
    display: none !important;
}
