/* 
    WASM PREMIUM THEME - COMPLETE FRONTEND REBUILD
    Style Guide: Modern SaaS / Booking.com / Almosafer
*/

:root {
    --wasm-primary: #1E3A8A;
    /* Corporate Navy */
    --wasm-secondary: #2563EB;
    /* Action Blue */
    --wasm-accent: #F59E0B;
    /* Warm Amber */
    --wasm-bg: #F3F4F6;
    /* Light Slate Gray */
    --wasm-white: #FFFFFF;
    --wasm-text: #111827;
    /* Dark Slate */
    --wasm-text-muted: #6B7280;
    --wasm-border: #E5E7EB;
    --wasm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wasm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wasm-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --wasm-shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* --- 1. Reset & Global --- */
body {
    font-family: 'Tajawal', 'Inter', sans-serif !important;
    background-color: var(--wasm-bg);
    color: var(--wasm-text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--wasm-secondary);
    transition: all 0.3s;
}

a:hover {
    text-decoration: none;
    color: var(--wasm-primary);
}

.text-accent {
    color: var(--wasm-accent) !important;
}

/* --- 2. Professional Header --- */
.wasm-header {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px 0;
}

.wasm-header.is-sticky {
    position: fixed;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--wasm-border);
}

.wasm-header .nav-link,
.wasm-header .wasm-logo-text {
    color: #fff !important;
}

.wasm-header.is-sticky .nav-link,
.wasm-header.is-sticky .wasm-logo-text {
    color: var(--wasm-text) !important;
}

.wasm-header.is-sticky .text-accent {
    color: var(--wasm-accent) !important;
}

.wasm-logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--wasm-primary);
}

.wasm-nav-list .nav-link {
    font-weight: 700;
    color: var(--wasm-text) !important;
    padding: 10px 15px !important;
    transition: color 0.3s;
    font-size: 15px;
}

.wasm-nav-list .nav-link:hover {
    color: var(--wasm-secondary) !important;
}

.btn-signup-premium {
    background: var(--wasm-secondary);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 800;
    padding: 10px 24px;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    transition: all 0.3s;
}

.btn-signup-premium:hover {
    background: var(--wasm-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.wasm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wasm-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
}

/* --- 3. Hero Section --- */
.wasm-hero-section {
    position: relative;
    height: 85vh;
    min-height: 700px;
    background: #000;
    display: flex;
    align-items: center;
    overflow: visible;
}

.wasm-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: panHero 20s infinite alternate;
}

@keyframes panHero {
    from {
        transform: scale(1.1) translateX(0);
    }

    to {
        transform: scale(1.2) translateX(2%);
    }
}

.wasm-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.3));
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
}

/* --- 4. Floating Search Box --- */
.wasm-search-floating-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    max-width: 1140px;
    margin: 0 auto;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 95%;
}

.search-field {
    padding: 15px 25px;
}

.search-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--wasm-primary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.form-control-wasm {
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--wasm-text);
    width: 100%;
}

.form-control-wasm:focus {
    outline: none;
}

.btn-search-premium {
    background: var(--wasm-accent);
    color: #fff;
    font-weight: 900;
    height: 60px;
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-search-premium:hover {
    background: #D97706;
    /* Darker Amber */
    transform: scale(1.02);
}

/* --- 5. Modern Hotel Cards --- */
.wasm-hotel-premium-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--wasm-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wasm-hotel-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--wasm-shadow-lg);
}

.hotel-image-wrap {
    position: relative;
    height: 240px;
}

.hotel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-premium-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--wasm-accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 11px;
}

.hotel-distance-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    color: var(--wasm-primary);
    box-shadow: var(--wasm-shadow-sm);
    z-index: 10;
}

.price-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--wasm-primary);
    color: #fff;
    padding: 12px 25px;
    border-top-left-radius: 20px;
    z-index: 10;
}

.price-amount-wrapper {
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 14px;
    margin-right: 4px;
    font-weight: 600;
}

.price-amount {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.hotel-info-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hotel-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hotel-stars {
    color: #FFB30E;
    font-size: 12px;
}

.hotel-stars .inactive {
    color: var(--wasm-border);
}

.hotel-card-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
}

.hotel-card-title a {
    color: var(--wasm-text);
}

.feature-item {
    display: inline-block;
    font-size: 12px;
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.hotel-rating-score {
    display: flex;
    align-items: center;
}

.score-num {
    background: var(--wasm-primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 900;
    margin-right: 10px;
}

.hotel-urgency-msg {
    color: #DC2626;
    font-size: 12px;
    font-weight: 800;
    background: #FEF2F2;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
}

.btn-book-now-premium {
    background: var(--wasm-accent);
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 15px;
    border: none;
    transition: all 0.3s;
}

.btn-book-now-premium:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    color: #fff;
}

/* --- 6. Premium Footer --- */
.wasm-footer-premium {
    background: #111827;
    color: #fff;
    padding: 80px 0 20px;
}

.py-5 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.section-main-title {
    font-size: 3rem !important;
}

.footer-title {
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--wasm-white);
}

.footer-list li {
    margin-bottom: 15px;
}

.footer-list a {
    color: #9CA3AF;
    text-decoration: none;
}

.footer-list a:hover {
    color: var(--wasm-secondary);
}

.wasm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- RTL Support --- */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .ml-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .mr-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .border-right-res {
    border-left: 1px solid var(--wasm-border);
    border-right: none;
}

@media (max-width: 991px) {
    .border-right-res {
        border-right: none !important;
        border-bottom: 1px solid var(--wasm-border);
    }

    .hero-main-title {
        font-size: 2.5rem;
    }
}