/* =========================
   responsive.css كامل ومحدث
   الهاتف + التابلت
========================= */

/* ==============================
   إعدادات عامة للتابلت (768px - 1024px)
=============================== */
@media screen and (max-width: 1024px) {
  body { font-size: 15px; line-height: 1.6; }
  h1, h2, h3 { font-size: 90%; }

  .container { padding: 0 10px; }

  nav ul { gap: 10px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  img { max-width: 100%; height: auto; }

  html, body { overflow-x: hidden !important; width: 100% !important; }

  button,
  .btn,
  input[type="submit"],
  .elementor-button {
    display: block !important;
    width: 180px !important;
    max-width: 90% !important;
    min-width: 160px !important;
    margin: 10px auto !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
  }

  /* فورمات الاتصال */
  .contact-form,
  .contact-form .form-control,
  .contact-form textarea.form-control,
  .contact-form select {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }

  .contact-form .submit-btn {
    width: 180px !important;
    max-width: 90% !important;
    display: block !important;
    margin: 15px auto !important;
  }
}

/* ==============================
   إعدادات الهاتف (أقل من 768px)
=============================== */
@media screen and (max-width: 767px) {
  body { font-size: 14px; line-height: 1.5; }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }

  .container { padding: 0 8px; }
  nav ul { flex-direction: column; gap: 8px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  img { max-width: 100%; height: auto; }

  /* الأزرار */
  button,
  .btn,
  input[type="submit"],
  .elementor-button {
    display: block !important;
    width: 160px !important;
    max-width: 85% !important;
    min-width: 140px !important;
    margin: 12px auto !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
  }

  /* فورمات الاتصال */
  .contact-form,
  .contact-form .form-control,
  .contact-form textarea.form-control,
  .contact-form select {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
    font-size: 15px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
  }

  .contact-form .submit-btn {
    width: 160px !important;
    max-width: 85% !important;
    display: block !important;
    margin: 15px auto !important;
  }
}

/* اصلاح أزرار الصفحة الرئيسية على الهاتف والتابلت */
@media screen and (max-width: 1024px) {
  .home .cta-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
  }

  .home .cta-buttons .cta-button {
    flex: 1 !important;
    min-width: 140px !important;
    max-width: 200px !important;
    text-align: center !important;
  }
}


/* ==========================
   تكبير خط الكتابة داخل الكروت (موبايل + تابلت)
========================== */
@media (max-width: 1024px) {
  .property-card,
  .service-card,
  .card,
  .property-item,
  .elementor-widget-container {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
  }

  .property-card h2, .property-card h3,
  .service-card h2, .service-card h3,
  .card h2, .card h3,
  .property-item h2, .property-item h3 {
    font-size: 1.2rem !important;
  }

  .property-card p,
  .service-card p,
  .card p,
  .property-item p {
    font-size: 1rem !important;
  }
}

/* ==========================
   إصلاح زر البحث بالقوة
========================== */
.services-search-form .search-box button {
  all: unset !important;
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #002c4b !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.services-search-form .search-box button i {
  font-size: 16px !important;
  color: #fff !important;
  line-height: 1 !important;
}

/* ==========================
   الهيدر متجاوب + ثابت
========================== */
@media (max-width: 1024px) {
  .nospercent-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
  }

  body { padding-top: 80px !important; }
}

@media (max-width: 768px) {
  .nospercent-header {
    min-height: 90px !important;
    padding: 1rem !important;
    background-size: cover !important;
    background-position: center !important;
  }
}

@media (max-width: 480px) {
  .nospercent-header {
    min-height: 80px !important;
    padding: 0.8rem !important;
  }
}

/* ==========================
   شورتكود تسجيل الدخول
========================== */
@media (max-width: 1024px) {
  .nospercent-form-wrapper,
  .nospercent-login-container,
  .nospercent-login-left,
  .nospercent-login-right,
  .nospercent-login-box {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .nospercent-form-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
  }

  .nospercent-form-wrapper img,
  .nospercent-form-wrapper button,
  .nospercent-form-wrapper input,
  .nospercent-form-wrapper select {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .nospercent-form-wrapper { margin: 15px auto !important; border-radius: 8px !important; }
}

/* ==========================
   صفحة اتصل بنا (هاتف + تابلت)
========================== */
@media(max-width:768px){
  .page-header h1 { font-size: 2rem !important; }

  /* ترتيب الايقونات */
  .contact-method {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
  }

  .contact-icon {
    margin-left: 15px !important;
    margin-bottom: 0 !important;
    align-self: center !important;
  }

  .social-links { justify-content:center !important; gap:10px !important; }

  .contact-form, .contact-form .form-control,
  .contact-form textarea.form-control, .contact-form select,
  .contact-form .submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
  }

  .contact-form .submit-btn {
    width: auto !important;
    min-width: 140px !important;
    max-width: 90% !important;
    display: block !important;
    margin: 12px auto !important;
  }
}

/* ==========================
   تنسيق أزرار سياسة الخصوصية
========================== */

/* الديسكتوب: أزرار بجانب بعض */
@media screen and (min-width: 1025px) {
    .nospercent-about-platform .cta-buttons {
        flex-wrap: nowrap !important;
    }
    
    .nospercent-about-platform .cta-button {
        min-width: 180px !important;
        flex: 1 !important;
    }
}

/* التابلت: أزرار بجانب بعض */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nospercent-about-platform .cta-buttons {
        flex-wrap: nowrap !important;
        max-width: 380px !important;
    }
    
    .nospercent-about-platform .cta-button {
        min-width: 170px !important;
        font-size: 0.85rem !important;
        padding: 11px 18px !important;
    }
}

/* الهاتف: أزرار فوق بعض */
@media screen and (max-width: 768px) {
    .nospercent-about-platform .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        max-width: 300px !important;
    }
    
    .nospercent-about-platform .cta-button {
        min-width: 260px !important;
        max-width: 280px !important;
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
        min-height: 50px !important;
    }
}

/* الهواتف الصغيرة جداً */
@media screen and (max-width: 480px) {
    .nospercent-about-platform .cta-button {
        min-width: 240px !important;
        max-width: 260px !important;
        font-size: 0.85rem !important;
        padding: 11px 18px !important;
        min-height: 48px !important;
    }
    
    .nospercent-about-platform .cta-buttons {
        max-width: 280px !important;
        gap: 10px !important;
    }
}

/* ==========================
   تنسيق أزرار صفحة "عن المنصة"
========================== */

/* الديسكتوب: أزرار بجانب بعض (3 أزرار) */
@media screen and (min-width: 1025px) {
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) {
        flex-wrap: nowrap !important;
        gap: 15px !important;
    }
    
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) .cta-button {
        min-width: 170px !important;
        flex: 1 !important;
    }
}

/* التابلت: أزرار بجانب بعض (2-3 أزرار حسب المساحة) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) {
        flex-wrap: wrap !important;
        gap: 12px !important;
        max-width: 500px !important;
    }
    
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) .cta-button {
        min-width: 160px !important;
        flex: 1 !important;
        font-size: 0.85rem !important;
        padding: 11px 16px !important;
    }
}

/* الهاتف: أزرار فوق بعض */
@media screen and (max-width: 768px) {
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        max-width: 300px !important;
    }
    
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) .cta-button {
        min-width: 260px !important;
        max-width: 280px !important;
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
        min-height: 50px !important;
    }
}

/* الهواتف الصغيرة جداً */
@media screen and (max-width: 480px) {
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) .cta-button {
        min-width: 240px !important;
        max-width: 260px !important;
        font-size: 0.85rem !important;
        padding: 11px 18px !important;
        min-height: 48px !important;
    }
    
    .cta-buttons:not(.nospercent-about-platform .cta-buttons) {
        max-width: 280px !important;
        gap: 10px !important;
    }
}

