﻿.journey-dates {
    position: relative;
    width: 100%;
}

.journey-date-navigation {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% + 28px);
    width: 18px;
    z-index: 2;
}

.journey-date-list {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 0.65vh, 9px);
}

.journey-date-dot {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    background: #a8a8a8 content-box;
    cursor: pointer;
}

    .journey-date-dot.is-selected,
    .journey-date-dot:hover,
    .journey-date-dot:focus-visible {
        border-width: 0;
        background: #f5a623;
    }

.journey-date-label {
    position: absolute;
    top: 50%;
    left: 23px;
    width: max-content;
    padding: 3px 7px;
    color: #fff;
    background: #686868;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 120ms ease-in-out;
}

.journey-date-dot:hover .journey-date-label,
.journey-date-dot:focus-visible .journey-date-label {
    opacity: 1;
}

.journey-date:not(.is-selected) {
    display: none;
}

@media (max-width: 900px) {
    .journey-date-navigation {
        position: static;
        width: 100%;
        margin-bottom: 14px;
    }

    .journey-date-list {
        position: static;
        flex-flow: wrap;
        justify-content: center;
        gap: 7px;
    }

    .journey-date-label {
        top: auto;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
    }
}
