﻿.ticket-list {
    margin-top: 8px;
}

.ticket-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 135px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: .2s ease;
}

    .ticket-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 5px 14px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

/* تصویر */
.ticket-image {
    width: 120px;
    min-width: 120px;
    height: 100%;
    padding: 10px;
}

    .ticket-image img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        border-radius: 8px;
    }

/* اطلاعات */
.ticket-content {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
}

.ticket-title {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

    .ticket-title a {
        color: #1f2937;
        text-decoration: none;
    }

        .ticket-title a:hover {
            color: #0d6efd;
        }

.ticket-type {
    display: inline-block;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 5px;
    padding: 2px 7px;
    margin-bottom: 4px;
}

.ticket-description {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-old-price {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

    .ticket-old-price span {
        color: #dc2626;
        margin-right: 5px;
        font-weight: 700;
    }

.ticket-price {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

    .ticket-price small {
        font-size: 10px;
        font-weight: 400;
        color: #64748b;
    }

/* بخش سمت چپ */
.ticket-action {
    width: 105px;
    min-width: 105px;
    min-height: 110px;
    border-right: 1px dashed #d1d5db;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

    /* حالت بلیط */
    .ticket-action::before,
    .ticket-action::after {
        content: "";
        position: absolute;
        right: 103px;
        width: 18px;
        height: 18px;
        background: #f8f9fa;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
    }

    .ticket-action::before {
        top: -10px;
    }

    .ticket-action::after {
        bottom: -10px;
    }

    .ticket-action .btn {
        width: 85px;
        font-size: 12px;
        padding: 5px 8px;
        border-radius: 6px;
    }

.ticket-expire {
    font-size: 10px;
    color: #dc2626;
    text-align: center;
    white-space: nowrap;
}

/* موبایل */
@media (max-width: 575.98px) {

    .ticket-card {
        min-height: 110px;
    }

    .ticket-image {
        width: 85px;
        min-width: 85px;
        padding: 7px;
    }

        .ticket-image img {
            height: 75px;
        }

    .ticket-content {
        padding: 7px 5px;
    }

    .ticket-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .ticket-description {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }

    .ticket-price {
        font-size: 16px;
    }

    .ticket-action {
        width: 80px;
        min-width: 80px;
        padding: 6px;
    }

        .ticket-action::before,
        .ticket-action::after {
            right: 78px;
        }

        .ticket-action .btn {
            width: 68px;
            font-size: 10px;
        }
}


/* new style rlated centers*/
.related-centers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.related-center-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .related-center-item:hover {
        border-color: #c7cdd4;
        box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
        color: #111827;
    }

/* عکس */
.related-center-image {
    width: 44px;
    height: 44px;
    min-width: 44px;
    overflow: hidden;
    border-radius: 6px;
    /* هیچ بک گراندی ندارد */
}

    .related-center-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border-radius: 6px;
    }

/* عنوان */
.related-center-title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
    /* متن کامل */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* تبلت */
@media (max-width: 991px) {
    .related-centers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* موبایل */
@media (max-width: 575px) {
    .related-centers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .related-center-item {
        gap: 7px;
        padding: 5px;
    }

    .related-center-image {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .related-center-title {
        font-size: 11px;
    }
}


 /*استایل نقشه و درباره مرکز 
     سمت چپ
 */

.center-info-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    overflow: hidden;
    color: #374151;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

/* Header */

.center-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.center-info-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.center-info-title {
    min-width: 0;
}

    .center-info-title h1 {
        margin: 0 0 4px;
        font-size: 15px;
        line-height: 1.5;
        font-weight: 700;
        color: #1f2937;
    }

.center-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
}

    .center-location a {
        color: #64748b;
        text-decoration: none;
    }

        .center-location a:hover {
            color: #2563eb;
        }

.separator {
    color: #cbd5e1;
}


/* Rating */

.center-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
    color: #64748b;
}

    .center-rating a {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #374151;
        text-decoration: none;
    }

    .center-rating .ri-star-fill {
        color: #f59e0b;
    }

.rating-separator {
    color: #d1d5db;
}


/* Contact */

.center-contact {
    padding: 12px;
}

    .center-contact h2,
    .center-map-section h2,
    .center-description h2 {
        margin: 0 0 9px;
        font-size: 13px;
        font-weight: 700;
        color: #374151;
    }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
}

.contact-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: 16px;
}

.contact-item small {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    color: #94a3b8;
}

.contact-item p,
.contact-item a {
    margin: 0;
    font-size: 11px;
    line-height: 1.7;
    color: #475569;
}

.contact-item a {
    text-decoration: none;
}

    .contact-item a:hover {
        color: #2563eb;
    }


/* Map */

.center-map-section {
    padding: 0 12px 12px;
}

.center-map {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

    .center-map #map {
        width: 100%;
        height: 155px;
    }

.map-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px;
    background: #fff;
}

    .map-links a {
        display: flex;
    }

    .map-links img {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        transition: transform .15s ease;
    }

    .map-links a:hover img {
        transform: scale(1.08);
    }


/* Description */

.center-description {
    padding: 12px;
    border-top: 1px solid #f1f5f9;
}

    .center-description p {
        margin: 0;
        font-size: 11px;
        line-height: 1.9;
        color: #64748b;
        text-align: justify;
    }


/* Mobile */

@media (max-width: 767px) {

    .center-info-card {
        margin-top: 10px;
    }

    .center-info-header {
        padding: 10px;
    }

    .center-info-avatar {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .center-info-title h1 {
        font-size: 14px;
    }

    .center-map #map {
        height: 140px;
    }
}

.center-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

    .center-info-label .ri-store-2-line {
        font-size: 16px;
        color: #64748b;
    }


/*استایل کامنت ها */

/* =========================================
       کارت اصلی نظرات
    ========================================= */

.center-comments-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}


/* =========================================
       هدر
    ========================================= */

.center-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}


.comments-title {
    display: flex;
    align-items: center;
    gap: 7px;
}


    .comments-title > span {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: #fff;
        border: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 15px;
    }


    .comments-title h2 {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #374151;
    }


.comments-count {
    padding: 3px 8px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 10px;
    color: #64748b;
}


/* =========================================
       لیست نظرات
    ========================================= */

.comments-list {
    padding: 0 13px;
}


.center-comment {
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}


    .center-comment:last-child {
        border-bottom: 0;
    }


/* =========================================
       اطلاعات کاربر
    ========================================= */

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}


.comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}


.user-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}


.comment-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}


.username {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}


.comment-date {
    font-size: 10px;
    color: #9ca3af;
}


/* =========================================
       امتیاز
    ========================================= */

.comment-score {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}


    .comment-score .ri-star-fill {
        font-size: 12px;
        color: #f59e0b;
    }


/* =========================================
       متن نظر
    ========================================= */

.comment-text {
    padding-right: 44px;
    font-size: 12px;
    line-height: 1.9;
    color: #4b5563;
    text-align: justify;
    overflow-wrap: anywhere;
}


/* =========================================
       پاسخ مرکز
    ========================================= */

.center-reply {
    margin-top: 9px;
    margin-right: 44px;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-right: 3px solid #cbd5e1;
    border-radius: 7px;
}


.reply-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}


.admin-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #fff;
}


.reply-header > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}


.reply-header strong {
    font-size: 11px;
    color: #374151;
}


.reply-header span {
    font-size: 9px;
    color: #9ca3af;
}


.reply-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    color: #64748b;
    text-align: justify;
}


/* =========================================
       بدون نظر
    ========================================= */

.no-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 25px 10px;
    font-size: 11px;
    color: #9ca3af;
}


    .no-comments .ri-chat-off-line {
        font-size: 18px;
    }


/* =========================================
       موبایل
    ========================================= */

@media (max-width: 575px) {

    .center-comments-header {
        padding: 9px 10px;
    }


    .comments-list {
        padding: 0 10px;
    }


    .center-comment {
        padding: 11px 0;
    }


    .comment-header {
        align-items: flex-start;
    }


    .comment-text {
        padding-right: 0;
        font-size: 11px;
    }


    .center-reply {
        margin-right: 0;
        padding: 8px;
    }


    .comment-score .ri-star-fill {
        font-size: 11px;
    }
}