/*
 * Dog Places Map — frontend styles.
 * Leaflet's own CSS (public/vendor/leaflet/leaflet.css) must be loaded first; this file only
 * adds the plugin's own UI chrome (filters, legend, popup content, states).
 */

.dog-places-map {
	position: relative;
	width: 100%;
	min-height: 260px;
	background: #eef1f0;
	border-radius: 4px;
	overflow: hidden;
}

.dog-places-map:focus {
	outline: 2px solid #2e7dd7;
	outline-offset: 2px;
}

.dog-places-map .leaflet-container {
	width: 100%;
	height: 100%;
	font-family: inherit;
}

/* Filter panel (Leaflet control). */
.dpm-filters {
	background: #fff;
	padding: 8px 10px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	font-size: 13px;
	line-height: 1.5;
	max-width: 220px;
}

.dpm-filters__title {
	font-weight: 600;
	margin: 0 0 4px;
}

.dpm-filters label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	margin: 2px 0;
}

.dpm-filters input[type="checkbox"] {
	margin: 0;
}

.dpm-filters__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.dpm-filters__swatch svg {
	display: block;
}

.dpm-filters__locate {
	margin-top: 8px;
	width: 100%;
	padding: 6px 8px;
	font-size: 13px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	cursor: pointer;
}

.dpm-filters__locate:hover {
	background: #eee;
}

/* Legend (Leaflet control). */
.dpm-legend {
	background: #fff;
	padding: 8px 10px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	font-size: 12px;
	line-height: 1.6;
}

.dpm-legend__title {
	font-weight: 600;
	margin: 0 0 4px;
}

.dpm-legend__row {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Loading / error overlays. */
.dpm-status {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	background: #fff;
	padding: 6px 14px;
	border-radius: 20px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	font-size: 13px;
	pointer-events: none;
}

.dpm-status--error {
	background: #fbeaea;
	color: #8a1f11;
}

.dpm-status[hidden] {
	display: none;
}

/* Popup content. */
.dpm-popup {
	font-size: 13px;
	line-height: 1.5;
	max-width: 240px;
}

.dpm-popup__title {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 2px;
}

.dpm-popup__category {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #555;
	margin-bottom: 6px;
}

.dpm-popup__row {
	margin: 2px 0;
}

.dpm-popup__blacklist-id {
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px dashed #ddd;
}

.dpm-popup__blacklist-id code {
	background: #f1f1f1;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 12px;
}

.dpm-popup__blacklist-hint {
	margin: 2px 0 0;
	font-size: 11px;
	color: #666;
}

/* Category marker icons: a colored paw print on a white circular badge. */
.dpm-marker-icon__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
	.dpm-filters {
		max-width: 160px;
		font-size: 12px;
	}
}
