/* MOBILE FIRST (0 – 767px)*/

/* ---------- INTRO ---------- */

.intro {
    margin-top: 6vh;
    margin-bottom: 3vh;
    text-align: center;
}

h1 {
    font-size: 8vw;
}

.data {
    font-size: 3.5vw;
    color: var(--donkeroranje);
    font-weight: bold;
}

.intro-text {
    max-width: 80%;
    margin: 1rem auto 2rem;
    font-size: 3.5vw;
    line-height: 1.7;
}

/* ---------- KAART ---------- */

.kaart {
    width: 80%;
    margin: 2rem auto 2rem;
    display: block;
    border-radius: 10px;
}

/* ---------- LAYOUT ---------- */

.trip-layout {
    padding: 0 1.5rem 4rem;
}

/* MOBILE SIDENAV → STICKY DROPDOWN */

.trip-sidebar {
    position: sticky;
    top: 90px;
    z-index: 50;
    margin-bottom: 2rem;
}

.trip-nav {
    position: relative;
}

.trip-nav-title {
    display: none;
}

/* Dropdown knop (alleen mobile) */
.trip-nav-toggle {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    background: var(--lichtoranje);
    border: 1px solid var(--donkeroranje);
    color: var(--text);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Chevron animatie */
.trip-nav-toggle span {
    transition: transform 0.2s ease;
}

.trip-nav.open .trip-nav-toggle span {
    transform: rotate(180deg);
}

/* Dropdown lijst */
.trip-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--donkergroen);
    border-top: none;
    background: var(--lichtgroen);
    display: none;
}

.trip-nav.open ul {
    display: block;
}

.trip-nav li {
    border-top: 1px solid var(--donkergroen);
}

.trip-nav a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text);
}

.trip-nav a:hover {
    color: var(--donkergroen);
    font-weight: 600;
    text-decoration: underline;
}

.trip-nav a.active {
    color: var(--donkeroranje);
    font-weight: 600;
    text-decoration: underline;
}

/* Sectietitels (steden) */
.trip-nav li.nav-section {
    border-top: none;
    margin: 1.4rem 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    pointer-events: none;
}

.trip-nav a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text);
}

.trip-nav a.active {
    color: var(--donkeroranje);
    font-weight: 600;
    text-decoration: underline;
}

/* CONTENT */

.trip-day,
.trip-moment {
    margin-bottom: 4rem;
}

/* ---------- STAD TUSSENTITELS ---------- */

.trip-moment {
    padding: 2.5rem 2rem;
    background: var(--lichtgroen);
    border-left: 5px solid var(--donkeroranje);
    border-radius: 0% 50px 50px 0%;
    margin-bottom: 0%;
}

.trip-moment .trip-title {
    font-size: 6vw;
    margin-bottom: 0.6rem;
    color: var(--donkeroranje);
}

/* DATUM & TITELS */

.trip-date {
    font-size: 3vw;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
}

.trip-location,
.trip-title {
    font-size: 5vw;
}

/* TEKST */

.trip-text {
    font-size: 3.6vw;
    line-height: 1.8;
    max-width: 70ch;
}

/* FOTO’S */

.photo-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.photo-row img {
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

/* Scroll offset */
.trip-day[id],
.trip-moment[id] {
    scroll-margin-top: 140px;
}

/* TABLET (768px – 1023px)*/

@media (min-width: 768px) {

    h1 {
        font-size: 3vw;
    }

    .data {
        font-size: 1.4vw;
    }

    .intro-text {
        font-size: 1.2vw;
    }

    .kaart {
        width: 40%;
    }

    /* LAYOUT — FIX VOOR STICKY */
    .trip-layout {
        max-width: 1100px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 2.5rem;
        padding: 0 2rem 6rem;

        align-items: start;   /* 🔧 FIX */
        overflow: visible;    /* 🔧 FIX */
    }

    /* SIDEBAR */
    .trip-sidebar {
        position: sticky;
        top: 100px;
        background: transparent;
        margin-bottom: 0;

        align-self: start;    /* 🔧 FIX */
    }

    .trip-nav-title {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #333;
    }

    /* Dropdown UIT */
    .trip-nav-toggle {
        display: none;
    }

    .trip-nav ul {
        display: block !important;
        border: none;
        background: transparent;
    }

    .trip-nav li {
        border: none;
        margin-bottom: 0.6rem;
    }

    .trip-nav a {
        padding: 0;
        font-size: 0.95rem;
    }

    /* CONTENT */
    .trip-content {
        max-width: 800px;
    }

    .trip-date {
        font-size: 0.9vw;
    }

    .trip-location,
    .trip-title {
        font-size: 2vw;
    }

    .trip-moment .trip-title {
        font-size: 2.2vw;
    }

    .trip-text {
        font-size: 1.1vw;
    }

    .photo-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* DESKTOP (1024px+)*/

@media (min-width: 1024px) {

    .trip-layout {
        grid-template-columns: 220px 1fr;
        gap: 3rem;
    }

    .trip-sidebar {
        top: 120px;
    }

    .trip-content {
        max-width: 900px;
    }

    .trip-location,
    .trip-title {
        font-size: 1.8vw;
    }

    .trip-text {
        font-size: 1.05vw;
    }

    .trip-moment .trip-title {
        font-size: 1.9vw;
    }

    .photo-row img {
        height: 260px;
    }
}
