body {
    background: #f5f5f5 !important;
}

.content__box {
    padding-top: var(--topbar-height);
}

:root {
    --filter-width: 20vw;
}

.content__box * { transition: all 100ms; }

#footer {
    margin-top: 0px !important;
}

#listing__box {
    padding: 0px 30px;
    padding-left: calc(var(--filter-width) + 30px);
    margin-bottom: 20px;
    margin-top: 35px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;

    display: none;
}

#listing__title {
    width: 100%;
}

#listing__title h1.query {
    font-size: var(--title-size);
    font-weight: 400;
    margin-bottom: 10px;
    white-space: nowrap;
}

#listing__title p.results {
    font-size: var(--subtitle-size);
    margin-bottom: 0px;
    white-space: nowrap;
    font-weight: 400;
    color: #343a4080;
}

#listing__header {
    margin-top: 35px;
    padding: 0px 30px;
    padding-left: calc(var(--filter-width) + 30px);
    border-radius: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#listing__header .mobile__filter {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 1.2em;
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 20px;
    cursor: pointer;
}

.filter__mobile__menu {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #00000008;
}

.filter__mobile__menu h1 {
    font-weight: 400;
}

.filter__mobile__menu .filter__close {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #00000010;
    color: #343a40;
    border-radius: 20px;
    cursor: pointer;
}

.header__search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #c1c1c190;
    border-radius: 15px;
    background: transparent;
    overflow: hidden;
    width: 400px;
    max-width: 50%;
}

.header__search svg {
    margin: 0px 15px 0px 20px;
    color: #343a40c1;
    cursor: pointer;
    stroke-width: 1;
    width: 20px;
}

.header__search input {
    padding: 10px 15px 10px 0px;
    font-size: var(--content-size);
    background: transparent;
    font-weight: 300;
    border: none;
    width: 100%;
}

.header__search input:focus {
    outline: none !important;
}

#listing__header .header__right {
    background: white;
    border-radius: 15px;
    padding: 15px;
    width: 100%;
}


/* ==========  LOADING  ========== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#loading__box {
    padding: 0px 30px;
    padding-left: calc(var(--filter-width) + 30px);
    color: #00000010;

    display: flex;
    justify-content: center;
    align-items: center;

    display: none;

    font-size: 3em;
    height: 50vh;
}

#loading__row {
    padding: 0px 30px;
    padding-left: calc(var(--filter-width) + 30px);
    margin-bottom: 35px !important;

    display: flex;
    justify-content: center;
    align-items: center;

    display: none;
    
    color: #343a4080;
    animation: pulse 2s infinite;

    font-size: 1.2em;
    height: 100px;
}


/* ==========  FILTER BOX  ========== */

#nothing__row {
    padding: 0px 30px;
    padding-left: calc(var(--filter-width) + 30px);
    color: #00000010;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    display: none;
    height: 50vh;
}

#nothing__row img {
    width: 80%;
    margin-bottom: 0px;
    max-width: 250px;
    margin-bottom: 25px;
}

#nothing__row h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
    color: #000000;
    width: 100%;
}

#nothing__row p {
    font-size: .9em;
    font-weight: 300;
    color: #343a40;
}


/* ==========  FILTER BOX  ========== */

#filter__box {
    background: #fff;
    box-shadow: var(--box-shadow);

    width: var(--filter-width);
    height: calc(100vh - var(--topbar-height));

    position: fixed;
    top: var(--topbar-height);
    left: 0;
}

#filter__box .filter__content {
    height: 90%;
    padding: 35px 30px;
    overflow-y: auto;
}

#filter__box .filter__content::-webkit-scrollbar {
    width: 6px;
}

#filter__box .filter__content::-webkit-scrollbar-track {
    background: #00000005;
}

#filter__box .filter__content::-webkit-scrollbar-thumb {
    background-color: #c1c1c150;
}

#filter__box .filter__item {
    border-bottom: 1px solid #00000008;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

#filter__box .filter__item .filter__title {
    font-size: .9em;
    color: #343a40;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

#filter__box .filter__input {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#filter__box .filter__input .input__item {
    width: 45%;
}

#filter__box .filter__item input,
#filter__box .filter__item select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 5px;
    border: 1px solid #c1c1c190;
    font-size: .9em;
    font-weight: 400;
    color: #000000;
}

#filter__box .filter__item .filter__input input::placeholder {
    color: #343a40ac;
    font-weight: 300;
}

#filter__box .filter__item input:focus,
#filter__box .filter__item select:focus {
    outline: none !important;
}

#filter__box .filter__item .filter__input label {
    font-size: .75em;
    color: #343a40ae;
    line-height: 1;
}

#filter__box .filter__item .filter__check {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

#filter__box .filter__item .filter__check .check__item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 0px;
}

#filter__box .filter__item .filter__check .check__item input {
    margin-right: 8px;
    border-radius: 10px !important;
    border-color: transparent !important;
    width: 15px;
    height: 15px;
}

#filter__box .filter__item .filter__check .check__item input:checked {
    background-color: #f00 !important;
}

#filter__box .filter__item .filter__check .check__item label {
    font-size: var(--content-size);
}

#filter__box .filter__actions {
    border-top: 1px solid #00000008;
    background: #ffffff;
    padding: 0px 20px;

    height: 15%;
    width: 100%;

    position: absolute;
    bottom: 0px;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#filter__box .filter__actions button {
    width: 100%;
    padding: 10px 0px;
    background: transparent;
    border: 1px solid #343a40;
    font-size: var(--content-size);
    transition: all 200ms;
    border-radius: 5px;
    font-weight: 600;
    color: #161617;
}

#filter__box .filter__actions button#action__filter {
    margin-bottom: 10px;
    border-color: var(--color-primary);
    background: var(--color-primary);
    font-weight: 600;
    color: #ffffff;
}

#filter__box .filter__actions button#action__filter:hover {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
}


/* ==========  VEHICLE ITEM  ========== */

.vehicle__item {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.vehicle__details {
    padding: 15px 15px 0px 15px;
}

.vehicle__picture .picture__item {
    width: 100%;
    height: 150px;
    background: var(--color-primary);
    background-size: cover !important;
    background-position: center center !important;
    transition: all 200ms !important;
    cursor: pointer;
}

.vehicle__title {
    font-size: var(--content-size);
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle__attributes {
    font-size: .85em;
    font-weight: 400;
    color: #343a4080;
/*    max-height: calc(1.5em * 2);*/

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle__price {
    font-size: var(--subtitle-size);
    font-weight: 700;
    margin-top: 25px;
}

.vehicle__statistics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8em;
    margin: 10px 0px 10px 0px;
    color: #000000c1;
}

.vehicle__statistics p {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    font-weight: 400;
    color: #343a40c1;
}

.vehicle__statistics svg {
    width: 13px;
    margin-top: -1px;
    stroke: #343a40c1;
    stroke-width: 1px !important;
    margin-right: 5px;
}

.vehicle__action button {
    width: 100%;
    padding: 8px 0px;
    background: transparent;
    border: 1px solid #343a40;
    transition: all 100ms linear;
    border-radius: 8px;
    font-weight: 500;
    font-size: .9em;
    color: #000;
}

.vehicle__footer {
    margin-top: 10px;
    padding: 5px 15px;
    border-top: 1px solid #343a4005;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle__footer .vehicle__location {
    font-size: .75em;
    font-weight: 300;
    color: #343a40c1;
    line-height: 1;
}

.vehicle__footer .vehicle__icons svg {
    width: 18px;
    cursor: pointer;
    margin-top: -3px;
    stroke-width: 1px;
}

.remove {
    display: none !important;
}


/* ===========  RESPONSIVIDADE  =========== */

@media (max-width: 5000px) {
    :root { --filter-width: 15vw; }
    #listing__box { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1600px) {
    :root { --filter-width: 18vw; }
    #listing__box { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1400px) {
    :root { --filter-width: 20vw; }
    #listing__box { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
    :root { --filter-width: 25vw; }
    #listing__box { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 855px) {
    :root { --filter-width: 0vw; }
    #filter__box {
        left: -110vw; 
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        z-index: 1000;
    }
    #listing__box { grid-template-columns: repeat(3, 1fr); }

    #listing__header {
        flex-direction: column;
        align-items: flex-start;
    }

    #listing__title {
        margin-bottom: 15px !important;
    }

    #listing__title h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.3em !important;
        margin-bottom: 5px !important;
    }

    #listing__header p {
        font-size: .9em !important;
    }

    #listing__header .header__menu {
        justify-content: space-between;
    }

    #listing__header .mobile__filter {
        display: flex;
    }

    #listing__header .header__search {
        width: 100%;
        max-width: 100%;
        margin-right: 25px;
    }

    #filter__box .filter__mobile__menu {
        display: flex;
    }

    #filter__box .filter__actions {
        flex-direction: row;
        height: 10%;
    }

    #filter__box .filter__actions button {
        margin: 0px 10px !important;
    }

    select {
        -webkit-appearance: none;
        background: #ffffff;
    }

}

@media (max-width: 600px) {
    :root { --filter-width: 0vw; }
    #filter__box { left: -110vw; width: 100vw !important; }
    #listing__box { grid-template-columns: repeat(1, 1fr); }

    .vehicle__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .vehicle__picture {
        width: 100%;
        height: 100%;
        min-width: 50%;
        max-width: 50%;
    }
    .vehicle__price {
        margin-top: 15px;
    }
    .picture__item {
        width: 100% !important;
        height: 100% !important;
    }
    .vehicle__details {
        padding: 15px !important;
        width: 50%;
    }
    .vehicle__attributes {
        display: none;
    }
    .vehicle__footer {
        display: none;
    }
}