/*
 * Activiteitenpagina (archive-activiteit.php)
 * Lijstweergave = ontwerp 1 "Rustig overzicht", kalenderweergave = ontwerp 4 "Kies een dag" (oktober 2026).
 *
 * Huisregels uit de ontwerpbrief:
 * - Oranje alleen voor knoppen, actieve keuzes en het actieve menu-item.
 * - Categoriekleuren alleen voor herkenning, altijd samen met icoon en tekst.
 * - Belangrijke informatie minimaal 18px; secundaire informatie (labels, prijsregel) 15–17px.
 * - Het blok "Heeft u hulp nodig?" staat in de footer van elke pagina.
 */

/* ---------- Basis ---------- */
/*
 * Licht motief op de achtergrond (--swo-motif in main.css, ook gebruikt door het dienstenblok op de homepage).
 * Bewust heel licht: het mag de leesbaarheid niet raken.
 */
.swo-activiteiten { --swo-a-line: #E4DBD0; --swo-a-input: #6E6862; --swo-a-chip: #9C8F82; --swo-a-body: #3A3530; --swo-a-muted: #5A544E; --swo-a-icon: #6B6058; --swo-a-ease: cubic-bezier(.2, .7, .2, 1); color: var(--swo-color-text); background-color: var(--swo-color-background-soft); background-image: var(--swo-motif); background-size: var(--swo-motif-size); background-position: var(--swo-motif-position); }
.swo-activiteiten [hidden] { display: none !important; }
.swo-activiteiten__shell { width: 100%; max-width: var(--swo-content-width); margin: 0 auto; padding: 28px 24px 80px; }
.swo-activiteiten .swo-icon { display: block; flex: none; }
.swo-activiteiten h2, .swo-activiteiten h3 { color: var(--swo-color-heading); }

/* ---------- Kop ---------- */
.swo-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; color: var(--swo-a-muted); font-size: 16px; line-height: 1.5; }
.swo-crumbs a { color: var(--swo-a-muted); text-decoration: underline; text-underline-offset: 3px; }
.swo-crumbs a:hover { color: var(--swo-color-heading); }
.swo-activiteiten__title { margin: 8px 0 0; font-size: clamp(38px, 4vw, 52px); line-height: 1.1; font-weight: 800; }
.swo-activiteiten__intro { max-width: 760px; margin: 10px 0 0; color: var(--swo-a-body); font-size: 19px; line-height: 1.55; }

/* ---------- Knoppen ---------- */
.swo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; color: var(--swo-color-heading); background: var(--swo-color-primary); border: 2px solid var(--swo-color-primary); border-radius: 10px; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.swo-btn:hover { color: var(--swo-color-heading); background: var(--swo-color-primary-hover); border-color: var(--swo-color-primary-hover); text-decoration: none; }
.swo-btn .swo-icon { transition: transform .2s ease; }
.swo-btn:hover .swo-icon:last-child { transform: translateX(3px); }
.swo-btn--outline { background: var(--swo-color-card); border-color: var(--swo-color-primary-dark); }
.swo-btn--outline:hover { background: #FDF1E4; border-color: var(--swo-color-primary-dark); }

/* ---------- Filters ---------- */
/* Compact: op een breed scherm één rij velden met de labels erboven, dus twee regels (feedback SWO, 15-10-2026). */
.swo-filters { margin: 22px 0 0; padding: 18px 22px 20px; background: var(--swo-color-card); border: 1px solid var(--swo-a-line); border-radius: 16px; box-shadow: 0 2px 10px rgba(70, 45, 20, .05); }
.swo-filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.swo-field { flex: 1 1 150px; min-width: 0; }
.swo-field--search { flex: 2 1 230px; }
.swo-field--niveau { flex-basis: 190px; }
.swo-field__label { display: block; margin: 0 0 6px; white-space: nowrap; color: var(--swo-color-heading); font-size: 18px; font-weight: 700; line-height: 1.4; }
.swo-field__input, .swo-field__select { width: 100%; min-height: 52px; padding: 10px 14px; color: var(--swo-color-heading); background: #FEFCF9; border: 2px solid var(--swo-a-input); border-radius: 10px; font-family: inherit; font-size: 18px; line-height: 1.4; transition: border-color .2s ease; }
.swo-field__select { padding-right: 42px; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; }
.swo-field__select-wrap { position: relative; }
.swo-field__select-wrap .swo-icon { position: absolute; top: 50%; right: 14px; color: var(--swo-color-heading); pointer-events: none; transform: translateY(-50%); }
.swo-field__input:hover, .swo-field__select:hover { border-color: var(--swo-color-heading); }
.swo-field__input:focus-visible, .swo-field__select:focus-visible { border-color: var(--swo-color-focus); outline: 3px solid var(--swo-color-focus); outline-offset: 2px; }
.swo-field__input::placeholder { color: #6B6560; opacity: 1; }
.swo-filters__submit { flex: 0 0 auto; min-height: 52px; padding: 10px 24px; }


/* ---------- Resultaten ---------- */
/* Geen laadscherm: de huidige resultaten blijven staan en worden alleen iets lichter als het laden even duurt. */
.swo-results { position: relative; min-height: 120px; transition: opacity .25s ease; }
.swo-results.is-loading { opacity: .6; transition-delay: .2s; }

.swo-results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 26px 0 0; }
.swo-results-head__title { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 800; }
.swo-results-head__title:focus:not(:focus-visible) { outline: none; }
.swo-results-head__context { margin: 2px 0 0; color: var(--swo-a-muted); font-size: 16px; line-height: 1.5; }

.swo-viewswitch { display: flex; padding: 4px; background: #EDE6DE; border: 1px solid #D5CCC2; border-radius: 12px; }
.swo-viewswitch__item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 18px; color: var(--swo-color-heading); border-radius: 9px; font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .2s ease; }
.swo-viewswitch__item:hover { color: var(--swo-color-heading); background: var(--swo-color-card); text-decoration: none; }
.swo-viewswitch__item.is-active { background: var(--swo-color-primary); }
.swo-viewswitch__item.is-active:hover { background: var(--swo-color-primary-hover); }
/* Schuivend oranje vlak: bij een klik schuift het naar de gekozen weergave, daarna laadt die (activiteiten-calendar.js). */
@supports selector(:has(*)) {
	.swo-viewswitch { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
	.swo-viewswitch::before { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); content: ""; background: var(--swo-color-primary); border-radius: 9px; box-shadow: 0 2px 6px rgba(70, 45, 20, .14); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .2s ease; }
	.swo-viewswitch:has(.swo-viewswitch__item:last-child.is-active)::before { transform: translateX(100%); }
	.swo-viewswitch:has(.swo-viewswitch__item.is-active:hover)::before { background: var(--swo-color-primary-hover); }
	.swo-viewswitch__item { position: relative; z-index: 1; }
	.swo-viewswitch__item.is-active, .swo-viewswitch__item.is-active:hover { background: transparent; }
}

.swo-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 0; }
.swo-selection__label { color: var(--swo-a-body); font-size: 16px; font-weight: 700; }
.swo-selection__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 16px; color: var(--swo-color-heading); background: var(--swo-color-card); border: 2px solid var(--swo-a-chip); border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.swo-selection__chip:hover { color: var(--swo-color-heading); border-color: var(--swo-color-heading); text-decoration: none; }
.swo-selection__clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--swo-color-primary-dark); font-size: 16px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.swo-selection__clear:hover { color: var(--swo-color-heading); }

/* ---------- Labels ---------- */
.swo-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.swo-cat { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 4px; color: var(--swo-cat-text); background: var(--swo-cat-tint); border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.swo-cat__icon { display: inline-flex; flex: none; width: 26px; height: 26px; align-items: center; justify-content: center; color: var(--swo-cat-ink); background: var(--swo-color-card); border-radius: 50%; }
.swo-badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: 16px; font-weight: 800; line-height: 1.4; }
.swo-badge--today { color: #5A2800; background: #FDE3C8; }
.swo-badge--free { color: #2B2B2B; background: #F1ECE5; font-weight: 700; }
.swo-badge--bijna_vol { color: #6A4900; background: #FFF4CF; }
/* Vol (21-10-2026): een volle rode badge met icoon, een balk onderop de foto en een regel in de kaart (wit op #A61B1B: 7,5:1). */
.swo-badge--vol { gap: 6px; color: #FFFFFF; background: #A61B1B; }
.swo-badge--vol .kami-icon { flex: none; width: 16px; height: 16px; stroke-width: 2.5; }
.swo-badge--wachtlijst { color: #264E86; background: #E9F0FA; }
/* Geannuleerd: donkergrijs met een doorgestreepte kalender, zodat het niet met "Vol" (rood) te verwarren is (wit op #353535: 12:1). */
.swo-badge--geannuleerd { gap: 6px; color: #FFFFFF; background: #353535; }
.swo-badge--geannuleerd .kami-icon { flex: none; width: 16px; height: 16px; stroke-width: 2.5; }
.swo-labels .swo-mobility--small { min-height: 0; padding: 3px 12px 3px 6px; }

/* ---------- Foto (helder, zonder kleurfilter: feedback SWO 15-10-2026) of rustig vlak zonder foto ---------- */
.swo-card__media { position: relative; display: block; overflow: hidden; background: var(--swo-cat-tint, #F1ECE5); }
.swo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.swo-media-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--swo-cat-ink); background: var(--swo-cat-tint); text-align: center; }
/* Lijstkaart zonder foto: kalenderblaadje linksboven, groot categorie-icoon rechtsonder (de naam staat al in het label ernaast). */
.swo-card__media .swo-media-fallback { padding: 0; }
.swo-card__media .swo-media-fallback .swo-icon { position: absolute; right: 18px; bottom: 16px; width: 80px; height: 80px; stroke-width: 1.3; }
.swo-card__media .swo-media-fallback__label { display: none; }

/* Kalenderblaadje op de foto: weekdag (of vandaag/morgen) in de categoriekleur, grote dag, maand. */
.swo-date-leaf { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: stretch; width: 70px; overflow: hidden; background: #FFFFFF; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, .22); text-align: center; line-height: 1; transition: transform .35s var(--swo-a-ease); }
.swo-date-leaf__top { padding: 5px 4px 4px; color: #FFFFFF; background: var(--swo-cat-ink); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.swo-date-leaf.is-soon .swo-date-leaf__top { padding-top: 6px; font-size: 12px; letter-spacing: 0; }
.swo-date-leaf__day { padding-top: 6px; color: var(--swo-color-heading); font-size: 28px; font-weight: 800; }
.swo-date-leaf__month { padding: 3px 0 8px; color: #3A3530; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.swo-card:hover .swo-date-leaf { transform: translateY(-2px); }
.swo-media-fallback .swo-icon { width: 52px; height: 52px; stroke-width: 1.4; transition: transform .35s var(--swo-a-ease); }
.swo-media-fallback__label { color: var(--swo-cat-text); font-size: 15px; font-weight: 700; line-height: 1.3; }

/* ---------- Lijst: brede, compacte kaarten ---------- */
/* De volgorde van de kaarten zet het script met "order"; "Laad meer" en de lege staat blijven onderaan.
   De lijst en de dag in de kalender zijn "containers": de kaarten passen zich aan de beschikbare ruimte aan. */
.swo-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 0; container-type: inline-size; }
.swo-list > .swo-loadmore { order: 100000; }
.swo-list > .swo-empty { order: 100001; }
/* De hele kaart is klikbaar: het klikvlak van de titellink (::after) beslaat de kaart. */
.swo-card { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; grid-template-areas: "media body arrow"; overflow: hidden; background: var(--swo-color-card); border: 1px solid var(--swo-a-line); border-radius: 16px; cursor: pointer; transition: box-shadow .25s ease, border-color .25s ease; }
.swo-card:hover { border-color: #D3C6B7; box-shadow: 0 10px 26px rgba(70, 45, 20, .12); }
.swo-card__link::after { position: absolute; z-index: 3; inset: 0; content: ""; border-radius: 16px; }
.swo-card__link:focus-visible { outline: none; }
.swo-card__link:focus-visible::after { outline: 3px solid var(--swo-color-focus); outline-offset: -3px; }
.swo-card:hover .swo-card__title a, .swo-card__link:focus-visible { color: var(--swo-color-primary-dark); text-decoration-color: currentColor; }
.swo-card__arrow { grid-area: arrow; display: flex; align-items: center; padding: 0 26px 0 12px; color: var(--swo-color-primary-dark); transition: transform .25s var(--swo-a-ease); }
.swo-card:hover .swo-card__arrow { transform: translateX(5px); }
/* Geen zoom op de foto of het icoon bij aanwijzen (21-10-2026): de pijl en de titel laten al zien dat de kaart klikbaar is. */
.swo-card__media { grid-area: media; min-height: 160px; }
.swo-card__body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 8px 18px 24px; }
.swo-card__title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.swo-card__title a { color: var(--swo-color-heading); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.swo-card__title a:hover { color: var(--swo-color-primary-dark); text-decoration-color: currentColor; }
.swo-card__desc { margin: 0; color: var(--swo-a-body); font-size: 17px; line-height: 1.45; }
.swo-meta { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--swo-color-text); font-size: 18px; line-height: 1.5; }
.swo-meta--row { flex-direction: row; flex-wrap: wrap; gap: 2px 28px; }
.swo-meta li { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 18px; }
.swo-meta .swo-icon { margin-top: 3px; color: var(--swo-a-icon); }
.swo-meta__date { flex-basis: 100%; }
.swo-meta .swo-meta__date .swo-icon { color: var(--swo-color-heading); }
.swo-card__note { margin: 2px 0 0; color: var(--swo-a-muted); font-size: 16px; line-height: 1.45; }
/* Afwijkende status (ontwerp D, 21-10-2026): een kopregel over de hele kaart en de rand in dezelfde kleur, zoals
   "Rijdt niet" in de NS-reisplanner. Vol en geannuleerd in volle kleur (aanmelden kan niet: wit op #A61B1B 7,5:1,
   op #353535 12:1); bijna vol en wachtlijst licht (alleen aandacht: donkere tekst op een lichte tint, 8:1 en hoger). */
.swo-card.has-stop { --swo-stop: #A61B1B; --swo-stop-bg: var(--swo-stop); --swo-stop-ink: #FFFFFF; grid-template-rows: auto 1fr; grid-template-areas: "kop kop kop" "media body arrow"; border: 2px solid var(--swo-stop); }
.swo-card.has-stop--geannuleerd { --swo-stop: #353535; }
.swo-card.has-stop--bijna_vol { --swo-stop: #C08A00; --swo-stop-bg: #FFF2CC; --swo-stop-ink: #5C4100; }
.swo-card.has-stop--wachtlijst { --swo-stop: #3D6AB0; --swo-stop-bg: #E6EEF9; --swo-stop-ink: #1F3F73; }
.swo-card.has-stop:hover { border-color: var(--swo-stop); }
.swo-card__kop { grid-area: kop; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; padding: 9px 20px; color: var(--swo-stop-ink); background: var(--swo-stop-bg); font-size: 17px; line-height: 1.35; }
.swo-card__kop .kami-icon { flex: none; width: 20px; height: 20px; stroke-width: 2.5; }
.swo-card__kop strong { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
/* Het niveautabje staat anders in de bovenhoek van de kaart; met een kopregel direct daaronder. */
.swo-card.has-stop > .swo-level--corner { position: relative; grid-row: 2; grid-column: 2 / -1; justify-self: end; align-self: start; }
.swo-card.is-cancelled .swo-card__title a { text-decoration-line: line-through; text-decoration-color: currentColor; }

/* ---------- Lijst: "Laad meer" en lege staat ---------- */
.swo-loadmore { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 0; text-align: center; }
.swo-loadmore__button { min-width: 300px; min-height: 56px; margin-top: 4px; padding: 12px 28px; }
.swo-loadmore__button:hover .swo-icon:last-child { transform: translateY(3px); }
.swo-loadmore__button.is-busy { cursor: progress; }
.swo-loadmore__button.is-busy .swo-icon { animation: swo-nudge .9s ease-in-out infinite; }
.swo-card.swo-appear { animation: swo-enter .5s var(--swo-a-ease) both; animation-delay: calc(var(--swo-i, 0) * 60ms); }

.swo-empty { padding: 28px; background: var(--swo-color-card); border: 1px solid var(--swo-a-line); border-radius: 16px; }
.swo-empty__title { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 800; }
.swo-empty__text { margin: 8px 0 0; color: var(--swo-a-body); font-size: 18px; line-height: 1.55; }
.swo-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.swo-empty--day { margin-top: 18px; }

/* ---------- Kalender: indeling ---------- */
.swo-cal { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-areas: "maand dag"; align-items: start; gap: 20px 32px; margin: 20px 0 0; }
.swo-cal > .swo-month { grid-area: maand; }
.swo-cal__main { grid-area: dag; min-width: 0; }

/* ---------- Kalender: maand ---------- */
.swo-month { overflow: hidden; padding: 22px; background: var(--swo-color-card); border: 1px solid var(--swo-a-line); border-radius: 18px; }
.swo-month__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swo-month__title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; text-align: center; }
.swo-month__nav { display: inline-flex; flex: none; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--swo-color-heading); background: var(--swo-color-card); border: 2px solid var(--swo-a-chip); border-radius: 12px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.swo-month__nav:hover { color: var(--swo-color-heading); border-color: var(--swo-color-heading); }
.swo-month__nav:active { transform: scale(.94); }
.swo-month__quick { display: flex; justify-content: center; margin: 14px 0 0; }
.swo-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; color: var(--swo-color-heading); background: var(--swo-color-card); border: 2px solid var(--swo-color-primary-dark); border-radius: 999px; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.swo-pill:hover { color: var(--swo-color-heading); background: #FDF1E4; text-decoration: none; }
.swo-month__weekdays, .swo-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.swo-month__weekdays { margin: 18px 0 0; color: #4A4540; font-size: 16px; font-weight: 800; line-height: 1.4; text-align: center; }
.swo-month__grid { margin: 8px 0 0; }
.swo-month__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 56px; color: #6B6560; border: 2px solid transparent; border-radius: 12px; font-size: 19px; font-weight: 500; line-height: 1; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .15s ease; }
.swo-month__day:hover { color: var(--swo-color-heading); border-color: var(--swo-color-heading); text-decoration: none; }
.swo-month__day:active { transform: scale(.94); }
.swo-month__day.is-busy { color: var(--swo-color-heading); background: #F6F2EC; border-color: #DDD3C8; font-weight: 800; }
.swo-month__day.is-busy:hover { border-color: var(--swo-color-heading); }
.swo-month__day.is-today .swo-month__num { padding-bottom: 2px; border-bottom: 3px solid currentColor; }
.swo-month__day.is-selected, .swo-month__day.is-selected:hover { color: var(--swo-color-heading); background: var(--swo-color-primary); border-color: var(--swo-color-primary-dark); font-weight: 800; }
.swo-month__dots { display: flex; gap: 3px; }
.swo-month__dots span { width: 6px; height: 6px; background: #2B2B2B; border-radius: 50%; }
.swo-month__day.is-selected .swo-month__dots span { background: var(--swo-color-heading); }
.swo-month__legend { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: #4A4540; font-size: 16px; line-height: 1.45; }
.swo-month__legend::before { flex: none; width: 8px; height: 8px; content: ""; background: #2B2B2B; border-radius: 50%; }

/* ---------- Kalender: gekozen dag ---------- */
.swo-day__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.swo-day__title { margin: 0; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.2; font-weight: 800; scroll-margin-top: 24px; }
.swo-day__count { margin: 0; color: #4A4540; font-size: 18px; font-weight: 700; }
.swo-day__list { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 0; container-type: inline-size; }
.swo-day__subtitle { margin: 32px 0 0; font-size: 24px; line-height: 1.25; font-weight: 800; }

.swo-more > summary { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; color: var(--swo-color-heading); background: var(--swo-color-card); border: 2px solid var(--swo-color-primary-dark); border-radius: 10px; font-size: 18px; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.swo-more > summary::-webkit-details-marker { display: none; }
.swo-more > summary:hover { background: #FDF1E4; }
.swo-more[open] > summary { margin-bottom: 14px; }
.swo-more[open] .swo-more__list { animation: swo-enter .4s var(--swo-a-ease) both; }
.swo-more__list { display: flex; flex-direction: column; gap: 14px; }

.swo-next { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.swo-next li { margin: 0; }
.swo-next__item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-height: 76px; padding: 14px 20px; color: var(--swo-color-heading); background: var(--swo-color-card); border: 1px solid var(--swo-a-line); border-radius: 14px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.swo-next__item:hover { color: var(--swo-color-heading); border-color: var(--swo-color-heading); text-decoration: none; transform: translateX(3px); }
.swo-next__when { flex: 0 0 130px; display: flex; flex-direction: column; font-size: 18px; font-weight: 800; line-height: 1.35; }
.swo-next__time { color: #4A4540; font-weight: 600; }
.swo-next__what { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.swo-next__title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.swo-next__badge { align-self: flex-start; gap: 6px; margin: 2px 0; padding: 1px 10px; font-size: 15px; }
.swo-next__badge .kami-icon { width: 15px; height: 15px; }
.swo-next__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--swo-a-body); font-size: 16px; line-height: 1.45; }
.swo-next__dot { flex: none; width: 12px; height: 12px; background: var(--swo-cat-ink); border-radius: 50%; }
.swo-next__arrow { color: var(--swo-color-primary-dark); }

/* ---------- Animaties bij het verversen ---------- */
@keyframes swo-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes swo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes swo-from-next { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes swo-from-prev { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes swo-pop { 0% { transform: scale(.86); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes swo-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.swo-results.is-entering .swo-results-head__title,
.swo-results.is-entering .swo-results-head__context,
.swo-results.is-entering .swo-selection { animation: swo-fade-in .35s ease both; }
.swo-results.is-entering .swo-anim { animation: swo-enter .5s var(--swo-a-ease) both; animation-delay: calc(var(--swo-i, 0) * 55ms); }
.swo-results.is-entering .is-from-next { animation: swo-from-next .4s var(--swo-a-ease) both; }
.swo-results.is-entering .is-from-prev { animation: swo-from-prev .4s var(--swo-a-ease) both; }
.swo-results.is-entering .swo-month__day.is-selected { animation: swo-pop .4s var(--swo-a-ease) both; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.swo-cal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "maand" "dag"; }
	.swo-cal > .swo-month { width: 100%; max-width: 560px; }
}

@media (max-width: 900px) {
	.swo-card { grid-template-columns: 170px minmax(0, 1fr) auto; }
	.swo-card__body { padding: 18px 4px 18px 22px; }
	.swo-card__arrow { padding: 0 18px 0 8px; }
}

/* Kaarten op basis van de beschikbare ruimte, zodat ze naast de kalender net zo netjes staan als in de lijst.
   (De mediaqueries hierboven en hieronder blijven als terugval voor oudere browsers.) */
@container (max-width: 860px) {
	.swo-card { grid-template-columns: 170px minmax(0, 1fr) auto; }
	.swo-card__body { padding: 18px 4px 18px 22px; }
	.swo-card__arrow { padding: 0 18px 0 8px; }
}

@container (max-width: 560px) {
	.swo-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body"; }
	.swo-card__media { min-height: 180px; }
	.swo-card__body { padding: 16px 18px 18px; }
	.swo-card__title { font-size: 22px; }
	.swo-meta--row { flex-direction: column; }
	.swo-meta__date { flex-basis: auto; }
	.swo-card__arrow { display: none; }
}

/* Middelbreed: twee nette rijen (zoeken + categorie + knop, daaronder de andere keuzes) in plaats van een losse staart. */
@media (min-width: 621px) and (max-width: 1179px) {
	.swo-filters__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
	.swo-field__label { white-space: normal; }
	.swo-field--search { grid-column: span 2; }
	.swo-filters__submit { grid-column: 4; grid-row: 1; }
}

@media (max-width: 820px) {
	.swo-activiteiten__shell { padding: 32px 20px 64px; }
	.swo-activiteiten__intro { font-size: 19px; }
	.swo-filters { padding: 20px; }
}

/* ---------- Mobiel ---------- */
@media (max-width: 620px) {
	.swo-activiteiten__shell { padding: 24px 16px 56px; }
	.swo-activiteiten__intro { font-size: 18px; }

	.swo-filters { margin-top: 22px; padding: 16px; border-radius: 14px; }
	.swo-filters__row { gap: 12px; }
	.swo-field, .swo-field--search { flex-basis: 100%; }

	.swo-results-head { flex-direction: column; align-items: stretch; margin-top: 28px; }
	.swo-results-head__title { font-size: 24px; }
	.swo-viewswitch__item { flex: 1 1 0; }

	.swo-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body"; }
	.swo-card__media { min-height: 180px; }
	.swo-card__body { padding: 16px 18px 18px; }
	.swo-card__title { font-size: 22px; }
	.swo-meta--row { flex-direction: column; }
	.swo-meta__date { flex-basis: auto; }
	.swo-card__arrow { display: none; }
	.swo-loadmore__button { width: 100%; min-width: 0; }
	.swo-empty { padding: 20px; }
	.swo-empty__actions .swo-btn { width: 100%; }

	.swo-month { padding: 16px; }
	.swo-month__weekdays, .swo-month__grid { gap: 4px; }
	.swo-month__day { height: 50px; font-size: 18px; border-radius: 10px; }

	.swo-next__item { padding: 14px 16px; }
	.swo-next__when { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 0 10px; }
	.swo-next__arrow { display: none; }
}

@media (max-width: 420px) {
	.swo-activiteiten__shell { padding-right: 14px; padding-left: 14px; }
	.swo-month__day { height: 46px; }
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
	.swo-viewswitch::before, .swo-results, .swo-btn, .swo-btn .swo-icon, .swo-cat-chip, .swo-viewswitch__item, .swo-card, .swo-month__day, .swo-month__nav, .swo-next__item, .swo-field__input, .swo-field__select, .swo-card__media img, .swo-media-fallback .swo-icon, .has-image::before, .has-image::after, .swo-date-leaf { transition: none; }
	.swo-card:hover .swo-date-leaf, .swo-card:hover .swo-card__arrow { transform: none; }
	.swo-cat-chip:hover, .swo-next__item:hover, .swo-month__day:active, .swo-month__nav:active, .swo-btn:hover .swo-icon:last-child { transform: none; }
	.swo-card:hover .swo-card__media img, .swo-card:hover .swo-media-fallback .swo-icon { transform: none; }
	.swo-results.is-entering *, .swo-cat-chip.is-popping, .swo-more[open] .swo-more__list, .swo-card.swo-appear, .swo-loadmore__button.is-busy .swo-icon { animation: none !important; }
}

/* ---------- Hoog contrast ---------- */
@media (forced-colors: active) {
	.swo-filters, .swo-card, .swo-month, .swo-empty, .swo-next__item { border: 2px solid CanvasText; }
	.swo-btn, .swo-cat-chip, .swo-viewswitch__item, .swo-month__nav, .swo-pill, .swo-selection__chip { color: ButtonText; background: ButtonFace; border: 2px solid ButtonText; }
	.swo-btn--outline { border-color: ButtonText; }
	.swo-cat-chip.is-active, .swo-viewswitch__item.is-active, .swo-month__day.is-selected { color: HighlightText; background: Highlight; border-color: Highlight; forced-color-adjust: none; }
	.swo-month__day.is-busy { border-color: CanvasText; }
	.swo-month__dots span, .swo-month__legend::before, .swo-next__dot { background: CanvasText; forced-color-adjust: none; }
	.has-image::before, .has-image::after { display: none; }
	.swo-date-leaf { border: 2px solid CanvasText; }
	.swo-cat, .swo-badge { border: 1px solid CanvasText; }
}

@media (forced-colors: active) {
	.swo-card__kop { border-bottom: 1px solid CanvasText; }
}

/* Kopregel op een smalle kaart (foto boven de tekst): kopregel, foto, tekst; het niveautabje rechtsboven op de foto. */
@container (max-width: 560px) {
	.swo-card.has-stop { grid-template-rows: auto auto 1fr; grid-template-areas: "kop" "media" "body"; }
	.swo-card.has-stop > .swo-level--corner { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
	.swo-card.has-stop { grid-template-rows: auto auto 1fr; grid-template-areas: "kop" "media" "body"; }
	.swo-card.has-stop > .swo-level--corner { grid-column: 1 / -1; }
	.swo-card__kop { padding: 9px 16px; font-size: 16px; }
}
