/* WBMZ Lievegoed Locaties. Kleuren via de variabelen van het thema, met een terugval. */
.lgl {
	--lgl-donker: var(--donkerblauw, #1d2b3a);
	--lgl-accent: var(--ctageel, #f6b221);
	--lgl-tekst: #62554d;
	margin: 0 0 2em;
}

.lgl-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lgl [hidden] {
	display: none !important;
}

.lgl button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.lgl button:focus-visible,
.lgl a:focus-visible,
.lgl input:focus-visible {
	outline: 2px solid var(--lgl-donker);
	outline-offset: 2px;
}

/* Zonder JS: alleen de lijst. Zoeken, filters en kaart verschijnen pas als ze werken. */
.lgl:not(.lgl--js) .lgl-kop,
.lgl:not(.lgl--js) .lgl-filters,
.lgl:not(.lgl--js) .lgl-status {
	display: none;
}

/* ---------- Kop: zoeken en weergave ---------- */
.lgl-kop {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em 2em;
	margin-bottom: 2em;
}

.lgl-zoek {
	flex: 1 1 320px;
	margin: 0;
}

.lgl-zoek input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 1.2em;
	border: 1px solid var(--lgl-donker);
	border-radius: 30px;
	background: #fff;
	color: var(--lgl-tekst);
	font-size: 1em;
	-webkit-appearance: none;
	appearance: none;
}

.lgl-knoppen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em 1.5em;
}

.lgl-mijnlocatie {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lgl-mijnlocatie:disabled {
	opacity: 0.6;
	cursor: progress;
}

.lgl-weergave {
	display: flex;
	gap: 1em;
}

.lgl-weergave button {
	position: relative;
	padding-left: 32px;
	line-height: 24px;
}

.lgl-weergave button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 24px;
	height: 24px;
	border: 1px solid var(--lgl-donker);
	border-radius: 50%;
	transform: translateY(-50%);
	box-sizing: border-box;
}

.lgl-weergave button.is-actief::before {
	background-color: var(--lgl-accent);
	box-shadow: inset 0 0 0 2px #fff;
}

/* ---------- Filters ---------- */
.lgl-filtergroep {
	margin-bottom: 2em;
}

.lgl-filtergroep__kop {
	position: relative;
	padding-left: 1.5em;
	font-size: 24px;
	margin: 0;
}

.lgl-filtergroep__kop::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 0.8em;
	height: 0.8em;
	background: url(../img/pijl.svg) no-repeat center / 100%;
	transform: translateY(-50%);
}

/* Divi geeft lijsten in de content opsommingstekens en inspringing; hier niet. */
.lgl .lgl-filter,
.lgl .lgl-lijst {
	list-style: none !important;
	margin-left: 0 !important;
	padding: 0 !important;
}

.lgl .lgl-filter li,
.lgl .lgl-lijst > li {
	list-style: none !important;
}

.lgl .lgl-filter li::before,
.lgl .lgl-filter li::marker {
	content: none;
}

.lgl-filter {
	margin: 0.5em 0 !important;
}

.lgl-filter li {
	margin: 0;
	padding: 0;
}

.lgl-filter button {
	display: flex;
	align-items: baseline;
}

.lgl-filter button::before {
	content: '+';
	flex: 0 0 1.25em;
}

.lgl-filter button.is-actief {
	font-weight: bold;
}

.lgl-filter button.is-actief::before {
	content: '-';
}

.lgl-wis {
	display: inline-block;
	padding: 0.4em 1.2em !important;
	border-radius: 30px;
	background: var(--lgl-accent) !important;
	color: var(--lgl-donker) !important;
}

.lgl-wis--tekst {
	display: inline;
	padding: 0 !important;
	background: none !important;
	text-decoration: underline;
}

/* ---------- Lijst ---------- */
.lgl-status {
	margin: 0 0 1em;
	font-weight: 600;
}

.lgl-lijst {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lgl-item {
	margin: 0 0 1.5em;
	padding: 0;
	background: #fff;
	box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.3);
}

.lgl-item__beeld img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 260px;
	object-fit: cover;
	border: 0;
}

.lgl-item__inhoud {
	padding: 20px;
}

.lgl-item__titel {
	padding-bottom: 0.2em;
}

.lgl-item__inhoud p {
	margin-bottom: 1em;
	padding-bottom: 0;
}

.lgl-item__doelgroep {
	margin-bottom: 0.5em !important;
}

.lgl-item__afstand {
	font-weight: 600;
}

.lgl-item__meer a {
	position: relative;
	color: var(--lgl-donker);
	padding-right: 1.2em;
}

.lgl-item__meer a::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0;
	width: 0.6em;
	height: 0.6em;
	background: url(../img/pijl.svg) no-repeat center / 100%;
	transform: translateY(-50%);
}

.lgl-leeg {
	padding: 1em 0;
}

/* ---------- Kaart ---------- */
.lgl-kaartvlak {
	position: relative;
	background: #e3f1e0;
}

.lgl-kaart-map {
	height: min(650px, 75vh);
	min-height: 360px;
	width: 100%;
	z-index: 0;
}

.lgl-kaartvlak:fullscreen .lgl-kaart-map,
.lgl-kaartvlak--vol .lgl-kaart-map {
	height: 100%;
	min-height: 0;
}

/* Terugval voor schermvullend zonder Fullscreen API (iPhone). */
.lgl-kaartvlak--vol {
	position: fixed !important;
	inset: 0;
	z-index: 100000;
}

.lgl-geen-scroll,
.lgl-geen-scroll body {
	overflow: hidden !important;
}

.lgl-kaart-laden {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1em;
	text-align: center;
	pointer-events: none;
}

/* Knop rechtsboven, zoals bij Google: wit, afgerond, met schaduw. */
.lgl-kaartbalk {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	gap: 10px;
}

.lgl .lgl-volledig {
	height: 40px;
	padding: 0 17px;
	font-family: Roboto, Arial, sans-serif;
	font-size: 18px;
	line-height: 40px;
	color: #565656;
	background: #fff;
	text-align: center;
}

.lgl .lgl-volledig:hover {
	background: #ebebeb;
	color: #000;
}

.lgl .lgl-volledig {
	width: 40px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
}

/* Zoomknoppen: groot en wit (MapLibre en Leaflet). */
.lgl .maplibregl-ctrl-group,
.lgl .leaflet-control-zoom.leaflet-bar {
	border: 0;
	border-radius: 2px;
	box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.lgl .maplibregl-ctrl-group button,
.lgl .leaflet-control-zoom a {
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-size: 22px;
	color: #666;
	background-color: #fff;
}

.lgl .maplibregl-ctrl-group button + button {
	border-top: 1px solid #e6e6e6;
}

.lgl .maplibregl-ctrl-group button:hover,
.lgl .leaflet-control-zoom a:hover {
	background-color: #ebebeb;
	color: #333;
}

.lgl .maplibregl-ctrl-scale,
.lgl .leaflet-control-scale-line {
	border-color: #666;
	color: #333;
	background: rgba(255, 255, 255, 0.75);
	font-size: 11px;
}

.lgl .lgl-marker {
	cursor: pointer;
	display: block;
}

.lgl .maplibregl-popup-content {
	padding: 12px 16px;
	border-radius: 8px;
	box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.3);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
}


.lgl-popup__blok + .lgl-popup__blok {
	margin-top: 0.8em;
	padding-top: 0.8em;
	border-top: 1px solid #e3e0dd;
}

.lgl-popup a {
	color: var(--lgl-donker);
}

.lgl .leaflet-container {
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
}

@media (min-width: 520px) {
	.lgl-item {
		display: flex;
	}

	.lgl-item__beeld {
		flex: 0 0 30%;
	}

	.lgl-item__beeld img {
		max-height: none;
	}

	.lgl-item__inhoud {
		flex: 1 1 70%;
	}
}

@media (min-width: 769px) {
	.lgl--js {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.lgl-kop {
		flex: 1 0 100%;
	}

	.lgl-filters {
		flex: 0 0 28%;
		padding-right: 30px;
		box-sizing: border-box;
	}

	.lgl-inhoud {
		flex: 0 0 70%;
		min-width: 0;
	}

	.lgl-item__inhoud {
		padding: 20px 40px;
	}
}
