/* Property Gallery Styles */
.property-gallery {
	position: relative;
	margin: 15px 0;
	max-width: 100%;
	overflow: hidden;
}
.gallery-main {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
	border-radius: 4px;
	background: #f5f5f5;
}
.gallery-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-in;
	pointer-events: none;
}
.gallery-slide.active {
	opacity: 1;
	pointer-events: auto;
}
.gallery-slide img {
	width: auto;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}
.gallery-slide:hover img {
	transform: scale(1.02);
}
.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.6);
	color: white;
	border: none;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	z-index: 10;
	transition: background 0.2s ease;
}
.gallery-nav:hover {
	background: rgba(0,0,0,0.8);
}
.gallery-nav.prev {
	left: 8px;
}
.gallery-nav.next {
	right: 8px;
}
.gallery-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}
.gallery-indicators {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}
.gallery-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background 0.2s ease;
}
.gallery-indicator.active {
	background: #333;
}
.gallery-thumbs {
	display: flex;
	gap: 6px;
	margin-top: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.gallery-thumb {
	width: 50px;
	height: 50px;
	border-radius: 3px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
	border: 2px solid transparent;
}
.gallery-thumb:hover,
.gallery-thumb.active {
	opacity: 1;
	border-color: #333;
}
.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gallery-counter {
	text-align: center;
	margin-top: 8px;
	font-size: 12px;
	color: #666;
}

/* Lightbox Styles */
.gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	animation: lightboxFadeIn 0.3s ease forwards;
}
@keyframes lightboxFadeIn {
	to { opacity: 1; }
}
.lightbox-content {
	position: relative;
	width: 80%;
	height: 80vh;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox-content img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	cursor: pointer;
}
.lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: white;
	font-size: 30px;
	cursor: pointer;
	z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
	.gallery-main {
		height: 250px;
	}
	.gallery-nav {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
	.gallery-thumb {
		width: 40px;
		height: 40px;
	}
	.lightbox-content {
		width: 90%;
		height: 70vh;
		max-height: 70vh;
	}
}
