/* Vehicles Page Modern Styles */

.search-section {
    position: relative;
    z-index: 2;
    background: transparent;
    padding-bottom: 2rem;
}

.search-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    margin: -4rem 1rem 0;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.category-selection {
    margin-top: 2rem;
}

.category-btn {
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white !important;
    margin: 0.25rem;
    border-radius: 30px !important;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.btn-check:checked+.category-btn {
    background: white !important;
    color: var(--secondary-color) !important;
    border-color: white !important;
    font-weight: 600;
}

.results-header {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}
.pagination .page-item {
    margin: 0 0.2rem;
}
.pagination .page-link {
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.pagination .page-link:hover {
    background: rgba(255, 111, 0, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}
.pagination .page-item.active .page-link,
.active > .page-link {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.3) !important;
}

/* Loading Spinner */
.loading {
    padding: 3rem;
    text-align: center;
}
.spinner {
    border: 3px solid rgba(255, 111, 0, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Controls Customization */
.form-control, .form-select {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    background: white;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1) !important;
}
.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Vehicle Badges override for Vehicles page */
.currency-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.location-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 2.25rem;
    left: 0.75rem;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.feature-tag {
    background: rgba(44, 62, 80, 0.05);
    color: var(--secondary-color);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
    white-space: nowrap;
    font-weight: 500;
}

/* Cards Animation */
@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vehicle-card-animate {
    animation: fadeUpIn 0.5s ease-out forwards;
}

@media (max-width: 991px) {
    .search-card {
        margin: -2rem 0.5rem 0;
        padding: 1.5rem;
        border-radius: 20px;
    }
    .results-header {
        flex-direction: column;
        text-align: center;
    }
}
