/*
 * Evenementen voor Flatsome — v1.6.1
 * Stijlen voor overzichtskaarten (grid/lijst) en detailpagina.
 * Kleuren volgen het Flatsome thema; hardcoded waarden zijn alleen
 * fallbacks die Flatsome zelf ook als standaard gebruikt.
 */

/* ══════════════════════════════════════════════════════════════════
   LETTERTYPE — erft altijd van het Flatsome thema
   Geen font-family instellen op plugin-elementen; alles erft via
   de cascade van body → thema → plugin.
   ══════════════════════════════════════════════════════════════════ */

.evt-card, .evt-card *,
.evt-list-item, .evt-list-item *,
.evt-detail__content, .evt-detail__content *,
.evt-kalender, .evt-kalender *,
.evt-jk, .evt-jk * {
    font-family: inherit;
}

/* ══════════════════════════════════════════════════════════════════
   GRID — flexbox wrapper voor gelijke kaardhoogte
   ══════════════════════════════════════════════════════════════════ */

.evt-grid-row {
	display: flex !important;
	flex-wrap: wrap;
}

.evt-grid-col {
	display: flex;
	flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════════
   KAART (grid & lijst)
   ══════════════════════════════════════════════════════════════════ */

.evt-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.evt-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}

/* ── Thumbnail ─────────────────────────────────────────────────── */

.evt-card__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f5f5f5;
}

.evt-card__thumb .evt-card__img,
.evt-list-item__thumb .evt-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.evt-card:hover .evt-card__thumb .evt-card__img,
.evt-list-item:hover .evt-card__img {
	transform: scale(1.03);
}

/* ── Status badge ──────────────────────────────────────────────── */

.evt-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 2px;
	line-height: 1.5;
	z-index: 2;
}

.evt-badge--definitief {
	background-color: #1e85be;
	color: #fff;
}

.evt-badge--concept {
	background-color: #f0a500;
	color: #fff;
}

/* Grote badge voor detailpagina */
.evt-badge--large {
	font-size: 13px;
	padding: 5px 14px;
}

/* Inline badge (geen thumbnail) */
.evt-card__badge-inline {
	padding: 12px 14px 0;
}

.evt-card__badge-inline .evt-badge {
	position: static;
	display: inline-block;
}

/* ── Kaartbody ─────────────────────────────────────────────────── */

.evt-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

/* ── Datum ─────────────────────────────────────────────────────── */

.evt-card__datum {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #1e85be;
	margin: 0;
	line-height: 1;
}

.evt-icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	color: currentColor;
	vertical-align: middle;
}

/* ── Titel ─────────────────────────────────────────────────────── */

.evt-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: #333;
}

.evt-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}

.evt-card__title a:hover {
	color: #1e85be;
}

/* ── Excerpt ───────────────────────────────────────────────────── */

.evt-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #777;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Actieknoppen in kaart ─────────────────────────────────────── */

.evt-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

/* Knoppen volgen Flatsome thema-kleur via .button — geen override */
.evt-card__btn,
.evt-card__btn--ext {
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   LIJST LAYOUT
   ══════════════════════════════════════════════════════════════════ */

.evt-list {
	display: flex;
	flex-direction: column;
}

.evt-list-item {
	padding: 20px 0;
	border-bottom: 1px solid #e8e8e8;
}

.evt-list-item:first-child {
	border-top: 1px solid #e8e8e8;
}

.evt-list-item__thumb {
	position: relative;
	overflow: hidden;
	border-radius: 3px;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
}

.evt-list-item__thumb .evt-card__img {
	transition: transform 0.4s ease;
}

.evt-list-item__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 4px;
}

.evt-list-item__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Badge in lijst is inline, niet absoluut */
.evt-list-item__meta .evt-badge {
	position: static;
	display: inline-block;
	bottom: auto;
	left: auto;
}

.evt-list-item .evt-card__title {
	font-size: 18px;
}

/* ══════════════════════════════════════════════════════════════════
   DETAILPAGINA
   ══════════════════════════════════════════════════════════════════ */

/* ── Flyer / uitgelichte afbeelding ───────────────────────────── */

.evt-detail__flyer {
	position: relative;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 24px;
}

.evt-detail__flyer-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}

.evt-detail__flyer .evt-badge {
	position: absolute;
	bottom: 14px;
	left: 14px;
}

/* ── Datum visueel blok ────────────────────────────────────────── */

.evt-detail__datumblok {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f5f5f5;
	border-left: 4px solid #1e85be;
	border-radius: 0 3px 3px 0;
	padding: 10px 16px;
	margin-bottom: 20px;
}

.evt-detail__datum-start {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex-wrap: wrap;
}

.evt-detail__dag {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: #1e85be;
}

.evt-detail__mnd {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
}

.evt-detail__jaar {
	font-size: 13px;
	color: #888;
	font-weight: 400;
}

.evt-detail__datum-sep {
	color: #bbb;
	font-size: 20px;
	line-height: 1;
}

/* ── Titel ─────────────────────────────────────────────────────── */

.evt-detail__title {
	font-size: clamp( 22px, 3vw, 32px );
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 4px;
	color: #333;
}

/* ── Meta tabel ────────────────────────────────────────────────── */

.evt-detail__meta-tabel {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.evt-detail__meta-tabel th,
.evt-detail__meta-tabel td {
	padding: 9px 12px;
	font-size: 14px;
	border-bottom: 1px solid #ebebeb;
	vertical-align: middle;
	text-align: left;
}

.evt-detail__meta-tabel th {
	width: 38%;
	font-weight: 700;
	color: #555;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
}

.evt-detail__meta-tabel th .evt-icon {
	width: 15px;
	height: 15px;
	color: #1e85be;
}

.evt-detail__meta-tabel td a {
	color: #1e85be;
	text-decoration: none;
	word-break: break-all;
}

.evt-detail__meta-tabel td a:hover {
	text-decoration: underline;
}

/* ── Samenvatting ──────────────────────────────────────────────── */

.evt-detail__samenvatting {
	background: #f9f9f9;
	border-radius: 3px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.evt-detail__samenvatting p {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin: 0;
	font-style: italic;
}

/* ── Uitgebreide inhoud ────────────────────────────────────────── */

.evt-detail__body {
	margin-bottom: 28px;
	font-size: 15px;
	line-height: 1.75;
	color: #444;
}

/* ── Actieknoppen ──────────────────────────────────────────────── */

.evt-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* Knoppen volgen Flatsome thema-kleuren — geen kleuroverride */
.evt-detail__btn-reg,
.evt-detail__btn-terug {
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

@media ( max-width: 768px ) {
	.evt-list-item__thumb {
		aspect-ratio: 16 / 9;
		margin-bottom: 12px;
	}

	.evt-list-item .evt-card__title {
		font-size: 16px;
	}

	.evt-detail__flyer {
		margin-bottom: 20px;
	}

	.evt-detail__meta-tabel th {
		display: table-cell; /* override flex op mobiel */
	}

	.evt-detail__actions {
		flex-direction: column;
	}

	.evt-detail__actions .button {
		width: 100%;
		text-align: center;
	}
}

/* ══════════════════════════════════════════════════════════════════
   FLATSOME DARK SECTIONS
   ══════════════════════════════════════════════════════════════════ */

.dark .evt-card {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.12);
}

.dark .evt-card__title,
.dark .evt-card__title a {
	color: #fff;
}

.dark .evt-card__excerpt {
	color: rgba(255, 255, 255, 0.65);
}

.dark .evt-list-item {
	border-color: rgba(255, 255, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════════════
   JAARKALENDER LAYOUT
   [evenementen layout="kalender" jaar="2026"]
   ══════════════════════════════════════════════════════════════════ */

.evt-kalender {
    width: 100%;
}

/* Jaar-koptitel */
.evt-kalender__jaar {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

/* Maand-blok */
.evt-kalender__maand {
    margin-bottom: 36px;
}

.evt-kalender__maand-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e85be;
}

.evt-kalender__maand-naam {
    font-size: 20px;
    font-weight: 800;
    color: #1e85be;
    line-height: 1;
}

.evt-kalender__maand-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* Evenement-rij binnen een maand */
.evt-kalender__items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.evt-kalender__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.evt-kalender__item:last-child {
    border-bottom: none;
}

.evt-kalender__item:hover {
    background: #fafafa;
    border-radius: 3px;
}

/* Dag-kolom: groot dagnummer links */
.evt-kalender__dag {
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    padding-top: 2px;
}

.evt-kalender__dag-nr {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #333;
}

/* Kleine flyer-thumbnail */
.evt-kalender__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 3px;
    overflow: hidden;
    background: #f5f5f5;
}

.evt-kalender__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.evt-kalender__thumb:hover .evt-kalender__thumb-img {
    transform: scale(1.06);
}

/* Tekst-kolom: badge + titel + excerpt */
.evt-kalender__tekst {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evt-kalender__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge in kalender is altijd inline */
.evt-kalender__meta .evt-badge {
    position: static;
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
}

.evt-kalender__titel {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #333;
}

.evt-kalender__titel a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.evt-kalender__titel a:hover {
    color: #1e85be;
}

.evt-kalender__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actieknop rechts uitlijnen */
.evt-kalender__actie {
    flex-shrink: 0;
    align-self: center;
}

/* Responsive: op mobiel dag boven de rij, geen knop apart */
@media ( max-width: 640px ) {
    .evt-kalender__item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .evt-kalender__dag {
        width: 36px;
    }

    .evt-kalender__dag-nr {
        font-size: 18px;
    }

    .evt-kalender__thumb {
        width: 48px;
        height: 48px;
    }

    .evt-kalender__actie {
        width: 100%;
        padding-left: 64px; /* uitgelijnd met tekst */
    }

    .evt-kalender__excerpt {
        display: none; /* ruimte besparen op mobiel */
    }
}

/* Dark section ondersteuning */
.dark .evt-kalender__maand-header {
    border-bottom-color: rgba(30,133,190,0.6);
}

.dark .evt-kalender__jaar {
    color: rgba(255,255,255,0.4);
    border-bottom-color: rgba(255,255,255,0.15);
}

.dark .evt-kalender__item {
    border-bottom-color: rgba(255,255,255,0.08);
}

.dark .evt-kalender__item:hover {
    background: rgba(255,255,255,0.05);
}

.dark .evt-kalender__dag-nr,
.dark .evt-kalender__titel,
.dark .evt-kalender__titel a {
    color: #fff;
}

.dark .evt-kalender__excerpt {
    color: rgba(255,255,255,0.5);
}

/* ══════════════════════════════════════════════════════════════════
   JAARKALENDER — wandkalender stijl
   [evenementen layout="jaarkalender" jaar="2026"]
   ══════════════════════════════════════════════════════════════════ */

.evt-jk {
    font-family: inherit;
    width: 100%;
}

/* Jaar-opschrift */
.evt-jk__jaar {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    text-align: center;
    color: #111;
    margin: 0 0 28px;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* 4-kolomsgrid van maanden */
.evt-jk__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}

@media (max-width: 900px) {
    .evt-jk__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .evt-jk__grid { grid-template-columns: 1fr; }
}

/* Maand-blok */
.evt-jk__maand {
    min-width: 0;
}

.evt-jk__maand-naam {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #333;
    margin-bottom: 8px;
}

/* Weekdag-header: Ma Di Wo Do Vr Za Zo */
.evt-jk__week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.evt-jk__wkd {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #aaa;
    text-align: center;
    padding: 2px 0;
}

.evt-jk__wkd--weekend {
    color: #1e85be;
}

/* Dagcellen-grid */
.evt-jk__dagen {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px 0;
}

/* Basis dagcel */
.evt-jk__dag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    height: 26px;
    width: 100%;
    border-radius: 50%;
    text-decoration: none;
    cursor: default;
    transition: background 0.15s, color 0.15s;
    position: relative;
    line-height: 1;
}

/* Weekend: blauw getal */
.evt-jk__dag--weekend {
    color: #1e85be;
}

/* Lege offset-cellen */
.evt-jk__dag--leeg {
    visibility: hidden;
}

/* Dag MET evenement: omcirkeld */
.evt-jk__dag--evt {
    cursor: pointer;
    font-weight: 800;
    color: #fff !important;
    background: #1e85be;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(30,133,190,0.35);
    text-decoration: none;
}

.evt-jk__dag--evt:hover {
    background: #1670a0;
    box-shadow: 0 2px 8px rgba(30,133,190,0.5);
    transform: scale(1.15);
    z-index: 2;
}

/* ── Status-kleuren voor omcirkeling ──────────────────────────────
   Blauw  = definitief (standaard)
   Amber  = onder voorbehoud (concept)
   Paars  = meerdere evenementen op één dag, allemaal voorbehoud
   Groen  = meerdere evenementen, mix van definitief + voorbehoud
   ────────────────────────────────────────────────────────────────── */

/* Onder voorbehoud: amber — zelfde tint als de badge */
.evt-jk__dag--evt.evt-jk__dag--concept {
    background: #f0a500;
    box-shadow: 0 1px 4px rgba(240,165,0,0.4);
}

.evt-jk__dag--evt.evt-jk__dag--concept:hover {
    background: #d4920a;
    box-shadow: 0 2px 8px rgba(240,165,0,0.55);
}

/* Meerdere evenementen, allen definitief: donker blauw */
.evt-jk__dag--multi {
    background: #155f8a;
    box-shadow: 0 1px 4px rgba(21,95,138,0.45);
}

.evt-jk__dag--multi:hover {
    background: #0e4567;
    box-shadow: 0 2px 8px rgba(21,95,138,0.6);
}

/* Meerdere, allen onder voorbehoud: donker amber */
.evt-jk__dag--multi.evt-jk__dag--concept {
    background: #c47d00 !important;
    box-shadow: 0 1px 4px rgba(196,125,0,0.45);
}

.evt-jk__dag--multi.evt-jk__dag--concept:hover {
    background: #a36800 !important;
}

/* Meerdere, gemengd (definitief + voorbehoud): groen */
.evt-jk__dag--multi.evt-jk__dag--gemengd {
    background: #2e9e6b !important;
    box-shadow: 0 1px 4px rgba(46,158,107,0.4);
}

.evt-jk__dag--multi.evt-jk__dag--gemengd:hover {
    background: #23825a !important;
}

/* ── Dag-overzicht panel (onder de kalender) ───────────────────── */

.evt-jk__dag-overzicht {
    margin-top: 40px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    scroll-margin-top: 80px;
}

.evt-jk__dag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1e85be;
    flex-wrap: wrap;
    gap: 8px;
}

.evt-jk__dag-titel {
    font-size: 18px;
    font-weight: 800;
    color: #1e85be;
    margin: 0;
}

.evt-jk__dag-sluiten {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    transition: background 0.15s, color 0.15s;
}

.evt-jk__dag-sluiten:hover {
    background: #f5f5f5;
    color: #555;
}

/* Legenda */
.evt-jk::after {
    content: '';
    display: block;
    margin-top: 16px;
    padding-top: 12px;
    font-size: 11px;
    color: #aaa;
}

.evt-jk__legenda {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 11px;
    color: #888;
}

.evt-jk__legenda-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.evt-jk__legenda-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.evt-jk__legenda-dot--enkel {
    background: #1e85be;
}

.evt-jk__legenda-dot--enkel-concept {
    background: #f0a500;
}

.evt-jk__legenda-dot--multi {
    background: #155f8a;
}

.evt-jk__legenda-dot--gemengd {
    background: #2e9e6b;
}

/* Dark section */
.dark .evt-jk__jaar        { color: #fff; }
.dark .evt-jk__maand-naam  { color: #ccc; }
.dark .evt-jk__dag         { color: #ccc; }
.dark .evt-jk__dag--weekend { color: #79c0ef; }
.dark .evt-jk__dag-overzicht { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
