.scouts-map-container * {
	box-sizing: border-box;
}

.scouts-map-container {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Figtree', sans-serif;
	position: relative;
	z-index: 1;
}

.scouts-map-container .map-wrapper {
	display: flex;
	gap: 0;
	margin: 0;
	width: 100%;
	height: 600px;
	position: relative;
	z-index: 1;
}

.scouts-map-container .sidebar-left {
	flex: 0 0 350px;
	background: #f5f5f5;
	padding: 20px;
	overflow-y: auto;
	height: 600px;
	display: flex;
	flex-direction: column;
	overscroll-behavior: contain;
	position: relative;
}

.scouts-map-container .location-controls {
	margin-bottom: 20px;
	flex-shrink: 0;
}

.scouts-map-container #map {
	flex: 1;
	height: 600px;
	min-width: 0;
}

.scouts-map-container .control-group {
	margin-bottom: 15px;
}

.scouts-map-container .control-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-family: 'Baloo 2', cursive;
	font-size: 1.5rem;
}

.scouts-map-container .search-wrapper {
	display: flex;
	gap: 8px;
}

.scouts-map-container .control-group input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: 'Figtree', sans-serif;
}

.scouts-map-container .btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s;
	font-family: 'Figtree', sans-serif;
}

.scouts-map-container .btn-primary {
	background: #00407c;
	color: white;
}

.scouts-map-container .btn-primary:hover {
	background: #003366;
}

.scouts-map-container .btn-more {
	background: #00407c;
	color: white;
	width: 100%;
	margin-top: 10px;
	font-size: 0.9rem;
}

.scouts-map-container .btn-more:hover {
	background: #003366;
}

.scouts-map-container .locations-list {
	margin-top: 0;
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	position: relative;
}

.scouts-map-container .location-item {
	background: white;
	padding: 15px;
	margin-bottom: 10px;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.scouts-map-container .location-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.scouts-map-container .location-item h4 {
	margin: 0 0 8px 0;
	color: #00407c;
	font-size: 1.5rem;
	font-family: 'Baloo 2', cursive;
	font-weight: 800;
}

.scouts-map-container .location-item .distance {
	color: #666;
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 5px;
}

.scouts-map-container .location-item .address {
	color: #777;
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 5px;
}

.scouts-map-container .location-item .schedule {
	color: #555;
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 5px;
}

.scouts-map-container .location-item .contact {
	color: #00407c;
	font-size: 1rem;
	font-weight: 400;
}

.scouts-map-container .message {
	padding: 12px;
	border-radius: 4px;
	margin-top: 15px;
	font-size: 14px;
}

.scouts-map-container .message.info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.scouts-map-container .message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.scouts-map-container .hidden {
	display: none;
}

/* Estilos para popups (Leaflet los pone fuera del contenedor, no se puede acotar por .scouts-map-container) */
.leaflet-popup-content {
	font-family: 'Figtree', sans-serif;
}

.leaflet-popup-content h4 {
	font-family: 'Baloo 2', cursive;
	color: #00407c;
}

@media (max-width: 768px) {
	.scouts-map-container .map-wrapper {
		flex-direction: column;
	}

	.scouts-map-container .sidebar-left {
		flex: 1;
		width: 100%;
		max-height: none;
	}

	.scouts-map-container #map {
		height: 400px;
	}
}
