﻿:root {
    --primary: #4CAF50; /* أخضر فاتح */
    --secondary: #2196F3; /* أزرق فاتح */
    --light: #ffffff;
    --dark: #333333;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--gray);
    color: var(--dark);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/egypt-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light);
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Views Container */
.views-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.view {
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.view h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Offers Cards */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.offer-card {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-image {
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-content {
    padding: 1.5rem;
}

.offer-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.offer-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #3d8b40;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #0b7dda;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .views-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}
/* Home Page Styles */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), url('../images/egypt-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.view-section {
    margin-bottom: 50px;
}

.view-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.offer-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
}

.offer-image {
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-content {
    padding: 20px;
}

.offer-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.offer-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.4rem;
    margin: 10px 0;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

/* Partners Section */
.ads-view {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.partner-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.partner-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Steps Section */
.steps-section {
    background: var(--light);
    padding: 40px 20px;
    border-radius: 10px;
    margin: 50px 0;
}

.steps-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.step-card p {
    color: #666;
}
/* أنماط JavaScript */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* القائمة في الهواتف */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .navbar.active {
        left: 0;
    }
}

/* معاينة جواز السفر */
#passport-preview {
    margin: 15px 0;
    position: relative;
    max-width: 300px;
}

#passport-preview img {
    max-width: 100%;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

.remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f72585;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* تأثير الانتقال بين الصفحات */
body.page-transition::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4CAF50;
    z-index: 9999;
    opacity: 0;
    animation: pageTransition 0.5s ease-out;
}

@keyframes pageTransition {
    0% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1); }
}

/* رسائل الخطأ في النماذج */
input.error, select.error, textarea.error {
    border-color: #f72585 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
/* أنماط صفحة جميع العروض */
.offers-header {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.offers-header h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    border-radius: 0 4px 4px 0;
    padding: 0 1.5rem;
}

/* أنماط خاصة بالبطاقات في صفحة جميع العروض */
.offers-grid .offer-card {
    position: relative;
}

.offers-grid .offer-card .offer-price {
    font-size: 1.4rem;
    margin: 0.8rem 0;
}

.offers-grid .offer-card .offer-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* رسالة عدم وجود عروض */
.no-offers {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* تأثيرات خاصة للعروض المميزة */
.featured-offers .offer-card {
    border: 2px solid var(--primary);
    position: relative;
}

.featured-offers .offer-card::before {
    content: 'مميز';
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1;
}

/* أنماط للعروض السريعة */
.recent-offers .offer-card {
    border: 2px solid var(--secondary);
}

.recent-offers .offer-card::before {
    content: 'جديد';
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1;
}
/* أنماط الفقرة التعريفية */
.about-section {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.services-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-list i {
    color: var(--primary);
}

/* أنماط الخدمات الأخرى */
.other-services {
    grid-column: 1 / -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* أنماط شركاء جديدة */
.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logos img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* تعديلات الفوتر لإضافة رقم الهاتف */
.footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}
/* أنماط البطاقات المصغرة */
.small-cards-container {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.small-cards-container h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.small-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.small-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.small-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.apartment-card .card-badge {
    background: var(--primary);
}

.car-card .card-badge {
    background: var(--secondary);
}

.card-content {
    padding: 0.8rem;
}

.card-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.view-more:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .small-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-image {
        height: 100px;
    }
}
/* أنماط Navbar الأساسية */
.navbar {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* زر القائمة - مخفي افتراضياً */
.mobile-menu-toggle {
    display: none; /* مخفي في جميع الواجهات */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
    padding: 0.5rem;
}

/* القائمة العادية */
.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

/* تصميم الموبايل فقط */
@media (max-width: 768px) {
    /* إظهار زر القائمة فقط في الموبايل */
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    /* إخفاء القائمة العادية */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        padding: 5rem 1.5rem 1rem;
        box-shadow: -2px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* حالة القائمة المفتوحة */
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid #eee;
    }
    
    /* طبقة التعتيم الخلفية */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}