/* BreatheErie sensor map — matches the homepage's white bordered cards. */

.bpa-map {
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 0 0 24px 0;
}

.bpa-map__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 12px;
}

.bpa-map__title {
	margin: 0;
	font-size: 1.25em;
}

.bpa-map__meta {
	font-size: 0.85em;
	color: #666666;
}

.bpa-map__canvas {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	z-index: 0; /* keep Leaflet panes beneath the site's floating badges */
}

.bpa-map__pin-wrap {
	background: none;
	border: 0;
}

.bpa-map__pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid rgba(0, 0, 0, 0.35);
	font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	box-sizing: border-box;
}

.bpa-map__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 10px;
	font-size: 0.8em;
	color: #555555;
}

.bpa-map__legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.25);
	margin-right: 6px;
	vertical-align: -1px;
}

.bpa-map__note {
	margin: 10px 0 0 0;
	font-size: 0.8em;
	line-height: 1.5;
	color: #777777;
}

.bpa-map__pop {
	min-width: 190px;
	font-size: 13px;
	line-height: 1.4;
}

.bpa-map__pop-name {
	font-weight: 700;
	margin-bottom: 4px;
}

.bpa-map__pop-aqi strong {
	font-size: 1.5em;
}

.bpa-map__pop-sub {
	color: #777777;
	font-size: 0.9em;
	margin-bottom: 6px;
}

.bpa-map__pop-table {
	width: 100%;
	border-collapse: collapse;
	margin: 4px 0 8px 0;
}

.bpa-map__pop-table td {
	padding: 2px 0;
	border: 0;
}

.bpa-map__pop-table td:last-child {
	text-align: right;
	font-weight: 600;
}

.bpa-map__pop-link {
	font-weight: 700;
}

@media (max-width: 580px) {
	.bpa-map {
		padding: 16px;
	}
}
