/* Pop-up (Winterhaven → Pop-up). Teal kaart met zandkleurige tekst; op mobiel schuift hij van onderen in. */

.wh-pop {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.wh-pop[hidden] {
	display: none;
}
.wh-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 30, 33, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.wh-pop.is-open .wh-pop__backdrop {
	opacity: 1;
}
html.wh-pop-open {
	overflow: hidden;
}
/* zwevende Guestplan-knop even weg zolang de pop-up open is (valt anders over de knoppen) */
html.wh-pop-open #gstpln-widget-host,
html.wh-pop-open iframe[data-gstpln-widget-host] {
	visibility: hidden;
}

.wh-pop__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	border-radius: 8px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(224, 105, 108, 0.18), transparent 60%),
		var(--wh-c-teal-dark);
	box-shadow: 0 24px 60px rgba(0, 20, 22, 0.45);
	color: var(--wh-c-tan);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 0.75, 0.2, 1);
	outline: none;
}
.wh-pop__card.has-img {
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	max-width: 820px;
}
.wh-pop.is-open .wh-pop__card {
	opacity: 1;
	transform: none;
}

.wh-pop__media {
	min-height: 100%;
	overflow: hidden;
}
.wh-pop__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.wh-pop__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 40px 38px 36px;
}
.wh-pop__eyebrow {
	margin: 0;
	font-family: var(--wh-font-sans);
	font-size: 13px;
	line-height: 17px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wh-c-pink);
}
.wh-pop__title {
	margin: 0;
	padding-right: 28px;
	font-family: var(--wh-font-serif);
	font-size: clamp(30px, 3.4vw, 40px);
	font-weight: var(--wh-wt-title, 600);
	line-height: 1.15;
	color: var(--wh-c-tan);
}
.wh-pop__text {
	margin: 0;
	font-family: var(--wh-font-sans);
	font-size: 17px;
	line-height: 28px;
	color: var(--wh-c-soft);
}

.wh-pop__events {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.wh-pop__event {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(239, 216, 189, 0.2);
	border-radius: 6px;
	color: var(--wh-c-tan);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
a.wh-pop__event:hover,
a.wh-pop__event:focus-visible {
	border-color: rgba(239, 216, 189, 0.55);
	background: rgba(239, 216, 189, 0.06);
	color: var(--wh-c-tan);
}
.wh-pop__date {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	background: var(--wh-c-coral);
	color: var(--wh-c-ink);
	font-family: var(--wh-font-sans);
	font-size: 10px;
	font-weight: 500;
	line-height: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.wh-pop__date b {
	font-family: var(--wh-font-serif);
	font-size: 20px;
	line-height: 22px;
	letter-spacing: 0;
}
.wh-pop__ename {
	min-width: 0;
	font-family: var(--wh-font-sans);
	font-size: 16px;
	line-height: 22px;
}

.wh-pop__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.wh-pop__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(239, 216, 189, 0.35);
	border-radius: 50%;
	background: rgba(0, 72, 78, 0.85);
	color: var(--wh-c-tan);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.wh-pop__close:hover,
.wh-pop__close:focus-visible {
	border-color: var(--wh-c-tan);
	background: var(--wh-c-teal);
	outline: none;
}

/* ── Mobiel: van onderen, foto bovenaan ── */
@media (max-width: 767px) {
	.wh-pop {
		align-items: flex-end;
		padding: 0;
	}
	.wh-pop__card,
	.wh-pop__card.has-img {
		grid-template-columns: minmax(0, 1fr);
		max-width: none;
		max-height: 88vh;
		border-radius: 14px 14px 0 0;
		transform: translateY(40px);
	}
	.wh-pop__media {
		height: 180px;
		min-height: 0;
	}
	.wh-pop__body {
		padding: 28px 22px 26px;
	}
	.wh-pop__text {
		font-size: 16px;
		line-height: 26px;
	}
	.wh-pop__btns,
	.wh-pop__btns .wh-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wh-pop__backdrop,
	.wh-pop__card {
		transition: none;
		transform: none;
	}
}
