﻿:root {
    --primary: #50abe0;
    --primary-dark: #3a8bc8;
    --secondary: #1777ae;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #20c997;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: VAZIR-REGULAR-FD, 'Segoe UI', Tahoma, sans-serif;
    background-color: #f9fafb;
    color: var(--dark);
    padding-top: 80px;
    line-height: 1.6;
}

/* ناوبری اصلی */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}


/* Breadcrumb */
.breadcrumb-container {
    background-color: white;
    padding: 0.45rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: .5rem;

    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* برای فایرفاکس */
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0.1rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--light);

    display: inline-block;
    flex-wrap: nowrap;
    width: auto;
    min-width: 100%;
}
.breadcrumb-container::-webkit-scrollbar {
    display: none; /* برای کروم و سافاری */
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size:0.9rem;
}

    .breadcrumb-item a {
        color: var(--primary);
        text-decoration: none;
        transition: var(--transition);
        font-size: 0.9rem;
    }

        .breadcrumb-item a:hover {
            color: var(--primary-dark);
        }

    .breadcrumb-item.active {
        color: var(--dark);
        font-weight: 500;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "\f284";
        font-family: "bootstrap-icons";
        color: #6c757d;
        padding: 0 0.1rem 0 0;
        font-size: 0.6rem;
    }





        


.search-container {
    background: var(--light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

    .search-container:focus-within {
        box-shadow: 0 0 0 2px var(--primary);
    }

.search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
}

.location-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}

/* هدر خدمات */
.service-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

    .service-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
        opacity: 0.3;
    }



/* کارت‌های اطلاعات */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .info-card h3 {
        color: var(--primary);
        font-size: 1.15rem;
        font-family: VAZIR-BOLD-FD;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--light);
        position: relative;
    }

        .info-card h3::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 60px;
            height: 2px;
            background: var(--primary);
        }

/* گالری تصاویر */
.gallery-main {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-thumbs-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.25rem 0;
    flex-wrap: nowrap;
    min-width: min-content;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

    .thumb-img:hover, .thumb-img.active {
        border-color: var(--primary);
    }

/* بخش تماس */
.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
}

    .contact-item:last-child {
        border-bottom: none;
    }

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

/* تگ‌های خدمات */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}


.service-tag {
    background: var(--light);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--dark);
    transition: var(--transition);
}

    .service-tag:hover {
        background: var(--primary);
        color: white;
    }

/* دکمه شناور تماس */
.floating-contact-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(80, 171, 224, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(80, 171, 224, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(80, 171, 224, 0);
    }
}

/* خدمات مشابه */
.similar-service-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .similar-service-card:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.similar-service-img {
    height: 180px;
    object-fit: cover;
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .service-header {
        padding: 1.5rem;
    }

    .gallery-thumbs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

/* ابزارک‌های کمکی */
.text-primary {
    color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

/* بهبودهای جدید */
.service-title {
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: VAZIR-BOLD-FD;
}

.service-category {
    font-size: 1.1rem;
    opacity: 0.9;
}

.rating {
    display: inline-flex;
    align-items: center;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    right: 15px;
    left: auto;
}

.carousel-control-next {
    left: 15px;
    right: auto;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6), linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%, #e6e6e6);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: white;
        }

.badge-premium {
    background: linear-gradient(45deg, #FFD700, #DAA520);
    color: #000;
    font-weight: 600;
}

/* بخش نظرات */
.comment-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: white;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
}

.comment-meta {
    flex: 1;
}

.comment-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.comment-content {
    line-height: 1.7;
}

/* استایل جدید برای دکمه افزودن نظر */
.add-comment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}




/* استایل‌های جدید برای هدر */
.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
}

.header-title-section {
    flex: 1;
    min-width: 0; /* جلوگیری از overflow */
}

.header-action-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0; /* جلوگیری از کوچک شدن */
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap; /* جلوگیری از شکستن خط */
}

.service-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* برای حالت موبایل */
@media (max-width: 768px) {
    .header-content-wrapper {
        flex-direction: row; /* حفظ جهت ردیفی */
        align-items: center;
    }

    .header-action-section {
        flex-direction: column;
        align-items: flex-end;
    }

    .rating-container {
        justify-content: flex-end;
        margin-bottom: 0.5rem;
    }

    .rating {
        white-space: nowrap; /* جلوگیری از شکستن خط */
    }

    .rating-container span {
        white-space: nowrap; /* جلوگیری از شکستن خط */
        font-size: 0.9rem; /* کمی کوچکتر در صورت نیاز */
    }
}

/* برای صفحات کوچک (موبایل‌های کوچک) */
@media (max-width: 576px) {
    .header-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .header-action-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .rating-container {
        justify-content: flex-start;
        margin-bottom: 0;
        order: 2; /* انتقال به خط دوم */
        width: 100%;
        justify-content: left;
    }

    .service-header-actions {
        order: 1; /* انتقال به خط اول */
        justify-content: flex-end;
    }
}

/* برای صفحات بسیار کوچک */
@media (max-width: 400px) {
    .rating-container span {
        font-size: 0.85rem; /* کوچکتر برای فضاهای بسیار محدود */
    }

    .service-header-actions {
        gap: 0.25rem;
    }

        .service-header-actions .btn {
            padding: 0.375rem;
        }
}




/* لایت‌بکس */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .lightbox.active {
        display: flex;
        opacity: 1;
    }

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img-container {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* توضیحات overlay */
.lightbox-description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 60px 20px 20px 20px;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    max-height: 40%;
    overflow: hidden;
}

    .lightbox-description-overlay.collapsed {
        padding: 20px;
        background: rgba(0, 0, 0, 0.7);
        max-height: 80px;
    }

.description-content {
    position: relative;
}

.description-text {
    line-height: 1.6;
    font-size: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

    .description-text.expanded {
        max-height: 300px;
        overflow-y: auto;
    }

.description-preview {
    display: inline;
}

.read-more-link {
    color: #4fc3f7;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    transition: color 0.3s;
    display: inline;
}

    .read-more-link:hover {
        color: #81d4fa;
        text-decoration: none;
    }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    backdrop-filter: blur(5px);
}

    .lightbox-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

    .lightbox-nav:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* انیمیشن‌های لایت‌بکس */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lightbox {
    animation: fadeIn 0.3s forwards;
}

.lightbox-img {
    animation: slideIn 0.3s forwards;
}

/* برای دستگاه‌های موبایل */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-counter {
        top: 10px;
        left: 15px;
        font-size: 16px;
        padding: 6px 12px;
    }

    .lightbox-description-overlay {
        padding: 50px 15px 15px 15px;
        max-height: 35%;
    }

        .lightbox-description-overlay.collapsed {
            padding: 15px;
            max-height: 70px;
        }

    .description-text {
        font-size: 14px;
    }

    .read-more-link {
        font-size: 13px;
    }
}

/* اسکرول بار زیبا برای توضیحات */
.description-text.expanded::-webkit-scrollbar {
    width: 4px;
}

.description-text.expanded::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.description-text.expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

    .description-text.expanded::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }





