/* [regenradar] — klassieke stijl, zoals de andere weer-plugins (Weer Hub). */
.wrg {
	--wrg-blauw: var(--wk-knop, #1a5fa0);
	background: #f3f4f6;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin: 0 auto 2em;
	color: #1c2430;
	font-size: 14px;
	box-sizing: border-box;
}

.wrg *,
.wrg *::before,
.wrg *::after {
	box-sizing: border-box;
}

.wrg-kop {
	background: linear-gradient(90deg, var(--wk-kop-basis-1, #1f5fae), var(--wk-kop-basis-2, #4a8ad6));
	color: var(--wk-kop-basis-tekst, #fff);
	padding: 10px 16px;
	font-size: 16px;
	font-weight: 700;
}

/* Bediening: afspelen, sneller, tijd, tijdlijn. */
.wrg-bediening {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 10px;
	padding: 14px 16px 12px;
}

.wrg button.wrg-knop {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid #c9ced6;
	border-radius: 999px;
	background: #fff;
	color: #1c2430;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.wrg button.wrg-knop svg {
	display: block;
	flex: none;
	color: var(--wrg-blauw);
}

.wrg button.wrg-knop:hover {
	border-color: var(--wrg-blauw);
	background: #fff;
	color: #1c2430;
}

.wrg button.wrg-knop.is-actief,
.wrg.is-spelend button.wrg-speel {
	background: var(--wrg-blauw);
	border-color: var(--wrg-blauw);
	color: var(--wk-knop-tekst, #fff);
}

.wrg button.wrg-knop.is-actief svg,
.wrg.is-spelend button.wrg-speel svg {
	color: inherit;
}

.wrg-factor {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.8;
}

.wrg .wrg-i-pauze { display: none; }
.wrg.is-spelend .wrg-i-speel { display: none; }
.wrg.is-spelend .wrg-i-pauze { display: inline; }

.wrg-tijd {
	flex: none;
	min-width: 66px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--wrg-blauw);
	color: var(--wk-knop-tekst, #fff);
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.wrg-tijdlijn {
	position: relative;
	flex: 1 1 200px;
	min-width: 140px;
	padding-bottom: 14px;
	margin-top: 12px;
}

.wrg-schuif {
	--wrg-pct: 100%;
	display: block;
	width: 100%;
	height: 6px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--wrg-blauw) var(--wrg-pct), #d6dbe2 var(--wrg-pct));
	cursor: pointer;
}

.wrg-schuif::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--wrg-blauw);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.wrg-schuif::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--wrg-blauw);
}

/* Streepjes per beeld onder de schuifbalk, met het uur erbij. */
.wrg-ticks {
	position: absolute;
	left: 9px;
	right: 9px;
	top: 10px;
	height: 16px;
	pointer-events: none;
}

.wrg-ticks span {
	position: absolute;
	top: 0;
	width: 1px;
	height: 4px;
	background: #b5bcc6;
}

.wrg-ticks span.is-uur {
	height: 6px;
	background: #8a93a0;
}

.wrg-ticks span.is-uur::after {
	content: attr(data-t);
	position: absolute;
	top: 6px;
	left: 0;
	transform: translateX(-50%);
	font-size: 10px;
	line-height: 1.2;
	color: #5b6472;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.wrg-ticks span.is-uur:last-child::after {
	transform: translateX(-85%);
}

/* De kaart. */
.wrg-kaart-wrap {
	position: relative;
	margin: 0 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #dfe3e9;
	background: #e9ebee;
}

.wrg-kaart {
	position: absolute;
	inset: 0;
	background: #e9ebee;
	font: inherit;
	z-index: 0;
}

.wrg .leaflet-container {
	font-family: inherit;
}

.wrg .leaflet-container img,
.wrg .leaflet-container canvas {
	max-width: none !important;
	max-height: none !important;
}

.wrg .wrg-radarlaag canvas,
.wrg canvas.wrg-tegel {
	image-rendering: auto;
}

/* Zoomknoppen: rond en wit, zoals de andere knoppen. */
.wrg .leaflet-touch .leaflet-bar,
.wrg .leaflet-bar {
	border: 0;
	border-radius: 10px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.wrg .leaflet-bar a,
.wrg .leaflet-touch .leaflet-bar a {
	width: 34px;
	height: 34px;
	line-height: 34px;
	font-size: 20px;
	color: #1c2430;
	background: #fff;
	text-decoration: none;
}

.wrg .leaflet-bar a:hover {
	color: var(--wrg-blauw);
	background: #f3f6fa;
}

.wrg .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, 0.7);
}

.wrg .wrg-plaats {
	padding: 1px 6px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	color: #1c2430;
	font-size: 12px;
	font-weight: 700;
}

.wrg .wrg-plaats::before {
	display: none;
}

.wrg-label {
	position: absolute;
	top: 10px;
	left: 12px;
	z-index: 500;
	padding: 6px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	line-height: 1.25;
	pointer-events: none;
}

.wrg-label b {
	display: block;
	font-size: 15px;
	font-weight: 700;
}

.wrg-label span {
	font-size: 12px;
	color: #3a475a;
}

.wrg-laden,
.wrg-fout,
.wrg-hint {
	position: absolute;
	z-index: 600;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 12px;
	pointer-events: none;
}

.wrg-laden {
	right: 12px;
	bottom: 26px;
}

.wrg-fout {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-radius: 10px;
	text-align: center;
}

.wrg-hint {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 13px;
}

.wrg-laden[hidden],
.wrg-fout[hidden],
.wrg-hint[hidden] {
	display: none;
}

/* Legende. */
.wrg ul.wrg-legende {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	margin: 12px 16px 0;
	padding: 8px 12px;
	list-style: none;
	background: #fff;
	border: 1px solid #e3e7ed;
	border-radius: 10px;
	font-size: 12px;
	color: #3a475a;
}

.wrg ul.wrg-legende li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.wrg ul.wrg-legende li::before {
	display: none;
}

.wrg-legende i {
	display: inline-block;
	width: 22px;
	height: 12px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wrg-voet {
	padding: 8px 16px 14px;
	font-size: 11px;
	color: #5b6472;
	text-align: right;
}

.wrg-voet a {
	color: inherit;
}

@media (max-width: 600px) {
	.wrg-bediening {
		padding: 12px 12px 10px;
		gap: 8px;
	}
	.wrg button.wrg-knop {
		padding: 6px 11px;
		gap: 5px;
	}
	.wrg-tijd {
		min-width: 0;
		padding: 6px 11px;
	}
	.wrg-tijdlijn {
		order: 3;
		flex-basis: 100%;
		margin-top: 2px;
	}
	.wrg-kaart-wrap {
		margin: 0 10px;
		max-height: 70vh;
	}
	.wrg-label {
		padding: 4px 9px;
	}
	.wrg-label b {
		font-size: 13px;
	}
	.wrg-label span {
		font-size: 11px;
	}
	.wrg ul.wrg-legende {
		margin: 10px 10px 0;
		gap: 5px 10px;
		font-size: 11px;
	}
	.wrg-voet {
		padding: 8px 12px 12px;
	}
}

/* OpenStreetMap in grijstinten, zodat de radarkleuren opvallen. */
.wrg .wrg-ondergrond-osm {
	filter: grayscale(1) contrast(0.85) brightness(1.08);
}

.wrg.wrg-kaart-donker .wrg-kaart,
.wrg.wrg-kaart-donker .wrg-kaart-wrap {
	background: #2b2f33;
}
