/* ==== ساختار اصلی اسلایدر ==== */
.slider {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

/* ==== اسلایدها ==== */
.slides {
	display: flex;
	transition: transform 0.5s ease;
	touch-action: pan-y;
}

	.slides img {
		width: 100%;
		height: auto;
		max-height: 600px;
		flex-shrink: 0;
		cursor: pointer;
		object-fit: cover;
		display: block;
	}

/* ==== دکمه‌های ناوبری ==== */
button.prev,
button.next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	padding: 10px 14px;
	cursor: pointer;
	border-radius: 50%;
	z-index: 2;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

	button.prev:hover,
	button.next:hover {
		background-color: rgba(0, 0, 0, 0.8);
		transform: translateY(-50%) scale(1.1);
	}

button.prev {
	left: 12px;
}

button.next {
	right: 12px;
}

/* ==== جزئیات ملک ==== */
.property-details dl div {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.property-details dt {
	font-weight: bold;
}

/* ==== حالت پنهان دکمه‌ها در Lightbox ==== */
.slider.hidden-buttons .prev,
.slider.hidden-buttons .next {
	display: none;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 16.25%; 
    overflow: hidden;
}

/* ==== ویدیو ==== */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==== Lightbox ==== */
.lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	padding-top: 60px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9);
}

#lightbox {
    z-index: 9999;
}

.lightbox-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
}

.close {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10000;
}


/* دکمه وسط */
.video-container .video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 25px;
    background-color: #f05a28;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.video-container .video-button:hover {
    background-color: #d14e22;
}

.text_video {
	font-size: 25px;
    text-align: center;
    color: red;
}

/* ============================= */
/* ==== واکنش‌گرایی حرفه‌ای ==== */
/* ============================= */

/* --- تبلت --- */
@media (max-width: 992px) {
	.slider {
		max-width: 95%;
		border-radius: 8px;
	}

	.slides img {
		max-height: 420px;
	}

	button.prev,
	button.next {
		padding: 8px 12px;
		font-size: 14px;
	}

	.video-container iframe {
		height: 350px;
	}
	
	.video-container .video-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* --- موبایل --- */
@media (max-width: 600px) {
	.slider {
		max-width: 100%;
		border-radius: 0;
	}

	.slides img {
		max-height: 260px;
		object-fit: cover;
	}

	/* دکمه‌ها به پایین منتقل می‌شن */
	button.prev,
	button.next {
		top: auto;
		bottom: 15px;
		transform: none;
		background-color: rgba(0, 0, 0, 0.6);
		padding: 8px 10px;
		font-size: 13px;
	}

	button.prev {
		left: 10px;
	}

	button.next {
		right: 10px;
	}

	.property-details dl div {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.video-container iframe {
		height: 220px;
	}

	.lightbox-content {
		max-width: 95%;
		max-height: 80%;
	}

	.close {
		font-size: 30px;
		top: 10px;
		right: 20px;
	}
	
	.video-container .video-button {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* --- موبایل خیلی کوچک (زیر 400px) --- */
@media (max-width: 400px) {
	.slides img {
		max-height: 200px;
	}

	button.prev,
	button.next {
		padding: 6px 8px;
		font-size: 11px;
		bottom: 10px;
	}

	.video-container iframe {
		height: 180px;
	}
	
	.video-container .video-button {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}
