/* ==========================================================================
   PROSEVO PMS - LUXURY HOTEL PORTAL CSS
   Zero Default Odoo Pages, 100% Real Database Data, High Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --hotel-primary: #0b1329;
    --hotel-secondary: #1e293b;
    --hotel-accent: #c5a880;
    --hotel-accent-hover: #b39268;
    --hotel-gold: #d4af37;
    --hotel-bg: #f8fafc;
    --hotel-card-bg: #ffffff;
    --hotel-border: #e2e8f0;
    --hotel-text-main: #0f172a;
    --hotel-text-muted: #64748b;
    --hotel-radius-lg: 20px;
    --hotel-radius-md: 12px;
    --hotel-radius-sm: 8px;
    --hotel-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    --hotel-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Full viewport boundary & prevent horizontal scrolling gaps while preserving CSS sticky / fixed */
#wrapwrap,
#wrapwrap > main,
#wrap,
html,
body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100vw !important;
    width: 100% !important;
}

/* Base Reset & Mobile Auto-Zoom Prevention */
.hotel-app-wrapper {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100vw !important;
    width: 100% !important;
    background-color: var(--hotel-bg);
    color: var(--hotel-text-main);
    min-height: 100vh;
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

[dir="ltr"] .hotel-app-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ensure mobile Safari never zooms in on form fields */
.hotel-app-wrapper input,
.hotel-app-wrapper select,
.hotel-app-wrapper textarea {
    font-size: 16px !important;
}

/* Top Hotel Header & Navigation - Smart Auto-Hiding Fixed Navbar */
.hotel-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 10px 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform: translateY(0);
}

.hotel-navbar.navbar-hidden {
    transform: translateY(-100%) !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.hotel-navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Spacer to prevent layout shift under fixed navbar */
.hotel-navbar-spacer {
    display: block;
    height: 72px;
    width: 100%;
}

.hotel-navbar .container,
.hotel-navbar .container-fluid {
    flex-wrap: nowrap !important;
}

.hotel-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    vertical-align: middle;
}

.hotel-logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 2px solid #c5a880;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 47, 5, 0.12);
    flex-shrink: 0 !important;
    overflow: hidden;
    padding: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hotel-logo-circle:hover {
    transform: scale(1.05);
    border-color: #022f05;
    box-shadow: 0 6px 16px rgba(2, 47, 5, 0.22);
}

.hotel-logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.hotel-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap !important;
}

.hotel-brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #022f05;
    line-height: 1.15;
    white-space: nowrap !important;
    letter-spacing: -0.2px;
}

.hotel-brand-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hotel-accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 1px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap !important;
}

.hotel-navbar nav {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.hotel-nav-link {
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.hotel-nav-link:hover,
.hotel-nav-link.active {
    color: var(--hotel-primary) !important;
    background: #f1f5f9;
}

.hotel-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: var(--hotel-secondary);
    background: #f1f5f9;
    border: 1px solid var(--hotel-border);
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.hotel-nav-btn:hover {
    background: #e2e8f0;
    color: var(--hotel-primary);
    transform: translateY(-1px);
}

.hotel-nav-btn.primary {
    background: linear-gradient(135deg, var(--hotel-primary) 0%, var(--hotel-secondary) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 19, 41, 0.2);
}

.hotel-nav-btn.primary:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

.hotel-nav-btn.gold {
    background: linear-gradient(135deg, var(--hotel-accent) 0%, #b89363 100%);
    color: #ffffff;
    border: none;
}

/* Hero Section */
.hotel-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 19, 41, 0.88) 0%, rgba(15, 23, 42, 0.82) 100%),
        url('/prosevo_pms/static/src/img/portal-room-booking.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 50px 16px 80px 16px;
    text-align: center;
}

.hotel-hero-title {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hotel-hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

/* Floating Search Bar */
.hotel-search-card {
    background: #ffffff;
    border-radius: var(--hotel-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
    max-width: 980px;
    margin: -45px auto 40px auto;
    padding: 12px 16px;
    position: relative;
    z-index: 20;
}

.search-field-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--hotel-radius-md);
    background: #f8fafc;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.search-field-item:hover,
.search-field-item:focus-within {
    background: #ffffff;
    border-color: var(--hotel-accent);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.12);
}

.search-field-icon {
    font-size: 20px;
    color: var(--hotel-accent);
}

.search-field-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-field-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--hotel-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.search-field-input {
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 700;
    color: var(--hotel-primary);
    outline: none !important;
    width: 100%;
}

.btn-hotel-search {
    background: linear-gradient(135deg, var(--hotel-primary) 0%, var(--hotel-secondary) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: var(--hotel-radius-md);
    padding: 14px 28px;
    height: 100%;
    min-height: 52px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(11, 19, 41, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-hotel-search:hover {
    background: linear-gradient(135deg, var(--hotel-secondary) 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 19, 41, 0.3);
    color: #ffffff;
}

/* Room Cards */
.hotel-room-card {
    background: var(--hotel-card-bg);
    border-radius: var(--hotel-radius-lg);
    border: 1px solid var(--hotel-border);
    box-shadow: var(--hotel-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

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

.hotel-room-img-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    background: #1e293b;
    overflow: hidden;
}

.hotel-room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hotel-badge-overlay {
    position: absolute;
    top: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

[dir="rtl"] .hotel-badge-overlay {
    right: 14px;
}

[dir="ltr"] .hotel-badge-overlay {
    left: 14px;
}

.hotel-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hotel-badge.available {
    background: #10b981;
    color: #ffffff;
}

.hotel-badge.sold-out {
    background: #ef4444;
    color: #ffffff;
}

.hotel-badge.deal {
    background: #f59e0b;
    color: #ffffff;
}

.hotel-room-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hotel-room-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hotel-primary);
    margin-bottom: 6px;
}

.hotel-room-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.room-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.hotel-room-desc {
    color: var(--hotel-text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
}

.amenity-tag i {
    color: var(--hotel-accent);
}

.hotel-pricing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hotel-border);
    margin-top: auto;
    flex-wrap: nowrap !important;
}

.price-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex-shrink: 1;
}

.price-subtext {
    font-size: 11px;
    color: var(--hotel-text-muted);
    font-weight: 600;
    white-space: nowrap !important;
    margin-bottom: 2px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.price-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--hotel-primary);
    line-height: 1;
    white-space: nowrap !important;
}

.price-currency {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--hotel-accent);
    white-space: nowrap !important;
}

.price-unit {
    font-size: 12px;
    color: var(--hotel-text-muted);
    font-weight: 600;
    white-space: nowrap !important;
    display: inline-block;
}

.btn-book-room {
    background: linear-gradient(135deg, var(--hotel-primary) 0%, var(--hotel-secondary) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: var(--hotel-radius-md);
    text-decoration: none !important;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 19, 41, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.btn-book-room:hover {
    background: linear-gradient(135deg, var(--hotel-secondary) 0%, #334155 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 19, 41, 0.3);
}

.btn-book-room:disabled,
.btn-book-room.sold-out-btn {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Booking Form Styles */
.hotel-form-card {
    background: #ffffff;
    border-radius: var(--hotel-radius-lg);
    border: 1px solid var(--hotel-border);
    box-shadow: var(--hotel-shadow);
    padding: 30px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hotel-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 10px;
}

.form-section-title i {
    color: var(--hotel-accent);
}

.hotel-sticky-summary {
    background: #ffffff;
    border-radius: var(--hotel-radius-lg);
    border: 1px solid var(--hotel-border);
    box-shadow: var(--hotel-shadow);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--hotel-primary);
    border-top: 1.5px dashed var(--hotel-border);
    padding-top: 14px;
    margin-top: 14px;
}

/* Luxury Footer */
.hotel-footer {
    background: var(--hotel-primary);
    color: #ffffff;
    padding: 60px 0 30px 0;
    margin-top: 60px;
    border-top: 3px solid var(--hotel-accent);
}

.hotel-footer h5 {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.hotel-footer p,
.hotel-footer li {
    color: #94a3b8;
    font-size: 13.5px;
}

.hotel-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hotel-navbar {
        padding: 8px 0 !important;
    }

    .hotel-navbar .container,
    .hotel-navbar .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .hotel-navbar-spacer {
        height: 58px !important;
    }

    .hotel-brand-logo {
        gap: 8px !important;
    }

    .hotel-logo-circle {
        width: 38px !important;
        height: 38px !important;
        padding: 2px !important;
        border-width: 1.5px !important;
    }

    .hotel-brand-name {
        font-size: 1.05rem !important;
        line-height: 1.15 !important;
    }

    .hotel-brand-tagline {
        font-size: 0.65rem !important;
        letter-spacing: 0.3px !important;
    }

    .hotel-nav-btn {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
        height: 34px !important;
    }

    .hotel-nav-btn i {
        font-size: 12px !important;
    }

    .hotel-hero-title {
        font-size: 1.7rem;
    }

    .hotel-hero-subtitle {
        font-size: 0.95rem;
    }

    .hotel-search-card {
        margin-top: -30px;
        padding: 12px;
    }

    .hotel-sticky-summary {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .hotel-navbar {
        padding: 6px 0 !important;
    }

    .hotel-navbar .container,
    .hotel-navbar .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hotel-navbar-spacer {
        height: 50px !important;
    }

    .hotel-brand-logo {
        gap: 6px !important;
    }

    .hotel-logo-circle {
        width: 34px !important;
        height: 34px !important;
        padding: 2px !important;
    }

    .hotel-brand-name {
        font-size: 0.92rem !important;
        letter-spacing: -0.3px !important;
    }

    .hotel-brand-tagline {
        font-size: 0.58rem !important;
        letter-spacing: 0.2px !important;
    }

    .hotel-navbar .d-flex.align-items-center.gap-2 {
        gap: 5px !important;
    }

    .hotel-nav-btn {
        padding: 5px 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
        height: 32px !important;
    }

    .hotel-nav-btn i {
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    .hotel-brand-tagline {
        display: none !important;
    }

    .hotel-brand-name {
        font-size: 0.88rem !important;
    }

    .hotel-nav-btn {
        padding: 4px 7px !important;
        font-size: 10px !important;
    }
}