/* ==================== VEHICLE DETAIL MODAL ==================== */

.vehicle-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-detail-modal.active {
    display: flex;
    opacity: 1;
}

.vehicle-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.vehicle-detail-content {
    position: relative;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.95));
    border: 2px solid rgba(234, 179, 8, 0.3);
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vehicle-detail-modal.active .vehicle-detail-content {
    transform: scale(1) translateY(0);
}

.vehicle-detail-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.vehicle-detail-close:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Header with Image */
.vehicle-detail-header {
    position: relative;
    height: 350px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.9));
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}

.vehicle-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.vehicle-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.vehicle-category-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #eab308, #fbbf24);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

.vehicle-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.vehicle-detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #eab308, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.vehicle-quick-specs {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
}

.quick-spec-item i {
    color: #eab308;
    font-size: 1.25rem;
}

/* Body Content */
.vehicle-detail-body {
    padding: 3rem;
}

.vehicle-detail-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eab308, #fbbf24);
    border-radius: 50%;
    color: #0f172a;
    font-size: 1.25rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.5), transparent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(30, 58, 138, 0.5);
    border-color: rgba(234, 179, 8, 0.3);
    transform: translateX(8px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 179, 8, 0.2);
    border-radius: 12px;
    color: #eab308;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Specifications Table */
.specs-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.spec-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spec-label i {
    color: #eab308;
}

.spec-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Description */
.vehicle-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Action Buttons */
.vehicle-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-action-btn {
    padding: 1.5rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: none;
}

.detail-action-btn.primary {
    background: linear-gradient(135deg, #eab308, #fbbf24);
    color: #0f172a;
    box-shadow: 0 10px 35px rgba(234, 179, 8, 0.4);
}

.detail-action-btn.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(234, 179, 8, 0.6);
}

.detail-action-btn.secondary {
    background: transparent;
    border: 2px solid rgba(234, 179, 8, 0.5);
    color: #eab308;
}

.detail-action-btn.secondary:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: #eab308;
    transform: translateY(-4px) scale(1.02);
}

.detail-action-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.4);
}

.detail-action-btn.whatsapp:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 968px) {
    .vehicle-detail-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .vehicle-detail-header {
        height: 250px;
    }
    
    .vehicle-detail-title {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 2.25rem;
    }
    
    .vehicle-detail-body {
        padding: 2rem 1.5rem;
    }
    
    .specs-table {
        grid-template-columns: 1fr;
    }
    
    .vehicle-detail-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .vehicle-detail-header {
        height: 200px;
    }
    
    .vehicle-detail-overlay {
        padding: 1.5rem;
    }
    
    .vehicle-detail-title {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-quick-specs {
        gap: 0.75rem;
    }
    
    .quick-spec-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

