/*
 * Hotel Management Module Styles
 * Bootstrap 5 based - shared across all hotel-*.html pages
 */

/* Page container width is set globally in tqadmin.css (max-width: 1400px) */

/* ==================== Hotel List ==================== */

.hotel-row {
    cursor: pointer;
    transition: background-color 0.15s;
}

.hotel-row:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* ==================== Sub-Navigation ==================== */

.hotel-subnav .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.hotel-subnav .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: color 0.15s, border-color 0.15s;
}

.hotel-subnav .nav-link:hover {
    color: var(--bs-primary);
    border-bottom-color: rgba(var(--bs-primary-rgb), 0.3);
}

.hotel-subnav .nav-link.active {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

/* ==================== Hotel Edit - Sections ==================== */

.hotel-section {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #fff;
}

.hotel-section .section-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hotel-section .section-body {
    padding: 1rem;
}

/* ==================== Room Cards ==================== */

.room-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.15s;
}

.room-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.room-card .room-header {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-card .room-header .room-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.room-card .room-body {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.room-card .room-footer {
    padding: 0.35rem 0.75rem;
    border-top: 1px solid #dee2e6;
    background: #fafafa;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* ==================== Rate Calendar ==================== */

.rate-calendar {
    font-size: 0.8rem;
}

.rate-calendar th {
    text-align: center;
    padding: 0.3rem;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.rate-calendar td {
    text-align: center;
    padding: 0.25rem 0.3rem;
    min-width: 70px;
    cursor: pointer;
    transition: background-color 0.15s;
    border: 1px solid #eee;
}

.rate-calendar td:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.rate-calendar td.day-weekend {
    background-color: #fff3cd;
}

.rate-calendar td.day-stopsale {
    background-color: #f8d7da;
    color: #842029;
}

.rate-calendar td.day-onrequest {
    background-color: #cff4fc;
    color: #055160;
}

.rate-calendar td.day-available {
    background-color: #d1e7dd;
}

.rate-calendar td.day-empty {
    background-color: #f8f9fa;
    cursor: default;
}

.rate-cell-amount {
    font-weight: 600;
    font-size: 0.85rem;
}

.rate-cell-status {
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* ==================== Promotion Cards ==================== */

.promo-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.promo-card:hover {
    background-color: #f8f9fa;
}

.promo-card.active {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.promo-card.inactive {
    opacity: 0.6;
}

.promo-market-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

/* ==================== Wizard Steps ==================== */

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #adb5bd;
}

.wizard-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    border: 2px solid #dee2e6;
    background: #fff;
}

.wizard-step.active .step-number {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
}

.wizard-step.active {
    color: var(--bs-primary);
    font-weight: 600;
}

.wizard-step.completed .step-number {
    border-color: var(--bs-success);
    background: var(--bs-success);
    color: #fff;
}

.wizard-step.completed {
    color: var(--bs-success);
}

.wizard-connector {
    width: 40px;
    height: 2px;
    background: #dee2e6;
    align-self: center;
}

.wizard-connector.completed {
    background: var(--bs-success);
}

/* ==================== Meal Plan Table ==================== */

.meal-table input[type="number"] {
    width: 90px;
    text-align: right;
}

/* ==================== Utility ==================== */

.hotel-page .accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
}

.occupancy-icons {
    display: inline-flex;
    gap: 2px;
    font-size: 0.85rem;
}
