/* Visor de fotos (lightbox) de la ficha de propiedad. */

.baz-single__gallery a {
	cursor: zoom-in;
}

.baz-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 10, 0.92);
	display: none;
	z-index: 9999;
	padding: 24px;
	box-sizing: border-box;
}

.baz-lightbox.is-open {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.baz-lightbox__stage {
	position: relative;
	max-width: 90vw;
	max-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.baz-lightbox__img {
	max-width: 90vw;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.baz-lightbox__counter {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	opacity: 0.8;
	margin: 0;
	white-space: nowrap;
}

.baz-lightbox__close,
.baz-lightbox__prev,
.baz-lightbox__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.baz-lightbox__close:hover,
.baz-lightbox__prev:hover,
.baz-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.baz-lightbox__close {
	top: 20px;
	right: 20px;
}

.baz-lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.baz-lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.baz-lightbox__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 44px;
	max-width: 90vw;
	overflow-x: auto;
	padding: 4px;
}

.baz-lightbox__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 48px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
	background: #000;
}

.baz-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.baz-lightbox__thumb:hover {
	opacity: 0.85;
}

.baz-lightbox__thumb.is-active {
	opacity: 1;
	border-color: #fff;
}

body.baz-lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.baz-lightbox__prev,
	.baz-lightbox__next {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.baz-lightbox__thumb {
		width: 48px;
		height: 36px;
	}
}
