

body {
	
background: #ffffff;
            font-family: 'Vazirmatn', sans-serif !important;
            color: #2d3748;
            direction: rtl;
        }
		
		
		
		container {
			
			   max-width: 1400px !important;
			
		}
		
	
	
	
	
		
		
	
 
        .ad-container {
         max-width: 1350px;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
			 	padding-bottom: 20px !important;
				margin-bottom: 20px !important;
				margin-top: 20px!important;
				
        }
        
        

 .ad-actions2 {
  display: flex;
  flex-direction: row; /* جهت افقی برای راست‌چین */
  justify-content: flex-end; /* دکمه‌ها از سمت راست شروع می‌شوند */
  gap: 15px; /* فاصله بین دکمه‌ها */
}

.ad-actions2 button {
  width: 40px;
  height: 40px;
  border: none;
  background-color: #f9f9f9;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease; /* افزودن انیمیشن نرم */
  margin-top: -50px;
}

.ad-actions2 button:hover {
  background-color: #e2e8f0; /* رنگ هاور کمی تیره‌تر */
  transform: scale(1.05); /* افکت زوم هنگام هاور */
}
        

.custom-toast {
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
}


/* استایل دکمه گزارش */
.report-btn {
 position: absolute;
            top: 15px;
            left: 85px !important;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: #6c757d;
            transition: color 0.3s ease;
        }


/* استایل توست */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#toast.error {
    background-color: #dc3545;
}


/* اطمینان از رفتار صحیح مودال */
.modal {
    direction: rtl;
    text-align: right;
}

.modal-dialog {
    margin: 1.75rem auto; /* حاشیه استاندارد Bootstrap */
    max-width: 500px; /* عرض ثابت برای جلوگیری از تغییر اندازه */
}

.modal-content {
    border-radius: 0.5rem;
    overflow: hidden; /* جلوگیری از سرریز محتوا */
}

.modal-body {
    padding: 1.5rem;
}

.modal select,
.modal textarea {
    width: 100%;
    box-sizing: border-box;
}

.ad-title {
  font-size: 30px; /* یا هر سایز دلخواه: px، rem، em */
  color: #5d5d5d;
} 
        /* استایل برای Toastify */
        .toastify {
            z-index: 10000 !important;
            position: fixed !important;
            bottom: 20px !important;
            right: 20px !important;
            margin: 0 !important;
            max-width: 500px !important;
            min-width: 200px !important;
            padding: 15px 25px !important;
            font-family: 'Vazirmatn', sans-serif !important;
            font-size: 1rem !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
            text-align: right !important;
            color: #ffffff;
        }
		
		.contact-btn, .chat-btn, .instagram-btn, .telegram-btn {
    background: linear-gradient(45deg, #7e57c2, #9575cd);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* حذف خط زیر متن */
}
.contact-btn:hover, .chat-btn:hover, .instagram-btn:hover, .telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 87, 194, 0.6);
    text-decoration: none; /* حذف خط زیر متن در حالت هاور */
}
.contact-btn i, .chat-btn i, .instagram-btn i, .telegram-btn i {
    color: #fff;
    margin-left: 5px;
}
.contact-btn.disabled, .chat-btn.disabled, .instagram-btn.disabled, .telegram-btn.disabled {
    background: #adb5bd;
    cursor: not-allowed;
    color: #fff;
    text-decoration: none; /* حذف خط زیر متن برای حالت غیرفعال */
}

/* ad_view.css (فقط بخش‌های مرتبط با گالری تصاویر) */
/* بازنشانی استایل‌های پیش‌فرض */
/* بازنشانی استایل‌های پیش‌فرض */
/* بازنشانی استایل‌های پیش‌فرض */
/* بازنشانی استایل‌های پیش‌فرض */
/* بازنشانی استایل‌های پیش‌فرض */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.carousel-container {
    width: 100%;
    position: relative;
}

.gallery-swiper {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

/* اطمینان از مربع بودن اسلاید */
.swiper-slide-active {
    opacity: 1;
}

/* استایل برای گالری اصلی (حالت عادی) */
.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* نسبت ۱:۱ برای کادر تصویر */
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کادر به صورت مربع */
    object-position: center; /* مرکز کردن تصویر */
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* دکمه‌های ناوبری */
.swiper-button-prev,
.swiper-button-next {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(48deg, #522572, #d0b6e7);
    border-radius: 50%;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
	font-size: 12px !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 26px !important;
}

.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #4B3C8E;
    opacity: 1;
}

/* گالری تمام‌صفحه */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
}

.fullscreen-gallery.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-swiper {
    width: 100%;
    height: 100%;
}

.fullscreen-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* نمایش تصویر با نسبت اصلی */
    border-radius: 0;
}

/* استایل دکمه بستن */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10002;
}

.close-btn:hover {
    background: linear-gradient(45deg, #c82333, #b3202e);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.close-btn i {
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s ease;
}

.close-btn:hover i {
    transform: rotate(90deg);
}

/* واکنش‌گرایی */
@media (min-width: 992px) {
    .gallery-image-wrapper {
        width: 50%;
        max-width: 600px;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 12px;
        cursor: pointer;
        position: relative;
        margin: 0 auto;
    }
	
}

@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
    }
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 25px !important;
    }
    .close-btn {
        width: 36px;
        height: 36px;
    }
    .close-btn i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 25px !important;
    }
    .close-btn {
        width: 32px;
        height: 32px;
    }
    .close-btn i {
        font-size: 18px;
    }
}
		
.ad-header {
  background: #fff;
  padding: 20px;
 border: 1px solid transparent; /* ضخامت حاشیه */
  border-image: linear-gradient(135deg, #a5ff75, #9eff6b); /* گرادیانت بنفش روشن به تیره */
  border-image-slice: 1;
  border-radius: 1px; /* گوشه‌های گرد */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.0);
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
        .ad-header:hover {
            transform: translateY(0px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.0);
        }
        .favorite-btn {
            position: absolute;
            top: 15px;
            left: 15px;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: #6c757d;
            transition: color 0.3s ease;
        }
        .favorite-btn:hover {
            color: #7e57c2;
        }
        .favorite-btn.active {
            color: #7e57c2;
        }
        .share-btn {
            position: absolute;
            top: 15px;
            left: 50px;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: #6c757d;
            transition: color 0.3s ease;
        }
        .share-btn:hover {
            color: #9575cd;
        }
        .ad-details {
   background: #fff;
  padding: 20px;
 border: 1px solid transparent; /* ضخامت حاشیه */
  border-image: linear-gradient(135deg, #a5ff75, #9eff6b); /* گرادیانت بنفش روشن به تیره */
  border-image-slice: 1;
  border-radius: 1px; /* گوشه‌های گرد */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.0);
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .ad-details h5 {
            color: #7f7f7f;
            font-weight: 700;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #ede7f6;
        }
		
		.ad-header div.badges-container {
    margin-top: 20px; /* فاصله 10 پیکسل از بالا */
	margin-bottom: 40px
}
		
       .badge-urgent {
    background: linear-gradient(45deg, #d81b60, #e91e63);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-right: 10px;
	
}
.badge-ladder {
    background: linear-gradient(45deg, #0288d1, #29b6f6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-right: 10px;
}
.badge-stair {
    background: linear-gradient(45deg, #fb8c00, #f57c00);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-right: 10px;
}
.badge-featured {
    background: linear-gradient(45deg, #43a047, #4caf50);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-right: 10px;
}
        .badge-exhibition {
            background: linear-gradient(45deg, #7e57c2, #9575cd);
            color: #fff;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-right: 10px;
        }
        .price {
            font-size: 1.5rem;
            font-weight: 700;
            color: 	#696969;
            margin-top: 15px;
        }
		
		
		    .fa-tag {
            font-size: 1.0rem;
            font-weight: 700;
            color: #12b645;
          
        }
		
        .no-image {
            text-align: center;
            color: #6c757d;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }
        .no-image i {
            font-size: 2.5rem;
            color: #9575cd;
        }
        .detail-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 1rem;
            color: #444;
        }
        .detail-item i {
  margin-left: 10px;
  background: linear-gradient(90deg, #ffffff, #0e3c87);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.3rem;
  display: inline-block; /* برای اطمینان از رندر درست */
}
        .buttons-box {
            background: #fff;
            padding: 15px;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease, box-shadow 0.3s ease;

		}
		
		 .buttons-box:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
        }
		
		.info-buttons-box {
            background: #fff;
            padding: 15px;
            border-radius: 12px;
           
            margin-top: -20px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;

        }
		
		
		.contact-btn1 {
            background: linear-gradient(45deg, #7e57c2, #9575cd);
            border: none;
            padding: 8px 15px;
            font-size: 0.7rem;
            border-radius: 50px;
            color: #fff;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
			text-decoration: none !important;
        }
		

		
		.infotxt-box {
            background: #fff;
            padding: 30px;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
			margin-bottom: 20px;
 border: 1px solid transparent; /* ضخامت حاشیه */
  border-image: linear-gradient(135deg, #a5ff75, #9eff6b); /* گرادیانت بنفش روشن به تیره */
  border-image-slice: 1;
  border-radius: 1px; /* گوشه‌های گرد */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.0);

			
			
			
			
			
			h3 {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 2.0rem;
    font-weight: 700;
    color: #e80804 !important;
    margin-bottom: 15px;
    text-align: center; /* برای راست‌چین بودن متن */
    width: 100%; /* برای اطمینان از اینکه h3 کل عرض را بگیرد */
}
        }
        .contact-btn, .chat-btn, .instagram-btn, .telegram-btn {
            background: linear-gradient(45deg, #7e57c2, #9575cd);
            border: none;
            padding: 12px 25px;
            font-size: 1rem;
            border-radius: 50px;
            color: #fff;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .contact-btn:hover, .chat-btn:hover, .instagram-btn:hover, .telegram-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(126, 87, 194, 0.5);
        }
        .contact-btn i, .chat-btn i, .instagram-btn i, .telegram-btn i {
            color: #fff;
            margin-left: 5px;
        }
        .contact-btn.disabled, .chat-btn.disabled, .instagram-btn.disabled, .telegram-btn.disabled {
            background: #adb5bd;
            cursor: not-allowed;
            color: #fff;
        }
        .user-info-box {
            background: #fff;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .user-info-box:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
        }
        .user-profile-pic {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-left: 10px;
            border: 2px solid #ede7f6;
        }
        .user-profile-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .user-profile-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #333;
            display: block;
        }
        .user-profile-description {
            font-size: 0.9rem;
            color: #6c757d;
            display: block;
            line-height: 1.4;
        }
        .exhibition-btn {
            background: linear-gradient(45deg, #9f3faf, #9575cd);
            border: none;
            padding: 10px 20px;
            font-size: 1rem;
            border-radius: 50px;
            color: #fff;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
			text-decoration: none;
        }
        .exhibition-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(126, 87, 194, 0.5);
			text-decoration: none;
        }
        .exhibition-btn i {
            color: #fff;
            margin-left: 5px;
        }

        /* واکنش‌گرایی */
        @media (max-width: 992px) {


            .user-info-box {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .exhibition-btn {
                width: 100%;
                text-align: center;
            }
        }
        @media (max-width: 768px) {


        
            .ad-header, .ad-details, .buttons-box, .user-info-box {
                padding: 15px;
            }
            .price {
                font-size: 1.1rem;
            }
            .contact-btn, .chat-btn, .instagram-btn, .telegram-btn {
                padding: 10px 20px;
                font-size: 0.9rem;
                width: 100%;
                text-align: center;
				text-decoration: none !important;
				
            }
            .favorite-btn, .share-btn, .report-btn {
                font-size: 1.3rem;
            }
            .share-btn {
                left: 45px;
            }
			
			.report-btn{
				left: 80px !important; 
			}
            .user-info-box {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            .user-profile-pic {
                margin-left: 0;
            }
            .user-profile-info {
                margin-left: 0;
            }
            .exhibition-btn {
                width: 100%;
                text-align: center;
            }
        }
        @media (max-width: 576px) {

.ad-title {
  font-size: 19px; /* یا هر سایز دلخواه: px، rem، em */
  color: #5d5d5d;
}
        
            .favorite-btn, .share-btn, .report-btn {
                font-size: 1.2rem;
            }
            .share-btn {
                left: 40px;
            }
			
			.report-btn {
				left: 70px !important;
				
			}
			
			.ad-actions2 button {
  width: 30px;
  height: 30px;
  border: none;
  background-color: #f9f9f9;
  border-radius: 50%;
  font-size: 15px;
    margin-top: -5px;
        }