#content {
    padding: 0 5%;
}

/* image banner */
#banner {
    height: auto;
    width: 100vw;

    padding-bottom: 10px;
}

/* filters */
#filters {
    display: flex;
    flex-direction: row;
    gap: 1%;

    margin: 50px 0 5px 0;
}

.filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background-color: #f4f4f4;
    transition: background-color 0.1s ease;
    border-radius: 5px;

    padding: 8px 20px;
    height: 32px;
    position: relative;
    overflow: visible;
}
.filter:hover {
    background-color: #fbfbfb;
}
.filter.active .filter-icon {
    transform: rotate(180deg);
    top: 1px;
}

.filter-icon {
    width: 16px;
    height: 10px;
    transition: transform 0.25s ease;
    transform-origin: 50% 60%;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

#filter-sort {
    padding: 8px;
}

.filter-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;

    background: #f4f4f4;
    border: 1px solid #77777777;
    box-shadow: 0 5px 15px #00000022;
    animation: fadeIn 0.2s ease;
    border-radius: 6px;

    padding: 10px 15px;
    z-index: 3;
    min-width: 140px;
    top: calc(100% + 5px);
    left: 0;
    overflow: visible;
}

.filter.active .filter-dropdown {
    display: flex;
}

.filter-dropdown-item {
    display: block;

    white-space: nowrap;
    text-decoration: none;
    color: #333;
    transition:
        color 0.2s ease,
        transform 0.15s ease;
    font-size: 15px;

    padding: 6px 0;
}
.filter-dropdown-item:hover {
    color: #ff5a00;
    transform: translateX(4px);
}

.filter-dropdown-item-current {
    color: #ff854d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* filters/price */
/* #filter-price {
  width: 140px;
  display: flex;
  flex-direction: row;
  gap: 15px;
} */

#filter-price-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.filter-price-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    background: #f4f4f4;
    border: 1px solid #77777777;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 14px;
}

.filter-price-field input {
    width: 60px;
    background: none;
    border: none;
    color: #333;
    text-align: center;
    outline: none;
    appearance: textfield;
}
.filter-price-field input::-webkit-inner-spin-button,
.filter-price-field input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-price-label {
    color: #444;
}
.filter-price-currency {
    color: #555;
}

/* filters/price/rangeslider settings */
.irs {
    height: 13px;
}

.irs-line {
    height: 3px !important;
    background-color: #666 !important;
}
.irs-bar {
    background: #eb5e1b !important;
    height: 3px !important;
}

.irs-handle {
    background: #f4f4f4 !important;
    border: #77777777 1px solid !important;
    border-radius: 50% !important;

    height: 13px !important;
    width: 13px !important;

    top: 50% !important;
}
.irs-handle > i {
    display: none !important;
}
.irs-min,
.irs-max,
.irs-from,
.irs-to,
.irs-single {
    display: none !important; /* remove tooltips */
}

#filter-price-slider {
    width: 240px;
    margin-top: 10px;
}

#filter-price-button {
    align-self: self-end;
    width: 100px;
}

#filter-all {
    background-color: initial;
}

#cars-count {
    color: #777;
    margin-bottom: 20px;
}
#cars-count-value {
    color: #444;
    font-weight: 500;
}

#cars-error {
    color: #f0360d;
    text-align: center;
    width: 100vw;
    padding: 10px 0;
}

#cars-not-found {
    color: #666;
    text-align: center;
    width: 100vw;
    padding: 10px 0;
}

#cars-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

@media (max-width: 800px) {
    #banner {
        display: none;
    }
    #content {
        padding: 40px 2% 0 2%;
    }
    #filters {
        flex-wrap: wrap;
        gap: 5px 5px;
    }
    .filter {
        gap: 6px;
        padding: 8px 10px;
    }
    #filter-type,
    #filter-category,
    #filter-make {
        flex: 0 0 calc((100% - 20px) / 3);
    }
    #filter-price {
        flex: 1 1 auto;
    }
    #filter-sort,
    #filter-all {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
