/* Página Espacios - Mapa Fullscreen */

.mapa-section {
	margin: 0;
	padding: 0;
}

.mapa-fullscreen {
	position: relative;
	width: 100%;
	height: 100vh;
}

.mapa-container {
	width: 100%;
	height: 100%;
}

/* Filtros flotantes sobre el mapa */
.mapa-filtros-flotantes {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 10px;
	background: transparent;
	padding: 12px;
	border-radius: 8px;
}

.filtro-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid #1a1a1a;
	padding: 10px 20px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--color-text);
	transition: all 0.3s ease;
	white-space: nowrap;
}

.filtro-btn:hover {
	border-color: #1a1a1a;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.25);
}

.filtro-btn.active {
	background: #1a1a1a;
	color: white;
	border-color: #1a1a1a;
}

.filtro-icon {
	font-size: 1.2rem;
	line-height: 1;
}

/* InfoWindow personalizado */
.info-window {
	max-width: 300px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.info-window img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.info-window h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
	color: var(--color-text);
}

.info-window p {
	margin: 0 0 0.5rem 0;
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.info-window strong {
	color: var(--color-text);
}

.btn-small {
	display: inline-block;
	background: var(--color-primary);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-top: 0.5rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-small:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Botón Mi Ubicación */
.btn-mi-ubicacion {
	position: absolute;
	top: 4rem;
	right: 0.5rem;
	z-index: 10;
	width: 40px;
	height: 40px;
	background: white;
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.btn-mi-ubicacion:hover {
	background: #f5f5f5;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transform: translateY(-2px);
}

.btn-mi-ubicacion:active {
	transform: translateY(0);
}

.btn-mi-ubicacion.activo {
	background: #0066FF;
	border-color: #0066FF;
}

.btn-mi-ubicacion.activo .ubicacion-icon {
	filter: brightness(0) invert(1);
}

.ubicacion-icon {
	font-size: 1.3rem;
	line-height: 1;
}

/* Responsive */
@media (max-width: 767px) {
	.mapa-filtros-flotantes {
		top: 10px;
		left: 10px;
		right: 10px;
		transform: none;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding: 8px;
		gap: 8px;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE/Edge */
	}
	
	.mapa-filtros-flotantes::-webkit-scrollbar {
		display: none; /* Chrome/Safari */
	}
	
	.filtro-btn {
		flex-shrink: 0;
		padding: 8px 16px;
		font-size: 0.85rem;
	}
	
	.filtro-icon {
		font-size: 1rem;
	}
	
	.btn-mi-ubicacion {
		top: 70px;
		right: 10px;
		width: 36px;
		height: 36px;
	}
	
	.ubicacion-icon {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.filtro-btn {
		padding: 6px 12px;
		font-size: 0.8rem;
	}
	
	.info-window {
		max-width: 250px;
	}
	
	.info-window h3 {
		font-size: 1rem;
	}
}