/* Vehicles Page Styles */

.vehicles-main {
    margin-top: 90px;
    padding: 20px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 90px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #333;
    margin: 0;
}

.filters-toggle button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 110px;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.filter-section select,
.filter-section input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.apply-filters {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.clear-filters {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Vehicles Content */
.vehicles-content {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-weight: bold;
    color: #333;
}

.sort-options select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 25px;
}

.vehicle-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.vehicle-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.vehicle-details {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.vehicle-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.damage-info {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.damage-badge {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.damage-badge.paint {
    background: #3498db;
}

.damage-badge.accident {
    background: #e74c3c;
}

.damage-badge.local-paint {
    background: #e67e22;
}

.view-details {
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    font-weight: bold;
}

.view-details:hover {
    background: #219a52;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap: 10px;
}

.pagination button {
    padding: 10px 15px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.pagination button.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.pagination button:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicles-main {
        margin-top: 70px;
        padding: 15px 0;
    }
    
    .filters-toggle button {
        display: block;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-radius: 0;
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    
    .vehicle-card {
        margin-bottom: 0;
    }
    
    .results-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}