/* =========================================================
   Innqora - Modern Dashboard / Public UI
   Responsive Design
   ========================================================= */
:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-light: #eef0ff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #0891b2;
    --text: #172033;
    --text-muted: #667085;
    --border: #e7eaf0;
    --background: #f6f8fb;
    --surface: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, .04);
    --shadow-md: 0 8px 25px rgba(16, 24, 40, .07);
    --shadow-lg: 0 15px 40px rgba(16, 24, 40, .10);
    --transition: all .2s ease;
}


/* =========================================================
   Global
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    transition: var(--transition);
}

img {
    max-width: 100%;
}


/* =========================================================
   Hero / Search
   ========================================================= */

.hero-search {
    position: relative;
    background: linear-gradient( 135deg, var(--brand) 0%, var(--brand-dark) 100% );
    color: #fff;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: clamp(35px, 6vw, 75px) 20px;
    overflow: hidden;
}

    /* Decorative background */
    .hero-search::before {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .06);
        top: -180px;
        right: -100px;
    }

    .hero-search::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .05);
        bottom: -150px;
        left: -80px;
    }

    .hero-search > * {
        position: relative;
        z-index: 1;
    }


    /* Search box */

    .hero-search .form-control,
    .hero-search .form-select {
        min-height: 52px;
        border: 0;
        border-radius: var(--radius-md);
        box-shadow: 0 5px 20px rgba(0, 0, 0, .10);
    }

        .hero-search .form-control:focus,
        .hero-search .form-select:focus {
            box-shadow: 0 0 0 4px rgba(255,255,255,.20);
        }


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

.hotel-card,
.room-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

    .hotel-card:hover,
    .room-card:hover {
        transform: translateY(-4px);
        border-color: transparent;
        box-shadow: var(--shadow-lg);
    }


    /* Images */

    .hotel-card img,
    .room-card img {
        object-fit: cover;
        width: 100%;
        height: 210px;
        transition: transform .35s ease;
    }

    .hotel-card:hover img,
    .room-card:hover img {
        transform: scale(1.035);
    }


    /* Card body */

    .hotel-card .card-body,
    .room-card .card-body {
        padding: 20px;
    }


/* =========================================================
   Rating
   ========================================================= */

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf3;
    color: #15803d;
    border-radius: 7px;
    padding: 4px 9px;
    font-weight: 600;
    font-size: .82rem;
    white-space: nowrap;
}


/* =========================================================
   Dashboard Stat Cards
   ========================================================= */

.stat-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

    .stat-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--brand);
        border-radius: 4px 0 0 4px;
    }

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }


/* =========================================================
   Dashboard Stat Grid
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   Modern Dashboard Cards
   ========================================================= */

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.dashboard-card-body {
    padding: 20px;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

    .btn-primary:hover {
        background: var(--brand-dark);
        border-color: var(--brand-dark);
        transform: translateY(-1px);
    }


/* =========================================================
   Modern Form Controls
   ========================================================= */

.form-control,
.form-select {
    border-color: var(--border);
    border-radius: var(--radius-md);
    min-height: 45px;
    transition: var(--transition);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
    }


/* =========================================================
   Room Status
   ========================================================= */

.room-status-Available,
.room-status-Occupied,
.room-status-Dirty,
.room-status-Cleaning,
.room-status-Maintenance,
.room-status-OutOfOrder,
.room-status-Reserved {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
}


/* Available */

.room-status-Available {
    color: #15803d;
    background: #ecfdf3;
}


/* Occupied */

.room-status-Occupied {
    color: #b91c1c;
    background: #fef2f2;
}


/* Dirty */

.room-status-Dirty {
    color: #c2410c;
    background: #fff7ed;
}


/* Cleaning */

.room-status-Cleaning {
    color: #0e7490;
    background: #ecfeff;
}


/* Maintenance */

.room-status-Maintenance,
.room-status-OutOfOrder {
    color: #475467;
    background: #f2f4f7;
}


/* Reserved */

.room-status-Reserved {
    color: #6d28d9;
    background: #f5f3ff;
}


/* =========================================================
   Tables
   ========================================================= */

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

    .table thead th {
        color: var(--text-muted);
        font-size: .78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        border-bottom: 1px solid var(--border);
        padding: 13px 15px;
    }

    .table tbody td {
        padding: 15px;
        vertical-align: middle;
        border-color: var(--border);
        color: var(--text);
    }

    .table tbody tr {
        transition: var(--transition);
    }

        .table tbody tr:hover {
            background: #f8f9fc;
        }


/* =========================================================
   Badges
   ========================================================= */

.badge {
    border-radius: 50px;
    padding: 5px 10px;
    font-weight: 600;
}


/* =========================================================
   Lightbox
   ========================================================= */

img[data-lightbox] {
    cursor: zoom-in;
}


/* Overlay */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, .94);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

    .lightbox-overlay.open {
        display: flex;
    }


/* Image */

.lightbox-image {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
    cursor: default;
}


/* Caption */

.lightbox-caption {
    color: #eee;
    margin-top: 14px;
    font-size: .9rem;
    text-align: center;
    max-width: 80vw;
}


/* Close */

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

    .lightbox-close:hover {
        background: rgba(255,255,255,.25);
        transform: rotate(90deg);
    }


/* Navigation */

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.25rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

    .lightbox-nav:hover {
        background: rgba(255,255,255,.25);
        transform: translateY(-50%) scale(1.05);
    }

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}


/* =========================================================
   Responsive - Tablet
   ========================================================= */

@media (max-width: 992px) {

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotel-card img,
    .room-card img {
        height: 200px;
    }
}


/* =========================================================
   Responsive - Mobile
   ========================================================= */

@media (max-width: 576px) {

    body {
        font-size: 14px;
    }

    .hero-search {
        padding: 35px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .hotel-card img,
    .room-card img {
        height: 190px;
    }

    .hotel-card .card-body,
    .room-card .card-body {
        padding: 16px;
    }

    .dashboard-card-header {
        padding: 15px;
        flex-wrap: wrap;
    }

    .dashboard-card-body {
        padding: 15px;
    }

    /* Responsive tables */
    .table-responsive {
        border-radius: var(--radius-md);
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 75vh;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   Extra Small Devices
   ========================================================= */

@media (max-width: 380px) {

    .hero-search {
        padding: 30px 12px;
    }

    .hotel-card img,
    .room-card img {
        height: 170px;
    }

    .rating-badge {
        font-size: .75rem;
        padding: 3px 7px;
    }
}



/* ==============================
   INNQORA FOOTER
   ============================== */

.innqora-footer {
    background: #f8faff;
    border-top: 1px solid #e8edf5;
    color: #475569;
    font-family: inherit;
}

.innqora-footer-logo {
    height: 260px;
    object-fit: contain;
}

.innqora-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #2563eb;
}

.innqora-footer-description {
    max-width: 460px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

.innqora-footer-title {
    color: #172033;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.innqora-footer-links li {
    margin-bottom: 0.55rem;
}

.innqora-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

    .innqora-footer-links a:hover {
        color: #2563eb;
        padding-left: 3px;
    }

.innqora-footer-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .innqora-footer-btn:hover {
        background: #1d4ed8;
        color: #fff;
        transform: translateY(-1px);
    }

.innqora-footer-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.innqora-copyright {
    color: #94a3b8;
    font-size: 0.78rem;
}

.innqora-powered {
    color: #94a3b8;
    font-size: 0.78rem;
}


/* Mobile */
@media (max-width: 767.98px) {

    .innqora-footer {
        text-align: center;
    }

    .innqora-footer-description {
        margin-left: auto;
        margin-right: auto;
    }

    .innqora-footer-links a:hover {
        padding-left: 0;
    }

    .innqora-footer .row > div {
        margin-bottom: 10px;
    }
}