html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 1px;
    padding: 1px;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    text-align: center;
    padding: 0.5rem 0;
}

.logo img {
    width: 275px;
    height: auto;
    display: block;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch a {
    flex: 1;                  /* equal width */
    text-align: center;
    padding: 0.4rem 0;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
}

.lang-switch a.active {
    background: #000;
    color: #fff;
}

.car-card {
    display: flex;
    gap: 0.5rem;
    padding: 0.2rem 0.5rem 0.2rem 0;
    margin-bottom: 0rem;
    background: #fff;
    border-bottom: 0.1rem solid #e4e4e4;
    border-top: 0.1rem solid #e4e4e4;

    /* Prevent the card from collapsing too much on small screens */
    min-height: 100px;
}

/* Fixed-size image placeholder */
.car-image {
    flex: 0 0 150px;         /* FIXED width: 150px */
    height: 100px;           /* FIXED height: 100px */
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.85rem;

    cursor: pointer;
    text-decoration: none;
}

.car-image .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* fill box, crop excess */
    object-position: center; /* center the crop */
}

.car-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.icon-btn {
    width: 36px;
    height: 46px;
    border-radius: 4px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    line-height: 1;
}

.icon-btn:hover {
    filter: brightness(0.95);
}

.icon-btn:focus-visible {
    outline: 2px solid #4c9ffe;
    outline-offset: 2px;
}

.icon-edit::before {
    content: "✎";
}

.icon-delete::before {
    content: "✕";
    font-weight: bold;
}

.icon-delete {
    background: #f6c1c1;
    color: #a00;
}

/* Details expand to fill the rest of the space */
.car-details {
    flex: 1;                 /* Take remaining space */
    display: flex;
    flex-direction: column;
}

/* Description text */
.car-details .model {
    font-size: 1.2rem;        /* reduce text size slightly */
    margin-bottom: 0.2rem;
    text-decoration: none;
    color: #005481; /* Google-style link blue */
}

/* Attributes row */
.car-attrs {
    color: #444;
    font-size: 1rem;
    margin-top: 0.1rem;      /* tiny spacing between title & attributes */
}