.autotraderlistings {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: -webkit-fill-available;
    max-width: -webkit-fill-available;
}

.autotraderlistings * {
    box-sizing: border-box;
}

.autotraderlistings__filters {
    flex: 1;
    /* Sticky */
    /* position: -webkit-sticky; */
    /* For Safari */
    /* position: sticky;
    top: 20px; */
    height: fit-content;
}

.autotraderlistings__cards {
    flex: 3;
}

.autotraderlistings__cards__body {
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    gap: 20px;
    flex-wrap: wrap;
    font-family: "daimler_cslight", "Arial", sans-serif;
}

.autotraderlistings__card {
    /* width: calc(33% - 10px); */
    box-shadow: 0 0 3px 3px #eee;
    flex: 1 1 300px;
}

.autotraderlistings__card__image {
    aspect-ratio: 4/3;
    position: relative;
}

.autotraderlistings__card__image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.autotraderlistings__card__image__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #757575;
    color: white;
    padding: 4px 12px;
}

.autotraderlistings__card__content {
    padding: 1.25rem;
}

.autotraderlistings__card__content .title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 20px;
}

.autotraderlistings__card__content .details {
    margin-bottom: 16px;
}

.autotraderlistings__card__content .price {
    color: var(--autotrader-primary);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.autotraderlistings__card__content .action {
    margin-top: 16px;
    line-height: 1.5;
    display: block;
    width: 100%;
    text-align: center;
    color: var(--autotrader-primary);
    border: 2px solid var(--autotrader-primary);
    padding: 8px;
    text-decoration: none;
}

.autotrader-listings__cards__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 16px;
}

.autotraderlistings__filters__group__options {
    height: 0;
    overflow: hidden;
}

.autotraderlistings__filters__group__title {
    padding: 6px;
    border-bottom: 1px solid black;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.autotraderlistings__filters__group__title:hover {
    cursor: pointer;
    opacity: 0.85;
}

.autotraderlistings__filters__group__title svg {
    width: 20px;
    transition: 0.5s;
}

.autotraderlistings__filters__group__title .count {
    background: var(--autotrader-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1rem;
}

.autotraderlistings__filters__group.active .autotraderlistings__filters__group__title svg {
    transform: rotate(180deg);
}

.autotraderlistings__filters__group.active .autotraderlistings__filters__group__options {
    height: auto;
    overflow: auto;
    max-height: 12.5rem;
    padding: 6px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.autotraderlistings__filters__group__options__option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.autotraderlistings__filters__group__options__option__checkbox {
    width: 20px;
    aspect-ratio: 1;
    border: 1px solid var(--autotrader-primary);
}

.autotraderlistings__filters__group__options__option.selected .autotraderlistings__filters__group__options__option__checkbox:after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" width="18px" height="18px"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" fill="var(--autotrader-primary)"/></svg>');
    width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    color: white;
}

.autotraderlistings__filters__actions {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 12px;
}

.autotraderlistings__filters__actions button {
    padding: 10px 6px;
    transition: 0.5s;
    border: 2px solid var(--autotrader-primary);
}

.autotraderlistings__filters__actions__apply,
.autotraderlistings__filters__actions__clear:hover {
    background: var(--autotrader-primary);
    color: white;
}

.autotraderlistings__filters__actions__clear,
.autotraderlistings__filters__actions__apply:hover {
    background: transparent;
    color: var(--autotrader-primary);
}

.autotraderlistings__filters__actions__apply:hover,
.autotraderlistings__filters__actions__clear:hover {
    cursor: pointer;
}

.tagsfilter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tagsfilter__tag {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: transparent;
    border: 1px solid black;
}

.tagsfilter__tag.selected {
    background: black;
    color: white;
}

.autotraderlistings__cards__footer__pagination {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.autotraderlistings__cards__footer__pagination .page-link {
    text-decoration: none;
    transition: 0.3s;
}

.autotraderlistings__cards__footer__pagination .page-link.active {
    opacity: 0.5;
    pointer-events: none;
}

.autotraderlistings__cards__footer__pagination .page-link:hover {
    opacity: 0.5;
}

.autotraderlistings__cards__footer {
    margin-top: 30px;
}

.autotraderlistings__cards__header__sort select {
    padding: 8px;
    border-color: #ddd;
    margin-left: 8px;
}

section.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media screen and (max-width: 1024px) {
    .autotraderlistings {
        flex-direction: column;
    }

    .autotraderlistings__filters {
        display: none;
        position: fixed;
        top: 0;
        z-index: 1;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        padding: 40px;
    }

    .autotraderlistings__filters.active {
        display: block;
        overflow: auto;
    }

    .autotraderlistings__filters__actions {
        display: flex;
        flex-direction: row-reverse;
    }

    .autotraderlistings__filters__actions button {
        flex: 1;
    }

    .autotraderproduct>.container>.row {
        flex-direction: column-reverse;
    }
}


input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider {
    width: 100%;
}

.slider {
    height: 6px;
    position: relative;
    background: #e4e4e4;
    border-radius: 5px;
}

.slider .price-slider {
    height: 100%;
    left: 25%;
    right: 15%;
    position: absolute;
    border-radius: 5px;
    background: var(--autotrader-primary);
}

.range-input {
    position: relative;
}

.range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    top: -5px;
    pointer-events: none;
    cursor: pointer;
    -webkit-appearance: none;
}

/* Styles for the range thumb in WebKit browsers */
input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 70%;
    background: #555;
    pointer-events: auto;
    -webkit-appearance: none;
}

@media screen and (max-width: 768px) {
    .main {
        width: 80%;
        margin-right: 5px;
    }

    .custom-wrapper {
        width: 100%;
        left: 0;
        padding: 0 10px;
    }

    .projtitle {
        width: 100%;
        position: relative;
        right: 26px;
    }

    .price-input {
        flex-direction: column;
        align-items: center;
    }

    .price-field {
        margin-bottom: 10px;
    }
}

.price-input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.price-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.price-field input {
    width: 100%;
    display: inline-block;
    border: none;
    max-width: 55px;
}

.price-field:nth-of-type(1) {
    justify-content: end;
}

.autotraderproduct__content__highlights .col {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.autotraderproduct__content__highlights .col svg {
    width: 24px;
}

.accordion-body strong {
    margin-bottom: 12px !important;
    display: inline-block;
}

.autotraderproduct__content__price {
    font-size: 1.4rem;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .autotrader-listings__cards__header {
        flex-direction: column;
        gap: 12px;
    }
}
.single.single-usedvehicle .ast-container, .single.single-newvehicle .ast-container {
    flex-direction: column;
    width: 100vw;
    max-width: none;
    padding: 0;
}
.single.single-usedvehicle .ast-container .autotraderproduct, .single.single-newvehicle .ast-container .autotraderproduct {
    padding-top: 8rem;
}