.mi-mapa-contenedor {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 100%;
	margin: 20px 0;
}

.mi-mapa-sidebar {
	flex: 0 0 260px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	padding: 18px;
	max-height: 550px;
	overflow-y: auto;
}

.mi-mapa-titulo-categorias {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	border-bottom: 2px solid #4285f4;
	padding-bottom: 8px;
}

.mi-mapa-lista-categorias {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mi-mapa-categoria {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	margin-bottom: 6px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: background-color 0.15s ease, color 0.15s ease;
	user-select: none;
}

.mi-mapa-categoria:hover {
	background: #f1f4ff;
}

.mi-mapa-categoria-activa {
	background: #4285f4;
	color: #ffffff;
	font-weight: 600;
}

.mi-mapa-categoria-activa .mi-mapa-contador {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.mi-mapa-punto-color {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.mi-mapa-marcador-color {
	background: transparent;
	border: none;
}

.mi-mapa-contador {
	background: #eef1f6;
	color: #666;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
}

.mi-mapa-mapa-wrapper {
	flex: 1 1 400px;
	min-width: 300px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#mi-mapa-leaflet {
	width: 100%;
	border-radius: 12px;
}

/* Popup */
.mi-mapa-popup {
	min-width: 200px;
	max-width: 240px;
	font-family: inherit;
}

.mi-mapa-popup-img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 8px;
}

.mi-mapa-popup h4 {
	margin: 0 0 6px;
	font-size: 15px;
	color: #1a1a1a;
}

.mi-mapa-popup p {
	margin: 3px 0;
	font-size: 13px;
	color: #444;
}

.mi-mapa-popup-enlace {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #4285f4;
	text-decoration: none;
}

.mi-mapa-popup-enlace:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.mi-mapa-contenedor {
		flex-direction: column;
	}
	.mi-mapa-sidebar {
		flex: none;
		width: 100%;
		max-height: 220px;
	}
}
