/* ✅ النمط العام */
body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background-color: #0B0E1C;
}

/* ✅ الهيدر */
.header {
    background-color: #1A2B6D;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo,
.main-nav a {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .logo:hover,
    .main-nav a:hover {
        transform: scale(1.1);
        color: #fffacd;
    }

/* ✅ الحاوية الرئيسية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* ✅ قائمة التنقل */
.main-nav {
    display: flex;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        gap: 30px;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        text-decoration: none;
        font-weight: 500;
    }

/* ✅ زر تغيير اللغة */
.lang-toggle button {
    background-color: #FFD700;
    color: #1A2B6D;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .lang-toggle button:hover {
        transform: scale(1.1);
        background-color: #ffea80;
    }

/* ✅ زر الهمبرغر */
.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: #FFD700;
    cursor: pointer;
}

/* ✅ قسم الهيرو */
.hero-section {
    height: 100vh;
    background-image: url('hero-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

    .hero-section::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 300px;
        background: linear-gradient(to bottom, rgba(11, 14, 28, 0) 0%, #0B0E1C 100%);
        z-index: 2;
    }

/* ✅ العقارات المميزة */
.featured-properties {
    margin-top: -60px;
    padding: 20px 20px;
    background-color: #0B0E1C;
}

#featured-title {
    font-size: 2em;
    color: #fff;
    margin-bottom: 30px;
    text-align: start;
    padding-inline: 20px;
}

/* ✅ بطاقات العقارات */
.property-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.property-card {
    background-color: #1A2B6D;
    border-radius: 12px;
    overflow: hidden;
    width: 340px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding-bottom: 0;
}

    .property-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    .property-card h3 {
        margin: 15px 0;
        color: #FFD700;
    }

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

/* ✅ زر واتساب */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 15px 10px;
    text-decoration: none;
    margin-top: 0;
    transition: background-color 0.3s ease;
    height: 60px;
    font-size: 16px;
    font-weight: bold;
}

    .whatsapp-button:hover {
        background-color: #1ebe5d;
    }

/* ✅ دوائر الخدمات */
.circle-services {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.circle-button {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: #132043;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
    font-size: 1.1em;
}

    .circle-button img {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
        object-fit: contain;
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
    }

    .circle-button:hover {
        background-color: #1e305a;
        transform: scale(1.05);
    }

/* ✅ قسم التقييمات */
.reviews-section {
    background-color: #0B0E1C;
    padding: 40px 20px;
    text-align: center;
}

    .reviews-section h2 {
        color: #fff;
        font-size: 2em;
        margin-bottom: 20px;
    }

.reviews-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.review-card {
    background-color: #1A2B6D;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

    .review-card .review-text {
        color: #FFD700;
        margin-bottom: 10px;
        font-size: 1em;
    }

    .review-card .review-author {
        font-style: italic;
        font-size: 0.9em;
        color: #fff;
    }

/* ✅ صفحة إدخال العقارات (submit-property) */
.page-header h1,
.page-header p {
    color: white;
}

.form-section {
    max-width: 900px;
    margin: 40px auto;
    background-color: #1A2B6D;
    padding: 25px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

    .form-section form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form-section label {
        font-weight: bold;
        color: #FFD700;
        margin-bottom: 5px;
    }

    .form-section input,
    .form-section select,
    .form-section textarea {
        padding: 10px;
        border: none;
        border-radius: 6px;
        background-color: #f5f5f5;
        font-size: 16px;
    }

        .form-section input:focus,
        .form-section select:focus,
        .form-section textarea:focus {
            outline: 2px solid #FFD700;
        }

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: white;
}

#submit-btn {
    background-color: #FFD700;
    color: #1A2B6D;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #submit-btn:hover {
        background-color: #ffea80;
    }

/* ✅ استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

        .main-nav.active {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            background-color: #1A2B6D;
            padding: 10px;
            gap: 15px;
        }

        .main-nav ul {
            flex-direction: column;
            gap: 10px;
        }

    .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .lang-toggle {
        align-self: flex-end;
    }

    .property-cards {
        flex-direction: column;
        align-items: center;
    }

    .property-card {
        width: 90%;
    }

    .hero-section {
        height: 70vh;
        background-size: cover;
        background-position: center;
    }

    /* ✅ تصليح عنوان الهيرو على الموبايل فقط (بدون تأثير على الديسكتوب) */
    .hero-section h1 {
        font-size: clamp(26px, 9vw, 36px);
        line-height: 1.15;
        margin: 0 auto;
        text-align: center;
        padding-inline: 16px;
        max-width: 90vw;
        position: relative;
        left: auto;
        transform: none;
        overflow-wrap: anywhere;
    }

    #featured-title {
        text-align: center;
        padding-inline: 0;
    }

    .whatsapp-button {
        height: auto;
        padding: 15px;
        font-size: 14px;
    }

    .circle-button {
        width: 160px;
        height: 160px;
        font-size: 0.9em;
    }

        .circle-button img {
            width: 60px;
            height: 60px;
        }

    .reviews-container {
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        width: 90%;
    }
}

/* ✅ CSS للصفحات الجديدة - About & Contact */

/* صفحة من نحن */
.page-header {
    background: linear-gradient(135deg, #1A2B6D 0%, #132043 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.about-content {
    padding: 60px 20px;
    background-color: #0B0E1C;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-text p {
    font-size: 1.3em;
    line-height: 1.8;
    color: #fff;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: #1A2B6D;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-card p {
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

/* صفحة التواصل */
.contact-content {
    padding: 60px 20px;
    background-color: #0B0E1C;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form-section h2 {
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1A2B6D;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2em;
    min-width: 60px;
    text-align: center;
}

.contact-details h3 {
    color: #FFD700;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #FFD700;
}

.contact-text {
    color: #fff;
    font-size: 1.1em;
}

.location-info {
    background-color: #1A2B6D;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.location-info h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.location-info p {
    color: #fff;
    margin-bottom: 20px;
}

.location-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.amman-symbol {
    font-size: 4em;
}

.location-visual p {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0;
}

/* نموذج التواصل */
.contact-form {
    background-color: #1A2B6D;
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 16px;
    transition: outline 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #FFD700;
    background-color: #fff;
}

.submit-button {
    width: 100%;
    background-color: #FFD700;
    color: #1A2B6D;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: #ffea80;
    transform: translateY(-2px);
}

.success-message {
    background-color: #25D366;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.success-message p {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

/* فوتر */
.footer {
    background-color: #1A2B6D;
    padding: 12px 0;
    color: white;
}

/* لم تعد هناك أقسام متعددة في الفوتر */
.footer-content { display: none; }

.footer-section h3,
.footer-section h4 {
    color: #FFD700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid #132043;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

/* أنيميشن التأخير */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* استجابة للشاشات الصغيرة - الصفحات الجديدة */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .page-header p {
        font-size: 1.1em;
    }
    
    .about-text p {
        font-size: 1.1em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-method:hover {
        transform: translateY(-5px);
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* أنماط رسائل الأخطاء */
.field-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* أنيميشن خفيفة */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.in-view {
    opacity: 1;
    transform: none;
}

/* زر واتساب في النماذج */
.whatsapp-submit-btn:hover {
    background-color: #1ebe5d !important;
}

/* Grid for properties page */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* إخفاء حقول الغرف والحمامات للأرض */
input[name="rooms"], input[name="bathrooms"] {
    transition: all 0.3s ease;
}

input[name="rooms"]:disabled, input[name="bathrooms"]:disabled {
    opacity: 0.5;
    background-color: #f0f0f0;
}

/* روابط التواصل الاجتماعية */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1A2B6D;
    color: #FFD700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
}
.social-link svg { display:block; }

.social-link:hover {
    background-color: #FFD700;
    color: #1A2B6D;
    transform: scale(1.1);
}

.whatsapp-link:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.instagram-link:hover {
    background-color: #E4405F;
    color: white;
    border-color: #E4405F;
}

/* روابط التواصل في الفوتر */
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #132043;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social-link:hover {
    background-color: #FFD700;
    color: #1A2B6D;
    transform: translateX(5px);
}

.footer-social-link.whatsapp-link:hover {
    background-color: #25D366;
    color: white;
}

.footer-social-link.instagram-link:hover {
    background-color: #E4405F;
    color: white;
}
