/* ── Mapa de Cantabria ─────────────────────────────────────────────────────── */

.mph-mapa-wrap {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Contenedor del mapa */
#mph-mapa {
	width: 100%;
	height: 50vw;
	min-height: 300px;
	max-height: 460px;
	border-radius: 12px;
	background: #e8f0f8;
	position: relative;
	z-index: 0; /* evita que quede por encima de la nav */
}

/* Popup Leaflet */
.mph-popup {
	text-align: center;
	min-width: 130px;
}
.mph-popup strong {
	display: block;
	font-size: 0.95rem;
	margin-bottom: 0.2rem;
	color: #1A2B49;
}
.mph-popup .mph-popup-count {
	font-size: 0.82rem;
	color: #666;
	margin-bottom: 0.5rem;
}
.mph-popup a {
	display: inline-block;
	background: #0071eb;
	color: #fff;
	font-size: 0.8rem;
	padding: 0.3rem 0.75rem;
	border-radius: 4px;
	text-decoration: none;
}
.mph-popup a:hover {
	background: #005bbf;
}

/* ── Lista de localidades ─────────────────────────────────────────────────── */

.mph-mapa-list-header {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.mph-mapa-list-header h2 {
	margin: 0;
	font-size: 1.25rem;
}
.mph-mapa-list-header span {
	font-size: 0.85rem;
	color: #666;
}

.mph-loc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.6rem;
}

.mph-loc-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	color: #1A2B49;
	font-size: 0.88rem;
	transition: border-color 0.15s, background 0.15s;
}
.mph-loc-card:hover {
	border-color: #0071eb;
	background: #f0f7ff;
	color: #0071eb;
}
.mph-loc-card__count {
	font-size: 0.78rem;
	color: #888;
	white-space: nowrap;
}

@media (max-width: 600px) {
	#mph-mapa {
		height: 65vw;
		border-radius: 8px;
	}
	.mph-loc-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}
