/* ==========================================================================
   LQ Timeline Slider Widget
   ========================================================================== */

.lq-ts-wrapper {
    position: relative;
}

/* Swiper container */
.lq-ts {
    overflow: unset;
}

/* ── Individual slide ─────────────────────────────────────────────────── */
.lq-ts-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
    user-select: none;
}

/* ── Year ─────────────────────────────────────────────────────────────── */
.lq-ts-year {
    display: block;
    opacity: 0.45;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.lq-ts-slide.is-active .lq-ts-year {
    opacity: 1;
}

/* ── Title ────────────────────────────────────────────────────────────── */
.lq-ts-title {
    display: block;
    opacity: 0.45;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.lq-ts-slide.is-active .lq-ts-title {
    opacity: 1;
}

/* ── Dot track (full-width row that holds the dot + connecting line) ──── */
.lq-ts-dot-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Horizontal connecting line — spans the full slide width so adjacent
   slides form one continuous timeline line */
.lq-ts-dot-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.2;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.lq-ts-slide:first-child .lq-ts-dot-wrap::before {
    left: 50%;
}
.lq-ts-slide:last-child .lq-ts-dot-wrap::before {
    right: 50%;
}

/* ── Dot ──────────────────────────────────────────────────────────────── */
.lq-ts-dot {
    position: relative; /* sits above the line */
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.3;
    flex-shrink: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.lq-ts-slide.is-active .lq-ts-dot {
    opacity: 1;
    transform: scale(1.3);
}

/* ── Controls ─────────────────────────────────────────────────────────── */
.lq-ts-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lq-ts-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    transition: opacity 0.2s ease;
    -webkit-appearance: none;
}

.lq-ts-btn:hover {
    opacity: 0.6;
}

.lq-ts-btn svg {
    display: block;
    width: 48px;
    height: auto;
}

.lq-ts-btn.swiper-button-disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* ── Pagination counter ───────────────────────────────────────────────── */
.lq-ts-pagination {
    display: inline-block;
    white-space: nowrap;
}
