/* Slider Container */
.slider-container {
    width: 100%;
    max-width: 500px;
    padding: 2px 15px;
    margin: 0;
}

/* Year labels above slider */
.slider-labels {
    height: 10px;
    position: relative;
    margin-bottom: 20px;
}

.year-label {
    position: absolute;
    background-color: #5EADDB;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
}

.year-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #5EADDB;
}

/* Range Slider */
.range-slider {
    position: relative;
    height: 6px;
    margin: 25px 0;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #E5E5E5;
    border-radius: 3px;
    top: 0;
}

.slider-range {
    position: absolute;
    height: 6px;
    background: #5EADDB;
    border-radius: 3px;
    top: 0;
    left: 0;
    right: 0;
}

/* Slider Handles */
.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #5EADDB;
    border: 3px solid white;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: box-shadow 0.2s;
}

.slider-handle:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider-handle.dragging {
    cursor: grabbing;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Year ticks */
.year-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    position: relative;
}

.tick {
    position: relative;
    flex: 0 0 auto;
}

.tick::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: #D0D0D0;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        max-width: 100%;
    }
}