/* GeoFotos Photo Gallery Strip Styles */

/* Wrapper principal de la galería */
.geofotos-gallery-wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease-in-out;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
	backdrop-filter: blur(10px);
	border-top: 1px solid #334155;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Estado colapsado */
.geofotos-gallery-wrapper.collapsed {
	transform: translateY(calc(100% - 40px));
}

/* Pestaña colapsable */
.geofotos-gallery-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	background: #0f172a;
	border-top: 2px solid #38bdf8;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.geofotos-gallery-tab:hover {
	background: #1e293b;
	color: #38bdf8;
}

.geofotos-gallery-tab i {
	font-size: 14px;
}

.geofotos-gallery-tab .gallery-chevron-up {
	display: none;
}

.geofotos-gallery-tab .gallery-chevron-down {
	display: block;
}

.geofotos-gallery-wrapper.collapsed .geofotos-gallery-tab .gallery-chevron-up {
	display: block;
}

.geofotos-gallery-wrapper.collapsed .geofotos-gallery-tab .gallery-chevron-down {
	display: none;
}

/* Contenedor del strip */
.geofotos-gallery-strip {
	position: relative;
	width: 100%;
	height: 120px;
	overflow: hidden;
}

.geofotos-gallery-content {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: #475569 #1e293b;
}

.geofotos-gallery-content::-webkit-scrollbar {
	height: 6px;
}

.geofotos-gallery-content::-webkit-scrollbar-track {
	background: #1e293b;
}

.geofotos-gallery-content::-webkit-scrollbar-thumb {
	background: #475569;
	border-radius: 3px;
}

.geofotos-gallery-content::-webkit-scrollbar-thumb:hover {
	background: #64748b;
}

/* Contenedor de fotos */
.geofotos-gallery-photos {
	display: flex;
	gap: 12px;
	padding: 10px 16px;
	min-width: min-content;
}

/* Miniatura de foto individual */
.geofotos-gallery-photo {
	position: relative;
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	background: #1e293b;
}

.geofotos-gallery-photo:hover {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.geofotos-gallery-photo.active {
	border-color: #38bdf8;
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
	transform: translateY(-4px) scale(1.05);
}

.geofotos-gallery-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.3s ease;
}

.geofotos-gallery-photo:hover img {
	filter: brightness(1.1);
}

.geofotos-gallery-photo.loading img {
	filter: blur(4px);
}

/* Badge del tema */
.geofotos-gallery-photo-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: white;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	opacity: 0.9;
	pointer-events: none;
}

/* Overlay al hacer hover */
.geofotos-gallery-photo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 6px;
}

.geofotos-gallery-photo:hover .geofotos-gallery-photo-overlay {
	opacity: 1;
}

.geofotos-gallery-photo-title {
	color: white;
	font-size: 10px;
	font-weight: 600;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

/* Mensaje de no hay fotos */
.geofotos-gallery-message {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	min-width: 200px;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
}

.geofotos-gallery-message i {
	margin-right: 8px;
	font-size: 16px;
}

/* Loader */
.geofotos-gallery-loader {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #38bdf8;
	font-size: 20px;
	background: rgba(15, 23, 42, 0.9);
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #334155;
}

.geofotos-gallery-loader.hidden {
	display: none;
}

/* Estados vacío */
.geofotos-gallery-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #64748b;
	font-size: 13px;
}

.geofotos-gallery-empty i {
	margin-right: 8px;
}

@media (max-width: 992px) {

	/* En móvil el strip es un overlay fijo justo encima de la barra de navegación inferior.
	   Usar position:fixed evita cualquier reflow cuando el strip se abre o cierra. */
	.geofotos-gallery-wrapper {
		position: fixed;
		bottom: 60px;
		/* altura de la nav bar */
		left: 0;
		right: 0;
		z-index: 9999;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.geofotos-gallery-strip {
		height: 100px;
	}

	.geofotos-gallery-photos {
		padding: 8px 12px;
		gap: 8px;
	}

	.geofotos-gallery-photo {
		width: 80px;
		height: 80px;
	}

	.geofotos-gallery-tab {
		font-size: 11px;
		padding: 6px 12px;
	}

	.geofotos-gallery-badge {
		font-size: 8px;
		padding: 1px 4px;
	}

	.geofotos-gallery-photo-title {
		font-size: 9px;
	}

	.geofotos-gallery-loader {
		font-size: 16px;
		padding: 6px 10px;
	}
}

@media (max-width: 480px) {
	.geofotos-gallery-photo {
		width: 70px;
		height: 70px;
	}

	.geofotos-gallery-strip {
		height: 90px;
	}

	.geofotos-gallery-badge {
		display: none;
	}
}