/* Workshop Locaties — frontend. Kleuren erven van het thema via currentColor waar mogelijk. */
.wl-location {
	--wl-border: rgba(0, 0, 0, .12);
	--wl-bg: rgba(0, 0, 0, .03);
	--wl-accent: var(--wp--preset--color--primary, #2f6f4f);
	margin: 1.5em 0;
	padding: 1.25em;
	border: 1px solid var(--wl-border);
	border-radius: 8px;
	clear: both;
}
.wl-location__title { margin: 0 0 .75em; font-size: 1.25em; }
.wl-location__note { padding: .75em 1em; margin-bottom: 1em; background: var(--wl-bg); border-left: 3px solid var(--wl-accent); }
.wl-location__note p:last-child { margin-bottom: 0; }
.wl-location__grid { display: grid; gap: 1.25em; grid-template-columns: 1fr; }
.woocommerce div.product .summary .wl-location__grid { grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.wl-location--product .wl-location__grid,
	.wl-location--location .wl-location__grid,
	.wl-location--shortcode .wl-location__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
	.woocommerce div.product .summary .wl-location__grid { grid-template-columns: 1fr; }
}
.wl-location__photo img { width: 100%; height: auto; border-radius: 6px; margin-bottom: .75em; }
.wl-location__address { font-style: normal; margin: 0 0 .75em; line-height: 1.5; }
.wl-location__room { opacity: .8; }
.wl-location__contact { list-style: none; margin: 0 0 1em; padding: 0; }
.wl-location__contact li { margin: .15em 0; }
.wl-location__nav { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.wl-location__nav-label { width: 100%; font-weight: 600; font-size: .9em; }
.wl-btn {
	display: inline-block;
	padding: .45em .8em;
	border: 1px solid var(--wl-accent);
	border-radius: 999px;
	color: var(--wl-accent);
	text-decoration: none !important;
	font-size: .875em;
	line-height: 1.2;
}
.wl-btn:hover, .wl-btn:focus-visible { background: var(--wl-accent); color: #fff; }
.wl-btn--geo { display: none; }
.wl-is-mobile .wl-btn--geo { display: inline-block; }
.wl-location__map { position: relative; border-radius: 6px; overflow: hidden; background: var(--wl-bg); min-height: 150px; }
.wl-location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wl-map-consent {
	position: absolute; inset: 0; width: 100%; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em;
	padding: 1em; border: 0; cursor: pointer; text-align: center;
	background: repeating-linear-gradient(45deg, var(--wl-bg) 0 12px, transparent 12px 24px);
	color: inherit; font: inherit;
}
.wl-map-consent__title { font-weight: 600; padding: .5em 1em; border-radius: 999px; background: var(--wl-accent); color: #fff; }
.wl-map-consent__text { font-size: .8em; max-width: 32em; opacity: .8; }
.wl-location__details { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.25em; margin: 1.25em 0 0; }
.wl-location__details dt { font-weight: 600; }
.wl-location__details dd { margin: 0; }
.wl-location__details dd p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.wl-location__details { grid-template-columns: 1fr; }
	.wl-location__details dd { margin-bottom: .6em; }
}
.wl-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; }
.wl-tags li { padding: .15em .6em; border-radius: 999px; background: var(--wl-bg); font-size: .85em; }
.wl-location__desc { margin-top: 1em; }
.wl-location__more { margin: 1em 0 0; }
.wl-loop-city { display: block; font-size: .85em; opacity: .75; margin-bottom: .3em; }
.wl-loop-city::before { content: "📍 "; }
.wl-upcoming ul { padding-left: 1.2em; }
.wl-upcoming .wl-price { opacity: .75; margin-left: .4em; }

/* ---------- v2: Leaflet-kaarten ---------- */
.wl-leaflet { position: absolute; inset: 0; z-index: 0; }
.wl-pin span {
	display: block; width: 24px; height: 24px; margin: 2px;
	background: var(--wl-accent, #2f6f4f); border: 3px solid #fff;
	border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.wl-location__cats { margin: -.25em 0 1em; }
.wl-floorplan { max-width: 100%; height: auto; border-radius: 4px; }

/* ---------- Datum, badges, overzichten ---------- */
.wl-when { font-weight: 600; margin: .25em 0 1em; }
.wl-past-notice, .wl-all-full, .wl-no-sessions { padding: .6em .9em; background: rgba(0, 0, 0, .04); border-radius: 6px; }
.wl-loop-info { display: block; font-size: .85em; opacity: .75; margin-bottom: .3em; }
.wl-loop-info::before { content: "📍 "; }
.wl-loop-city { display: none; }
.wl-badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .8em; background: rgba(0, 0, 0, .06); white-space: nowrap; }
.wl-badge--few { background: #fff1d6; color: #7a4b00; }
.wl-badge--full { background: #f3d6d6; color: #8a1f1f; }
.wl-when-inline { opacity: .75; margin-left: .4em; }

/* ---------- Sessiekeuze ---------- */
.wl-sessions { margin: 1em 0 1.5em; }
.wl-sessions__list { border: 0; margin: 0 0 1em; padding: 0; min-width: 0; }
.wl-sessions__legend { font-weight: 700; margin-bottom: .5em; padding: 0; }
.wl-session {
	display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .8em;
	padding: .7em .9em; margin-bottom: .5em; cursor: pointer;
	border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.wl-session:hover { border-color: var(--wl-accent, #2f6f4f); }
.wl-session.is-selected, .wl-session:has(input:checked) { border-color: var(--wl-accent, #2f6f4f); box-shadow: 0 0 0 1px var(--wl-accent, #2f6f4f); }
.wl-session.is-full { opacity: .6; cursor: not-allowed; }
.wl-session input { margin: 0; accent-color: var(--wl-accent, #2f6f4f); }
.wl-session__date { display: grid; justify-items: center; line-height: 1.05; min-width: 3em; padding: .3em .2em; border-radius: 6px; background: rgba(0, 0, 0, .04); }
.wl-session__day, .wl-session__month { font-size: .72em; text-transform: uppercase; letter-spacing: .04em; }
.wl-session__num { font-size: 1.35em; font-weight: 700; }
.wl-session__info { display: grid; gap: .1em; min-width: 0; }
.wl-session__when { font-weight: 600; }
.wl-session__time, .wl-session__place { font-size: .9em; opacity: .8; }
.wl-session__side { display: grid; justify-items: end; gap: .25em; }
.wl-session__price { font-weight: 700; }
.wl-sessions__buy { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) {
	.wl-session { grid-template-columns: auto auto 1fr; }
	.wl-session__side { grid-column: 2 / -1; justify-items: start; grid-auto-flow: column; }
}

/* ---------- Wachtlijst ---------- */
.wl-waitlist { margin: 1em 0; padding: .7em 1em; border: 1px dashed rgba(0, 0, 0, .25); border-radius: 8px; }
.wl-waitlist summary { cursor: pointer; font-weight: 600; }
.wl-waitlist__form { margin-top: .8em; }
.wl-waitlist__form p { margin: 0 0 .7em; }
.wl-waitlist__form label { display: block; font-size: .9em; margin-bottom: .2em; }
.wl-waitlist__form input[type="text"], .wl-waitlist__form input[type="email"], .wl-waitlist__form select { width: 100%; max-width: 26em; }
.wl-waitlist__consent label { display: flex; gap: .5em; align-items: flex-start; }
.wl-waitlist__msg { font-weight: 600; }
.wl-waitlist__msg.is-error { color: #8a1f1f; }
.wl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Galerij en vergroting ---------- */
.wl-gallery { list-style: none; margin: 1.25em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5em; }
.wl-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.wl-dialog { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.wl-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.wl-dialog img { max-width: 92vw; max-height: 88vh; display: block; border-radius: 6px; }
.wl-dialog__close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- Overzichtskaart ---------- */
.wl-overview { margin: 1.5em 0; }
.wl-overview__filters { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: .75em; }
.wl-overview__q { flex: 1 1 14em; }
.wl-overview__map { position: relative; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .03); }
.wl-overview__autoload { position: absolute; inset: 0; }
.wl-overview__status:empty { display: none; }
.wl-overview__list { list-style: none; margin: 1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75em; }
.wl-overview__item { display: flex; gap: .75em; padding: .75em; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; cursor: pointer; }
.wl-overview__item[hidden] { display: none; }
.wl-overview__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.wl-overview__item > div { display: grid; gap: .15em; min-width: 0; }
.wl-overview__name { font-weight: 700; }
.wl-overview__dist { font-size: .8em; font-weight: 600; color: var(--wl-accent, #2f6f4f); }
.wl-overview__dist:empty { display: none; }
.wl-overview__addr, .wl-overview__next { font-size: .85em; opacity: .8; }
.wl-location[hidden] { display: none; }

/* Toestemmingsknop: vaste kleuren, zodat themastijlen voor knoppen niet doorwerken. */
.wl-location .wl-map-consent, .wl-overview .wl-map-consent {
	background: repeating-linear-gradient(45deg, #eef1ee 0 12px, #f8f9f8 12px 24px) !important;
	color: #3a443e !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	text-transform: none !important; letter-spacing: normal !important; font-weight: 400 !important;
}
.wl-map-consent:hover .wl-map-consent__title, .wl-map-consent:focus-visible .wl-map-consent__title { filter: brightness(1.15); }
.wl-map-consent:focus-visible { outline: 3px solid var(--wl-accent, #2f6f4f) !important; outline-offset: -3px; }
.wl-map-consent .wl-map-consent__title { background: var(--wl-accent, #2f6f4f); color: #fff; }
.wl-map-consent .wl-map-consent__text { color: #3a443e; opacity: .85; }

/* Aanvang van de workshop in het locatieblok */
.wl-location__when { margin: 0 0 1em; padding: .6em .9em; border-radius: 6px; background: var(--wl-accent-soft, #e6f0ea); font-weight: 600; }
.wl-location__when[hidden] { display: none; }
.wl-location__when-label { margin-right: .35em; }

/* Wat neem je mee? (bij de workshop) */
.wl-bring { margin: 1em 0 1.25em; padding: .75em 1em; border: 1px solid rgba(0, 0, 0, .12); border-left: 3px solid var(--wl-accent, #2f6f4f); border-radius: 6px; }
.wl-bring__title { display: block; margin-bottom: .25em; }
.wl-bring p { margin: 0 0 .4em; }
.wl-bring p:last-child { margin-bottom: 0; }
