body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f9f9f9;
    margin: 0;
}

h1 {
    text-align: center;
    color: #cc0000;
}

.add-link {
    display: inline-block;
    margin: 10px 0;
    text-decoration: none;
    background: #cc0000;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.search-form input {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    padding: 8px 16px;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.filter-form span {
    font-weight: bold;
}

.filter-form button {
    background: #eee;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-size: 14px;
}
.filter-form button:hover {
    background: #ccc;
}
.filter-form button.active {
    background: #cc0000;
    color: white;
    font-weight: bold;
    transform: scale(1.05);
}

.car-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.car-card {
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    width: 220px;
    box-shadow: 2px 2px 5px #ccc;
    border-radius: 10px;
    text-align: center;
}

.image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
