/* اللوجو الجديد + تحسينات الموبايل - Dreams Real Estate */
.logo-img { height: 64px; width: auto; display: block; }
.logo-container { gap: 0; }
header .nav-container { padding: 8px 20px; gap: 12px; }
.hero, .page-header { margin-top: 80px; }
.fp-logo-img { height: 100px; width: auto; display: block; background: #ffffff; border-radius: 12px; padding: 8px 14px; }

/* ===== عام: منع الخروج عن الشاشة ===== */
img { max-width: 100%; }
.properties-grid { grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr)); }
.hero { height: auto; min-height: 90vh; padding-top: 40px; padding-bottom: 40px; }
.page-header { height: auto; min-height: 40vh; padding-top: 30px; padding-bottom: 30px; }

/* ===== زر القائمة (مخفي على الكمبيوتر) ===== */
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex-shrink: 0; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== تابلت وموبايل ===== */
@media (max-width: 768px) {
    .logo-img { height: 52px; }
    .hero, .page-header { margin-top: 68px; }
    header .nav-container { padding: 8px 14px; gap: 8px; }
    .menu-toggle { display: flex; }
    header .cta-btn { padding: 8px 12px; font-size: 13px; margin-inline-start: auto; }

    .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 6px 20px 14px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #e2e8f0; }
    .nav-links.open li a { display: block; padding: 13px 0; border-bottom: 1px solid #f1f5f9; font-size: 16px; }
    .nav-links.open li:last-child a { border-bottom: none; }

    .hero h1 { font-size: 30px; margin-bottom: 14px; }
    .hero p { font-size: 16px; margin-bottom: 22px; }
    .page-header h1 { font-size: 28px; }
    .section-title h2 { font-size: 24px; }

    .search-box { padding: 16px; gap: 12px; }
    .search-box .submit-btn, .search-box .search-btn { margin-top: 0 !important; padding: 12px !important; width: 100%; }
    .search-field input, .search-field select, .form-group input, .form-group textarea { font-size: 16px; }

    .about-content, .contact-container { margin: 30px 14px; padding: 22px 18px; }
    .properties-section { margin: 40px auto; padding: 0 14px; }
    footer { margin-top: 50px; }
    .fp-logo-img { height: 84px; }

    .floating-contact { right: 14px; bottom: 16px; gap: 10px; }
    .float-btn { width: 46px; height: 46px; font-size: 21px; }

    /* نافذة تفاصيل المشروع */
    #pm { padding: 10px !important; }
    .pm-box { margin: 16px auto !important; }
    #pm-gallery img { height: 240px !important; }
    #pm-map { height: 240px !important; }
    .pm-body { padding: 16px !important; }
    #pm-link { display: block !important; text-align: center; }

    /* لوحة التحكم */
    .box { margin: 20px 12px !important; padding: 16px !important; }
    .tabs { flex-wrap: wrap; }
    .tabs a { padding: 9px 16px !important; }
    .box table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .logo-img { height: 44px; }
    .hero, .page-header { margin-top: 60px; }
    .hero h1 { font-size: 25px; }
    .property-features { flex-wrap: wrap; gap: 8px 14px; justify-content: flex-start; }
    .property-img { height: 200px; }
    header .cta-btn { padding: 7px 10px; font-size: 12px; }
}