/* ========================================
   تحسين كروت المنتجات للجوال
   ======================================== */

@media (max-width: 768px) {
    /* تغيير شبكة المنتجات لعمود واحد مع مساحة أقل */
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        padding: 0 !important;
    }
    
    /* كرت المنتج المصغر */
    .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.6rem !important;
        padding: 0.6rem !important;
        border-radius: 14px !important;
        background: white !important;
        margin: 0 0.5rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        cursor: pointer !important;
        transition: 0.2s !important;
    }
    
    .product-card:active {
        transform: scale(0.98) !important;
    }
    
    /* صورة المنتج المصغرة */
    .product-img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 12px !important;
        background-size: cover !important;
        background-position: center !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }
    
    /* إخفاء البادج في الصورة المصغرة */
    .product-badge {
        display: none !important;
    }
    
    /* زر المفضلة المصغر */
    .favorite-btn-card {
        width: 28px !important;
        height: 28px !important;
        top: 5px !important;
        left: 5px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.8rem !important;
    }
    
    /* معلومات المنتج */
    .product-info {
        flex: 1 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.2rem !important;
    }
    
    .product-name {
        font-size: 0.85rem !important;
        font-weight: bold !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .product-price {
        font-size: 0.9rem !important;
        margin: 0 !important;
        color: #7c3aed !important;
    }
    
    .product-rating {
        font-size: 0.65rem !important;
        margin: 0 !important;
    }
    
    /* زر إضافة للسلة المصغر */
    .btn-cart {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.65rem !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        background: #8b5cf6 !important;
        border-radius: 25px !important;
        margin-top: 0.2rem !important;
    }
    
    .btn-cart i {
        font-size: 0.6rem !important;
    }
    
    /* إخفاء بعض العناصر لتوفير المساحة */
    .product-rating span:first-child {
        display: inline !important;
    }
}

/* ========================================
   تحسين فلتر الفئات للجوال
   ======================================== */

@media (max-width: 768px) {
    .filters-section {
        padding: 0.6rem !important;
        margin: 0 0.5rem 0.8rem 0.5rem !important;
        border-radius: 16px !important;
    }
    
    .category-filter {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 0.4rem !important;
        padding-bottom: 0.3rem !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .category-filter::-webkit-scrollbar {
        height: 2px !important;
    }
    
    .category-filter::-webkit-scrollbar-track {
        background: #e2e8f0 !important;
        border-radius: 10px !important;
    }
    
    .category-filter::-webkit-scrollbar-thumb {
        background: #8b5cf6 !important;
        border-radius: 10px !important;
    }
    
    .category-btn {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.8rem !important;
        white-space: nowrap !important;
    }
}

/* ========================================
   تحسين ترقيم الصفحات للجوال
   ======================================== */

@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem !important;
        margin-top: 1.5rem !important;
    }
    
    .pagination a, 
    .pagination span {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        min-width: 32px !important;
    }
}

/* ========================================
   تحسين رأس المتجر للجوال
   ======================================== */

@media (max-width: 768px) {
    .hero {
        padding: 0.8rem 1rem !important;
        margin: 0 0.5rem 0.8rem 0.5rem !important;
        border-radius: 20px !important;
    }
    
    .hero h1 {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .hero p {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .shop-details {
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    .shop-details span {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.6rem !important;
    }
    
    .section-title {
        font-size: 1rem !important;
        margin: 0.5rem 0 !important;
        padding-right: 0.8rem !important;
    }
}

/* ========================================
   كروت المنتجات المميزة للجوال (نفس التصميم)
   ======================================== */

@media (max-width: 768px) {
    /* المنتجات المميزة لها نفس التصميم الأفقي */
    .products-grid .product-card:first-child {
        margin-top: 0 !important;
    }
}

/* ========================================
   تصميم بديل: كروت شبكية 2x2 للجوال (اختياري)
   ======================================== */

@media (max-width: 480px) {
    /* للشاشات الصغيرة جداً يمكن استخدام شبكة 2x2 */
    .products-grid-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    .products-grid-grid .product-card {
        flex-direction: column !important;
        padding: 0.5rem !important;
        margin: 0 !important;
    }
    
    .products-grid-grid .product-img {
        width: 100% !important;
        height: 120px !important;
    }
    
    .products-grid-grid .product-info {
        width: 100% !important;
    }
    
    .products-grid-grid .product-name {
        white-space: normal !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .products-grid-grid .btn-cart {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ========================================
   كرتين في الصف الواحد للجوال
   ======================================== */

@media (max-width: 768px) {
    /* جعل شبكة المنتجات 2x2 */
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
        padding: 0 0.3rem !important;
    }
    
    /* تصميم الكرت المصغر */
    .product-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: white !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* صورة المنتج المصغرة */
    .product-img {
        width: 100% !important;
        height: 130px !important;
        background-size: cover !important;
        background-position: center !important;
        position: relative !important;
    }
    
    /* إخفاء البادج في الصورة المصغرة لتوفير المساحة */
    .product-badge {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.4rem !important;
        top: 5px !important;
        right: 5px !important;
    }
    
    /* زر المفضلة المصغر */
    .favorite-btn-card {
        width: 26px !important;
        height: 26px !important;
        top: 5px !important;
        left: 5px !important;
        font-size: 0.7rem !important;
    }
    
    /* معلومات المنتج */
    .product-info {
        padding: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.2rem !important;
    }
    
    .product-name {
        font-size: 0.7rem !important;
        font-weight: bold !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .product-price {
        font-size: 0.75rem !important;
        margin: 0 !important;
        color: #7c3aed !important;
    }
    
    .product-rating {
        font-size: 0.55rem !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.2rem !important;
    }
    
    /* زر إضافة للسلة المصغر */
    .btn-cart {
        padding: 0.3rem 0.3rem !important;
        font-size: 0.55rem !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.2rem !important;
        border-radius: 20px !important;
        margin-top: 0.3rem !important;
    }
    
    .btn-cart i {
        font-size: 0.5rem !important;
    }
    
    /* تعديل عنوان القسم */
    .section-title {
        font-size: 1rem !important;
        margin: 0.5rem 0.3rem !important;
        padding-right: 0.6rem !important;
    }
    
    /* تعديل الفلتر */
    .filters-section {
        padding: 0.5rem !important;
        margin: 0 0.3rem 0.8rem 0.3rem !important;
    }
    
    .category-btn {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
    }
}

/* ========================================
   للشاشات الصغيرة جداً (أقل من 400px)
   ======================================== */

@media (max-width: 400px) {
    .products-grid {
        gap: 0.4rem !important;
    }
    
    .product-img {
        height: 110px !important;
    }
    
    .product-name {
        font-size: 0.65rem !important;
    }
    
    .product-price {
        font-size: 0.7rem !important;
    }
    
    .btn-cart {
        font-size: 0.5rem !important;
        padding: 0.25rem 0.2rem !important;
    }
    
    .btn-cart i {
        display: none !important;
    }
}







/* قسم الفلاتر - سكرول أفقي */
.filters-section {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* سكرول سلس في iOS */
    margin-bottom: 20px;
    padding: 10px 0;
}

/* إخفاء شريط السكرول في بعض المتصفحات */
.filters-section::-webkit-scrollbar {
    height: 3px;
}

.filters-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filters-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.category-filter {
    display: inline-flex;
    gap: 12px;
    padding: 0 15px;
    white-space: nowrap;
}

/* تصميم الأزرار */
.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* الأيقونات داخل الأزرار */
.category-btn i {
    font-size: 16px;
}

/* زر الفعال (active) */
.category-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* تأثير الضغط */
.category-btn:active {
    transform: scale(0.96);
}

/* للجوالات الصغيرة جداً */
@media (max-width: 480px) {
    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .category-filter {
        gap: 8px;
    }
}








/* ========================================
   ضغط معلومات الاتصال للجوال
   ======================================== */

/* قسم معلومات الاتصال - للجوال */
@media (max-width: 768px) {
    
    /* الحاوية الرئيسية */
    .property-contact-section {
        padding: 0.8rem !important;
        margin: 0.8rem 0 !important;
        border-radius: 15px !important;
    }
    
    /* عنوان القسم */
    .property-contact-section h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .property-contact-section h3 i {
        font-size: 0.9rem;
    }
    
    /* بطاقة الاتصال */
    .contact-card {
        padding: 0.5rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* عنصر الاتصال الواحد */
    .contact-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.3rem !important;
        padding: 0.4rem 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    /* الأيقونة */
    .contact-item i {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }
    
    /* النص (رقم الهاتف، واتساب، إيميل) */
    .contact-item span {
        font-size: 0.7rem !important;
        min-width: 70px !important;
        flex-shrink: 0 !important;
    }
    
    /* الرقم نفسه */
    .contact-item strong {
        font-size: 0.75rem !important;
        word-break: break-all !important;
        flex: 1 !important;
        text-align: left !important;
        direction: ltr !important;
        font-family: monospace !important;
    }
    
    /* أزرار الاتصال */
    .contact-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* تنسيق الأزرار */
    .whatsapp-btn, 
    .call-btn, 
    .email-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 40px !important;
        gap: 0.3rem !important;
    }
    
    .whatsapp-btn i,
    .call-btn i,
    .email-btn i {
        font-size: 0.9rem !important;
    }
    
    /* صف الأزرار (إذا أردت عرضها بشكل أفقي في الشاشات المتوسطة) */
    @media (min-width: 481px) and (max-width: 768px) {
        .contact-buttons {
            flex-direction: row !important;
            flex-wrap: wrap !important;
        }
        
        .whatsapp-btn, 
        .call-btn, 
        .email-btn {
            flex: 1 !important;
            min-width: calc(33% - 0.5rem) !important;
        }
    }
}

/* ========================================
   تصميم بسيط جداً للشاشات الصغيرة جداً (أقل من 400px)
   ======================================== */
@media (max-width: 400px) {
    .contact-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.2rem !important;
    }
    
    .contact-item i {
        margin: 0 auto !important;
    }
    
    .contact-item span {
        min-width: auto !important;
    }
    
    .contact-item strong {
        text-align: center !important;
        font-size: 0.7rem !important;
    }
    
    .whatsapp-btn, 
    .call-btn, 
    .email-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
}

/* ========================================
   إخفاء/إظهار معلومات الاتصال (اختياري - قابلة للطي)
   ======================================== */
.contact-toggle {
    display: none;
}

@media (max-width: 768px) {
    .contact-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.8rem;
        background: #f1f5f9;
        border-radius: 40px;
        cursor: pointer;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: #1e293b;
    }
    
    .contact-toggle i {
        transition: transform 0.3s;
    }
    
    .contact-toggle.active i {
        transform: rotate(180deg);
    }
    
    .contact-collapsible {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .contact-collapsible.active {
        max-height: 300px;
    }
}

/* ========================================
   تنسيقات إضافية لتحسين المظهر
   ======================================== */

/* خلفية خفيفة للأزرار عند الضغط */
@media (max-width: 768px) {
    .whatsapp-btn:active,
    .call-btn:active,
    .email-btn:active {
        transform: scale(0.97);
        opacity: 0.8;
    }
    
    /* إضافة حدود خفيفة للأيقونات */
    .contact-item i {
        background: #e2e8f0;
        transition: 0.2s;
    }
    
    .contact-item i:active {
        transform: scale(0.95);
    }
    
    /* تحسين عرض الرقم الطويل */
    .contact-item strong {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* شريط تمرير للرقم الطويل جداً */
    .contact-item strong::-webkit-scrollbar {
        height: 2px;
    }
}
















/* ========================================
   تصميم كروت الجوال - نسخة مصغرة وعصرية
   ======================================== */

/* تحسين عام للكروت في الجوال */
@media (max-width: 768px) {
    .cards-container {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 0.8rem;
        margin: 0.5rem auto;
    }
    
    /* تصميم الكرت المصغر */
    .service-card {
        border-radius: 20px;
        transition: all 0.3s ease;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    /* رأس الكرت المصغر */
    .card-header {
        padding: 0.8rem 1rem !important;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        text-align: right !important;
    }
    
    .card-header i {
        font-size: 1.8rem !important;
        margin-bottom: 0 !important;
    }
    
    .card-header h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .card-header p {
        font-size: 0.7rem !important;
        opacity: 0.8;
    }
    
    .card-header .header-text {
        flex: 1;
    }
    
    /* جسم الكرت المصغر */
    .card-body {
        padding: 0.6rem 1rem 0.8rem !important;
        background: white;
    }
    
    /* الإحصائيات المصغرة */
    .stats {
        display: flex;
        justify-content: space-around;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .stat {
        text-align: center;
        flex: 1;
        background: #f8fafc;
        padding: 0.4rem;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 1rem !important;
        font-weight: bold;
        color: #1e3c72;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
        color: #64748b;
    }
    
    /* قائمة المميزات المصغرة */
    .feature-list {
        display: none; /* إخفاء القائمة في الجوال لتوفير المساحة */
    }
    
    /* عرض مميزات مختصرة بدلاً من القائمة */
    .feature-brief {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-brief span {
        background: #f1f5f9;
        padding: 0.2rem 0.6rem;
        border-radius: 15px;
        font-size: 0.6rem;
        color: #334155;
    }
    
    /* الزر المصغر */
    .btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
        border-radius: 40px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .btn i {
        font-size: 0.7rem;
    }
}

/* ========================================
   تصميم بديل: كروت أفقية (Horizontal Cards)
   مناسب جداً للجوال
   ======================================== */
@media (max-width: 768px) {
    .horizontal-cards .service-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 110px;
    }
    
    .horizontal-cards .card-header {
        width: 35%;
        padding: 0.8rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .horizontal-cards .card-header i {
        font-size: 1.5rem !important;
    }
    
    .horizontal-cards .card-header h2 {
        font-size: 0.9rem !important;
    }
    
    .horizontal-cards .card-header p {
        font-size: 0.6rem !important;
        display: none;
    }
    
    .horizontal-cards .card-body {
        width: 65%;
        padding: 0.6rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .horizontal-cards .stats {
        margin-bottom: 0.4rem;
        gap: 0.3rem;
    }
    
    .horizontal-cards .stat {
        padding: 0.2rem;
    }
    
    .horizontal-cards .stat-number {
        font-size: 0.8rem !important;
    }
    
    .horizontal-cards .btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.65rem !important;
    }
}

/* ========================================
   كروت سوائية (Swipeable Cards) - أنيقة جداً
   ======================================== */
@media (max-width: 768px) {
    .swipe-cards .service-card {
        position: relative;
        overflow: hidden;
    }
    
    .swipe-cards .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-100%);
        transition: 0.3s;
        z-index: 1;
        pointer-events: none;
    }
    
    .swipe-cards .service-card:active::before {
        transform: translateX(0);
    }
    
    .swipe-cards .card-header {
        padding: 0.6rem 1rem !important;
    }
    
    .swipe-cards .card-body {
        padding: 0.5rem 1rem 0.7rem !important;
    }
    
    .swipe-cards .stats {
        display: flex;
        gap: 0.5rem;
    }
    
    .swipe-cards .stat {
        background: transparent;
        padding: 0.2rem;
    }
    
    /* إضافة شريط تقدم للكرت */
    .swipe-cards .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 3px;
        background: linear-gradient(90deg, #f59e0b, #f97316);
        transition: 0.3s;
    }
    
    .swipe-cards .service-card:hover::after,
    .swipe-cards .service-card:active::after {
        width: 100%;
    }
}

/* ========================================
   تصميم كروت المواد (Material Design)
   ======================================== */
@media (max-width: 768px) {
    .material-cards .service-card {
        position: relative;
        border-radius: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .material-cards .service-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .material-cards .card-header {
        padding: 0.8rem 1rem !important;
        position: relative;
    }
    
    /* إضافة رقاقة (Chip) مميزة */
    .material-cards .service-card .chip {
        position: absolute;
        top: 8px;
        left: 8px;
        background: rgba(0, 0, 0, 0.3);
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        font-size: 0.55rem;
        color: white;
        backdrop-filter: blur(4px);
    }
    
    .material-cards .stats {
        gap: 0.3rem;
    }
    
    .material-cards .stat {
        background: #f1f5f9;
        border-radius: 10px;
    }
    
    .material-cards .btn {
        background: transparent !important;
        border: 1px solid currentColor;
        color: inherit;
    }
    
    .material-cards .btn-realestate,
    .material-cards .btn-cars,
    .material-cards .btn-doctors,
    .material-cards .btn-shop,
    .material-cards .btn-restaurants {
        background: transparent !important;
    }
    
    .material-cards .btn-realestate {
        border-color: #1e3c72;
        color: #1e3c72;
    }
    
    .material-cards .btn-cars {
        border-color: #10b981;
        color: #10b981;
    }
    
    .material-cards .btn-doctors {
        border-color: #0f766e;
        color: #0f766e;
    }
    
    .material-cards .btn-shop {
        border-color: #8b5cf6;
        color: #8b5cf6;
    }
    
    .material-cards .btn-restaurants {
        border-color: #f59e0b;
        color: #f59e0b;
    }
}

/* ========================================
   الكروت النهائية (المطبقة بشكل افتراضي)
   ======================================== */
@media (max-width: 768px) {
    /* نسخة مصغرة ونظيفة */
    .cards-container {
        gap: 0.7rem;
    }
    
    .service-card {
        border-radius: 18px;
        overflow: hidden;
    }
    
    /* رأس الكرت - تصميم أفقي مصغر */
    .card-header {
        padding: 0.7rem 1rem !important;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    
    .card-header i {
        font-size: 1.6rem !important;
        width: 40px;
        text-align: center;
    }
    
    .card-header h2 {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .card-header p {
        font-size: 0.65rem !important;
        margin: 0 !important;
    }
    
    /* الجسم - إحصائيات فقط */
    .card-body {
        padding: 0.5rem 1rem 0.8rem !important;
    }
    
    /* إخفاء القائمة الطويلة */
    .feature-list {
        display: none;
    }
    
    /* عرض مميزات مختصرة كـ "شيبس" */
    .card-body::before {
        content: "✨ شقق • فلل • أراضي • محلات";
        display: block;
        font-size: 0.6rem;
        color: #64748b;
        margin-bottom: 0.6rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.3rem;
    }
    
    /* تخصيص النص لكل كرت */
    .service-card:nth-child(1) .card-body::before {
        content: "🏢 شقق • فلل • أراضي • محلات تجارية";
    }
    
    .service-card:nth-child(2) .card-body::before {
        content: "🚗 سيدان • دفع رباعي • هاتشباك • فاخر";
    }
    
    .service-card:nth-child(3) .card-body::before {
        content: "👨‍⚕️ جميع التخصصات • تقييمات حقيقية";
    }
    
    .service-card:nth-child(4) .card-body::before {
        content: "🛍️ أفضل المتاجر • منتجات متنوعة";
    }
    
    .service-card:nth-child(5) .card-body::before {
        content: "🍕 مأكولات • توصيل سريع • عروض يومية";
    }
    
    /* الإحصائيات - 3 أعمدة */
    .stats {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .stat {
        flex: 1;
        background: #f8fafc;
        padding: 0.4rem 0.2rem;
        border-radius: 12px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 0.9rem !important;
        font-weight: 800;
    }
    
    .stat-label {
        font-size: 0.55rem !important;
    }
    
    /* زر مصغر */
    .btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
        border-radius: 30px !important;
        width: 100%;
        text-align: center;
    }
    
    .btn i {
        font-size: 0.65rem;
    }

/* ========================================
   تصغير الرأسية (Navbar / Header) للجوال
   ======================================== */

@media (max-width: 768px) {
    /* تصغير الرأسية الرئيسية */
    .navbar {
        padding: 0.5rem 4% !important;
        gap: 0.5rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* تصغير شعار/لوجو */
    .logo {
        font-size: 0.85rem !important;
        text-align: center;
    }
    
    /* روابط النافبار - تنسيق أفقي قابل للتمرير */
    .nav-links {
        display: flex !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        width: 100% !important;
        padding-bottom: 0.3rem !important;
    }
    
    /* إخفاء سكرول بار لبعض المتصفحات مع الحفاظ على الوظيفة */
    .nav-links::-webkit-scrollbar {
        height: 2px !important;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: #e2e8f0 !important;
        border-radius: 10px !important;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: #cbd5e1 !important;
        border-radius: 10px !important;
    }
    
    /* تصغير أزرار الروابط */
    .nav-links a {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
        margin: 0 !important;
        white-space: nowrap;
        background: #f1f5f9;
        border-radius: 30px;
        transition: 0.2s;
    }
    
    .nav-links a:hover {
        background: #8b5cf6;
        color: white !important;
    }
    
    /* تصغير أيقونات الروابط */
    .nav-links a i {
        font-size: 0.65rem !important;
        margin-left: 0.2rem;
    }
    
    /* زر الهاتف بشكل مميز */
    .nav-links a:last-child {
        background: #10b981;
        color: white !important;
    }
    
    .nav-links a:last-child i {
        color: white;
    }
}

/* ========================================
   تصغير الهيدر (Hero Section)
   ======================================== */

@media (max-width: 768px) {
    /* تصغير مساحة الهيدر */
    .hero {
        padding: 0.8rem 1rem !important;
        margin-top: 0 !important;
    }
    
    /* تصغير عنوان الهيدر */
    .hero h1 {
        font-size: 1.1rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.3 !important;
    }
    
    /* تصغير النص الوصفي */
    .hero p {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
        opacity: 0.85;
    }
    
    /* تصغير شارة/وسم الهيدر */
    .hero-badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.8rem !important;
        margin-top: 0.3rem !important;
    }
    
    /* تصغير الصورة في الهيدر */
    .left-img {
        width: 60px !important;
        margin-bottom: 0.2rem !important;
    }
}

/* ========================================
   تصغير الفوتر (Footer) للجوال
   ======================================== */

@media (max-width: 768px) {
    /* تصغير الفوتر الرئيسي */
    footer {
        margin-top: 1.5rem !important;
        padding: 0 !important;
    }
    
    /* تصغير حاوية الفوتر */
    .footer-container {
        padding: 1.2rem 1rem !important;
        gap: 1rem !important;
    }
    
    /* تصغير أقسام الفوتر */
    .footer-section {
        text-align: center !important;
    }
    
    /* تصغير عناوين الفوتر */
    .footer-section h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: inline-block !important;
    }
    
    .footer-section h3:after {
        bottom: -5px !important;
        width: 30px !important;
        height: 2px !important;
    }
    
    /* تصغير نصوص الفوتر */
    .footer-section p {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .footer-section p i {
        width: 20px !important;
        font-size: 0.65rem !important;
    }
    
    /* تصغير روابط الفوتر */
    .footer-section ul li {
        margin-bottom: 0.3rem !important;
    }
    
    .footer-section ul li a {
        font-size: 0.7rem !important;
    }
    
    .footer-section ul li a i {
        font-size: 0.6rem !important;
    }
    
    /* تصغير أزرار التواصل الاجتماعي */
    .social-links {
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    
    .social-links a {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
    
    /* تصغير أسفل الفوتر */
    .footer-bottom {
        padding: 0.8rem !important;
        font-size: 0.6rem !important;
    }
    
    /* تحسين النص في أسفل الفوتر */
    .footer-bottom p {
        font-size: 0.6rem !important;
        line-height: 1.4;
    }
}













/* ========================================
   تنسيق البحث للجوال
   ======================================== */

/* زر التبديل للجوال */
.search-toggle-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-toggle-mobile:active {
    background: #f8fafc;
    transform: scale(0.98);
}

.search-toggle-mobile i:last-child {
    transition: transform 0.3s;
}

.search-toggle-mobile.active i:last-child {
    transform: rotate(180deg);
}

/* صندوق البحث */
.search-box {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.search-box select,
.search-box input {
    flex: 1;
    min-width: 140px;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.85rem;
    background: #f8fafc;
    font-family: 'Tajawal', sans-serif;
}

.search-box button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* للجوال */
@media (max-width: 768px) {
    .search-toggle-mobile {
        display: flex !important;
    }
    
    .search-box {
        display: none !important;
        flex-direction: column !important;
    }
    
    .search-box select,
    .search-box input,
    .search-box button {
        width: 100% !important;
    }
    
    .search-box.show,
    .search-box.active {
        display: flex !important;
    }
}

/* للكمبيوتر */
@media (min-width: 769px) {
    .search-toggle-mobile {
        display: none !important;
    }
    
    .search-box {
        display: flex !important;
    }
}


/* ========================================
   تحسين إضافي للشاشات الصغيرة جداً
   ======================================== */

@media (max-width: 480px) {
    /* نافبار أكثر تصغيراً */
    .navbar {
        padding: 0.4rem 3% !important;
    }
    
    .nav-links a {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .nav-links a i {
        font-size: 0.55rem !important;
    }
    
    /* هيدر أكثر تصغيراً */
    .hero h1 {
        font-size: 0.95rem !important;
    }
    
    .hero p {
        font-size: 0.6rem !important;
    }
    
    .hero-badge {
        font-size: 0.55rem !important;
    }
    
    /* فوتر أكثر تصغيراً */
    .footer-container {
        padding: 1rem 0.8rem !important;
        gap: 0.8rem !important;
    }
    
    .footer-section h3 {
        font-size: 0.8rem !important;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.6rem !important;
    }
    
    .social-links a {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    .footer-bottom {
        padding: 0.6rem !important;
    }
    
    .footer-bottom p {
        font-size: 0.55rem !important;
    }
}

/* ========================================
   تصميم نافبار مثبت مع تأثير شفاف (اختياري)
   ======================================== */

@media (max-width: 768px) {
    .navbar-glass {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(8px) !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5) !important;
    }
    
    /* شريط تقدم عند التمرير */
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #f59e0b, #f97316);
        z-index: 1001;
        transition: width 0.2s;
    }
}



}