:root {
    --primary-blue: #2965af;
    --primary-orange: #f16f0f;
    --primary-gold: var(--primary-orange);
    --primary-dark: #1a2a3a;
    --ramadan-gold: #c6a87c;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --success: #27ae60;
}

html, body { max-width: 100%; overflow-x: hidden; position: relative; scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Tajawal', sans-serif; background-color: var(--bg-light); color: var(--primary-dark); line-height: 1.6; direction: rtl; padding-bottom: 60px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); position: sticky; top: 0; z-index: 2000; width: 100%; transition: all 0.3s ease; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; max-width: 1300px; margin: 0 auto; }
.logo-img { height: 48px; width: auto; transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.03); }

.nav-menu { display: flex; gap: 12px; align-items: center; }
.nav-menu li a { color: #444; font-weight: 700; font-size: 0.95rem; padding: 8px 18px; border-radius: 25px; transition: all 0.3s ease; display: inline-block; }
.desktop-btn { color: white !important; padding: 10px 26px; border-radius: 25px; font-weight: 800; font-size: 0.95rem; border: none; cursor: pointer; transition: 0.3s; }
.desktop-btn:hover { transform: translateY(-2px); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; padding: 5px; border-radius: 8px; transition: 0.3s; }
.mobile-only-btn { display: none; }

body.nav-blue .nav-menu li a:hover { background: rgba(41, 101, 175, 0.1); color: var(--primary-blue); }
body.nav-blue .nav-menu li a.active { background: var(--primary-blue); color: white; box-shadow: 0 4px 12px rgba(41, 101, 175, 0.25); }
body.nav-blue .desktop-btn, body.nav-blue .mobile-only-btn { background: var(--primary-blue); box-shadow: 0 4px 12px rgba(41, 101, 175, 0.25); }
body.nav-blue .menu-toggle { color: var(--primary-blue); }

body.nav-gold .nav-menu li a:hover { background: rgba(198, 168, 124, 0.15); color: var(--ramadan-gold); }
body.nav-gold .nav-menu li a.active { background: var(--ramadan-gold); color: white; box-shadow: 0 4px 12px rgba(198, 168, 124, 0.3); }
body.nav-gold .desktop-btn, body.nav-gold .mobile-only-btn { background: var(--ramadan-gold); box-shadow: 0 4px 12px rgba(198, 168, 124, 0.3); }
body.nav-gold .menu-toggle { color: var(--ramadan-gold); }

@media (max-width: 900px) {
    .navbar { padding: 10px 15px; }
    .desktop-btn { display: none; }
    .menu-toggle { display: block; order: 2; }
    .mobile-only-btn { display: block; order: 1; color: white !important; padding: 8px 20px; border-radius: 20px; margin-left: auto; margin-right: 15px; font-weight: bold; font-size: 0.85rem; }
    .nav-menu { display: flex !important; position: absolute; top: 100%; right: 0; width: 100%; background: white; flex-direction: column; gap: 10px; padding: 0 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.08); max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
    .nav-menu.mobile-active { max-height: 450px; opacity: 1; visibility: visible; padding: 20px; border-top: 1px solid #f0f0f0; }
    .nav-menu li { width: 100%; text-align: right; }
    .nav-menu li a { display: block; padding: 12px 20px; border-radius: 12px; width: 100%; background: #fdfdfd; border: 1px solid #f5f5f5; }
}

.page-hero { background: linear-gradient(135deg, var(--primary-blue) 0%, #173b61 100%); padding: 60px 20px; text-align: center; color: white; border-radius: 0 0 30px 30px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(41, 101, 175, 0.15); }
body.nav-gold .page-hero { background: linear-gradient(135deg, var(--ramadan-gold) 0%, #8b714b 100%); box-shadow: 0 10px 30px rgba(198, 168, 124, 0.15); }
.page-hero-title { font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.page-hero-desc { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }

@media (max-width: 768px) {
    .page-hero { padding: 40px 20px; border-radius: 0 0 20px 20px; }
    .page-hero-title { font-size: 2rem; }
}

.hotel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }

.contact-hero { height: 45vh; min-height: 350px; background: url('../images/img2.jpg') center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-overlay-gradient { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(41, 101, 175, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%); z-index: 1; }
.contact-hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 20px; }
.contact-hero-content h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; margin-top: -60px; position: relative; z-index: 10; }
.contact-info-card, .contact-form-card { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.modern-contact-form .form-input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; font-family: inherit; }
.submit-contact-btn { width: 100%; padding: 15px; background: var(--primary-blue); color: white; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.3s; }

.branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.branch-card-premium { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; transition: 0.3s; display: flex; flex-direction: column; }
.branch-map { height: 220px; width: 100%; }
.branch-map iframe { width: 100%; height: 100%; border: none; filter: grayscale(40%); transition: 0.4s; }
.branch-card-premium:hover .branch-map iframe { filter: grayscale(0%); }
.branch-details { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.branch-phones a { display: flex; align-items: center; gap: 10px; color: #555; margin-bottom: 10px; font-family: 'Poppins', sans-serif; }
.branch-dir-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #f6f9fc;
    border: 1px solid #dbe7f3;
    color: var(--primary-blue);
    font-weight: 800;
}
.branch-dir-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.main-footer {
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    color: #d9dde3;
    background:
        radial-gradient(circle at top right, rgba(198, 168, 124, 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(41, 101, 175, 0.16), transparent 30%),
        linear-gradient(135deg, #111820 0%, #17222d 52%, #0f161e 100%);
    border-top: 4px solid var(--ramadan-gold);
}
.main-footer::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 28px;
    pointer-events: none;
}
.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 20px 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.footer-col {
    min-width: 0;
    padding: 28px 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 18px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.footer-col h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ramadan-gold), var(--primary-orange));
}
.footer-col p,
.footer-desc {
    color: #c7ced6;
    line-height: 1.9;
    font-size: 0.96rem;
}
.footer-links {
    display: grid;
    gap: 10px;
}
.footer-links li { margin: 0; }
.footer-links a {
    color: #d9dde3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
}
.footer-links a:hover {
    color: white;
    border-color: rgba(198, 168, 124, 0.4);
    background: rgba(198, 168, 124, 0.1);
    transform: translateX(-4px);
}
.social-icons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.sc-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.35s;
    font-size: 1.1rem;
}
.sc-icon:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--primary-orange), var(--ramadan-gold));
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(0,0,0,0.18);
}
.copyright-bar {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding: 18px 20px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
    color: #b9c1cb;
}
.copyright-bar p {
    margin: 0;
    line-height: 1.8;
}

.float-whatsapp { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background: #25d366; color: #FFF; border-radius: 50px; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 5000; transition: 0.3s; }
.float-whatsapp:hover { transform: scale(1.1); background: #1ebc57; }

.loader-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: bold;
}
.loader-container i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.badge { padding: 5px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: bold; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.badge-gold { background: var(--ramadan-gold); color: white; }
.badge-blue { background: var(--primary-blue); color: white; }
.badge-red { background: #e74c3c; color: white; }

@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; margin-top: 0; }
    .contact-hero { padding: 80px 0; height: auto; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .footer-container { text-align: center; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .footer-links a, .social-icons-group { justify-content: center; }
    .footer-col { padding: 24px 18px; }
    .main-footer::before { inset: 14px; }
}
