/* Leinenpflicht-Gebiete overlay (js/leash-zones.js) */
.leash-control {
	background: #fff;
	font-family: 'Roboto', sans-serif;
	color: #333;
	max-width: 280px;
}

/* Scoped to beat theme rules like `.article-tour button`. */
.leaflet-container .leash-control .leash-control__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	background: #fff;
	color: #ff2f2f;
	font: 500 13px/1.2 'Roboto', sans-serif;
	cursor: pointer;
	border-radius: 4px;
}

.leaflet-container .leash-control.is-open .leash-control__toggle {
	border-bottom: 1px solid #ccc;
	border-radius: 4px 4px 0 0;
	width: 100%;
}

.leash-control__panel {
	display: none;
	padding: 8px 10px 10px;
	max-height: 60vh;
	overflow-y: auto;
}

.leash-control.is-open .leash-control__panel {
	display: block;
}

.leash-control__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 8px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.3;
}

.leash-control__row input {
	margin-top: 2px;
	accent-color: #009fe3;
}

.leash-control__row small {
	display: block;
	color: #666;
	font-size: 11px;
}

.leash-control__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: -2px 0 10px 24px;
	font-size: 11px;
	color: #666;
}

.leash-control__legend span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.leash-control__legend img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.leash-control__swatch {
	display: inline-block;
	width: 14px;
	height: 12px;
	border: 2px dashed #c62828;
	background: rgba(229, 57, 53, 0.25);
}

.leash-control__season,
.leash-popup__season {
	margin: 0 0 8px;
	padding: 6px 8px;
	background: #fff4e5;
	border-left: 3px solid #f59e0b;
	font-size: 11px;
	line-height: 1.35;
}

.leash-control__note,
.leash-popup__note {
	margin: 0;
	color: #999;
	font-size: 10px;
	line-height: 1.35;
}

.leash-popup .leaflet-popup-content {
	margin: 12px 14px;
	font-family: 'Roboto', sans-serif;
	color: #333;
}

.leash-popup__item {
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #f5f5f5;
}

.leash-popup__badge {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.leash-popup__badge.is-leash {
	background: #ff2f2f;
	color: #fff;
}

.leash-popup__badge.is-info {
	background: #f5f5f5;
	color: #666;
}

.leash-popup__name {
	display: block;
	font-size: 14px;
	line-height: 1.3;
}

.leash-popup__meta {
	display: block;
	color: #666;
	font-size: 12px;
}

.leash-popup__link {
	display: inline-block;
	margin-top: 4px;
	color: #009fe3;
	font-size: 12px;
	font-weight: 500;
}

/* Theme makes popups transparent (`.map-tour ... .leaflet-popup-content-wrapper`) and
   .leaflet-bar links 26px blocks; restore for our UI. */
.leaflet-container .leash-popup .leaflet-popup-content-wrapper,
.leaflet-container .leash-popup .leaflet-popup-tip {
	background: #fff !important;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-container .leash-popup .leaflet-popup-content-wrapper {
	border-radius: 8px;
}

.leaflet-container .leash-popup .leaflet-popup-content p {
	margin: 0 0 8px;
}

.leaflet-container .leash-control .leash-control__note a,
.leaflet-container .leash-popup .leash-popup__note a {
	display: inline;
	width: auto;
	height: auto;
	line-height: inherit;
	border: 0;
	background: none;
	text-align: left;
	color: #009fe3;
}
