﻿/* ===== TIMELINE ===== */
.timeline-section {
    background: var(--white);
}

.tl-wrap {
    max-width: 900px;
    margin: 48px auto 0;
    position: relative;
}

    .tl-wrap::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, var(--green-bright), var(--gold), var(--green-bright), var(--gold));
        border-radius: 2px;
    }

.tl-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 60px;
    position: relative;
}

    .tl-item:nth-child(odd) .tl-content {
        grid-column: 1;
        padding-right: 52px;
        text-align: right;
    }

    .tl-item:nth-child(even) .tl-content {
        grid-column: 2;
        padding-left: 52px;
        text-align: left;
    }

    .tl-item:nth-child(even) .tl-img {
        grid-column: 1;
        grid-row: 1;
        padding-right: 52px;
    }

    .tl-item:nth-child(odd) .tl-img {
        grid-column: 2;
        padding-left: 52px;
    }

.tl-dot {
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-bright), var(--gold));
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px rgba(62,171,106,.25);
    z-index: 2;
}

.tl-date {
    font-size: .78rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.tl-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.tl-desc {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.7;
}

.tl-img .img-frame {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

    .tl-img .img-frame img {
        transition: transform .5s ease;
    }

    .tl-img .img-frame:hover img {
        transform: scale(1.06);
    }

/* ===== GALLERY GRID ===== */
.gallery-section {
    background: var(--off-white);
}

.gal-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 180px 220px;
    gap: 14px;
    margin-top: 40px;
}

.gm-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

    .gm-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .gm-item:hover img {
        transform: scale(1.07);
    }

    .gm-item.tall {
        grid-row: 1 / 3;
    }

    .gm-item.wide {
        grid-column: span 2;
    }

    .gm-item .cap {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
        color: rgba(255,255,255,.9);
        font-size: .75rem;
        font-weight: 600;
        padding: 20px 12px 10px;
        opacity: 0;
        transition: opacity var(--transition);
    }

    .gm-item:hover .cap {
        opacity: 1;
    }

/* ===== CONTEXT SECTION ===== */
.visit-context {
    background: var(--green-dark);
}

.vc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.vc-text .section-title {
    color: var(--white);
}

.vc-text .section-tag {
    background: rgba(201,162,75,.15);
    color: var(--gold-light);
}

.vc-text .section-desc {
    color: rgba(255,255,255,.65);
}

.vc-text .divider {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.vc-points {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vc-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}

.vcp-ico {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vcp-text strong {
    font-size: .9rem;
    color: var(--white);
    display: block;
    margin-bottom: 3px;
}

.vcp-text p {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
}

.vc-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .vc-imgs .vi-item {
        border-radius: var(--radius);
        overflow: hidden;
        aspect-ratio: 1;
        cursor: zoom-in;
    }

    .vc-imgs .vi-wide {
        grid-column: 1/3;
        aspect-ratio: 16/9;
        border-radius: var(--radius);
        overflow: hidden;
        cursor: zoom-in;
    }

/* RESPONSIVE */
@media (max-width: 900px) {
    .tl-wrap::before {
        left: 24px;
    }

    .tl-item {
        grid-template-columns: 1fr;
        margin-left: 48px;
    }

        .tl-item:nth-child(odd) .tl-content,
        .tl-item:nth-child(even) .tl-content {
            grid-column: 1;
            padding: 0 0 0 12px;
            text-align: left;
        }

        .tl-item:nth-child(odd) .tl-img,
        .tl-item:nth-child(even) .tl-img {
            grid-column: 1;
            padding: 0 0 0 12px;
            margin-top: 14px;
            grid-row: auto;
        }

    .tl-dot {
        left: -24px;
    }

    .gal-masonry {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gm-item.tall {
        grid-row: auto;
    }

    .vc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tl-wrap {
        margin-left: 0;
    }

    .gal-masonry {
        grid-template-columns: 1fr 1fr;
    }

    .gm-item.wide {
        grid-column: 1 / 3;
    }
}
