@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* الألوان الجديدة: طابع دبي الفاخر */
    --primary: #0a2540; /* كحلي ملكي */
    --accent: #c19a6b;  /* ذهبي رملي */
    --accent-hover: #a88151;
    --dark: #121212;
    --light: #ffffff;
    --gray-bg: #f5f7fa;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
    --success: #2ecc71;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
}

.bg-gray { background-color: var(--gray-bg); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* Banner */
.banner { background: var(--accent); color: var(--light); text-align: center; padding: 12px 0; font-weight: 500; position: relative; z-index: 100; font-size: 0.95rem; }
#close-banner { background: transparent; border: none; color: white; cursor: pointer; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }

/* Navbar */
.navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 700; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.btn-outline { border: 2px solid var(--accent); padding: 8px 20px; border-radius: 30px; color: var(--accent) !important; }
.btn-outline:hover { background: var(--accent); color: white !important; }

/* Buttons */
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px 25px; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-family: inherit; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-primary:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(193, 154, 107, 0.4); }
.btn-block { width: 100%; padding: 15px; font-size: 1.1rem; }

/* Hero Section */
.hero, .rooms-hero { position: relative; height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background-size: cover; background-position: center; background-attachment: fixed; }
.hero { background-image: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920'); }
.rooms-hero { height: 50vh; background-image: url('https://images.unsplash.com/photo-1582719508461-905c673771fd?auto=format&fit=crop&w=1920'); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(10,37,64,0.4), rgba(10,37,64,0.8)); }
.hero-content { position: relative; z-index: 10; max-width: 800px; padding: 0 20px; }
.hero h1 { font-size: 4rem; font-weight: 800; margin-bottom: 15px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; }

/* Booking Bar (Glassmorphism) */
.glass-effect { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.3); }
.quick-book-bar { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); width: 85%; max-width: 1000px; padding: 25px; border-radius: 20px; display: flex; gap: 20px; align-items: flex-end; box-shadow: 0 15px 35px rgba(0,0,0,0.2); z-index: 20; }
.book-input { flex: 1; display: flex; flex-direction: column; text-align: right; }
.book-input label { color: white; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.book-input input, .book-input select { width: 100%; padding: 14px; border-radius: 8px; border: none; background: white; font-family: inherit; outline: none; }

/* Stats Section */
.stats-section { padding: 100px 0 60px; background: var(--primary); color: white; margin-top: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-box i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.counter-wrapper h3 { font-size: 3.5rem; margin: 0; font-weight: 800; display: flex; justify-content: center; align-items: center; direction: ltr; }
.stat-box p { color: #b0c4de; font-size: 1.1rem; margin-top: 5px; }

/* Sections */
.section-container { padding: 80px 5%; max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.8rem; color: var(--primary); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Grid & Cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: white; transition: var(--transition); }
.service-card:hover { transform: translateY(-10px); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-info { padding: 25px; }
.service-info h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.4rem; }

/* Room Cards */
.room-card { display: flex; flex-direction: column; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.room-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); border-color: var(--accent); }
.room-img { height: 250px; background-size: cover; background-position: center; position: relative; }
.badge { position: absolute; top: 15px; right: 15px; background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; }
.badge.vip { background: var(--accent); color: var(--primary); }
.room-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.room-content h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.features { font-size: 0.9rem; color: var(--accent); margin-bottom: 15px; font-weight: 600; }
.features i { margin-right: 5px; margin-left: 2px; }
.desc { color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.room-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; flex-direction: column; line-height: 1.2; }
.price span { font-size: 0.85rem; font-weight: normal; color: var(--text-muted); }

/* Filters */
.filter-container { background: white; padding: 20px; box-shadow: var(--shadow); position: relative; z-index: 50; border-radius: 50px; max-width: 800px; margin: -35px auto 30px; }
.filter-bar { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.filter-btn { padding: 10px 25px; border: none; background: transparent; cursor: pointer; border-radius: 30px; font-weight: 700; color: var(--text-muted); font-family: inherit; font-size: 1rem; transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; }
.hidden-card { display: none !important; }

/* Reviews */
.reviews-section { background: linear-gradient(135deg, var(--primary), #1a365d); padding: 80px 0; }
.review-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); padding: 30px; border-radius: var(--radius); color: white; }
.reviewer { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.reviewer img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent); }
.stars { color: var(--accent); font-size: 0.9rem; margin-top: 5px; }

/* Checkout Page */
.checkout-wrapper { max-width: 600px; margin: 60px auto; background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
.checkout-header { text-align: center; margin-bottom: 30px; }
.checkout-header i { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }
.checkout-header h2 { color: var(--primary); }
.order-summary-box { background: var(--gray-bg); border: 1px solid var(--border); border-right: 4px solid var(--accent); padding: 25px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.summary-price { text-align: left; }
.summary-price .amount { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }
.payment-methods { margin-bottom: 30px; }
.express-buttons { display: flex; gap: 15px; margin-top: 15px; }
.express-btn { flex: 1; padding: 15px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition); }
.apple-pay { background: black; color: white; }
.google-pay { background: white; border: 1px solid var(--border); color: #444; }
.express-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.divider { display: flex; align-items: center; text-align: center; margin: 30px 0; color: var(--text-muted); }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.divider span { padding: 0 15px; font-size: 0.9rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-with-icon input { padding-right: 45px; }
.form-group input { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--gray-bg); }
.form-group input:focus { border-color: var(--accent); background: white; outline: none; box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.2); }
.form-row { display: flex; gap: 15px; }
.half { flex: 1; }
.back-link { display: block; text-align: center; margin-top: 20px; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--primary); }

/* Toast Notification (Enhanced) */
.toast-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: white; border-radius: 12px; padding: 15px 25px; display: flex; align-items: center; gap: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); z-index: 9999; transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); width: 90%; max-width: 450px; border-right: 5px solid var(--success); }
.toast-notification.show { bottom: 40px; }
.toast-notification .icon { font-size: 2rem; color: var(--success); }
.toast-content h4 { margin: 0; color: var(--dark); font-size: 1.1rem; }
.toast-content p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.toast-close { margin-right: auto; background: none; border: none; font-size: 1.2rem; color: #aaa; cursor: pointer; }

/* Loading Overlay */
#loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); z-index: 10000; justify-content: center; align-items: center; flex-direction: column; backdrop-filter: blur(5px); }
.spinner { border: 4px solid rgba(193, 154, 107, 0.2); border-top: 4px solid var(--accent); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin-bottom: 25px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Footer */
.footer { background: var(--primary); color: #d1d5db; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3 { color: white; font-size: 1.5rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer h3 i { color: var(--accent); }
.footer h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #d1d5db; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-right: 5px; }
.footer-contact p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--accent); width: 20px; }
.footer-bottom { background: #07192b; text-align: center; padding: 20px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; /* يمكن إضافة قائمة هامبرغر لاحقاً */ }
    .hero h1 { font-size: 2.5rem; }
    .quick-book-bar { position: relative; bottom: 0; transform: none; left: 0; width: 90%; margin: -40px auto 40px; flex-direction: column; background: var(--primary); }
    .book-input { width: 100%; }
    .btn-primary { width: 100%; }
    .filter-container { border-radius: 15px; margin: -20px auto 30px; width: 90%; }
    .filter-bar { gap: 10px; }
    .filter-btn { padding: 8px 15px; font-size: 0.9rem; }
}