/* ======================================================================
   Xala Premium — Global Styles
   Bootstrap 5 only. No Tailwind. No inline styles.
   ====================================================================== */

/* ── CSS Variables ─────────────────────────────────── */
:root {
    --xala-primary: #F5C518;
    --xala-primary-hover: #e0b415;
    --xala-dark: #1a1a2e;
    --xala-darker: #16213e;
    --xala-darkest: #0f0f23;
    --xala-text: #e4e4e7;
    --xala-text-muted: #a1a1aa;
    --xala-card-bg: #1e1e3a;
    --xala-card-border: rgba(255,255,255,0.08);
    --xala-success: #22c55e;
    --xala-danger: #ef4444;
    --xala-warning: #f59e0b;
    --xala-info: #3b82f6;
    --xala-sidebar-width: 240px;
}

/* ── Typography ────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* ── Navbar (Public) ───────────────────────────────── */
.navbar-xala {
    background-color: var(--xala-darkest);
    padding: 0.35rem 0;
}

.navbar-xala .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-xala .navbar-brand .brand-icon {
    width: 100px;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
    overflow: hidden;
}

.navbar-xala .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-xala .nav-link:hover,
.navbar-xala .nav-link.active {
    color: #fff;
}

.navbar-xala .nav-link.active {
    border-bottom: 2px solid var(--xala-primary);
}

.btn-xala-primary {
    background-color: var(--xala-primary);
    color: #000;
    border: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.45rem 1.5rem;
    transition: all 0.2s;
}

.btn-xala-primary:hover {
    background-color: var(--xala-primary-hover);
    color: #000;
}

.btn-xala-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50px;
    padding: 0.45rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-xala-outline:hover {
    border-color: #fff;
    color: #fff;
}

/* ── Hero Section ──────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, rgba(15,15,35,0.85) 0%, rgba(26,26,46,0.75) 100%),
                radial-gradient(circle at top, rgba(245,197,24,0.12), transparent 45%);
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-section h1 .text-highlight {
    color: var(--xala-primary);
    font-style: italic;
}

.hero-section p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 560px;
}

/* ── Search Bar ────────────────────────────────────── */
.search-bar-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    max-width: 680px;
}

.search-bar-wrap .form-control,
.search-bar-wrap .form-select {
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
}

.search-bar-wrap .form-control:focus,
.search-bar-wrap .form-select:focus {
    box-shadow: none;
    background: #f0f0f0;
}

.search-bar-wrap .btn-search {
    background-color: var(--xala-darkest);
    color: #fff;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-bar-wrap .btn-search:hover {
    background-color: #1a1a40;
    color: #fff;
}

/* ── Section Headings ──────────────────────────────── */
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.section-subheading {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ── Property Card ─────────────────────────────────── */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.property-card .badge-available {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--xala-success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.property-card .badge-rooms {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--xala-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.property-card .favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.property-card .favorite-btn:hover {
    background: #fff;
}

.property-card .card-body {
    padding: 1rem;
}

.property-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.property-card .price-old {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.85rem;
}

.property-card .price-current {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
}

.property-card .btn-book {
    background-color: var(--xala-darkest);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
}

.property-card .btn-book:hover {
    background-color: #1a1a40;
    color: #fff;
}

/* ── Event Space Card ──────────────────────────────── */
.event-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.event-card .event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.event-card .event-overlay h5 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.event-card .event-overlay p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
}

.event-card .btn-event {
    background-color: var(--xala-primary);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
}

/* ── Why Choose Section ────────────────────────────── */
.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.why-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
}

.why-card .icon-wrap.bg-success-soft {
    background-color: rgba(34,197,94,0.15);
    color: var(--xala-success);
}

.why-card .icon-wrap.bg-danger-soft {
    background-color: rgba(239,68,68,0.15);
    color: var(--xala-danger);
}

.why-card .icon-wrap.bg-warning-soft {
    background-color: rgba(245,197,24,0.15);
    color: var(--xala-warning);
}

.why-card h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
    background-color: var(--xala-darkest);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
}

/* ── Footer ────────────────────────────────────────── */
.footer-xala {
    background-color: var(--xala-darkest);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-xala h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-xala a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-xala a:hover {
    color: #fff;
}

.footer-xala .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin-right: 0.5rem;
    transition: background 0.2s;
}

.footer-xala .social-icons a:hover {
    background: var(--xala-primary);
    color: #000;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ── Property Detail Page ──────────────────────────── */
.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}

.property-gallery .gallery-main {
    grid-row: 1 / 3;
}

.property-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery .btn-all-photos {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #fff;
    color: #212529;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.booking-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: sticky;
    top: 24px;
}

.booking-widget .price-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: #212529;
}

.booking-widget .price-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.booking-widget .form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #6c757d;
}

.booking-widget .form-control,
.booking-widget .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.booking-widget .price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.booking-widget .price-total {
    font-weight: 700;
    font-size: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.3rem;
}

.btn-request-book {
    background-color: var(--xala-primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    padding: 0.75rem;
    width: 100%;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-request-book:hover {
    background-color: var(--xala-primary-hover);
    color: #000;
}

.key-feature-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.key-feature-card i {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.key-feature-card .feature-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.key-feature-card .feature-value {
    font-weight: 700;
    font-size: 0.85rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.amenity-item i {
    color: #6c757d;
    width: 20px;
}

.high-demand-alert {
    background-color: #fff1f1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--xala-danger);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section {
        min-height: 400px;
        padding: 2.5rem 0;
    }

    .property-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 280px;
    }

    .property-gallery > *:not(.gallery-main) {
        display: none;
    }

    .property-gallery .gallery-main {
        grid-row: auto;
    }

    .booking-widget {
        position: static;
        margin-top: 1.5rem;
    }

    .search-bar-wrap {
        padding: 0.75rem;
    }

    .search-bar-wrap .row > div {
        margin-bottom: 0.5rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .event-card {
        min-height: 250px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .property-card .card-img-top {
        height: 180px;
    }
}

/* ── Utility Classes ───────────────────────────────── */
.text-xala-primary {
    color: var(--xala-primary) !important;
}

.bg-xala-primary {
    background-color: var(--xala-primary) !important;
}

.bg-xala-dark {
    background-color: var(--xala-dark) !important;
}

.bg-xala-darkest {
    background-color: var(--xala-darkest) !important;
}

.rating-stars .bi-star-fill {
    color: var(--xala-primary);
    font-size: 0.85rem;
}

.rating-stars .bi-star {
    color: #dee2e6;
    font-size: 0.85rem;
}

/* ── Auth Pages ────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--xala-darkest) 0%, var(--xala-dark) 100%);
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.auth-card h2 {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.auth-card .form-control {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
}

/* ── Auth Split-Screen Layout ──────────────────────── */
.auth-split-section {
    overflow: hidden;
}

.auth-split-section .navbar-xala,
.auth-split-section + .footer-xala {
    display: none;
}

.auth-image-panel {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15,15,35,0.75) 0%,
        rgba(15,15,35,0.65) 40%,
        rgba(15,15,35,0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.auth-image-content {
    margin-top: 2rem;
}

.auth-image-content h2 {
    font-size: 2rem;
    line-height: 1.3;
}

.auth-image-stats {
    margin-top: 2rem;
}

.auth-testimonial {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--xala-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(245,197,24,0.2);
    color: var(--xala-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-form-panel {
    background: #fff;
    padding: 2rem;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-form-wrapper .form-control,
.auth-form-wrapper .form-select {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.auth-form-wrapper .input-group-text {
    border: 1px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-form-wrapper .input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245,197,24,0.12);
    color: var(--xala-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-role-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.auth-role-option:hover {
    border-color: var(--xala-primary);
    background: rgba(245,197,24,0.04);
}

.auth-role-option.active {
    border-color: var(--xala-primary);
    background: rgba(245,197,24,0.08);
    box-shadow: 0 0 0 1px var(--xala-primary);
}

.auth-role-option .text-muted {
    font-weight: 400;
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {
    .auth-form-panel {
        padding: 2rem 1.5rem;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 3rem;
    }
}
