/* Single event/coach pages and their shared shell.
   Chained as WP deps in ListingsModule::STYLES — do not reorder them. */

/* Single pages: pills, event, coach, session card, popup */

.mf-single {
	max-width: var(--mf-maxw);
	margin-inline: auto;
	color: var(--mf-ink);
	font-family: var(--mf-font);
	box-sizing: border-box;
}

/* Without this gutter the panels and cards touch both screen edges. */
@media (max-width: 600px) {
	.mf-single {
		padding-inline: 16px;
	}
}

.mf-single *,
.mf-archive * {
	box-sizing: border-box;
}

/* Pills */
.mf-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.mf-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--mf-navy);
	color: var(--mf-white);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
}

/* !important: theme/Elementor anchor rules outrank a single class on every link state. */
.mf-pill,
a.mf-pill,
a.mf-pill:link,
a.mf-pill:visited,
a.mf-pill:hover,
a.mf-pill:focus {
	color: var(--mf-white) !important;
	text-decoration: none !important;
}

.mf-pill--soft,
a.mf-pill--soft,
a.mf-pill--soft:link,
a.mf-pill--soft:visited,
a.mf-pill--soft:hover,
a.mf-pill--soft:focus {
	background: var(--mf-sky-2);
	color: var(--mf-navy) !important;
}

a.mf-pill--link {
	transition: transform 0.12s ease, opacity 0.12s ease;
}

a.mf-pill--link:hover,
a.mf-pill--link:focus-visible {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Shared single-page primitives */

.mf-eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mf-blue);
	margin-bottom: 10px;
}

.mf-section {
	margin-bottom: 34px;
}

.mf-section__title {
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 700;
	color: var(--mf-navy);
	margin: 0 0 20px;
	line-height: 1.2;
	text-wrap: balance;
}

.mf-panel {
	background: var(--mf-white);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius-lg);
	padding: clamp(22px, 3vw, 32px);
	margin-bottom: 24px;
	box-shadow: var(--mf-shadow);
}

.mf-panel--accent {
	background: var(--mf-sky-1);
	border-color: var(--mf-sky-2);
	box-shadow: none;
}

.mf-panel--tint {
	background: var(--mf-light-blue);
	border-color: var(--mf-mid-blue);
	box-shadow: none;
}

.mf-panel__title {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 800;
	color: var(--mf-navy);
	margin: 0 0 16px;
	line-height: 1.2;
	text-wrap: balance;
	position: relative;
	padding-left: 16px;
}

/* Accent tick before each panel title. */
.mf-panel__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 4px;
	border-radius: 4px;
	background: var(--mf-blue);
}

.mf-panel--accent .mf-panel__title::before { background: var(--mf-sky-3); }

/* Comfortable reading column for long-form copy. */
.mf-prose {
	max-width: 68ch;
	line-height: 1.75;
	color: var(--mf-ink);
	font-size: 1.02rem;
}

.mf-prose p { margin: 0 0 1.1em; }
.mf-prose p:last-child { margin-bottom: 0; }
.mf-prose strong { color: var(--mf-navy); }

/* Weight variants (base prose is 400). */
.mf-prose--bold { font-weight: 600; color: var(--mf-navy); }
.mf-prose--semi { font-weight: 500; }

/* Icon + text fact line, used in the hero and booking card. */
.mf-fact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--mf-navy);
	font-weight: 600;
	font-size: 0.95rem;
}

.mf-fact__ico {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	background: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
	opacity: 0.85;
}

.mf-fact__ico--cal  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='3' y='4' width='18' height='18' rx='3'/><path d='M8 2v4M16 2v4M3 10h18'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='3' y='4' width='18' height='18' rx='3'/><path d='M8 2v4M16 2v4M3 10h18'/></svg>"); }
.mf-fact__ico--pin  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>"); }
.mf-fact__ico--user { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-6 8-6s8 2 8 6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-6 8-6s8 2 8 6'/></svg>"); }

/* Shared buttons. */
/* !important on every state so a theme `button:hover { background: red }` can't repaint. */
.mf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: 12px;
	font-family: var(--mf-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mf-btn--primary,
.mf-btn--primary:hover,
.mf-btn--primary:focus,
.mf-btn--primary:active {
	background: var(--mf-blue) !important;
	color: var(--mf-white) !important;
	border: none !important;
	box-shadow: 0 8px 20px rgba(40, 136, 255, 0.28);
}

.mf-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(40, 136, 255, 0.34);
}

.mf-btn--ghost,
.mf-btn--ghost:hover,
.mf-btn--ghost:focus,
.mf-btn--ghost:active {
	background: transparent !important;
	color: var(--mf-blue) !important;
	border: 1.5px solid var(--mf-mid-blue) !important;
}

.mf-btn--ghost:hover { border-color: var(--mf-blue) !important; }

.mf-btn:focus-visible {
	outline: 2px solid var(--mf-blue);
	outline-offset: 2px;
}

.mf-btn--block { width: 100%; }

/* btn-fit.js shrinks this label to fit — it must never wrap, or there's no overflow to measure. */
.mf-btn [data-mf-fit-label] {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* Single shell — shared hero + two-column body */

.mf-single {
	/* Pull the hero to the true page edges even inside a padded container. */
	--mf-hero-h: clamp(320px, 46vh, 520px);
}

/* event hero: CLEAN banner (nothing overlaps it) + meta below */
.mf-ehero {
	margin-bottom: 32px;
}

.mf-ehero__banner {
	border-radius: var(--mf-radius-lg);
	overflow: hidden;
	background: var(--mf-light-blue);
	box-shadow: var(--mf-shadow);
	/* Taller banner; keeps the artwork's own text readable. */
	aspect-ratio: 16 / 9;
	max-height: 560px;
}

.mf-ehero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mf-ehero__img--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--mf-mid-blue), var(--mf-dark-blue));
}

/* Title + pills sit BELOW the image. */
.mf-ehero__meta {
	margin-top: 22px;
}

.mf-ehero__title {
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	font-weight: 800;
	color: var(--mf-navy);
	margin: 12px 0 0;
	line-height: 1.1;
	text-wrap: balance;
}

.mf-pill-row--tight { margin: 0; }

/* body grid */
.mf-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: start;
	margin-top: 8px;
}

.mf-single__aside {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (max-width: 960px) {
	.mf-single__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.mf-single__aside {
		position: static;
	}
	.mf-ehero__meta { align-items: flex-start; }
}

/* booking card */
.mf-booking-card {
	background: var(--mf-white);
	border: 1px solid var(--mf-line);
	border-radius: 20px;
	box-shadow: 0 18px 44px rgba(2, 7, 13, 0.12);
	overflow: hidden;
}

.mf-booking-card__price-band {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 20px 24px;
	background: var(--mf-light-blue);
	border-bottom: 1px solid var(--mf-line);
}

.mf-booking-card__price-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--mf-navy);
	opacity: 0.75;
}

.mf-booking-card__price {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--mf-navy);
	line-height: 1;
}

.mf-booking-card__body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mf-booking-card__line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.98rem;
	color: var(--mf-gray);
	line-height: 1.5;
}

.mf-booking-card__line .mf-fact__ico { margin-top: 2px; color: var(--mf-blue); }

.mf-booking-card__coach-link {
	color: var(--mf-blue);
	text-decoration: none;
	font-weight: 600;
}

.mf-booking-card__coach-link:hover,
.mf-booking-card__coach-link:focus-visible {
	text-decoration: underline;
}

.mf-booking-card__focus-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mf-gray);
	margin-bottom: 8px;
}

.mf-booking-card__focus { padding-top: 2px; }

/* map card */
.mf-map-toggle__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mf-blue);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
}

.mf-map-toggle__link:hover { text-decoration: underline; }

.mf-map {
	width: 100%;
	height: 240px;
	margin-top: 12px;
	border-radius: var(--mf-radius);
	overflow: hidden;
	border: 1px solid var(--mf-line);
	background: var(--mf-light-blue);
}

.mf-map[hidden] { display: none; }

/* Leaflet controls: keep them unobtrusive. */
.mf-map .leaflet-control-attribution { font-size: 10px; }

/* related grid */
.mf-single-event__related,
.mf-single__related {
	margin-top: 56px;
	padding-top: 44px;
	border-top: 1px solid var(--mf-line);
	/* 60px breathing room before the footer. */
	margin-bottom: 60px;
}

.mf-related-wide {
	width: min(94vw, 1500px);
	margin-left: calc(50% - min(94vw, 1500px) / 2);
	margin-right: calc(50% - min(94vw, 1500px) / 2);
}

/* 8 cards → two rows of four. */
.mf-single-event__related .mf-event-grid,
.mf-single__related .mf-event-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 1200px) {
	.mf-single-event__related .mf-event-grid,
	.mf-single__related .mf-event-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.mf-related-wide { width: auto; margin-inline: 0; }
	.mf-single-event__related .mf-event-grid,
	.mf-single__related .mf-event-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.mf-single-event__related .mf-event-grid,
	.mf-single__related .mf-event-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Single coach */
/* Breathing room at the top of the coach page (below the fixed 80px header). */
.mf-single-coach,
.mf-single-event {
	padding-top: 80px;
}

.mf-single-coach__top {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.mf-single-coach__rail {
	background: var(--mf-white);
	border: 1px solid var(--mf-line);
	border-radius: 22px;
	box-shadow: 0 18px 44px rgba(2, 7, 13, 0.10);
	overflow: hidden;
	position: sticky;
	top: 24px;
}

/* Must come AFTER the base rail rule — equal specificity, so source order decides. */
@media (max-width: 900px) {
	.mf-single-coach__top {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Desktop sticky would pin the stacked rail over "Over {coach}". */
	.mf-single-coach__rail {
		position: static;
		top: auto;
	}
}

/* Photo fills the card's full width at the top. */
.mf-single-coach__photo {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--mf-light-blue);
}

/* Fill and crop the 1:1 tile, never letterbox. !important beats the theme's global
   `img { width: auto; height: auto }`. */
.mf-single-coach__photo img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center 25%;
	display: block;
}

.mf-single-coach__rail-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mf-single-coach__org {
	color: var(--mf-blue);
	font-weight: 600;
	font-size: 0.9rem;
}

.mf-single-coach__name {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--mf-navy);
	margin: -6px 0 0;
	line-height: 1.15;
}

.mf-single-coach__main-name {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	color: var(--mf-navy);
	margin: 0 0 6px;
	line-height: 1.1;
	text-wrap: balance;
}

.mf-single-coach__short {
	color: var(--mf-ink);
	line-height: 1.65;
	font-size: 0.95rem;
	font-weight: 500;
}

.mf-single-coach__short p { margin: 0 0 0.6em; }
.mf-single-coach__short p:last-child { margin-bottom: 0; }
.mf-single-coach__short strong { color: var(--mf-navy); }

.mf-single-coach__addr {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--mf-gray);
	line-height: 1.5;
	padding-top: 14px;
	border-top: 1px solid var(--mf-line);
}

.mf-single-coach__addr .mf-fact__ico { margin-top: 2px; color: var(--mf-blue); }

.mf-single-coach__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.mf-single-coach__desc {
	line-height: 1.75;
	margin: 16px 0;
	font-size: 1.02rem;
	color: var(--mf-ink);
}

.mf-single-coach__desc p { margin: 0 0 1.1em; }
.mf-single-coach__desc strong { color: var(--mf-navy); }

.mf-single-coach__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 20px 0;
}

/* An empty taxonomy renders NO element; one child = one full-width track. */
.mf-single-coach__cols:has(> .mf-info-block:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 620px) {
	.mf-single-coach__cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mf-info-block {
	background: var(--mf-light-blue);
	border: 1px solid var(--mf-mid-blue);
	border-radius: 18px;
	padding: 20px;
}

.mf-info-block--soft {
	background: var(--mf-sky-1);
	border-color: var(--mf-sky-2);
}

.mf-info-block h3 {
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mf-gray);
}

/* Quote with a large decorative mark + a thin border. */
.mf-single-coach__quote {
	position: relative;
	margin: 28px 0;
	padding: 26px 28px 26px 64px;
	background: var(--mf-sky-1);
	border: 1px solid var(--mf-sky-2);
	border-radius: 18px;
	font-size: 1.15rem;
	font-style: italic;
	color: var(--mf-navy);
	line-height: 1.5;
}

.mf-single-coach__quote::before {
	content: "\201C";
	position: absolute;
	left: 20px;
	top: 6px;
	font-size: 3.4rem;
	line-height: 1;
	color: var(--mf-sky-3);
	font-style: normal;
}

.mf-single-coach__visie {
	margin-top: 24px;
	line-height: 1.75;
	color: var(--mf-ink);
}

.mf-single-coach__visie h3 {
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	color: var(--mf-navy);
	margin: 0 0 12px;
}

/* Section headers on sessions/workshops match the event page treatment. */
.mf-single-coach__sessions,
.mf-single-coach__workshops {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--mf-line);
}

/* 60px breathing room before the footer on the last section. */
.mf-single-coach > section:last-child,
.mf-single-coach__workshops:last-child,
.mf-single-coach__sessions:last-child {
	margin-bottom: 60px;
}

.mf-single-coach__sessions h2,
.mf-single-coach__workshops h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 700;
	color: var(--mf-navy);
	margin: 0 0 22px;
	text-wrap: balance;
	text-align: center;
}

.mf-single-coach__sessions .mf-session-grid,
.mf-single-coach__workshops .mf-event-grid {
	justify-content: center;
}

/* Session cards */
.mf-session-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 1024px) {
	.mf-session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.mf-session-grid { grid-template-columns: minmax(0, 1fr); }
}

/* role="button", not a <button>, to avoid theme button styling. */
.mf-session-card {
	display: flex;
	flex-direction: column;
	background: var(--mf-white);
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius-lg);
	box-shadow: var(--mf-shadow);
	overflow: hidden;
	cursor: pointer;
	font-family: var(--mf-font);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mf-session-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mf-shadow-hover);
	border-color: var(--mf-mid-blue);
}

.mf-session-card:focus-visible {
	outline: 2px solid var(--mf-blue);
	outline-offset: 2px;
}

.mf-session-card__body {
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	/* Ensure long words/sentences wrap inside the card. */
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.mf-session-card__pills {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.mf-session-card__title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--mf-navy);
	line-height: 1.25;
	overflow-wrap: break-word;
}

.mf-session-card__desc {
	margin: 0;
	color: var(--mf-ink);
	font-size: 1rem;
	line-height: 1.55;
	overflow-wrap: break-word;
	/* Keep card heights tidy without cutting mid-word. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Bottom CTA that reads clearly as a button. */
.mf-session-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding: 14px 22px;
	background: var(--mf-light-blue);
	border-top: 1px solid var(--mf-line);
	transition: background 0.15s ease;
}

.mf-session-card:hover .mf-session-card__cta {
	background: var(--mf-blue);
}

.mf-session-card__more {
	color: var(--mf-blue);
	font-weight: 700;
	font-size: 0.92rem;
	transition: color 0.15s ease;
}

.mf-session-card:hover .mf-session-card__more { color: var(--mf-white); }

.mf-session-card__arrow {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	background: var(--mf-blue);
	-webkit-mask: center / contain no-repeat
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
	mask: center / contain no-repeat
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
	transition: background 0.15s ease, transform 0.15s ease;
}

.mf-session-card:hover .mf-session-card__arrow {
	background: var(--mf-white);
	transform: translateX(3px);
}

/* Premium tags: soft, low-contrast — replaces the navy+yellow clash. */
.mf-tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--mf-light-blue);
	border: 1px solid var(--mf-mid-blue);
	color: var(--mf-dark-blue);
	font-size: 0.74rem;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
}

.mf-tag--muted {
	background: var(--mf-white);
	border-color: var(--mf-line);
	color: var(--mf-gray);
}

/* Session popup */
.mf-session-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.mf-session-modal.is-open {
	opacity: 1;
}

.mf-session-modal__backdrop {
	position: absolute;
	inset: 0;
	/* Lighter scrim (was 0.5) to match the other overlays. Click closes (JS). */
	background: rgba(2, 7, 13, 0.30);
}

.mf-session-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: 85vh;
	overflow-y: auto;
	background: var(--mf-white, #fff);
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(2, 7, 13, 0.3);
	transform: translateY(12px);
	transition: transform 0.2s ease;
}

.mf-session-modal.is-open .mf-session-modal__dialog {
	transform: translateY(0);
}

/* Theme paints bare <button>s red: paint EVERY state with !important, as .mf-btn--primary does. */
.mf-session-modal__close,
.mf-session-modal__close:hover,
.mf-session-modal__close:focus,
.mf-session-modal__close:active {
	position: absolute;
	top: 14px;
	right: 16px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 0;
	min-height: 0;
	padding: 0 !important;
	margin: 0;
	border: 1px solid var(--mf-line) !important;
	border-radius: 50% !important;
	background: var(--mf-white) !important;
	color: var(--mf-ink) !important;
	box-shadow: 0 1px 2px rgba(2, 7, 13, 0.06) !important;
	font-size: 0;
	line-height: 1;
	text-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mf-session-modal__close:hover,
.mf-session-modal__close:focus {
	background: var(--mf-light-blue) !important;
	color: var(--mf-navy) !important;
	border-color: var(--mf-sky-2) !important;
	box-shadow: 0 4px 10px rgba(2, 7, 13, 0.10) !important;
}

.mf-session-modal__close:active {
	transform: scale(0.94);
}

.mf-session-modal__close:focus-visible {
	outline: 2px solid var(--mf-blue) !important;
	outline-offset: 2px;
}

/* Sized here, not by font-size, which the theme also controls. */
.mf-session-modal__close-ico {
	display: block;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.mf-session-modal__title {
	margin: 10px 0 6px;
	font-size: 1.4rem;
	color: var(--mf-navy);
}

.mf-session-modal__lead {
	color: var(--mf-ink);
	margin: 0 0 12px;
}

.mf-session-modal__desc {
	color: var(--mf-ink);
	line-height: 1.6;
	margin-bottom: 16px;
}

.mf-session-modal__facts {
	border-top: 1px solid var(--mf-line);
	padding-top: 12px;
}

.mf-session-modal__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	font-size: 0.95rem;
}

.mf-session-modal__row span {
	color: var(--mf-ink);
}

.mf-session-modal__row strong {
	color: var(--mf-navy);
}

/* Priced offers — either half can be absent (session-modal.js renders what exists). */
.mf-session-modal__price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
}

.mf-session-modal__price + .mf-session-modal__price,
.mf-session-modal__price + .mf-session-modal__row {
	border-top: 1px solid var(--mf-line);
}

.mf-session-modal__price-label {
	color: var(--mf-ink);
	font-size: 0.95rem;
}

.mf-session-modal__price-value {
	display: flex;
	align-items: baseline;
	gap: 8px;
	text-align: right;
}

.mf-session-modal__price-value strong {
	color: var(--mf-navy);
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.mf-session-modal__price-sep {
	color: var(--mf-line);
}

.mf-session-modal__price-dur {
	color: var(--mf-ink);
	font-size: 0.95rem;
	white-space: nowrap;
}

/* Single event (SingleEventViewV2). Scoped under .mf-single-event--v2. PC ONLY:
   below 960px it must stack banner → titel → beschrijving → special → boekingskaart. */

/* Unclip the rail: sticky is silently cancelled by any ancestor with overflow other
   than visible. Un-clip the Elementor wrappers; on html/body use clip, never hidden. */

:where(
	.e-con,
	.elementor-section,
	.elementor-column,
	.elementor-widget,
	.elementor-widget-shortcode,
	.elementor-widget-container,
	.elementor-shortcode
):has(.mf-single-event--v2) {
	overflow: visible !important;
}

html:has(.mf-single-event--v2),
body:has(.mf-single-event--v2) {
	overflow-x: clip;
}

/* Desktop shell. .mf-ev2__left is the RAIL and __right the content — named after DOM
   order, which the mobile stack depends on. Don't rename by re-ordering markup. */

/* The fixed header's spacer already reserves 80px; the old 80px padding was dead space. */
.mf-single-event--v2 { padding-top: 24px; }

@media (min-width: 961px) {

	/* Two columns, two rows: the banner owns row 1 so the H1 starts level with its bottom.
	   Only the rail is sticky — never the content column. */
	.mf-single-event--v2 .mf-ev2 {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 32%);
		grid-template-areas:
			"hero    rail"
			"content rail";
		/* Content column = 68% of (page − 48px); 16/10.8 aspect, capped at 672px. */
		--mf-ev2-banner-h: min(
			calc((min(100vw, var(--mf-maxw, 1160px)) - 48px) * 0.68 * 0.675),
			672px
		);
		grid-template-rows: var(--mf-ev2-banner-h) auto;
		gap: 28px 48px;
		align-items: start;
		margin-top: 0;
	}

	/* The rail spans both rows so the coach box keeps clearing the card when the map opens. */
	.mf-single-event--v2 .mf-ev2__left {
		grid-area: rail;
		min-width: 0;
		/* stretch: a sticky box only travels inside its parent; `start` would leave zero travel. */
		align-self: stretch;
	}

	/* The box that pins (a sticky grid item would stick within its own full-grid area).
	   NO max-height/overflow on purpose: a too-tall rail just scrolls with the page. */
	.mf-single-event--v2 .mf-ev2__rail {
		position: sticky;
		top: calc(var(--mf-header-h, 80px) + var(--mf-admin-bar-h, 0px) + 16px);
		display: flex;
		flex-direction: column;
		gap: 24px;
		min-width: 0;
	}

	.mf-single-event--v2 .mf-ev2__right {
		display: contents;
	}

	.mf-single-event--v2 .mf-ev2__hero          { grid-area: hero; }
	.mf-single-event--v2 .mf-ev2__content-stack { grid-area: content; }

	/* Row 1 height is fixed (--mf-ev2-banner-h), never content-derived: the booking
	   card's map would otherwise push the title down on click. */
	.mf-single-event--v2 .mf-ev2__hero {
		align-self: start;
		display: flex;
		min-width: 0;
		min-height: 0;
	}

	/* Row height is a ceiling: the banner shrink-wraps its image so no band shows under it. */
	.mf-single-event--v2 .mf-ehero__banner {
		flex: 0 1 auto;
		width: 100%;
		min-width: 0;
		aspect-ratio: auto;
		height: auto;
		max-height: var(--mf-ev2-banner-h);
		background: none;
	}

	.mf-single-event--v2 .mf-ehero__banner .mf-ehero__img {
		height: auto;
		max-height: var(--mf-ev2-banner-h);
		object-fit: contain;
	}

	.mf-single-event--v2 .mf-ehero__img--placeholder {
		height: var(--mf-ev2-banner-h);
		max-height: none;
	}

	.mf-single-event--v2 .mf-ev2__content-stack {
		display: flex;
		flex-direction: column;
		gap: 24px;
		min-width: 0;
	}

	/* Zero the inherited margins — they'd push the H1 below the rail's first line. */
	.mf-single-event--v2 .mf-ev2__hero { margin-bottom: 0; }
	.mf-single-event--v2 .mf-ev2__head { margin-top: 0; }
	.mf-single-event--v2 .mf-ev2__head .mf-ehero__title { margin-top: 0; }
	.mf-single-event--v2 .mf-ev2__rail > .mf-panel { margin-bottom: 0; }
	.mf-single-event--v2 .mf-ev2__content-stack > .mf-panel { margin-bottom: 0; }

	.mf-single-event--v2 .mf-ev2__content-stack .mf-prose { max-width: none; }

	.mf-single-event--v2 .mf-booking-card__types { margin: 0; }
}

/* Mobile restore — reproduces the one-column stack (see the contract above). */

@media (max-width: 960px) {

	.mf-single-event--v2 .mf-ev2 {
		display: flex;
		flex-direction: column;
		gap: 28px;
	}

	/* Dissolve all four wrappers so the order rules can sequence the blocks. position:static
	   un-sticks the rail; max-height/overflow must go with it. */
	.mf-single-event--v2 .mf-ev2__left,
	.mf-single-event--v2 .mf-ev2__rail,
	.mf-single-event--v2 .mf-ev2__right,
	.mf-single-event--v2 .mf-ev2__content-stack {
		display: contents;
		position: static;
		max-height: none;
		overflow: visible;
	}

	/* 1–5 = today's order, byte for byte. 6–7 = the new blocks, appended. */
	.mf-single-event--v2 .mf-ev2__hero      { order: 1; margin-bottom: 0; }
	.mf-single-event--v2 .mf-ev2__head      { order: 2; margin-top: 0; }
	.mf-single-event--v2 .mf-ev2__about     { order: 3; }
	.mf-single-event--v2 .mf-ev2__special   { order: 4; }
	.mf-single-event--v2 .mf-ev2__booking   { order: 5; }
	.mf-single-event--v2 .mf-ev2__coach     { order: 6; }
	.mf-single-event--v2 .mf-ev2__practical { order: 7; }

	.mf-single-event--v2 .mf-ev2 > .mf-panel,
	.mf-single-event--v2 .mf-ev2__left > .mf-panel,
	.mf-single-event--v2 .mf-ev2__rail > .mf-panel,
	.mf-single-event--v2 .mf-ev2__right > .mf-panel,
	.mf-single-event--v2 .mf-ev2__content-stack > .mf-panel {
		margin-bottom: 0;
	}

	.mf-single-event--v2 .mf-ev2__hero { display: block; }
}

/* Extra fact icons */

.mf-single-event--v2 .mf-fact__ico--guide {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.2'/><path d='M2.5 20c0-3.4 3-5.2 6.5-5.2s6.5 1.8 6.5 5.2'/><circle cx='17.5' cy='7' r='2.4'/><path d='M17 13.2c2.6.3 4.5 2 4.5 4.6'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.2'/><path d='M2.5 20c0-3.4 3-5.2 6.5-5.2s6.5 1.8 6.5 5.2'/><circle cx='17.5' cy='7' r='2.4'/><path d='M17 13.2c2.6.3 4.5 2 4.5 4.6'/></svg>");
}

.mf-single-event--v2 .mf-fact__ico--lang {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9.5'/><path d='M2.5 12h19'/><path d='M12 2.5c2.6 2.6 4 6 4 9.5s-1.4 6.9-4 9.5c-2.6-2.6-4-6-4-9.5s1.4-6.9 4-9.5z'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9.5'/><path d='M2.5 12h19'/><path d='M12 2.5c2.6 2.6 4 6 4 9.5s-1.4 6.9-4 9.5c-2.6-2.6-4-6-4-9.5s1.4-6.9 4-9.5z'/></svg>");
}

.mf-single-event--v2 .mf-fact__ico--venue {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21V8.5L12 3l9 5.5V21'/><path d='M3 21h18'/><path d='M9.5 21v-5.5h5V21'/></svg>");
	        mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21V8.5L12 3l9 5.5V21'/><path d='M3 21h18'/><path d='M9.5 21v-5.5h5V21'/></svg>");
}

.mf-single-event--v2 .mf-booking-card__line--sub {
	/* 17px icon + the 10px flex gap the line already sets. */
	padding-left: 27px;
	margin-top: -4px;
	font-size: 0.92rem;
	opacity: 0.85;
}

/* Coach box — "Aangeboden door" */

.mf-single-event--v2 .mf-coach-box__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mf-single-event--v2 .mf-coach-box__avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--mf-light-blue);
}

.mf-single-event--v2 .mf-coach-box__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mf-single-event--v2 .mf-coach-box__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--mf-navy);
	margin: 0;
	line-height: 1.25;
	text-wrap: balance;
}

/* Theme anchor styles outrank a single class. */
.mf-single-event--v2 .mf-coach-box__title a,
.mf-single-event--v2 .mf-coach-box__title a:link,
.mf-single-event--v2 .mf-coach-box__title a:visited {
	color: var(--mf-navy) !important;
	text-decoration: none !important;
}

.mf-single-event--v2 .mf-coach-box__title a:hover,
.mf-single-event--v2 .mf-coach-box__title a:focus-visible {
	color: var(--mf-blue) !important;
	text-decoration: underline !important;
}

.mf-single-event--v2 .mf-coach-box__sentence {
	color: var(--mf-gray);
	line-height: 1.6;
	font-size: 0.98rem;
	margin: 14px 0 0;
}

.mf-single-event--v2 .mf-coach-box__terms { margin-top: 16px; }

/* Same micro-label treatment as .mf-booking-card__focus-label. */
.mf-single-event--v2 .mf-coach-box__label,
.mf-single-event--v2 .mf-practical__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mf-gray);
	margin-bottom: 8px;
}

.mf-single-event--v2 .mf-coach-box__terms .mf-pill-row { margin: 0; }

.mf-single-event--v2 .mf-coach-box__link,
.mf-single-event--v2 .mf-coach-box__link:link,
.mf-single-event--v2 .mf-coach-box__link:visited {
	display: inline-block;
	margin-top: 16px;
	color: var(--mf-blue) !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
}

.mf-single-event--v2 .mf-coach-box__link:hover,
.mf-single-event--v2 .mf-coach-box__link:focus-visible {
	text-decoration: underline !important;
}

/* Praktisch — "Meenemen"; renders only when there is copy. */

.mf-single-event--v2 .mf-practical__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px 32px;
}

.mf-single-event--v2 .mf-practical__col { min-width: 0; }

.mf-single-event--v2 .mf-practical .mf-prose {
	font-size: 1rem;
	line-height: 1.6;
}

/* Passed event. The button carries no data-mf-contact in this branch — don't restore it
   and rely on :disabled: the popup opens from a delegated document handler. */

/* Repeated from favorites.css so the ribbon doesn't depend on that module being enqueued. */
.mf-single-event--v2 .mf-ehero__banner { position: relative; }

.mf-single-event--v2 .mf-ehero__passed-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(2, 7, 13, 0.78);
	color: var(--mf-white);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	backdrop-filter: blur(4px);
}

.mf-single-event--v2.mf-single-event--passed .mf-ehero__img {
	filter: grayscale(0.55);
	opacity: 0.82;
}

.mf-single-event--v2 .mf-booking-card__price-band--passed {
	background: #eef0f3;
}

.mf-single-event--v2 .mf-booking-card__price--passed {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--mf-gray);
	line-height: 1.3;
}

/* The whole card recedes: it is a record of what was on offer, not an offer. */
.mf-single-event--v2 .mf-booking-card--passed {
	box-shadow: 0 10px 26px rgba(2, 7, 13, 0.07);
}

/* !important matches .mf-btn--primary, which theme button rules otherwise outrank. */
.mf-single-event--v2 .mf-btn--passed,
.mf-single-event--v2 .mf-btn--passed:hover,
.mf-single-event--v2 .mf-btn--passed:focus,
.mf-single-event--v2 .mf-btn--passed:active {
	background: #e6e9ee !important;
	color: #6b7484 !important;
	border: none !important;
	box-shadow: none !important;
	cursor: not-allowed;
	transform: none !important;
}

.mf-single-event--v2 .mf-booking-card__passed-note {
	margin: -6px 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--mf-gray);
}

.mf-single-event--v2 .mf-booking-card__passed-note a,
.mf-single-event--v2 .mf-booking-card__passed-note a:link,
.mf-single-event--v2 .mf-booking-card__passed-note a:visited {
	color: var(--mf-blue) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.mf-single-event--v2 .mf-booking-card__passed-note a:hover,
.mf-single-event--v2 .mf-booking-card__passed-note a:focus-visible {
	text-decoration: underline !important;
}
