/* Velon BRLO-kaart. Kleuren aanpasbaar via deze variabelen, bijvoorbeeld in Elementor > Site-instellingen > Eigen CSS. */
.brlo-kaart {
	--brlo-navy: #1f3a6b;
	--brlo-geel: #f5b915;
	--brlo-land: #eef1f7;
	--brlo-tekst: #26313f;
	--brlo-grijs: #5f6b7a;
	--brlo-pin-maat: clamp(18px, 6.2%, 32px);
	position: relative;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	color: var(--brlo-tekst);
	font: inherit;
}

.brlo-kaart__vlak {
	position: relative;
	aspect-ratio: 392 / 459;
}

.brlo-kaart__land {
	display: block;
	width: 100%;
	height: 100%;
}

.brlo-kaart__land path {
	fill: var(--brlo-land);
	stroke: var(--brlo-navy);
	stroke-width: 1.6;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.brlo-kaart__pins {
	position: absolute;
	inset: 0;
}

/* Knopstijlen van het thema (zoals de roze hover van Hello Elementor) binnen de kaart neutraliseren */
.brlo-kaart button.brlo-pin,
.brlo-kaart button.brlo-pin:hover,
.brlo-kaart button.brlo-pin:focus,
.brlo-kaart button.brlo-pin:active,
.brlo-kaart button.brlo-popup__videoknop,
.brlo-kaart button.brlo-popup__videoknop:hover,
.brlo-kaart button.brlo-popup__videoknop:focus,
.brlo-kaart button.brlo-popup__videoknop:active {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	text-decoration: none;
}

.brlo-kaart button.brlo-pin:focus,
.brlo-kaart button.brlo-pin:focus-visible { outline: none; box-shadow: none; }

/* Toetsenbordfocus: gele rand om de pin zelf in plaats van een vierkant kader */
.brlo-kaart button.brlo-pin:focus-visible svg path {
	stroke: var(--brlo-geel);
	stroke-width: 4;
	paint-order: stroke;
}

.brlo-kaart button.brlo-popup__videoknop,
.brlo-kaart button.brlo-popup__videoknop:hover,
.brlo-kaart button.brlo-popup__videoknop:focus { color: var(--brlo-navy); }
.brlo-kaart button.brlo-popup__videoknop:hover { text-decoration: underline; }

.brlo-kaart button.brlo-popup__sluit,
.brlo-kaart button.brlo-popup__sluit:focus { background: transparent; border: 0; box-shadow: none; color: var(--brlo-tekst); padding: 0; }
.brlo-kaart button.brlo-popup__sluit:hover { background: var(--brlo-land); color: var(--brlo-tekst); }

/* Pins */
.brlo-pin {
	position: absolute;
	width: var(--brlo-pin-maat);
	height: auto;
	aspect-ratio: 24 / 32;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transform: translate(-50%, -100%);
	transform-origin: 50% 100%;
	transition: transform .15s ease;
	z-index: 1;
}

.brlo-pin svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: var(--brlo-navy);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

.brlo-pin svg circle { fill: #fff; }

.brlo-pin:hover,
.brlo-pin:focus-visible { transform: translate(-50%, -100%) scale(1.12); z-index: 3; }

.brlo-pin[aria-expanded="true"] svg { fill: var(--brlo-geel); }
.brlo-pin[aria-expanded="true"] { z-index: 4; }

.brlo-pin__label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 4px);
	transform: translateX(-50%);
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--brlo-navy);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .12s ease;
}

.brlo-pin:hover .brlo-pin__label,
.brlo-pin:focus-visible .brlo-pin__label { opacity: 1; }
.brlo-pin[aria-expanded="true"] .brlo-pin__label { opacity: 0; }

.brlo-kaart__voetnoot {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	font-size: 12px;
	font-style: italic;
	color: var(--brlo-grijs);
}

/* Pop-up */
.brlo-kaart__popup {
	position: absolute;
	z-index: 10;
	width: min(320px, 92vw);
	padding: 16px 18px 14px;
	background: #fff;
	border: 2px solid var(--brlo-geel);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(31, 58, 107, .18);
	font-size: 14px;
	line-height: 1.45;
}

.brlo-kaart__popup[hidden] { display: none; }
.brlo-kaart__popup:focus { outline: none; }
.brlo-kaart__popup.is-video { width: min(420px, 92vw); }

.brlo-popup__sluit {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--brlo-tekst);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.brlo-popup__sluit:hover { background: var(--brlo-land); }
.brlo-popup__sluit:focus-visible { outline: 2px solid var(--brlo-navy); }

.brlo-popup__titel {
	margin: 0 32px 4px 0;
	color: var(--brlo-navy);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.brlo-popup__meta {
	margin: 0 0 12px;
	color: var(--brlo-grijs);
	font-size: 13px;
}

.brlo-popup__meta:has(+ .brlo-popup__mailregel) { margin-bottom: 2px; }

.brlo-popup__mailregel {
	margin: 0 0 12px;
	font-size: 13px;
}

.brlo-popup__mail {
	color: var(--brlo-navy);
	text-decoration: underline;
	word-break: break-all;
}

.brlo-popup__interview {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 10px;
	align-items: start;
}

.brlo-popup__interview.zonder-foto { grid-template-columns: 1fr; }

.brlo-popup__foto {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--brlo-land);
}

.brlo-popup__naam {
	margin: 0;
	font-weight: 700;
}

.brlo-popup__quote {
	margin: 2px 0 0;
	padding: 0;
	border: 0;
	font-style: italic;
	quotes: "‘" "’";
}

.brlo-popup__quote::before { content: open-quote; }
.brlo-popup__quote::after { content: close-quote; }

.brlo-popup__acties {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 12px;
}

.brlo-popup__link,
.brlo-popup__videoknop {
	padding: 0;
	border: 0;
	background: none;
	color: var(--brlo-navy);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.brlo-popup__link:hover,
.brlo-popup__videoknop:hover { text-decoration: underline; }

.brlo-popup__videoknop::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 6px;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent currentColor;
	vertical-align: 1px;
}

.brlo-popup__video {
	position: relative;
	margin-top: 12px;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}

.brlo-popup__video iframe,
.brlo-popup__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Smal scherm: pop-up onder de kaart in plaats van naast de pin */
@media (max-width: 640px) {
	.brlo-kaart__popup,
	.brlo-kaart__popup.is-video {
		position: relative;
		left: auto !important;
		top: auto !important;
		width: auto;
		margin-top: 12px;
	}
	.brlo-pin__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.brlo-pin,
	.brlo-pin__label { transition: none; }
}
