/* VDL Maps 2.0 (MapLibre GL). De MapLibre-CSS wordt pas met de kaart geladen; selectors hier zijn
   specifieker, zodat de volgorde niet uitmaakt. */
.vdl-map {
	position: relative;
	width: 100%;
}
.vdl-map__canvas {
	position: relative;
	width: 100%;
	height: var(--vdl-map-height, 400px);
	z-index: 0; /* kaart onder sticky headers/popups van het thema */
	background: #f2eee6; /* zelfde als de stijl: geen wit vlak tijdens het laden */
	overflow: hidden;
}
@media (max-width: 1024px) {
	.vdl-map__canvas { height: var(--vdl-map-height-tablet, var(--vdl-map-height, 400px)); }
}
@media (max-width: 767px) {
	.vdl-map__canvas { height: var(--vdl-map-height-mobile, var(--vdl-map-height-tablet, var(--vdl-map-height, 400px))); }
}

/* Geen WebGL (of laden mislukt): melding; de lijst naast de kaart blijft gewoon werken. */
.vdl-map__fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px;
	text-align: center;
	color: #4a453d;
	font-size: 15px;
	line-height: 1.5;
	z-index: 1;
}
.vdl-map__fallback[hidden] {
	display: none;
}

/* Popup (zelfde classes als 1.0.0: .vdl-map__popup-wrap, .vdl-map__popup) */
.vdl-map .vdl-map__popup-wrap {
	z-index: 3;
}
.vdl-map .vdl-map__popup-wrap .maplibregl-popup-content {
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(40, 34, 24, 0.18);
	font: inherit;
}
.vdl-map .vdl-map__popup-wrap:not(.vdl-map__popup-wrap--template) .maplibregl-popup-close-button {
	width: 28px;
	height: 28px;
	font-size: 20px;
	line-height: 26px;
	color: #3b3731;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 0 12px 0 8px;
	z-index: 1;
}
.vdl-map__popup {
	padding: 12px 16px;
	max-width: 100%;
	box-sizing: border-box;
}
.vdl-map__popup .elementor { /* Elementor-template in de popup */
	margin: 0;
}
/* (2.0.3) Popup met Elementor-template: maten zoals de JetEngine-kaartpopup op live
   (jet-engine frontend.css: content zonder padding; sluitknop 5px / 16px / regelhoogte 12px,
   kleur #333; achtergrond, hoek en lettertype komen net als live uit de knopstijl van de kit). */
.vdl-map__popup.vdl-map__popup--template {
	padding: 0;
}
.vdl-map__popup-wrap--template button.maplibregl-popup-close-button {
	padding: 5px;
	font-size: 16px;
	line-height: 12px;
	font-weight: 400;
	color: #333;
	z-index: 1;
}

/* Bediening: rustig, past bij de lichte stijl */
.vdl-map .maplibregl-ctrl-group {
	border-radius: 8px;
	box-shadow: 0 1px 6px rgba(40, 34, 24, 0.15);
}
.vdl-map .maplibregl-ctrl-attrib {
	font-size: 11px;
	background: rgba(255, 255, 255, 0.8);
}
.vdl-map .maplibregl-cooperative-gesture-screen {
	font-size: 1.1em;
}
