/* Breadcrumb */
.breadcrumb {
	background-color: transparent;
	padding: 10px 0;
}

.breadcrumb-item a {
	color: var(--primary-color);
	text-decoration: none;
}

/* images slider */
.gallery-container {
	max-width: 900px;
	margin: 0 auto;
	background: white;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	padding: 25px;
}

.main-carousel {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-item {
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.main-carousel-item {
	height: 550px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.carousel-item:hover {
	transform: scale(1.01);
}

.carousel-item img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.carousel-indicators {
	bottom: 15px;
}

.carousel-indicators button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 0 5px;
}

.carousel-control-prev, .carousel-control-next {
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.8;
}

.carousel-control-prev {
	right: 20px;
	left: auto;
}

.carousel-control-next {
	left: 20px;
	right: auto;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
	opacity: 1;
}

/* استایل مودال سفید */
.image-modal .modal-content {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: none;
    height: 100vh;
    width: 100vw;
    margin: 0;
    max-width: none;
    border-radius: 0;
}

.image-modal .modal-dialog {
    max-width: none;
    margin: 0;
    height: 100%;
    width: 100%;
}

.image-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.image-container {
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.image-modal .modal-header {
    border: none;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.image-modal .btn-close {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    border-radius: 50%;
    padding: 10px;
    background-size: 60%;
}

.modal-carousel .carousel-control-prev,
.modal-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0.9;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.modal-carousel .carousel-control-prev {
    right: 20%;
}

.modal-carousel .carousel-control-next {
    left: 20%;
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    z-index: 100;
}

@media (max-width: 768px) {
    .modal-carousel .carousel-control-prev,
    .modal-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .modal-carousel .carousel-control-prev {
        right: 10%;
    }
    
    .modal-carousel .carousel-control-next {
        left: 10%;
    }
}

@media (max-width: 576px) {
    .image-container {
        width: 90vw;
        height: 70vh;
    }
}
		
/* ads Info */
.ads-title {
	color: var(--primary-color);
	margin: 20px 0;
}

.ads-meta {
	color: var(--light-text);
	margin-bottom: 20px;
}

.info-box {
	background-color: #f9f9f9;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-box h5 {
	color: var(--primary-color);
	margin-bottom: 15px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.contact-info li {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.contact-info li i {
	color: var(--primary-color);
	margin-left: 10px;
	width: 20px;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: #eee;
	color: var(--primary-color);
	border-radius: 50%;
	margin: 0 5px;
	transition: all 0.3s;
}

.social-icons a:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-3px);
}

/* Alert Box */
.alert-custom {
	background-color: #fff3cd;
	border-color: #ffeaa7;
	color: #856404;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
}

/* Working Hours */
.working-hours li {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #eee;
}

/* Description */
.description-section {
	margin-bottom: 30px;
}

.description-content img {
	width: 600px;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 30px auto !important;
}

.description-content div[id^="0"],
.description-content div[id^="1"],
.description-content div[id^="2"],
.description-content div[id^="3"],
.description-content div[id^="4"],
.description-content div[id^="5"],
.description-content div[id^="6"],
.description-content div[id^="7"],
.description-content div[id^="8"],
.description-content div[id^="9"] {
    margin-bottom: 60px;
}

.description-content,
.description-content p{
	font-size: 1rem;
	line-height: 2rem;
	text-align:justify;
	margin-bottom: 2rem;
}

.description-content div:has(img),
.description-content p:has(img){
	text-align:center;
}

.description-content h1{
	font-size: 2rem;
	font-weight:900;
}

.description-content h2{
	font-size: 1.8rem;
	font-weight:800;
}

.description-content h3{
	font-size: 1.5rem;
	font-weight:700;
}

.description-content h4{
	font-size: 1.3rem;
	font-weight:600;
}

.description-content h5{
	font-size: 1.2rem;
	font-weight:500;
}

.description-content h6{
	font-size: 1.1rem;
	font-weight:400;
}

.description-content table{
	width: 100%;
	margin: 3rem 0;
}

.description-content table td,
.description-content table th{
	padding: 5px 15px 5px 15px;
}

/* FAQ */
.faq-section {
	margin-bottom: 30px;
}

.accordion-button:not(.collapsed) {
	background-color: rgba(46, 125, 50, 0.1);
	color: var(--primary-color);
}

.accordion-button:focus {
	box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Tags */
.tags-section {
	margin-bottom: 30px;
}

.tag {
	display: inline-block;
	background-color: #f0f0f0;
	color: var(--text-color);
	padding: 5px 12px;
	border-radius: 20px;
	margin: 0 5px 10px 0;
	text-decoration: none;
	transition: all 0.3s;
}

.tag:hover {
	background-color: var(--primary-color);
	color: white;
}

/* Similar ads */
.similar-ads-card {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	height: 100%;
	margin-bottom: 20px;
}

.similar-ads-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.similar-ads-image {
	aspect-ratio: 16 / 9;
    width: 100%;
	object-fit: cover;
	background-color: #f5f5f5;
	background-size: cover;
	background-position: center;
}

.similar-ads-details {
	padding: 15px;
}

/* Reviews */
.review-card {
	background-color: white;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.reviewer-name {
	font-weight: bold;
	color: var(--primary-color);
}

.review-date {
	color: var(--light-text);
	font-size: 0.9rem;
}

.rating {
	color: #ffc107;
	margin-bottom: 10px;
}
/*--------------------------------------------------------------------*/
/* دکمه تماس شناور */
.floating-contact-btn {
    position: fixed;
    bottom: 75px;
    left: 25px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #198754);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    padding: 0;
    /* رفع مشکل کلیک روی آیکون */
    overflow: hidden;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* آیکون داخل دکمه شناور */
.floating-contact-btn i {
    font-size: 1.5rem;
    line-height: 1;
    /* رفع مشکل کلیک روی آیکون */
    pointer-events: none;
}

/* پنل تماس */
.contact-panel {
    position: fixed;
    bottom: 110px;
    left: 25px;
    z-index: 999;
    width: 300px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contact-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-title {
    font-weight: bold;
    color: #0d6efd;
    margin: 0;
}

.close-contact {
    background: none;
    border: none;
    color: #777;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-contact:hover {
    background-color: #f8f9fa;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.contact-method:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
    text-decoration: none;
}

/* آیکون‌های داخل کارت‌های تماس */
.contact-method .contact-icon {
    font-size: 1.3rem;
    width: 30px;
    flex-shrink: 0;
    margin-left: 10px;
    line-height: 1;
}

.contact-method.phone {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.2);
}

.contact-method.phone .contact-icon {
    color: #0d6efd;
}

.contact-method.whatsapp {
    background-color: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2);
}

.contact-method.whatsapp .contact-icon {
    color: #25D366;
}

.contact-method.location {
    background-color: rgba(108, 117, 125, 0.05);
    border-color: rgba(108, 117, 125, 0.2);
}

.contact-method.location .contact-icon {
    color: #6c757d;
}

/* نمایش در موبایل */
@media (max-width: 768px) {
    .floating-contact-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }
    
    .floating-contact-btn i {
        font-size: 1.5rem;
    }
    
    .contact-panel {
        width: calc(100vw - 40px);
        left: 20px;
        bottom: 95px;
    }
}

/* انیمیشن پالس */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

