/**
 * Theme Name: Twentytwentyfive child
 * Template: twentytwentyfive
 *
 * Не обязательные параметры:
 * Theme URI: https://cars.alexdblog.ru/
 * Description: Дочерняя тема для темы twentytwentyfive
 * Author: Alex Dmitriev
 * Author URI: https://alexdblog.ru/
 * Version: 1.0
 */

#car-filter-container {
    margin: 30px 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.price-range {
    display: flex;
    gap: 5px;
    align-items: center;
}

.price-range input {
    width: 100%;
}

.car-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.recent-cars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.car-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.car-filter-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.car-meta {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.car-meta span {
    background: #f3f3f3;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.car-price {
    font-weight: bold;
    color: #e53935;
    font-size: 1.1em;
}

.loading {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #777;
}

.no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
}

.filter-actions {
    text-align: center;
    margin-bottom: 30px;
}

.reset-button {
    background: #f8f9fa;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #dc3545;
    color: white;
}

@media (max-width: 768px) {

    .recent-cars {
        grid-template-columns: repeat(2, 1fr);
    }
    .car-filter-form {
        grid-template-columns: 1fr;
    }
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .car-results {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        margin-top: 15px;
    }
    
    .reset-button {
        width: 100%;
        padding: 12px;
    }

}