/* ==========================================
   قمم بلس العقارية - ملف التنسيقات الرئيسي
   ========================================== */

/* استيراد خط عربي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* متغيرات الألوان - بني رسمي */
:root {
    --primary-color: #4A3728;
    --secondary-color: #C4A77D;
    --dark-color: #2C1810;
    --light-color: #F5F0E8;
    --text-color: #2C2C2C;
    --text-light: #5A5A5A;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(44, 24, 16, 0.1);
    --shadow-hover: 0 8px 25px rgba(44, 24, 16, 0.15);
    --transition: all 0.3s ease;
}

/* إعادة تعيين التنسيقات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   الشريط العلوي
   ========================================== */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-contact i {
    color: var(--secondary-color);
}

.top-bar-social {
    display: flex;
    gap: 10px;
}

.top-bar-social a {
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* ==========================================
   الهيدر والتنقل
   ========================================== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 44px;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

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

.logo span {
    color: var(--secondary-color);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    padding: 10px 5px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================
   قسم البطل (Hero)
   ========================================== */
.hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(62, 39, 35, 0.95)),
                url('../images/hero1.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 154px;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

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

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   الأزرار
   ========================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
}

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

.btn-primary:hover {
    background: #C4956A;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ==========================================
   عناوين الأقسام
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==========================================
   قسم الخدمات
   ========================================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #333;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #C4A77D, #8B7355);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.service-card p {
    color: #ffffff;
    line-height: 1.8;
}

/* نصوص القوائم في بطاقات الخدمات */
.service-card ul li span {
    color: #ffffff;
}

.service-card ul li {
    color: #ffffff;
}

/* ==========================================
   قسم العروض العقارية
   ========================================== */
.properties {
    padding: 100px 0;
    background: #1a1a1a;
}

.properties .section-title h2 {
    color: #ffffff;
}

.properties .section-title p {
    color: #cccccc;
}

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

.property-card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid #333;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.property-badge.sale {
    background: var(--primary-color);
    color: var(--white);
}

.property-badge.rent {
    background: #27ae60;
    color: var(--white);
}

.property-content {
    padding: 25px;
}

.property-content h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.property-location {
    color: #cccccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cccccc;
    font-size: 0.95rem;
}

.property-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.property-buttons {
    display: flex;
    gap: 10px;
}

.property-buttons .btn {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.btn-visit {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-visit:hover {
    background: var(--dark-color);
    border-color: var(--dark-color);
}

.property-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C4A77D;
}

.property-price .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999999;
}

/* زر التفاصيل في بطاقات العقارات */
.property-price .btn-outline {
    background: transparent;
    color: #C4A77D;
    border: 2px solid #C4A77D;
    padding: 8px 20px;
    font-weight: 600;
}

.property-price .btn-outline:hover {
    background: #C4A77D;
    color: #1a1a1a;
}

/* ==========================================
   قسم من نحن
   ========================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    border-radius: 15px;
    top: 20px;
    right: 20px;
    z-index: -1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* ==========================================
   قسم الإحصائيات
   ========================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   نموذج طلب العقار
   ========================================== */
.request-form {
    padding: 100px 0;
    background: var(--light-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    min-width: 200px;
}

/* ==========================================
   قسم التواصل
   ========================================== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-item-text p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ==========================================
   الفوتر
   ========================================== */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-right: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

/* ==========================================
   صفحة العروض
   ========================================== */
.page-header {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(62, 39, 35, 0.95)),
                url('../images/hero1.png') center/cover no-repeat;
    padding: 190px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    opacity: 0.7;
}

/* فلتر العروض */
.filter-section {
    padding: 30px 0;
    background: var(--white);
    box-shadow: var(--shadow);
}

.filter-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-container select,
.filter-container input {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    min-width: 180px;
    direction: rtl;
}

.filter-container select:focus,
.filter-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ==========================================
   التصميم المتجاوب
   ========================================== */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 10px;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar-contact {
        display: none;
    }

    .top-bar-social {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar-social a {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    header {
        top: 38px;
    }

    .hero {
        min-height: auto;
        padding: 100px 15px 40px;
    }

    .hero-content {
        padding: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 140px 15px 50px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-card {
        margin: 0 5px;
    }

    .property-content {
        padding: 15px;
    }

    .property-content h3 {
        font-size: 1.1rem;
    }

    .property-features {
        gap: 10px;
        flex-wrap: wrap;
    }

    .property-features span {
        font-size: 0.85rem;
    }

    .property-price .price {
        font-size: 1.2rem;
    }

    .property-buttons .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 4px 5px;
    }

    .top-bar-social {
        gap: 4px;
    }

    .top-bar-social a {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    header {
        top: 32px;
    }

    .hero {
        padding: 90px 10px 30px;
    }

    .hero h2 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .services {
        padding: 50px 0;
    }

    .properties {
        padding: 50px 0;
    }

    .partners-section {
        padding: 40px 0;
    }

    .partner-logo {
        height: 50px !important;
        padding: 10px 15px !important;
    }

    .partner-logo img {
        height: 35px !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-header {
        padding: 120px 10px 40px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social a {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-top: 15px;
    }

    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .footer-about {
        text-align: center;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }

    .rega-badge {
        padding: 8px !important;
    }

    .rega-badge img {
        height: 40px !important;
    }

    .stats-section {
        padding: 40px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* ==========================================
   تأثيرات الحركة
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* تأثير التحميل */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* شركاء النجاح */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ==========================================
   تحسينات إضافية للجوال
   ========================================== */

/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    /* تحسين الهيدر */
    .nav-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 45px;
    }
    
    /* تحسين قائمة التنقل */
    nav ul {
        padding: 15px;
        gap: 5px;
    }
    
    nav ul li a {
        padding: 12px 15px;
        display: block;
        border-radius: 8px;
    }
    
    nav ul li a:hover {
        background: var(--light-color);
    }
    
    /* تحسين البطاقات */
    .service-card,
    .property-card {
        margin-bottom: 15px;
    }
    
    /* تحسين الأزرار */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* تحسين النصوص */
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    /* تحسين الفوتر */
    .footer-section {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    /* تحسين صفحة التواصل */
    .contact-info {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* تحسين النماذج */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* منع التكبير التلقائي على iOS */
    }
    
    /* تحسين الفلاتر */
    .filter-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-container select,
    .filter-container input {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    /* تحسينات إضافية للشاشات الصغيرة جداً */
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        padding: 0 10px;
    }
    
    .property-image img {
        height: 180px;
        object-fit: cover;
    }
    
    .property-content {
        padding: 12px;
    }
    
    .property-price {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .property-buttons {
        width: 100%;
    }
    
    .property-buttons .btn {
        flex: 1;
        text-align: center;
    }
    
    /* تحسين قسم الإحصائيات */
    .stats-grid {
        gap: 25px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    /* تحسين قسم المدن */
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .city-card {
        height: 120px;
    }
    
    .city-card h3 {
        font-size: 1rem;
    }
    
    /* تحسين شعارات الشركاء */
    .partners-carousel {
        padding: 10px 0;
    }
    
    .partner-slide {
        min-width: 100px;
        padding: 8px;
    }
    
    .partner-slide img {
        height: 30px;
    }
}

/* تحسين التمرير والتفاعل على الجوال */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }
    
    .property-card:active {
        transform: scale(0.99);
    }
    
    .service-card:active {
        background: var(--light-color);
    }
}

/* إصلاح مشكلة الـ viewport على iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* تحسين أداء التمرير */
.properties-grid,
.services-grid,
.partners-carousel {
    -webkit-overflow-scrolling: touch;
}

/* إخفاء شريط التمرير مع الحفاظ على وظيفته */
.partners-track::-webkit-scrollbar {
    display: none;
}

.partners-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
