body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    padding: 1rem;
}

.filter-category {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title::after {
    content: '+';
    font-size: 1.2rem;
}

.filter-category.open .filter-title::after {
    content: '-';
}

.filter-options {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 1rem;
}

.filter-category.open .filter-options {
    display: flex;
}

.filter-options input[type="checkbox"] {
    display: none;
}

.filter-options label {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-options label:hover {
    background-color: #e9e9e9;
}

.filter-options label.selected {
    background-color: #333;
    color: white;
    border-color: #333;
}

#model-filter {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#open-nav-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    cursor: pointer;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
    transition: 0.3s ease-in-out;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidenav h2 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 1rem 1rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
}

.sidenav .closebtn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: #818181;
    text-decoration: none;
}

.sidenav .closebtn:hover {
    color: #333;
}


.car-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.car-card {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
}

.car-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.car-card h2 {
    margin-top: 0;
}
#session-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#session-info a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 4px;
}

.auth-form input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}


#sort-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.auth-form button {
    padding: 0.75rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.favorite-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.favorite-btn.favorited {
    background-color: #6c757d;
}
#catalog-summary {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#lang-selector {
    padding: 0.5rem;
    border-radius: 4px;
}