/* ═══════════════════════════════════════════════════════════
   HB + CE Integration Widget Styles
   تضاف إلى ce-style.css أو تُحمَّل مستقلة
   ═══════════════════════════════════════════════════════════ */

.hb-ce-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    direction: rtl;
}

.hb-ce-host-widget {
    border-right: 4px solid #7c3aed;
}

.hb-ce-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.hb-ce-widget-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.hb-ce-widget-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.hb-ce-widget-link:hover { text-decoration: underline; }

/* إحصاءات */
.hb-ce-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.hb-ce-stat {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.hb-ce-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.hb-ce-stat-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

/* حجوزات */
.hb-ce-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hb-ce-booking-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.hb-ce-booking-row:last-child { border: none; }

.hb-ce-booking-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.hb-ce-booking-dates {
    font-size: 12px;
    color: #64748b;
}

.hb-ce-booking-nights {
    color: #94a3b8;
    margin-right: 4px;
}

.hb-ce-booking-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.hb-ce-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.hb-ce-booking-amount {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.hb-ce-pay-link {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.hb-ce-pay-link:hover { text-decoration: underline; }

/* فنادق */
.hb-ce-hotels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hb-ce-hotel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.hb-ce-hotel-row:last-child { border: none; }

.hb-ce-hotel-icon {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.hb-ce-hotel-info { flex: 1; }

.hb-ce-hotel-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.hb-ce-hotel-sub {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* فارغ */
.hb-ce-empty {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}

.hb-ce-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.hb-ce-btn:hover { background: #1d4ed8; }

@media (max-width: 480px) {
    .hb-ce-stats-row { grid-template-columns: repeat(2, 1fr); }
    .hb-ce-booking-row { flex-direction: column; }
    .hb-ce-booking-side { flex-direction: row; align-items: center; gap: 8px; }
}
