/* Timeline Tabs Component
 * Content panel above, horizontal dot-scrubber with year labels below.
 */

.section--timeline-tabs {
    padding: 4rem 0;
}

/* =========================================================================
   Tab Panel (content + image)
   ========================================================================= */

/* Stacked crossfade: all panels occupy the same space */
.timeline-tabs__panels {
    display: grid;
    margin-bottom: 3rem;
}

.timeline-tabs__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.timeline-tabs__panel--active {
    opacity: 1;
    visibility: visible;
}

.timeline-tabs__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.timeline-tabs__year {
    display: inline-block;
    font-family: 'Eurostile', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #C9A227;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-tabs__heading {
    font-family: 'Eurostile', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.timeline-tabs__description {
    color: #555;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.timeline-tabs__image {
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.timeline-tabs__image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.timeline-tabs__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* =========================================================================
   Dot Scrubber Navigation
   ========================================================================= */

.timeline-scrubber {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

/* Prev / Next Arrows */
.timeline-scrubber__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.timeline-scrubber__arrow:hover:not(:disabled) {
    border-color: #C9A227;
    color: #C9A227;
}

.timeline-scrubber__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Track (line + dots) */
.timeline-scrubber__track {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    min-height: 60px;
}

/* Horizontal baseline */
.timeline-scrubber__line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Progress fill */
.timeline-scrubber__progress {
    height: 100%;
    background: #C9A227;
    transition: width 0.35s ease;
    width: 0;
    border-radius: 1px;
}

/* Individual dot button */
.timeline-scrubber__dot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

.timeline-scrubber__dot:focus-visible .timeline-scrubber__dot-circle {
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35);
}

/* Circle */
.timeline-scrubber__dot-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.timeline-scrubber__dot:hover .timeline-scrubber__dot-circle {
    border-color: #C9A227;
}

.timeline-scrubber__dot--active .timeline-scrubber__dot-circle {
    border-color: #C9A227;
    background: #C9A227;
    transform: scale(1.25);
}

/* Year label below dot */
.timeline-scrubber__label {
    font-family: 'Eurostile', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.timeline-scrubber__dot:hover .timeline-scrubber__label {
    color: #333;
}

.timeline-scrubber__dot--active .timeline-scrubber__label {
    color: #000;
}

/* =========================================================================
   Mobile
   ========================================================================= */

@media (max-width: 768px) {
    .timeline-tabs__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-scrubber {
        gap: 0.5rem;
    }

    .timeline-scrubber__arrow {
        width: 36px;
        height: 36px;
    }

    .timeline-scrubber__arrow svg {
        width: 16px;
        height: 16px;
    }

    .timeline-scrubber__dot-circle {
        width: 14px;
        height: 14px;
    }

    .timeline-scrubber__label {
        font-size: 0.7rem;
    }
}
