/* ==========================================================================
   Review Component Styles (Standalone CSS for _review_section_component.php)
   ========================================================================== */

/* Section Outer Container (Card style matching Tour & Detail pages) */
.ct2-section {
    background: #fff;
    border: 0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    scroll-margin-top: 186px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .ct2-section {
        padding: 16px 14px;
        margin-bottom: 14px;
        border-radius: 10px;
    }
}
.ct2-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fdf0f7;
}
.ct2-review-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-primary, #ed007f);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct2-review-head h2 svg {
    color: var(--c-primary, #ed007f);
}
.ct2-rv-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-primary, #ed007f);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ct2-rv-write-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Summary Box */
.ct2-review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
@media (max-width: 600px) {
    .ct2-review-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}
.ct2-rv-score {
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .ct2-rv-score {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 16px;
    }
}
.ct2-rv-score b {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    display: block;
}
.ct2-rv-score-stars {
    margin: 6px 0;
    font-size: 14px;
}
.ct2-rv-score span {
    font-size: 12.5px;
    color: #64748b;
}

.ct2-rv-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ct2-rv-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #475569;
}
.ct2-rv-star {
    width: 35px;
    flex-shrink: 0;
}
.ct2-rv-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.ct2-rv-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
}
.ct2-rv-pct {
    width: 38px;
    text-align: right;
    color: #64748b;
}

/* Review List & Item */
.ct2-rv-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ct2-rv-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
}
.ct2-rv-item:last-child {
    border-bottom: none;
}
.ct2-rv-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.ct2-rv-item-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ct2-rv-item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.ct2-rv-item-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ct2-rv-item-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.3;
}
.ct2-rv-item-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.ct2-rv-item-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ct2-rv-item-label {
    font-size: 11.5px;
    color: #d97706;
    font-weight: 600;
    background: #fef3c7;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}
.ct2-rv-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary, #ed007f);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 6px;
}
.ct2-rv-item-body {
    margin-top: 10px;
}
.ct2-rv-item-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

/* Line clamp 4 lines */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty State */
.ct2-rv-empty {
    text-align: center;
    padding: 36px 16px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 12px;
}
.ct2-rv-empty p {
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.6;
}
/* Load More Text Link (Style gọn gàng giống Shopee/Lazada/Tiki) */
.ct2-rv-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--c-primary, #ed007f);
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}
.ct2-rv-more-btn:hover {
    color: #c20068;
    text-decoration: underline;
}

