/* ============================================================
   ROOMIRIA — Main Site CSS  (Arabic RTL · Cairo Font)
   Matches index.html design
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
    --navy:       #1a1a2e;
    --navy-dark:  #16213e;
    --navy-mid:   #0f3460;
    --gold:       #c9a227;
    --gold-light: #f0c040;
    --teal:       #48C9B0;
    --white:      #ffffff;
    --light-bg:   #f8f9fa;
    --text-dark:  #1a1a2e;
    --text-muted: #6c757d;
    --radius-md:  12px;
    --radius-lg:  20px;
    --shadow-sm:  0 4px 15px rgba(0,0,0,.08);
    --shadow-md:  0 8px 32px rgba(0,0,0,.12);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.16);
    --transition: .3s ease;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.site-header .navbar { padding: .7rem 0; }

.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-size: 1rem; font-weight: 900;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

.site-header .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-weight: 600;
    font-size: .9rem;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px !important;
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.site-header .nav-link:hover { color: var(--gold) !important; }
.site-header .nav-link:hover::after { width: 100%; left: 0; right: auto; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy) !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,.4); }

.bg-dark-navy { background: var(--navy-dark); }

/* Push content below fixed header */
body { padding-top: 72px; }

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?w=1920&q=80') center/cover no-repeat;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-section:hover .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,.9) 0%, rgba(15,52,96,.75) 60%, rgba(26,26,46,.5) 100%);
    z-index: 1;
}

.hero-section .container { position: relative; z-index: 2; }

.hero-stars i { color: var(--gold); font-size: 1.1rem; }

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SEARCH FORM ===== */
.hero-search {
    background: rgba(255,255,255,.97);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.search-field label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.hero-search .form-control,
.hero-search .form-select {
    border: 1.5px solid #e9ecef;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: .9rem;
    padding: .6rem .9rem;
    background: #f8f9fa;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search .form-control:focus,
.hero-search .form-select:focus {
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(15,52,96,.12);
    background: #fff;
}

.btn-search {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    padding: .65rem 1.5rem;
    font-size: 1rem;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,52,96,.4); color: #fff; }

/* ===== STAT BADGES ===== */
.stat-pill {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    padding: .6rem 1.2rem;
    border-radius: 50px;
    color: #fff;
    text-align: center;
    min-width: 90px;
}

.stat-pill .num { font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.stat-pill .lbl { font-size: .72rem; opacity: .8; }

/* ===== FEATURES BAR ===== */
.features-bar {
    background: var(--navy-dark);
    padding: 1.2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,.85);
    padding: .5rem 1rem;
}

.feature-item .fi-icon {
    width: 44px; height: 44px;
    background: rgba(201,162,39,.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item span { font-weight: 600; font-size: .9rem; }

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
    color: var(--gold);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: .95rem;
    max-width: 600px;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--white); }

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-img-wrap img { border-radius: var(--radius-lg); transition: transform .5s; }
.about-img-wrap:hover img { transform: scale(1.04); }

.about-badge {
    position: absolute;
    bottom: 24px; right: 24px;
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-badge .num { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.about-badge .lbl { font-size: .8rem; opacity: .8; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(255,255,255,.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}

/* ===== OFFERS GRID ===== */
.offer-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    background: #fff;
    cursor: pointer;
}

.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.offer-img-wrap { position: relative; overflow: hidden; height: 180px; }
.offer-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.offer-card:hover .offer-img-wrap img { transform: scale(1.08); }

.offer-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--gold);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.offer-body { padding: 1rem; }
.offer-city { font-weight: 800; font-size: 1rem; color: var(--navy); margin: 0; }
.offer-price { font-size: .85rem; color: var(--text-muted); }
.offer-price strong { color: var(--navy-mid); font-weight: 700; }

/* ===== STATS SECTION ===== */
.stats-section { background: var(--navy); }

.stat-card-dark {
    border-right: 3px solid rgba(201,162,39,.4);
    padding: 1rem 1.5rem;
}

.stat-card-dark:last-child { border-right: none; }

.stat-card-dark .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.stat-card-dark .label {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    margin-top: .25rem;
}

/* ===== ACCOMMODATION CARDS ===== */
.accom-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 200px;
}

.accom-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.accom-card:hover img { transform: scale(1.08); }

.accom-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,.8) 0%, transparent 60%);
    display: flex; align-items: flex-end;
    padding: 1rem 1.2rem;
}

.accom-title { color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--gold);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.testimonial-stars i { color: var(--gold); font-size: .9rem; }

.testimonial-quote {
    color: var(--gold);
    font-size: 2rem;
    opacity: .3;
    line-height: 1;
}

/* ===== HOTEL CARD ===== */
.hotel-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    background: #fff;
    height: 100%;
}

.hotel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.hotel-card .card-img-top { height: 210px; object-fit: cover; transition: transform .4s; }
.hotel-card:hover .card-img-top { transform: scale(1.05); }

.hotel-rating-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--navy); color: #fff;
    font-size: .85rem; font-weight: 700;
    padding: 4px 10px; border-radius: 8px;
}

/* ===== SEARCH RESULTS ===== */
.hotel-result-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
    background: #fff;
}

.hotel-result-card:hover { box-shadow: var(--shadow-md); }

/* ===== BUTTONS GLOBAL ===== */
.btn { font-family: 'Cairo', sans-serif; font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition); }
.btn:hover { transform: translateY(-1px); }

.btn-navy {
    background: var(--navy);
    color: #fff !important;
    border: none;
}
.btn-navy:hover { background: var(--navy-mid); box-shadow: 0 6px 20px rgba(26,26,46,.3); }

/* ===== FORMS ===== */
.form-control, .form-select {
    font-family: 'Cairo', sans-serif;
    border-radius: var(--radius-md);
    border: 1.5px solid #e9ecef;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(15,52,96,.1);
}

/* ===== BLOG CARDS ===== */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
}

.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover img { transform: scale(1.06); }

.blog-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,.85) 0%, transparent 50%);
    display: flex; align-items: flex-end;
    padding: 1.2rem;
}

.blog-badge {
    background: var(--gold);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.8);
    padding-bottom: 0;
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 2px;
    background: var(--gold);
}

.footer-desc { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.8; }

.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    transition: color var(--transition);
    display: flex; align-items: center; gap: .3rem;
}
.footer-links a::before { content: '←'; color: var(--gold); font-size: .7rem; }
.footer-links a:hover { color: var(--gold); padding-right: 4px; }

.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.footer-gallery img {
    width: 100%; height: 65px; object-fit: cover;
    border-radius: 8px;
    transition: opacity var(--transition);
    cursor: pointer;
}
.footer-gallery img:hover { opacity: .8; }

.social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}

.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ===== AMENITY ICON ===== */
.amenity-icon {
    width: 38px; height: 38px;
    background: rgba(15,52,96,.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-mid);
    flex-shrink: 0;
}

/* ===== TEXT UTILITIES ===== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }

/* ===== PAGINATION ===== */
.page-link {
    font-family: 'Cairo', sans-serif;
    border-radius: 8px !important;
    margin: 0 2px;
    color: var(--navy);
    border-color: #dee2e6;
}
.page-item.active .page-link { background: var(--navy); border-color: var(--navy); }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    animation: bounce 2s infinite;
    color: rgba(255,255,255,.7);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== SUCCESS ANIMATION ===== */
@keyframes bounceIn {
    0% { transform: scale(.3); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.success-animation { animation: bounceIn .6s ease; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem; left: 2rem;
    width: 44px; height: 44px;
    background: var(--navy);
    color: #fff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    display: none;
    align-items: center; justify-content: center;
    cursor: pointer; z-index: 9999;
    transition: all var(--transition);
}
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    body { padding-top: 66px; }
    .hero-section { min-height: 70vh; }
    .stat-card-dark { border-right: none; border-bottom: 1px solid rgba(201,162,39,.2); }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .hero-search { padding: 1rem; }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }
