/**
 * Single event template — spacing aligned with single-place (.spb-section).
 */
.sfvd-single-event {
	/* Match .sfvd-home-container when not on front page (variable otherwise undefined). */
	--sfvd-home-max: 1320px;
	--sfe-primary: var(--sfv-primary, #0f766e);
	--sfe-primary-dark: var(--sfv-primary-dark, #115e59);
	--sfe-text: var(--sfv-text, #1f2937);
	--sfe-muted: var(--sfv-muted, #6b7280);
	--sfe-border: var(--sfv-border, #e5e7eb);
	--sfe-bg: var(--sfv-surface, #f3f4f6);
	--sfe-white: #fff;
	--sfe-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
	--sfe-radius: var(--sfv-radius, 12px);
	--sfe-section-pad-y: clamp(1.5rem, 3vw, 1.75rem);
	--sfe-section-pad-x: clamp(1.25rem, 3vw, 1.875rem);
	--sfe-page-gutter: clamp(1.25rem, 5vw, 2.5rem);
	--sfe-cover-max: min(100%, 56rem);
	background: transparent;
	color: var(--sfe-text);
	width: 100%;
}

/* Do not use padding shorthand with `0` horizontal — it overrides .sfvd-home-container sides. */
.sfvd-single-event__wrap {
	box-sizing: border-box;
	max-width: min(var(--sfvd-home-max, 1320px), 100%);
	margin-left: auto;
	margin-right: auto;
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
	padding-left: var(--sfe-page-gutter);
	padding-right: var(--sfe-page-gutter);
}

/* Breadcrumbs — centered, matches JSON-LD BreadcrumbList in wp_head */
.sfvd-single-event__breadcrumb {
	margin: 0 0 clamp(1rem, 2vw, 1.5rem);
	text-align: center;
}

.sfvd-single-event__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--sfe-muted);
}

.sfvd-single-event__breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.sfvd-single-event__breadcrumb-item:not(:first-child)::before {
	content: '/';
	margin-right: 0.5rem;
	color: #cbd5e1;
	font-weight: 400;
}

.sfvd-single-event__breadcrumb-link {
	color: var(--sfe-primary);
	font-weight: 600;
	text-decoration: none;
}

.sfvd-single-event__breadcrumb-link:hover,
.sfvd-single-event__breadcrumb-link:focus {
	text-decoration: underline;
}

.sfvd-single-event__breadcrumb-current {
	color: var(--sfe-text);
	font-weight: 600;
	max-width: 100%;
	text-align: center;
}

/* Hero / title block — centered */
.sfvd-single-event__header {
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	padding: 0;
	text-align: center;
}

.sfvd-single-event__badge {
	display: inline-block;
	margin: 0 auto 0.625rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(15, 118, 110, 0.12);
	color: var(--sfe-primary-dark);
	line-height: 1.2;
}

.sfvd-single-event__cats {
	margin: 0 auto 0.5rem;
	max-width: 65ch;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--sfe-muted);
}

.sfvd-single-event__title {
	margin: 0 auto 0.625rem;
	max-width: 42rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--sfe-text);
}

.sfvd-single-event__excerpt {
	margin: 0 auto;
	max-width: 65ch;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--sfe-muted);
}

.sfvd-single-event__cover {
	max-width: var(--sfe-cover-max);
	margin: 0 auto clamp(1.5rem, 3vw, 2rem);
	border-radius: var(--sfe-radius);
	overflow: hidden;
	box-shadow: var(--sfe-shadow);
}

.sfvd-single-event__cover-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Main + map — wider map column */
.sfvd-single-event__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, min(44vw, 480px));
	gap: clamp(1.5rem, 3vw, 2.25rem);
	align-items: start;
}

@media (max-width: 960px) {
	.sfvd-single-event__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

.sfvd-single-event__main {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 1.5rem);
	min-width: 0;
}

.sfvd-single-event__card {
	background: #fff;
	border: 1px solid var(--sfe-border);
	border-radius: var(--sfe-radius);
	padding: var(--sfe-section-pad-y) var(--sfe-section-pad-x);
	box-shadow: var(--sfv-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
	margin: 0;
}

/* Match .spb-section-title rhythm */
.sfvd-single-event__card-title {
	margin: 0 0 1rem;
	padding-bottom: 0.875rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--sfe-text);
	border-bottom: 2px solid var(--sfe-border);
	line-height: 1.3;
}

.sfvd-single-event__dl {
	margin: 0;
}

.sfvd-single-event__row {
	display: grid;
	grid-template-columns: minmax(7.25rem, 10rem) minmax(0, 1fr);
	gap: 0.75rem 1.25rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--sfe-border);
	font-size: 0.9375rem;
	line-height: 1.5;
	align-items: start;
}

.sfvd-single-event__row:first-of-type {
	padding-top: 0;
}

.sfvd-single-event__row:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.sfvd-single-event__row dt {
	margin: 0;
	padding-top: 0.1em;
	font-weight: 600;
	color: var(--sfe-muted);
}

.sfvd-single-event__row dd {
	margin: 0;
	color: var(--sfe-text);
	word-break: break-word;
}

.sfvd-single-event__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 1.25rem;
	padding-top: 0.25rem;
}

.sfvd-single-event__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.125rem;
	min-height: 2.75rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	border: 1px solid transparent;
	line-height: 1.2;
}

.sfvd-single-event__btn:hover {
	transform: translateY(-1px);
}

.sfvd-single-event__btn--primary {
	background: linear-gradient(135deg, var(--sfe-primary), var(--sfe-primary-dark));
	color: #fff;
	box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.sfvd-single-event__btn--secondary {
	background: linear-gradient(135deg, #0ea5e9, #0284c7);
	color: #fff;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.sfvd-single-event__btn--ghost {
	background: var(--sfe-bg);
	color: var(--sfe-text);
	border-color: var(--sfe-border);
}

/* About / body */
.sfvd-single-event__content.entry-content {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--sfe-text);
}

.sfvd-single-event__content.entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.sfvd-single-event__content.entry-content > * + * {
	margin-top: 1rem;
}

.sfvd-single-event__content.entry-content > h2 + *,
.sfvd-single-event__content.entry-content > h3 + * {
	margin-top: 0.5rem;
}

.sfvd-single-event__content.entry-content h2 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 1.25rem 0 0.5rem;
	color: #0f172a;
	line-height: 1.35;
}

.sfvd-single-event__content.entry-content h2:first-child {
	margin-top: 0;
}

.sfvd-single-event__content.entry-content ul,
.sfvd-single-event__content.entry-content ol {
	padding-left: 1.35rem;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.sfvd-single-event__content.entry-content li + li {
	margin-top: 0.35rem;
}

.sfvd-single-event__content.entry-content p:first-of-type {
	margin-top: 0;
}

.sfvd-single-event__aside {
	position: sticky;
	top: 88px;
	width: 100%;
}

@media (max-width: 960px) {
	.sfvd-single-event__aside {
		position: static;
	}
}

.sfvd-single-event__map {
	width: 100%;
	min-height: 360px;
	height: clamp(360px, 58vh, 560px);
	border-radius: var(--sfe-radius);
	overflow: hidden;
	border: 1px solid var(--sfe-border);
	box-shadow: var(--sfe-shadow);
	background: var(--sfe-bg);
}

@media (max-width: 600px) {
	.sfvd-single-event__wrap {
		padding-top: 1rem;
		padding-bottom: 2.5rem;
		padding-left: var(--sfe-page-gutter);
		padding-right: var(--sfe-page-gutter);
	}

	.sfvd-single-event__cover {
		max-width: 100%;
	}

	.sfvd-single-event__row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
		padding: 0.5rem 0;
	}

	.sfvd-single-event__row dt {
		padding-top: 0;
		font-size: 0.8125rem;
		text-transform: uppercase;
		letter-spacing: 0.03em;
	}

	.sfvd-single-event__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sfvd-single-event__btn {
		width: 100%;
	}
}
