/* Mobile First Approach */

/* Mobile (1x3 Grid) */
div#filtered-results {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 40px;
}

#car-brand-filter {
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
    flex-direction: row;
}

.car-brand-ico {
    cursor: pointer;
}

.car-listing-grid-cell-container {
    margin-right: 15px;
    margin-left: 15px;
}

.load-more-wrapper {
    text-align: center;
    margin: 50px 0px 30px 0px;
}

#load-more-btn {
    font-weight: normal;
    line-height: 1.2rem;
    fill: var(--e-global-color-primary);
    color: black;
    cursor: pointer;
}

.car-filters label {
    font-weight: 600;
    line-height: 35px;
}
.car-filters select {
    border: 1px solid #e4e4e4;
    border-radius: 5px;
}
.car-filters input {
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #F1EDEA;
}


/* Tablet (2x2 Grid) */
@media (min-width: 768px) {
    div#filtered-results {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #car-brand-filter {
        justify-content: center; /* Center buttons on tablet */
        flex-wrap: wrap;
    }
    

    .car-listing-grid-cell-container {
        margin-right: 0;
        margin-left: 0;
    }
    
}

/* Desktop (3x2 Grid) */
@media (min-width: 1025px) {
    div#filtered-results {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #car-brand-filter {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: flex-end;
        flex-direction: row;
        align-content: center;
        align-items: center;
    }
    
}

.car-brand-btn {
    padding: 7px 16px;
    border: none;
    background-color: #f1f1f1;
    cursor: pointer;
    border-radius: 100px;
    font-size: 14px;
    transition: all 0.3sease;
    color: #000;
    letter-spacing: 1px;
    font-weight: 500;
}

.car-brand-btn:hover {
    background-color: var(--e-global-color-primary);
    color: white;
}

.car-brand-btn.active {
    background-color: var(--e-global-color-primary);
    color: #ffffff;
}

.m-height-275 img {
    min-height: 276px;
}

