/*
 * Blokken van de publieke site: datumblokken, volgende-tochtkaart, fotomozaïek, tijdlijn, galerij.
 * Wordt na site.css geladen. Zelfde palet: bosgroen #013A20, zand #ECD5BB, wit, #1E1514.
 */

/* ===== Kleurcode per afstand =====
   kort = zand, middel = middengroen, lang = bosgroen. Overal hetzelfde: datumblokken, chips, filters. */
.tone-kort { --tb: var(--s); --tf: var(--g); --tline: var(--g); }
.tone-middel { --tb: #2F6B45; --tf: #FFFFFF; --tline: #2F6B45; }
.tone-lang { --tb: var(--g); --tf: var(--s); --tline: var(--g); }

.dbadge {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 64px; height: 72px; background: var(--tb); color: var(--tf); border: 2px solid var(--tline);
    font-style: normal; line-height: 1; flex: none;
}
.dbadge b { font: 800 1.9rem/1 var(--serif); }
.dbadge i { font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.dbadge--large { width: 96px; height: 108px; }
.dbadge--large b { font-size: 2.9rem; }
.dbadge--large i { font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
    display: inline-block; background: var(--tb); color: var(--tf); border: 2px solid var(--tline);
    font-size: 12px; font-weight: 700; padding: 1px 8px; letter-spacing: .04em; min-width: 28px;
}
.chip--lg { font-size: 14px; padding: 3px 12px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 13px; color: var(--mute); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .chip { min-width: 34px; padding: 0 8px; }
.section--green .legend { color: var(--s); }
.section--green .legend .chip { border-color: var(--s); }

/* ===== Tochtenlijst ===== */
.trips { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--g); }
.trips li { border-bottom: 1px solid var(--line); }
.trip-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 120px; gap: 20px; align-items: center; padding: 16px 8px; color: inherit; text-decoration: none; }
.trip-row:hover { background: rgba(236, 213, 187, .4); color: inherit; }
.section--sand .trip-row:hover { background: rgba(255, 255, 255, .55); }
.trip-row__meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.trip-row__title { font: 800 1.5rem/1.15 var(--serif); color: var(--g); margin-top: 2px; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 700px) {
    h1.h1--long { font-size: clamp(1.3rem, 5.6vw, 2.2rem); }
    .trip-row__title { font-size: 1.05rem; }
}
@media (max-width: 420px) {
    .trip-row { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
    .trip-row .dbadge { width: 52px; height: 58px; }
    .trip-row .dbadge b { font-size: 1.5rem; }
    .trip-row__title { font-size: 1rem; }
}
@media (max-width: 340px) {
    .trip-row__title { font-size: .9rem; }
}
.trip-row__body, .after__text, .years__trips span, .related div { min-width: 0; overflow-wrap: anywhere; }
.trip-row__img { width: 120px; height: 90px; object-fit: cover; }
@media (max-width: 640px) {
    .trip-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
    .trip-row__img { display: none; }
    .trip-row__title { font-size: 1.2rem; }
}

/* ===== Home: volgende tocht als kaartje ===== */
.next { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ticket { display: grid; grid-template-columns: 160px minmax(0, 1fr); background: var(--s); color: var(--d); }
.ticket__stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px; border-right: 3px dashed var(--g); }
.ticket__time { font-weight: 700; color: var(--g); font-size: 14px; }
.ticket__body { padding: 28px; }
.ticket__body h2 { color: var(--g); margin-bottom: .3em; }
.ticket .eyebrow { color: var(--g); opacity: .75; margin-bottom: 8px; }
.ticket__facts { margin: 18px 0 22px; border-top: 2px solid var(--g); }
.ticket__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(1, 58, 32, .25); }
.ticket__facts dt { color: rgba(1, 58, 32, .75); }
.ticket__facts dd { margin: 0; font-weight: 700; color: var(--g); text-align: right; }
.ticket--empty .ticket__stub { background: rgba(1, 58, 32, .08); }
.dbadge--empty { background: transparent; color: var(--g); border: 2px dashed var(--g); }
.dbadge--empty i { letter-spacing: .08em; }
.ticket__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ticket__actions .btn { flex: 0 1 auto; }
.after h2 { margin-bottom: 14px; font-size: 1.6rem; }
.after__list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid rgba(236, 213, 187, .35); }
.after__list li { border-bottom: 1px solid rgba(236, 213, 187, .35); }
.after__list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.after__list .dbadge { width: 52px; height: 58px; border-color: var(--s); }
.after__list .dbadge b { font-size: 1.5rem; }
.after__text b { display: block; font: 800 1.15rem/1.2 var(--serif); color: var(--s); }
.after__text small { color: var(--s); opacity: .8; }
.after__list a:hover .after__text b { text-decoration: underline; }
@media (max-width: 900px) { .next { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
    .ticket { grid-template-columns: minmax(0, 1fr); }
    .ticket__stub { flex-direction: row; border-right: 0; border-bottom: 3px dashed var(--g); }
}

/* ===== Home: cijfers ===== */
.stats { padding-block: clamp(28px, 5vw, 48px); }
.stats__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats__row div { padding: 6px clamp(12px, 3vw, 36px); }
.stats__row div + div { border-left: 3px dashed var(--g); }
.stats__row b { display: block; font: 800 clamp(2.4rem, 7vw, 5rem)/1 var(--serif); color: var(--g); font-variant-numeric: tabular-nums; }
.stats__row span { color: var(--g); font-weight: 600; }
@media (max-width: 560px) {
    .stats__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .stats__row div + div { border-left: 0; border-top: 3px dashed var(--g); padding-top: 14px; }
}

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { margin: 0; }

/* ===== Home: fotomozaïek, een grote foto links en kleinere rechts ===== */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 16vw, 200px); gap: 12px; }
.mosaic__item { overflow: hidden; display: block; border: 3px solid var(--g); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item--1 { grid-column: 1 / span 7; grid-row: span 2; }
.mosaic__item--2 { grid-column: 8 / span 5; }
.mosaic__item--3 { grid-column: 8 / span 3; }
.mosaic__item--4 { grid-column: 11 / span 2; }
@media (max-width: 640px) {
    .mosaic__item--1 { grid-column: 1 / -1; grid-row: span 2; }
    .mosaic__item--2 { grid-column: 1 / span 6; }
    .mosaic__item--3 { grid-column: 7 / span 6; }
    .mosaic__item--4 { grid-column: 1 / -1; }
}

/* ===== Home: sinds, meelopen ===== */
.since__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.since__year { font: 800 clamp(5rem, 16vw, 11rem)/.85 var(--serif); color: var(--s); letter-spacing: -.03em; }
@media (max-width: 700px) { .since__row { grid-template-columns: minmax(0, 1fr); } }

.join { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 3px dashed var(--g); padding: clamp(24px, 4vw, 44px); }
.join h2 { margin-bottom: .3em; }
.join p { margin: 0; }

/* ===== Tocht: kop, gallerij, praktische gegevens ===== */
.tripHead__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; }
.tripHead h1 { margin-bottom: .25em; }
@media (max-width: 560px) { .tripHead__row { grid-template-columns: minmax(0, 1fr); } }
.viewer { margin: 0 0 12px; }
.viewer .hero-img { width: 100%; aspect-ratio: 3 / 2; max-height: 540px; object-fit: cover; margin: 0; border: 3px solid var(--g); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.thumbs button { padding: 0; border: 3px solid transparent; background: none; cursor: pointer; width: 88px; height: 66px; opacity: .65; }
.thumbs button[aria-current="true"] { border-color: var(--g); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer + .prose, .thumbs + .prose { margin-top: 24px; }

.pass { background: var(--s); border: 3px solid var(--g); margin-bottom: 36px; }
.pass__head { display: flex; justify-content: space-between; gap: 12px; background: var(--tb); color: var(--tf); padding: 10px 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pass__facts { margin: 0; padding: 6px 18px 12px; }
.pass__facts div { padding: 10px 0; border-bottom: 2px dashed rgba(1, 58, 32, .35); }
.pass__facts div:last-child { border-bottom: 0; }
.pass__facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(1, 58, 32, .75); font-weight: 700; }
.pass__facts dd { margin: 2px 0 0; font-weight: 600; color: var(--d); }
.pass .btn { display: block; margin: 8px 18px 18px; text-align: center; }
.tone-kort-ticket { --tb: var(--g); --tf: var(--s); }
.tone-middel-ticket { --tb: #2F6B45; --tf: #FFFFFF; }
.tone-lang-ticket { --tb: var(--g); --tf: var(--s); }

.related a { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--d); }
.related .dbadge { width: 48px; height: 54px; }
.related .dbadge b { font-size: 1.4rem; }
.related a:hover b { text-decoration: underline; }

/* ===== Historie ===== */
.hist-hero { background: var(--g); color: var(--s); padding-block: clamp(36px, 6vw, 72px); }
.hist-hero__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.hist-hero__year { font: 800 clamp(5rem, 16vw, 11rem)/.85 var(--serif); letter-spacing: -.03em; color: var(--s); }
.hist-hero h1 { color: var(--s); margin: 6px 0 0; }
.hist-hero .eyebrow { color: var(--s); opacity: .75; }
@media (max-width: 700px) { .hist-hero__row { grid-template-columns: minmax(0, 1fr); } }
.prose--cols { columns: 2 340px; column-gap: 48px; max-width: none; }
.prose--cols p { max-width: none; break-inside: avoid-column; }
.prose--cols p:first-child::first-letter { font: 800 4.2rem/.8 var(--serif); float: left; padding: 6px 10px 0 0; color: var(--g); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 44px; align-items: start; }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--g); }
.duo img + img { margin-top: 44px; }
@media (max-width: 640px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo img + img { margin-top: 0; } }
.years { list-style: none; margin: 24px 0 0; padding: 0; }
.years > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 3px solid var(--g); }
.years__year { font: 800 2.6rem/1 var(--serif); color: var(--g); }
.years__trips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.years__trips a { display: flex; align-items: center; gap: 12px; padding: 6px; text-decoration: none; color: var(--d); }
.years__trips a:hover { background: rgba(255, 255, 255, .6); }
.years__trips .dbadge { width: 52px; height: 58px; }
.years__trips .dbadge b { font-size: 1.5rem; }
.years__trips b { display: block; font: 800 1.1rem/1.2 var(--serif); color: var(--g); }
.years__trips small { color: var(--mute); }
@media (max-width: 560px) { .years > li { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ===== Galerij: filter en vergrote weergave ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { font: 700 13px/1.2 var(--sans); padding: 8px 12px; background: var(--tb, var(--w)); color: var(--tf, var(--g)); border: 2px solid var(--tline, var(--g)); cursor: pointer; }
.filter span { opacity: .75; margin-left: 4px; font-weight: 600; }
.filter:hover { outline: 3px solid var(--g); outline-offset: 1px; }
.filter.is-active { background: var(--d); color: var(--w); border-color: var(--d); }
.photos { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.photos li[hidden] { display: none; }
.photos a { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--s); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photos a:hover img, .photos a:focus-visible img { transform: scale(1.05); }
.photos__cap { position: absolute; left: 0; bottom: 0; background: var(--tb); color: var(--tf); font-size: 12px; font-weight: 700; padding: 4px 10px; letter-spacing: .04em; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; width: 1100px; color: var(--w); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 13, .92); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; color: var(--s); }
.lightbox figcaption a { color: var(--s); }
.lightbox__btn { position: absolute; background: var(--s); color: var(--g); border: 0; width: 48px; height: 48px; font: 800 1.5rem/1 var(--sans); cursor: pointer; }
.lightbox__btn:hover { background: var(--w); }
.lightbox__prev { left: 8px; top: 40%; }
.lightbox__next { right: 8px; top: 40%; }
.lightbox__close { right: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
    .mosaic__item img, .photos img { transition: none; }
}
