/* تصميم محسن ومضغوط لكروت باقات العمرة */

/* تحسين شبكة الباقات لتكون أكثر إحكاماً */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0;
}

/* تصميم الكارت المحسن والمضغوط */
.package-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid #f8f9fa;
    position: relative;
    height: auto;
    min-height: 500px;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #e3f2fd;
}

/* مضغوط أكثر للصورة */
.package-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f3f4, #e8eaf6);
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

/* مدة الرحلة مضغوطة */
.package-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* محتوى الكارت مضغوط */
.package-content {
    padding: 1.2rem;
}

.package-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.package-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* مميزات الرحلة مضغوطة */
.trip-features {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    max-height: 140px;
    overflow-y: auto;
}

.trip-feature {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.3;
}

.trip-feature:last-child {
    border-bottom: none;
}

/* أزرار الإجراءات مضغوطة */
.package-actions {
    padding: 1rem 1.2rem;
    background: #fafafa;
    border-top: 1px solid #e9ecef;
}

.btn-package {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 3px 12px rgba(23, 162, 184, 0.3);
    border: none;
    margin-bottom: 0.8rem;
}

.btn-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(23, 162, 184, 0.4);
    color: white;
    text-decoration: none;
}

.package-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.package-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.package-info i {
    color: #28a745;
    font-size: 0.7rem;
}

/* شارات الباقات مضغوطة */
.package-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #2c3e50;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    border: 1px solid white;
}

.package-availability {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* تصميم VIP مضغوط */
.package-card.vip {
    border: 2px solid #e91e63;
    background: linear-gradient(135deg, #ffffff 0%, #fce4ec 100%);
    position: relative;
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.15);
}

.package-card.vip:hover {
    border-color: #c2185b;
    box-shadow: 0 10px 35px rgba(233, 30, 99, 0.25);
}

.package-card.vip::before {
    content: 'VIP';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.4);
}

/* فورم الحجز مضغوط */
.booking-form {
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 1.2rem;
    margin-top: 1rem;
    border-radius: 0 0 16px 16px;
    width: 100%;
    box-sizing: border-box;
}

.booking-header h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-whatsapp-send {
    background: #25d366;
    color: white;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-whatsapp-send:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel:hover {
    background: #5a6268;
}

/* تحسين عرض فورم الحجز */
.package-card.form-expanded {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}

.package-card.form-expanded .booking-form {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .package-card {
        min-height: 450px;
    }
    
    .package-image {
        height: 160px;
    }
    
    .package-content {
        padding: 1rem;
    }
    
    .package-content h4 {
        font-size: 1.1rem;
    }
    
    .trip-features {
        max-height: 120px;
        padding: 0.8rem;
    }
    
    .package-actions {
        padding: 0.8rem 1rem;
    }
    
    .booking-form {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .package-card {
        min-height: 400px;
    }
    
    .package-image {
        height: 140px;
    }
    
    .package-content {
        padding: 0.8rem;
    }
    
    .trip-features {
        max-height: 100px;
        padding: 0.6rem;
    }
    
    .booking-form {
        padding: 0.8rem;
    }
}

/* لا توجد رحلات */
.no-trips-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-trips-message p {
    font-size: 1rem;
    margin: 0;
}