/* Listings Page Specific Styles */

.filter-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-card .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
}

.filter-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.filter-card .card-body {
    padding: 1.5rem;
}

/* Filter Form */
.filter-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.filter-form .form-control,
.filter-form .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.filter-form .btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.6rem 1rem;
}

/* Listings Grid */
.listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.vehicle-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.vehicle-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image-wrapper img {
    transform: scale(1.08);
}

.vehicle-image-wrapper .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.vehicle-image-wrapper .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.vehicle-image-wrapper .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
}

.vehicle-card .card-body {
    padding: 1.25rem;
}

.vehicle-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.vehicle-card .card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.vehicle-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.vehicle-specs .badge {
    background: #f0f0f0;
    color: #333;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.vehicle-card .card-footer {
    background: white;
    border-top: 1px solid #eee;
    padding: 1rem 1.25rem;
}

.vehicle-card .btn {
    border-radius: 6px;
    font-weight: 600;
}

/* Price Display */
.vehicle-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Results Info */
.results-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.results-info small {
    color: #666;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.page-link {
    border-radius: 6px;
    margin: 0 0.25rem;
    color: #0d6efd;
    border: 1px solid #ddd;
}

.page-link:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .listings-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .listings-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .vehicle-image-wrapper {
        height: 180px;
    }

    .vehicle-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .listings-container {
        grid-template-columns: 1fr;
    }

    .results-info h2 {
        font-size: 1.4rem;
    }
}

