.wpmgn-map-wrap {
	margin: 1.5rem 0;
}

.wpmgn-map-filters {
	margin-bottom: 0.75rem;
}

.wpmgn-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}

.wpmgn-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 140px;
}

.wpmgn-filter-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #374151;
}

.wpmgn-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.wpmgn-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
	font-size: 0.875rem;
	cursor: pointer;
	line-height: 1.2;
}

.wpmgn-chip.is-active {
	border-color: #111827;
	box-shadow: 0 0 0 1px #111827;
}

.wpmgn-chip-swatch,
.wpmgn-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
}

.wpmgn-filter-select,
.wpmgn-filter-date,
.wpmgn-filter-search-input {
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 0.35rem 0.5rem;
	font-size: 0.875rem;
	min-height: 34px;
}

.wpmgn-date-inputs {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.wpmgn-filter-reset {
	border: 1px solid #d1d5db;
	background: #f9fafb;
	border-radius: 4px;
	padding: 0.35rem 0.75rem;
	cursor: pointer;
	font-size: 0.875rem;
	min-height: 34px;
}

.wpmgn-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid #e5e7eb;
}

.wpmgn-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	color: #4b5563;
}

.wpmgn-map {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	z-index: 0;
}

.wpmgn-marker-wrap {
	background: transparent;
	border: 0;
}

.wpmgn-marker {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.wpmgn-popup {
	font-size: 0.875rem;
	line-height: 1.45;
}

.wpmgn-popup-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.wpmgn-popup-location {
	color: #6b7280;
	font-size: 0.8125rem;
	margin-bottom: 0.25rem;
}

.wpmgn-popup-note {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: #374151;
	font-style: italic;
}

.wpmgn-popup-title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	line-height: 1.3;
}

.wpmgn-popup-title a {
	color: inherit;
	text-decoration: none;
}

.wpmgn-popup-title a:hover {
	text-decoration: underline;
}

.wpmgn-popup-date {
	color: #6b7280;
	font-size: 0.8125rem;
	margin-bottom: 0.35rem;
}

.wpmgn-popup-excerpt {
	margin: 0 0 0.5rem;
}

.wpmgn-popup-link {
	font-weight: 600;
	text-decoration: none;
}

.wpmgn-popup-link:hover {
	text-decoration: underline;
}

/* Fullscreen layout */
body.wpmgn-fullscreen-body {
	margin: 0;
	overflow: hidden;
}

.wpmgn-map-wrap.is-fullscreen {
	margin: 0;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	position: relative;
}

.wpmgn-fullscreen-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 1rem;
	background: #111827;
	color: #fff;
	flex-shrink: 0;
	z-index: 1000;
}

.wpmgn-return-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	background: #fff;
	color: #111827;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
}

.wpmgn-return-btn:hover {
	background: #f3f4f6;
	color: #111827;
}

.wpmgn-filters-toggle {
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
	border-radius: 4px;
	padding: 0.4rem 0.85rem;
	cursor: pointer;
	font-size: 0.875rem;
}

.wpmgn-filters-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.wpmgn-map-wrap.is-fullscreen .wpmgn-map-filters-overlay {
	position: absolute;
	top: 3.25rem;
	left: 0;
	right: 0;
	z-index: 900;
	margin: 0;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	max-height: 50vh;
	overflow-y: auto;
	display: none;
}

.wpmgn-map-wrap.is-fullscreen .wpmgn-map-filters-overlay.is-open {
	display: block;
}

.wpmgn-map-fullscreen {
	flex: 1;
	min-height: 0;
	border: 0;
	border-radius: 0;
}

/* Leaflet attribution — minimal, no Leaflet branding */
.leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, 0.75) !important;
}

.leaflet-control-attribution a {
	color: #4b5563;
}

.wpmgn-map-wrap .leaflet-top.leaflet-right {
	top: 0.5rem;
	right: 0.5rem;
}

@media (max-width: 768px) {
	.wpmgn-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.wpmgn-filter-group {
		width: 100%;
	}
}
