/* =====================================================================
   VNStays Sales Tab — Frontend Styles
   Palette: trắng / đen nhẹ, accent = var(--primary-color)
   ===================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────────── */
.vnstays-sales-tab-content {
    padding: 10px 0 24px;
    font-family: inherit;
    color: #333;
}

/* ── Block ───────────────────────────────────────────────────────── */
.vst-block {
    margin-bottom: 36px;
}

.vst-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.vst-title-icon {
    font-size: 18px;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BẢNG GIÁ — trắng / đen / đơn giản
══════════════════════════════════════════════════════════════════ */
.vst-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.vst-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 480px;
    background: #fff;
}

/* ── Header — tên hạng phòng ─────────────────────────────────── */
.vst-price-table thead th {
    padding: 13px 18px;
    background: #f7f7f7;
    color: #222;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid #e0e0e0;
    border-right: 1px solid #e8e8e8;
}

.vst-price-table thead th:last-child {
    border-right: none;
}

.vst-price-table thead th.vst-th-label {
    text-align: left;
    min-width: 190px;
    background: #f0f0f0;
}

/* ── Body cells ──────────────────────────────────────────────── */
.vst-price-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    text-align: center;
    vertical-align: middle;
    color: #333;
    background: #fff;
}

.vst-price-table tbody td:last-child {
    border-right: none;
}

/* ── Cột nhãn (label bên trái) ───────────────────────────────── */
.vst-row-label {
    text-align: left !important;
    background: #fafafa !important;
    border-right: 2px solid #e0e0e0 !important;
    min-width: 190px;
}

.vst-row-label strong {
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    font-size: 13px;
}

.vst-row-label small {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* ── Giá (mùa thấp & cao điểm) ──────────────────────────────── */
.vst-price {
    font-weight: 600;
    color: #222;
    font-size: 13.5px;
}

.vst-price-high {
    font-weight: 700;
    color: #111;
    font-size: 13.5px;
}

/* ── Hover row ───────────────────────────────────────────────── */
.vst-price-table tbody tr:hover td {
    background: #f9f9f9;
}
.vst-price-table tbody tr:hover .vst-row-label {
    background: #f3f3f3 !important;
}

/* ── Note ────────────────────────────────────────────────────── */
.vst-price-note {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   BADGE SALES / CTV — trong header bảng giá (admin view)
══════════════════════════════════════════════════════════════════ */
.vst-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.vst-badge--sales {
    background: #e7f0f8;
    color: #2271b1;
    border: 1px solid #b3d0ea;
}
.vst-badge--ctv {
    background: #f0f8e7;
    color: #2e7d32;
    border: 1px solid #b3e0b3;
}

/* Ô giá CTV — nền xanh nhạt để phân biệt với giá Sales */
.vst-price--ctv {
    background: #f8fbf5 !important;
    color: #2e7d32 !important;
}

/* Hàng CTV trong bảng phòng — nền xanh nhạt */
.vst-row--ctv td {
    background: #f8fbf5 !important;
}
.vst-row--ctv .vst-row-label {
    background: #f0f7ec !important;
}

/* ══════════════════════════════════════════════════════════════════
   BẢNG GIÁ TOUR — vst-tour-table
══════════════════════════════════════════════════════════════════ */
.vst-tour-table thead th.vst-th-label {
    text-align: left;
    min-width: 160px;
}

.vst-tour-table thead th.vst-th-note {
    min-width: 180px;
    text-align: left;
}

.vst-tour-table tbody td.vst-note {
    text-align: left;
    color: #666;
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════
   NÚT TẢI FILE BÁO GIÁ — var(--primary-color)
══════════════════════════════════════════════════════════════════ */
.vst-download-block p {
    color: #666;
    margin-bottom: 14px;
    font-size: 14px;
}

.vst-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    background: var(--primary-color, #333);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.2px;
}

.vst-download-btn:hover {
    opacity: 0.85;
    color: #fff !important;
    text-decoration: none !important;
}

.vst-download-icon {
    font-size: 16px;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   THÔNG TIN LIÊN HỆ — card trắng, viền nhẹ
══════════════════════════════════════════════════════════════════ */
.vst-contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid var(--primary-color, #333);
    border-radius: 6px;
    padding: 18px 22px;
    max-width: 400px;
}

.vst-contact-avatar {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
}

.vst-contact-info {
    flex: 1;
    min-width: 0;
}

.vst-contact-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.vst-contact-role {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.vst-contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vst-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    transition: color 0.15s;
}

.vst-contact-link:hover {
    color: var(--primary-color, #333) !important;
    text-decoration: none !important;
}

.vst-contact-icon {
    font-size: 14px;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   TRẠNG THÁI RỖNG
══════════════════════════════════════════════════════════════════ */
.vst-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
}

.vst-empty-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .vst-contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .vst-download-btn {
        width: 100%;
        justify-content: center;
    }
    .vst-block-title {
        font-size: 15px;
    }
}
