/* HotelConnect base styles - portable across themes */
:root {
    --hc-primary: var(--primary-color, #2563eb);
    --hc-accent: var(--primary-color-2, var(--primary-color, #1e40af));
    --hc-danger: #dc2626;
    --hc-warning: #d97706;
    --hc-muted: #6b7280;
    --hc-border: #e5e7eb;
}

/* HC room card wrapper - inherits theme .hotel-room layout */
.hc-mustgo-room {
    position: relative;
}

/* Rate select dropdown */
.hc-rate-select {
    width: 100%;
    margin-bottom: 8px;
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    background: #fff;
}
.hc-rate-select:focus {
    border-color: var(--hc-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Price display */
.hc-price-display {
    color: var(--hc-accent);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

/* Allotment indicator */
.hc-allotment-display {
    font-size: 12px;
    margin: 4px 0;
}

/* Book button - theme-aware primary color */
.hc-mustgo-book {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hc-primary);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-align: center;
    width: 100%;
}
.hc-mustgo-book:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
.hc-mustgo-book:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.hc-mustgo-book .fa-spinner {
    margin-left: 6px;
}

/* Capacity icons */
.hc-mustgo-room .capacity-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    color: var(--hc-muted);
    font-size: 13px;
}
.hc-mustgo-room .capacity-icon {
    width: 18px;
    height: 18px;
}
.hc-mustgo-room .capacity-item--child .capacity-icon {
    width: 16px;
    height: 16px;
}

/* Placeholder image (khi room không có ảnh — thay bằng logo site) */
.hc-mustgo-room .slide-item.is-placeholder-slot {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hc-mustgo-room .slide-item.is-placeholder-slot img.is-placeholder {
    width: 60% !important;
    height: 60% !important;
    max-width: 200px;
    max-height: 120px;
    object-fit: contain !important;
    opacity: 0.55;
    filter: grayscale(0.2);
}

/* Contact block (room without rate — fallback to enquiry button) */
.hc-contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.hc-contact-label {
    font-size: 14px;
    color: var(--hc-muted);
}
.hc-contact-label ins {
    text-decoration: none;
    color: #e74c3c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.hc-contact-action {
    width: 100%;
}
.hc-enquiry-btn {
    display: inline-block;
    width: 100%;
    padding: 8px 14px;
    background: var(--hc-primary);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.1s;
}
.hc-enquiry-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.hc-contact-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--hc-muted);
    line-height: 1.3;
}
.hc-contact-note i {
    color: #94a3b8;
    margin-right: 2px;
}

/* Loading spinner container */
.hc-loading-container {
    text-align: center;
    padding: 40px 20px;
}
.hc-loading-container .fa-spinner {
    font-size: 32px;
    color: var(--hc-primary);
}
.hc-loading-container p {
    margin-top: 12px;
    color: var(--hc-muted);
    font-size: 15px;
}

/* Error/empty states */
.hc-alert {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.hc-alert i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}
.hc-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--hc-danger);
}
.hc-alert--danger i { color: var(--hc-danger); }
.hc-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: var(--hc-warning);
}
.hc-alert--warning i { color: var(--hc-warning); }
