/*
 * SWO Spijkenisse – activiteiten & uitstapjes.
 * De kaarten volgen de lijstweergave van de activiteitenpagina (page-activiteiten.css):
 * foto met kalenderblaadje, soortlabel in de categoriekleur, titel en metaregels met iconen.
 */

.agenda-block { --agenda-line: #E4DBD0; --agenda-icon: #6B6058; --agenda-ease: cubic-bezier(.2, .7, .2, 1); padding: 80px 0 40px 0; background-color: var(--swo-color-background-soft); background-image: var(--swo-motif); background-size: var(--swo-motif-size); background-position: var(--swo-motif-position); }
.agenda-block .swo-icon { display: block; flex: none; }
.agenda-block__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.agenda-block__card { display: flex; min-width: 0; flex-direction: column; padding: 30px; background: #FBF4EC; border: 1px solid #EADBCB; border-radius: 18px; box-shadow: none; }

.agenda-block__header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.agenda-block__icon { display: flex; width: 60px; height: 60px; flex: 0 0 60px; align-items: center; justify-content: center; color: #B55400; background: var(--swo-color-card); border-radius: 50%; }
.agenda-block__icon svg { display: block; width: 30px; height: 30px; }

.agenda-block__heading { min-width: 0; }
.agenda-block__title { margin: 0; color: #14233B; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.agenda-block__intro { margin: 6px 0 0; color: #586270; font-size: 18px; line-height: 1.5; }

/* ---------- Kaarten ---------- */
.agenda-block__items { display: grid; gap: 12px; }

.agenda-block__item { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr) 22px; align-items: center; gap: 0 16px; min-height: 140px; padding-right: 16px; overflow: hidden; background: var(--swo-color-card); border: 1px solid var(--agenda-line); border-radius: 14px; transition: border-color .25s ease, box-shadow .25s ease; }
.agenda-block__item:hover { border-color: #D3C6B7; box-shadow: 0 10px 26px rgba(70, 45, 20, .12); }
.agenda-block__item > .swo-icon { color: var(--agenda-icon); transition: color .2s ease, transform .2s ease; }
.agenda-block__item:hover > .swo-icon { color: var(--swo-color-primary-dark); transform: translateX(3px); }

/* Heldere foto zonder kleurfilter (feedback SWO, 15-10-2026), of zonder foto een rustig vlak in de kleur van de soort */
.agenda-block__media { position: relative; align-self: stretch; overflow: hidden; background: var(--swo-cat-tint, #F1ECE5); }
.agenda-block__image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Geen zoom op de foto bij aanwijzen (21-10-2026). */
.agenda-block__fallback { position: absolute; right: 12px; bottom: 12px; color: var(--swo-cat-ink); }
.agenda-block__fallback .swo-icon { width: 40px; height: 40px; stroke-width: 1.5; }

/* Kalenderblaadje */
.agenda-block__leaf { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; width: 62px; flex-direction: column; overflow: hidden; background: #FFFFFF; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, .22); line-height: 1; text-align: center; transition: transform .35s var(--agenda-ease); }
.agenda-block__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; }
.agenda-block__leaf.is-soon .agenda-block__leaf-top { padding-top: 6px; font-size: 12px; letter-spacing: 0; }
.agenda-block__leaf-day { padding-top: 6px; color: var(--swo-color-heading); font-size: 26px; font-weight: 800; }
.agenda-block__leaf-month { padding: 3px 0 8px; color: #3A3530; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.agenda-block__item:hover .agenda-block__leaf { transform: translateY(-2px); }

/* Tekst */
.agenda-block__body { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 16px 0; }
.agenda-block__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.agenda-block__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; }
.agenda-block__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%; }
/* Afwijkende status (ontwerp D, 21-10-2026): een kopregel over het hele kaartje en de rand in dezelfde kleur, net als
   op de activiteitenpagina (vol en geannuleerd vol van kleur, bijna vol en wachtlijst licht). Eén regel van 32 px,
   zodat het niveautabje er precies onder past. */
.agenda-block__item.has-stop { --agenda-stop: #A61B1B; --agenda-stop-bg: var(--agenda-stop); --agenda-stop-ink: #FFFFFF; grid-template-rows: 32px 1fr; border: 2px solid var(--agenda-stop); }
.agenda-block__item.has-stop--geannuleerd { --agenda-stop: #353535; }
.agenda-block__item.has-stop--bijna_vol { --agenda-stop: #C08A00; --agenda-stop-bg: #FFF2CC; --agenda-stop-ink: #5C4100; }
.agenda-block__item.has-stop--wachtlijst { --agenda-stop: #3D6AB0; --agenda-stop-bg: #E6EEF9; --agenda-stop-ink: #1F3F73; }
.agenda-block__item.has-stop:hover { border-color: var(--agenda-stop); }
.agenda-block__kop { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; height: 32px; box-sizing: border-box; margin: 0 -16px 0 0; padding: 0 14px; overflow: hidden; color: var(--agenda-stop-ink); background: var(--agenda-stop-bg); font-size: 15px; line-height: 1.2; white-space: nowrap; }
.agenda-block__kop .kami-icon { flex: none; width: 16px; height: 16px; stroke-width: 2.5; }
.agenda-block__kop strong { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.agenda-block__kop > span { overflow: hidden; text-overflow: ellipsis; }
.agenda-block__item.has-stop > .swo-level--corner { top: 32px; }

.agenda-block__item-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; overflow-wrap: break-word; }
.agenda-block__link { 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; }
.agenda-block__link::after { position: absolute; z-index: 3; inset: 0; content: ""; border-radius: 14px; }
.agenda-block__item:hover .agenda-block__link { color: var(--swo-color-primary-dark); text-decoration-color: currentColor; }
.agenda-block__link:focus-visible { outline: 0; }
.agenda-block__link:focus-visible::after { outline: 3px solid var(--swo-color-focus); outline-offset: -3px; }
.agenda-block__item.is-cancelled .agenda-block__link { text-decoration-line: line-through; text-decoration-color: currentColor; }

.agenda-block__meta { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; color: var(--swo-color-text); }
.agenda-block__meta li { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 16px; line-height: 1.45; }
.agenda-block__meta .swo-icon { width: 17px; height: 17px; margin-top: 3px; color: var(--agenda-icon); }
.agenda-block__meta strong { color: var(--swo-color-heading); font-weight: 700; }

.agenda-block__empty { margin: 0; padding: 26px; color: #56616F; background: var(--swo-color-card); border: 1px solid var(--agenda-line); border-radius: 14px; font-size: 18px; line-height: 1.55; }

/* Bekijk alle */
.agenda-block__footer { display: flex; margin-top: 18px; }
.agenda-block__more { display: inline-flex; min-height: 48px; align-items: center; gap: 10px; padding: 10px 2px; color: #B55400; font-size: 18px; line-height: 1.4; font-weight: 700; text-decoration: none; }
.agenda-block__more:hover { color: #8F4300; }
.agenda-block__more:focus-visible { outline: 3px solid var(--swo-color-focus); outline-offset: 4px; border-radius: 4px; }
.agenda-block__more-arrow { display: block; width: 22px; height: 22px; flex: 0 0 22px; transition: transform .2s ease; }
.agenda-block__more:hover .agenda-block__more-arrow { transform: translateX(5px); }

/* ---------- "Zo meldt u zich aan voor een uitstapje": brede balk onder beide kolommen (20-10-2026) ---------- */
.agenda-block__signup { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin-top: 32px; padding: 24px 28px; background: #FBF4EC; border: 1px solid #EADBCB; border-radius: 18px; }
.agenda-block__signup-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--swo-color-transport); background: #E1F1FA; border-radius: 50%; }
.agenda-block__signup-icon svg { display: block; width: 26px; height: 26px; }
.agenda-block__signup-body { min-width: 0; }
.agenda-block__signup-title { margin: 0 0 4px; color: var(--swo-color-heading); font-size: 22px; line-height: 1.3; }
.agenda-block__signup-text { max-width: 60ch; margin: 0; color: #394452; font-size: 18px; line-height: 1.6; }
.agenda-block__signup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.agenda-block__signup-actions .swo-krant-button { gap: 8px; min-height: 52px; padding: 10px 20px; white-space: nowrap; }
.agenda-block__signup-actions .swo-krant-button svg { display: block; flex: none; width: 20px; height: 20px; }

/* ---------- Twee kolommen: rijen op één lijn ----------
 * Beide kaarten delen de rijen van het raster (subgrid): kop, één rij per activiteit/uitstapje en de link.
 * Zo staat elk uitstapje precies naast een activiteit, ook als de ene kaart hoger is (20-10-2026). */
@media (min-width: 1001px) {
	@supports (grid-template-rows: subgrid) {
		.agenda-block__grid { grid-template-rows: auto repeat(var(--agenda-rijen, 5), auto) auto auto; row-gap: 0; }
		.agenda-block__card { display: grid; grid-row: 1 / -2; grid-template-rows: subgrid; row-gap: 12px; }
		.agenda-block__header { grid-row: 1; margin-bottom: 12px; }
		.agenda-block__items { grid-row: 2 / span var(--agenda-rijen, 5); grid-template-rows: subgrid; }
		.agenda-block__footer { grid-row: -2 / -1; margin-top: 6px; }
		.agenda-block__signup { grid-row: -2 / -1; }
	}
}

/* Smaller: de knoppen onder de tekst. */
@media (max-width: 1100px) {
	.agenda-block__signup { grid-template-columns: auto minmax(0, 1fr); }
	.agenda-block__signup-actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 560px) {
	.agenda-block__signup { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.agenda-block__signup-actions { grid-column: 1; }
	.agenda-block__signup-actions .swo-krant-button { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.agenda-block__grid { gap: 24px; }
	.agenda-block__card { padding: 24px; }
	.agenda-block__item { grid-template-columns: 116px minmax(0, 1fr) 20px; gap: 0 14px; padding-right: 14px; }
}

@media (max-width: 1000px) {
	.agenda-block { padding: 70px 0; }
	.agenda-block__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.agenda-block__card { padding: 28px; }
	.agenda-block__item { grid-template-columns: 150px minmax(0, 1fr) 22px; gap: 0 18px; padding-right: 18px; }
}

@media (max-width: 1000px) {
	.agenda-block__signup { margin-top: 0; }
}

@media (max-width: 700px) {
	.agenda-block { padding: 56px 0; }
	.agenda-block__grid { gap: 22px; }
	.agenda-block__card { padding: 20px; border-radius: 15px; }

	.agenda-block__header { gap: 14px; margin-bottom: 20px; }
	.agenda-block__icon { width: 54px; height: 54px; flex-basis: 54px; }
	.agenda-block__icon svg { width: 28px; height: 28px; }

	.agenda-block__title { font-size: 24px; }

	.agenda-block__item { grid-template-columns: 120px minmax(0, 1fr) 20px; gap: 0 14px; padding-right: 14px; }

	.agenda-block__footer { margin-top: 16px; }
}

@media (max-width: 560px) {
	.agenda-block { padding: 46px 0; }

	.agenda-block__card { padding: 16px; }
	.agenda-block__header { align-items: flex-start; }

	.agenda-block__icon { width: 50px; height: 50px; flex-basis: 50px; }
	.agenda-block__icon svg { width: 26px; height: 26px; }

	.agenda-block__title { font-size: 22px; }

	/* Te smal voor foto en tekst naast elkaar: de foto wordt een lage banner boven de tekst. */
	.agenda-block__item { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-right: 0; }
	.agenda-block__item > .swo-icon { display: none; }
	.agenda-block__media { min-height: 112px; }
	.agenda-block__leaf { top: 10px; left: 12px; width: 64px; } /* 64 px: "VANDAAG" past dan helemaal. */
	.agenda-block__leaf-day { font-size: 24px; }
	.agenda-block__fallback { right: 14px; bottom: 12px; }
	.agenda-block__fallback .swo-icon { width: 36px; height: 36px; }
	.agenda-block__body { padding: 14px 16px 16px; }

	.agenda-block__more { width: 100%; min-height: 50px; justify-content: space-between; }
}

@media (max-width: 420px) {
	.agenda-block__card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.agenda-block__item,
	.agenda-block__item > .swo-icon,
	.agenda-block__image,
	.agenda-block__leaf,
	.agenda-block__more-arrow { transition: none; }
	.agenda-block__item:hover .agenda-block__image,
	.agenda-block__item:hover .agenda-block__leaf,
	.agenda-block__item:hover > .swo-icon,
	.agenda-block__more:hover .agenda-block__more-arrow { transform: none; }
}

/* Achtergrond loopt door vanaf het dienstenblok erboven (zelfde motief), dus geen extra ruimte bovenaan; panelen in de kleur en rand van de SWO Krant-band (03-10). */
.agenda-block { padding-top: 8px; }

/* Kopregel: tot aan de rechterrand, ook waar het kaartje een andere binnenmarge heeft. */
@media (max-width: 1200px) {
	.agenda-block__kop { margin-right: -14px; }
}
@media (max-width: 1000px) {
	.agenda-block__kop { margin-right: -18px; }
}
@media (max-width: 700px) {
	.agenda-block__kop { margin-right: -14px; }
}
@media (max-width: 560px) {
	.agenda-block__kop { margin-right: 0; }
}
