/* ===== CSS خاص بصفحة خدمات النقل - المنطلق الأول لخدمات النقل ===== */
/* المؤلف: فريق المنطلق الأول | التحديث: يناير 2024 */

/* ===== تحسينات عامة لصفحة النقل ===== */
.transport-section {
    padding: 100px 0;
}

.transport-section .section-header h2:after {
    right: 0;
    transform: none;
}

/* ===== تحسينات لشبكة المركبات ===== */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.transport-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.transport-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.transport-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.transport-type {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(235, 139, 39, 0.3);
    z-index: 2;
}

.transport-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.transport-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    min-height: 48px;
}

.transport-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.transport-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.95rem;
    flex: 1;
    min-width: 120px;
}

.transport-specs i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    min-width: 20px;
}

.transport-description {
    margin-bottom: 25px;
    color: var(--gray-color);
    line-height: 1.7;
    flex-grow: 1;
}

.transport-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.transport-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ===== تحسينات للمراكب الكبيرة (الباصات) ===== */
.transport-card.large-vehicle .transport-image {
    height: 280px;
}

.transport-card.large-vehicle .transport-info h3 {
    font-size: 1.6rem;
}

/* ===== تحسينات للشاشات الصغيرة ===== */
@media (max-width: 768px) {
    .transport-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .transport-card {
        max-width: 100%;
    }
    
    .transport-image {
        height: 220px;
    }
    
    .transport-info {
        padding: 20px;
    }
    
    .transport-info h3 {
        font-size: 1.4rem;
        min-height: auto;
    }
    
    .transport-specs span {
        min-width: 45%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .transport-section {
        padding: 60px 0;
    }
    
    .transport-image {
        height: 200px;
    }
    
    .transport-specs {
        gap: 15px;
    }
    
    .transport-specs span {
        min-width: 100%;
    }
}

/* ===== تحسينات للصور الكبيرة ===== */
.transport-image img {
    object-position: center;
}

/* صورة الباص */
.transport-card[data-type*="باص"] .transport-image img {
    object-position: center top;
}

/* صورة الفان */
.transport-card[data-type*="فان"] .transport-image img {
    object-position: center center;
}

/* ===== تحسينات للأيقونات ===== */
.transport-specs .fa-calendar-alt:before {
    content: "\f073";
}

.transport-specs .fa-cogs:before {
    content: "\f085";
}

.transport-specs .fa-user-friends:before {
    content: "\f500";
}

.transport-specs .fa-star:before {
    content: "\f005";
}

/* ===== تحسينات للبادجات ===== */
.transport-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-new {
    background: var(--gradient-secondary);
    color: var(--white);
}

.badge-popular {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ===== تحسينات للرسوم المتحركة ===== */
@keyframes slideInTransport {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.transport-card.animate-in {
    animation: slideInTransport 0.6s ease forwards;
}

/* ===== تحسينات للظلال والتأثيرات ===== */
.transport-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
    z-index: 1;
}

.transport-card:hover::before {
    height: 100%;
    opacity: 0.05;
    transition: height 0.4s ease, opacity 0.4s ease;
}

/* ===== تحسينات لتمييز المركبات ===== */
.transport-card.highlight {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 10px 40px rgba(235, 139, 39, 0.2);
}

.transport-card.highlight:hover {
    box-shadow: 0 15px 50px rgba(235, 139, 39, 0.3);
}

/* ===== تحسينات للأزرار في بطاقات النقل ===== */
.transport-actions .btn-whatsapp {
    background: var(--gradient-whatsapp);
}

.transport-actions .btn-whatsapp:hover {
    background: #1da851;
}

.transport-actions .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.transport-actions .btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* ===== تحسينات للترقيم ===== */
.transport-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.transport-pagination .btn {
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== تحسينات لرسالة عدم العثور على نتائج ===== */
.no-transport-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    grid-column: 1 / -1;
}

.no-transport-results i {
    font-size: 4rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-transport-results h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.no-transport-results p {
    color: var(--gray-color);
    max-width: 500px;
    margin: 0 auto 25px;
}

/* ===== تحسينات لشاشات كبيرة ===== */
@media (min-width: 1200px) {
    .transport-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
    
    .transport-card.large-vehicle {
        grid-column: span 1;
    }
}

/* ===== تحسينات للطباعة ===== */
@media print {
    .transport-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .transport-actions {
        display: none;
    }
}