/* Bootstrap dropdown styling for frequency selector */

#ddFrequency .btn-default {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 8px 12px;
    font-family: Roboto, Poppins, sans-serif;
    color: #010207;
}

#ddFrequency .btn-default:hover,
#ddFrequency .btn-default:focus {
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: none;
}

#ddFrequency .dropdown-menu {
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 120px;
}

#ddFrequency .dropdown-menu>li>a {
    padding: 10px 15px;
    color: #010207;
    font-family: Roboto, Poppins, sans-serif;
}

#ddFrequency .dropdown-menu>li>a:hover {
    background: #f5f5f5;
    color: #010207;
}

#ddFrequency .dropdown-menu>li.active>a,
#ddFrequency .dropdown-menu>li.active>a:hover {
    background: #000000;
    color: #fff;
}

#ddFrequency .fa-angle-down {
    margin-left: 8px;
}

/* Bootstrap dropdown styling for filter dropdowns in sidebar */
.filter-dropdown {
    display: block;
    margin-bottom: 15px;
}

.filter-dropdown .btn-default {
    width: 100%;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 10px 12px;
    font-family: Roboto, Poppins, sans-serif;
    color: #010207;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-dropdown .btn-default:hover,
.filter-dropdown .btn-default:focus {
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: none;
}

/* Reset button style when dropdown is closed and not hovered */
.filter-dropdown .btn-default:not(:hover):not(:active) {
    background: #fff;
}

/* Ensure focus state is removed when dropdown closes */
.filter-dropdown .btn-default:focus:not(:hover) {
    background: #fff;
    outline: none;
}

.filter-dropdown .dropdown-menu {
    width: 100%;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown .dropdown-menu>li>a {
    padding: 10px 15px;
    color: #010207;
    font-family: Roboto, Poppins, sans-serif;
    display: block;
}

.filter-dropdown .dropdown-menu>li>a:hover {
    background: #f5f5f5;
    color: #010207;
    text-decoration: none;
}

.filter-dropdown .dropdown-menu>li.active>a,
.filter-dropdown .dropdown-menu>li.active>a:hover {
    background: #000000;
    color: #fff;
}

/* Hide Bootstrap's default caret pseudo-element since we use our own icon */
.filter-dropdown .dropdown-toggle::after {
    display: none;
}

.filter-dropdown .fa-angle-down {
    margin-left: auto;
}

/* Allow dropdown menus to overflow outside the collapse container */
/* Apply to collapsePayment to allow dropdown menus to display above other filters */
#collapsePayment {
    overflow: visible !important;
}

/* Also handle the #filterPayment for dropdown overflow */
#filterPayment {
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

/* Ensure dropdown menu displays above subsequent filter sections */
#filterPayment .dropdown-menu {
    z-index: 1050;
}

#searchContent {
    margin-top: 0 !important;
}




#sideFilter {
    width: 320px;
    float: left;
}

#mainContent {
    margin-left: 360px;
}

.title {
    font-size: 43px;
    line-height: 58px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.subtitle {
    font-size: 30px;
    line-height: 42px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 300;
    letter-spacing: 0;
    color: #747474;
    margin: 0;
}

.result {
    margin-top: 60px;
}

.result .found {
    font-size: 22px;
    line-height: 38px;
    font-weight: 600;
    color: #010207;
    float: left;
}

.result .sort {
    font-size: 22px;
    line-height: 38px;
    font-weight: 300;
    color: #010207;
    text-align: right;
    font-family: Roboto, Poppins, sans-serif;
}

.result .sort strong {
    font-weight: 600;
}

.result .sort .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

.result .sort .dropdown-menu>li>a,
.result .sort .dropdown-menu>li>a:hover {
    color: #000000;
}

.veh-card {
    border: 2px solid #000000;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}

#dvFilterTags {
    margin-top: 10px;
}

#dvFilterTags .tags {
    margin-top: 10px;
    display: inline-block;
    background: #DEE1E3;
    padding: 4px 10px 4px 15px;
    border-radius: 30px;
    margin-right: 4px;
    color: #000000;
    font-family: Roboto, Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

#dvFilterTags .tags span.fa {
    cursor: pointer;
    color: #000000;
}

#results .row {
    margin-left: -8px;
    margin-right: -8px;
}

#results .row [class^="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.veh-card .veh-card-title {
    font-size: 25px;
    line-height: 45px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    text-align: center;
    background: #ffb71b;
    font-family: Roboto, Poppins, sans-serif;
}

.veh-card.used .veh-card-title {
    background: #ec1a2e;
}

.veh-card.demo .veh-card-title {
    background: #000000;
    color: #fff;
}

.veh-card .veh-card-img {
    min-height: 250px;
    text-align: center;
    font-size: 18px;
    position: relative;
}

.veh-card .veh-card-img img {
    width: 100%;
    /*height: 230px;*/
    object-fit: cover;
}

.var-card-info {
    padding: 25px 25px 20px;
    /*min-height: 325px;*/
}

.var-card-info .veh-year-make {
    color: #010207;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 1px;
    font-family: Roboto, Poppins, sans-serif;
}

.var-card-info .veh-model {
    color: #010207;
    font-size: 25px;
    line-height: 33px;
    letter-spacing: 1px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.var-card-info .veh-location span,
.var-card-info .veh-price span {
    float: left;
    font-size: 30px;
    line-height: 36px;
    color: #000000;
}

.var-card-info .veh-price span {
    font-size: 24px;
}

.var-card-info .veh-price .price-title {
    font-size: 20px;
    font-weight: 300;
    margin: 0 !important;
}

.var-card-info .veh-price .price-val {
    margin: 0 !important;
    background-color: #ff2f2f;
    color: #ffffff;
    display: inline-block;
    padding: 0 10px;
}

.var-card-info .veh-location div,
.var-card-info .veh-price div {
    margin-left: 34px;
    font-size: 30px;
    line-height: 36px;
    font-family: Roboto, Poppins, sans-serif;
    margin-bottom: 10px;
    color: #010207;
}

.var-card-info .veh-price div {
    margin-bottom: 5px;
}

.veh-card .view-details {
    margin-bottom: 35px;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.btn.btn-outlined {
    border: 2px solid #000000;
    color: #000000;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 6px;
    font-weight: 600;
    padding: 16px 20px;
    background-color: #fff;
}

.btn.btn-outlined:not(.no-hover):hover {
    color: #fff;
    background: #000000;
}

.life-style {
    border-bottom: 2px solid #000000;
}

.life-style label {
    display: block;
}

#ft_lifeStyle {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 20px;
    line-height: 22px;
    font-family: Roboto, Poppins, sans-serif;
    color: #010207;
    height: 56px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

#ft_lifeStyle_arrow {
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 28px;
    font-family: Font Awesome\ 5 Pro;
    color: #010207;
    font-weight: 400;
    z-index: 0;
}

.filter-container {
    border: 2px solid #000000;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.filter-container .header {
    padding: 25px;
    background: #000000;
    color: #F5F5F5;
    font-size: 18px;
    line-height: 24px;
}

.filter-container .header.sm {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-container .header span.fa {
    font-size: 32px;
    line-height: 0;
    margin: -5px 10px 0;
}

.filter-container .body {
    background-color: #F5F5F5;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.filter-container.show .body {
    overflow-y: auto;
}

.filter-container .body .filters {
    padding: 10px 25px 35px;
}

.filter.collapsible {
    border-bottom: 2px solid #000000;
    padding: 15px 0;
}

.filter .filter-collapse {
    margin-left: 20px;
}

.filter .filter-collapse .check-filters {
    margin-top: 10px;
}

.filter .budget {
    color: #010207;
    font-size: 18px;
    line-height: 32px;
    margin-top: 14px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0px 0 10px;
}

#filterPayment .budget {
    font-weight: 400;
    text-transform: none;
}

#filterPayment .title {
    display: flex;
    align-items: center;
}

#filterPayment .leggat-badge {
    margin-left: 20px;
}

.leggat-badge {
    border-radius: 3px;
    font-weight: 300;
}

.number_inputs label {
    color: #010207;
    font-size: 18px;
    line-height: 32px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 400;
    padding: 0;
    margin-bottom: 14px;
}

.number_inputs .sub-label {
    color: #010207;
    font-size: 14px;
    line-height: 16px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 400;
    padding: 0;
    display: block;
}

#sliderValue {
    margin-top: -6px;
}

.filter .budget .budget-slider {
    margin-top: 15px;
    padding: 0 11px;
}

#filterPayment .budget .budget-slider {
    padding: 0 8px;
}

.filter .coll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.filter .coll .title {
    color: #010207;
    border: none;
    font-size: 18px;
    line-height: 32px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    user-select: none;
}

.filter .coll .filter-icon {
    font-size: 28px;
    color: #010207;
    font-weight: 400;
    transform: rotate(0deg);
}

.filter .coll.collapsed .filter-icon {
    transform: rotate(180deg);
}

.filter .s-filter {
    color: #010207;
    border: none;
    border-bottom: 2px solid #000000;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    background-image: url(/assets/images/leggat/select-arrow.svg);
    background-repeat: no-repeat;
    background-position: right;
    width: 100%;
    font-size: 20px;
    line-height: 26px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 500;
    height: 60px;
    padding-left: 0;
    padding-right: 0;
}

.filter-buttons {
    margin-top: 50px;
}

.filter-buttons button.btn:last-child {
    margin-top: 10px;
}

.results-pagination {
    margin-top: 50px;
}

.results-pagination .pagination {
    display: flex;
    border: none;
}

.results-pagination .pagination .pagination-btn {
    flex: 1;
    display: flex;
    align-items: center;
}

.results-pagination .pagination li.prev-btn {
    margin-right: 30px;
}

.results-pagination .pagination li.next-btn {
    justify-content: flex-end;
}

.results-pagination .pagination>li:not(.pagination-btn) {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color .3s ease-in-out;
}

.results-pagination .pagination>li a {
    font-size: 22px;
    line-height: 29px;
    color: #000000;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 700;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
}

.results-pagination .pagination>li:not(.pagination-btn) a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.results-pagination .pagination>li.pagination-btn a {
    text-decoration: underline;
}

.results-pagination .pagination>li.disabled a {
    color: #6A6A6A;
    cursor: default;
    pointer-events: none;
}

.results-pagination .pagination>li.pagination-btn:not(.disabled) a {
    font-weight: 700;
}

.results-pagination .pagination>li.active {
    background-color: #000000;
}

.results-pagination .pagination>li.active a {
    background-color: transparent;
    color: #fff;
    font-size: 25px;
    line-height: 33px;
}

.results-pagination .pagination>li>a:hover,
.results-pagination .pagination>li>span:hover {
    color: #000000;
    background-color: transparent;
}

.results-pagination .pagination>li.active>a:hover,
.results-pagination .pagination>li.active>span:hover {
    color: #fff;
    background-color: transparent;
}

.results-pagination .pagination>li:not(.active):not(.disabled):not(.pagination-btn):hover {
    background-color: #DEE1E3;
}

#learMore {
    background: #000000;
    padding: 100px 0;
    margin-top: 110px;
    margin-bottom: 110px;
}

#learMore .btn.btn-outlined {
    font-size: 22px;
    padding: 20px;
}

#learMore .btn.btn-outlined:not(.no-hover):hover {
    border-color: #fff;
}

/*NOUI SLIDER OVERRIDE*/
.budget-slider .noUi-target {
    border: none;
    box-shadow: none;
    height: 9px;
}

.budget-slider .noUi-target {
    height: 5px;
}

.budget-slider .noUi-base,
.noUi-connects {
    background: #DDE0E2;
    border-radius: 10PX;
    width: 99%;
    margin: 0 auto;
}

.budget-slider .noUi-horizontal .noUi-handle {
    width: 25px;
    height: 25px;
    right: -13px;
    top: -8px;
    border-radius: 50%;
    border: 2px solid #253745;
}

.budget-slider .noUi-horizontal .noUi-handle {
    width: 18px;
    height: 18px;
    right: -9px;
    top: -7px;
}

.budget-slider .noUi-connect {
    background: #253745;
}

.budget-slider .noUi-handle:after,
.noUi-handle:before {
    display: none;
}

.initial-payment-info {
    font-family: Roboto, Poppins, sans-serif;
    font-size: 24px;
    line-height: 30px;
    font-weight: 300;
    color: #010207;
    margin-top: 30px;
}

a.lnk-disclaimer {
    font-weight: 400;
    text-decoration: underline;
    color: #010207 !important;
    white-space: nowrap;
    font-size: 0.9em;
}

/*#badgesBy4{
    display: none;
}*/

.carfax-logo {
    max-width: 200px;
    height: auto;
    margin-top: 15px;
}


#dvTabs {
    margin-bottom: 30px;
}

#dvTabs .nav-tabs {
    border: none;
    display: block;
    border-bottom: 1px solid #ccc;
}

#dvTabs .nav-tabs>li>a {
    font-family: Roboto, Poppins, sans-serif;
    color: #878787;
    font-weight: 300;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 28px;
    display: flex;
    align-items: center;
}

#dvTabs .nav-tabs>li.active>a,
.steps .nav-tabs>li.active>a:hover {
    border: none;
    color: #000000;
    font-weight: 500;
}

#dvTabs .nav-tabs>li.active>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
}


.ft_payment_collapse_content {
    padding: 20px 0 10px;
}

.pmnt_sign,
.pmnt_cent {
    font-size: 1em;
    line-height: 1.4em;
}

.pmnt_decimal {
    font-size: 2em;
    line-height: 1em;
}

.pmt_term_details {
    text-align: center;
}

.pmt_frequency {
    font-size: 0.8em;
}

.payments .row {
    margin: 0 -8px;
}

.payments [class^="col"] {
    padding: 0 8px;
}

.pmt_container {
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    background-color: #ffffff;
    color: #010207;
    text-align: center;
    cursor: pointer;
    margin-top: 16px;
    transition: all .2s;
}

.pmt_container.active {
    color: #ec1a2e;
    box-shadow: 0 1px 4px rgba(236, 26, 46, .80);
}

.pmnt_amount {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.disclaimer-text {
    font-size: 18px;
    line-height: 24px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 300;
    display: block;
    margin-top: 30px;
}

.number_inputs {
    margin-top: 30px;
}

.number_inputs .form-group input.form-control {
    height: 50px;
}

#ft_ddTerms {
    margin-top: 10px;
}

#mdDisclaimer .modal-title {
    color: #fff;
    font-size: 1.5em;
    font-weight: 300;
}

#mdDisclaimer .close {
    color: white;
    font-weight: 300;
}

/* Banner card - matches vehicle card sizing with centered image */
.dv_banner_card {
    /* Ensure banner card container doesn't exceed other cards' height */
    display: flex;
}

.banner_card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    height: 100%;
    width: 100%;
    border: none;
}

.banner_card img {
    width: auto;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    object-position: left center;
}

#carfireBanner {
    background-image: url(/assets/images/leggat/srp/srp_sell_or_trade_banner_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px 30px 30px;
    margin-bottom: 30px;
    background-color: #000000;
}

#carfireBanner.ev-srp {
    background-image: url(/assets/images/leggat/electric-vehicles/EV_SRP_Banner.jpg);
}

#carfireBanner .btn-teal {
    display: inline-block;
}

#cbTitle {
    font-family: Roboto, Poppins, sans-serif;
    font-size: 44px;
    line-height: 70px;
    color: #ec1a2e;
    font-weight: bold;
}

#cbDesc {
    font-family: Poppins, Roboto, sans-serif;
    font-size: 28px;
    line-height: 33px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
}

#cars {
    display: none;
}

/*NOUI SLIDER OVERRIDE END*/
/*CHECK BOX*/
/* Base for label styling */
.filter-checkbox:not(:checked),
.filter-checkbox:checked {
    position: absolute;
    left: 0;
    opacity: 0.01;
}

.filter-checkbox:not(:checked)+label,
.filter-checkbox:not(:checked)+label,
.filter-checkbox:checked+label,
.filter-checkbox:checked+label {
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    cursor: pointer;
    transition: all .3s;
    color: #010207;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 400;
    font-size: 18px;
    user-select: none;
}

.filter-checkbox:not(:checked)+label,
.filter-checkbox:checked+label {
    padding-left: 30px;
}

input.filter-checkbox {
    height: 20px;
}

/* checkbox aspect */
.filter-checkbox:not(:checked)+label:before,
.filter-checkbox:checked+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0px;
    width: 20px;
    height: 20px;
    border: 1px solid #000000;
    background: #FFF;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 #014A8D20;
    -webkit-transition: all .275s;
    transition: all .275s;
}

/* checked mark aspect */
.filter-checkbox:not(:checked)+label:after,
.filter-checkbox:checked+label:after {
    content: '\f00c';
    position: absolute;
    top: 12px;
    left: 3px;
    font-size: 22px;
    color: #000000;
    line-height: 0;
    font-family: 'Font Awesome 5 Pro';
    -webkit-transition: all .2s;
    transition: all .2s;
    transform-origin: 5px 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .37);
}

/* checked mark aspect changes */
.filter-checkbox:not(:checked)+label:after {
    opacity: 0;
    -webkit-transform: scale(0) rotate(45deg);
    transform: scale(0) rotate(45deg);
}

.filter-checkbox:checked+label:after {
    opacity: 1;
    -webkit-transform: scale(1) rotate(0);
    transform: scale(1) rotate(0);
}

/* Disabled checkbox */
.filter-checkbox:disabled:not(:checked)+label:before,
.filter-checkbox:disabled:checked+label:before {
    box-shadow: none;
    border-color: #bbb;
    background-color: #e9e9e9;
}

.filter-checkbox:disabled:checked+label:after {
    color: #777;
}

.filter-checkbox:disabled+label {
    color: #aaa;
}


/*CHECK BOX END*/
/*text filter*/

.text-filter {
    display: -ms-flexbox;
    /* IE10 */
    display: flex;
    width: 100%;
    margin-bottom: 15px;
    align-items: center;
    background: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 0;
}

.icon {
    padding: 10px;
    color: #555;
    min-width: 50px;
    text-align: center;
    font-size: 24px;
}

.input-field {
    width: 100%;
    padding: 10px 10px 10px 0;
    font-size: 24px;
    line-height: 38px;
    height: 50px;
    color: #555;
    border: none;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 300;
}


/*text filter end*/



.dv-certified-used img {
    width: 100%;
}

.dv-video-tour {
    position: absolute;
    right: 5px;
    bottom: 10px;
}

.btn.btn-outlined.btn-outlined-dark.btn-outlined-border-white.btn-video-tour {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 400;
    padding: 5px 8px;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    #ft_lifeStyle {
        width: calc(100% + 22px);
    }

    .life-style {
        overflow: hidden;
    }
}

@media only screen and (min-width: 577px) and (max-width: 1550px) {
    .result .sort .dropdown-menu {
        left: -10px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1450px) {
    #sideFilter {
        width: 270px;
    }

    #mainContent {
        margin-left: 310px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1450px) {
    .var-card-info {
        padding: 15px 20px 20px;
        min-height: 215px;
    }

    .var-card-info .veh-year-make {
        font-size: 22px;
        line-height: 37px;
    }

    .var-card-info .veh-model {
        font-size: 25px;
        line-height: 28px;
        margin-bottom: 10px;
    }

    .var-card-info .veh-location div,
    .var-card-info .veh-price div {
        margin-left: 28px;
        font-size: 22px;
        line-height: 30px;
    }

    .var-card-info .veh-location span,
    .var-card-info .veh-price span {
        font-size: 22px;
        line-height: 30px;
    }

    .var-card-info .veh-price span {
        font-size: 20px;
    }

    .var-card-info .veh-price .price-title {
        font-size: 16px;
        line-height: 30px;
    }

    .veh-card .view-details {
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .btn.btn-outlined {
        font-size: 16px;
        line-height: 20px;
        padding: 14px 18px;
    }
}

@media only screen and (max-width: 1250px) {
    #learMore .btn.btn-outlined {
        font-size: 20px;
    }
}

@media only screen and (max-width: 1199px) {
    .var-card-info .veh-year-make {
        font-size: 24px;
        line-height: 40px;
    }

    .var-card-info .veh-model {
        font-size: 25px;
        line-height: 33px;
        margin-bottom: 15px;
    }

    .var-card-info .veh-location span,
    .var-card-info .veh-price span {
        font-size: 24px;
        line-height: 32px;
    }

    .var-card-info .veh-location div,
    .var-card-info .veh-price div {
        margin-left: 32px;
        font-size: 24px;
        line-height: 32px;
    }

    .var-card-info .veh-price span {
        font-size: 20px;
    }

    .var-card-info .veh-price .price-title {
        font-size: 16px;
        line-height: 30px;
    }

    .btn.btn-outlined {
        font-size: 16px;
        line-height: 22px;
    }
}

@media only screen and (max-width: 991px) and (orientation: landscape) {
    .filter-container.show .body {
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }

    .filter-container .body {
        transition: none !important;
    }
}

@media only screen and (max-width: 991px) {
    #searchContent {
        margin-top: 50px;
    }

    #sideFilter {
        width: 100%;
        float: none;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 11;
    }

    .filter-container {
        border-radius: 0;
        border: none;
    }

    .filter-container .header {
        padding: 25px 15px;
    }

    .filter-container .body {
        height: 0;
        transition: all .3s ease;
        overflow: hidden;
    }

    .filter-container .body .filters {
        padding: 0 15px 25px;
    }

    .filter-container.show .body {
        height: 600px;
    }

    .filter-container.show .header {
        background: #ffb71b;
        color: #000000;
        font-weight: 600;
        transition: all .3s ease;
    }

    .filter-container.show .header span {
        transform: rotate(180deg);
    }

    .filter .s-filter,
    .life-style {
        box-shadow: 0 1px 0 #000000;
        border-bottom: 1px solid #9aa1a8;
    }

    .filter.collapsible {
        box-shadow: 0 1px 0 #000000;
        border-bottom: 1px solid #9aa1a8;
    }

    #mainContent {
        margin-left: 0;
    }

    .filter-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: -7px;
        margin-right: -7px;
    }

    .filter-buttons button.btn {
        margin: 0 7px;
    }

    .filter-buttons button.btn:last-child {
        margin-top: 0;
    }

    #learMore {
        padding: 50px 0;
        margin-top: 40px;
        margin-bottom: 50px;
    }

    #learMore .btn.btn-outlined:last-child {
        margin-top: 15px;
    }

    #carfireBanner {
        padding: 10px 20px 20px;
    }

    #cbTitle {
        font-size: 38px;
        line-height: 60px;
    }

    #cbDesc {
        font-size: 24px;
        line-height: 30px;
    }
}

@media only screen and (min-width: 451px) and (max-width: 767px) {
    /*#badgesBy4 {
        display: block;
    }
    #badgesBy3 {
        display: none;
    }*/
}

@media only screen and (max-width: 850px) {
    #cbTitle {
        font-size: 34px;
        line-height: 50px;
    }

    #cbDesc {
        font-size: 20px;
        line-height: 30px;
    }
}

@media only screen and (min-width: 768px) {
    .banner_card {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
}

@media only screen and (max-width: 767px) {
    #searchContent {
        margin-top: 40px;
    }

    .filter-container.show .body {
        height: 570px;
    }

    .filter-container .header {
        font-size: 16px;
        line-height: 20px;
    }

    .filter-container .header span.fa {
        font-size: 22px;
    }

    .filter.collapsible {
        padding: 12px 0;
    }

    .budget-slider .noUi-horizontal .noUi-handle {
        width: 22px;
        height: 22px;
        right: -11px;
        top: -7px;
    }

    .title {
        font-size: 32px;
        line-height: 34px;
    }

    .subtitle {
        font-size: 22px;
        line-height: 33px;
        margin-top: 10px;
    }

    .result .found,
    .result .sort {
        font-size: 22px;
        line-height: 33px;
    }

    .var-card-info {
        min-height: unset;
    }

    .var-card-info .veh-model {
        font-size: 25px;
        line-height: 33px;
        margin-bottom: 20px;
    }

    .var-card-info .veh-location div,
    .var-card-info .veh-price div {
        font-size: 30px;
        line-height: 36px;
    }

    .var-card-info .veh-location span,
    .var-card-info .veh-price span {
        font-size: 30px;
        line-height: 36px;
    }

    .var-card-info .veh-price span {
        font-size: 24px;
    }

    .var-card-info .veh-price .price-title {
        font-size: 20px;
        line-height: 36px;
    }

    .view-details .btn.btn-outlined {
        font-size: 18px;
        line-height: 20px;
    }

    #mdDisclaimer .modal-title {
        font-size: 1.3em;
    }

    /* Banner card overrides removed to allow JS sizing */
    
    .banner_card > div {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .banner_card img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #carfireBanner,
    #carfireBanner.ev-srp {
        background-image: none;
        padding: 10px 20px 0px;
        text-align: center;
    }

    #cars {
        display: block;
        width: 100%;
    }
}

@media only screen and (max-width: 576px) {
    .filter-container.show .body {
        height: 552px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .filter .s-filter {
        font-size: 14px;
        line-height: 20px;
        height: 56px;
        padding: 14px 0 12px;
    }

    .filter .coll .filter-icon,
    #ft_lifeStyle_arrow {
        font-size: 24px;
    }

    .filter-container .header span.fa {
        font-size: 20px;
        margin: -2px 5px 0;
    }

    .filter-buttons .btn.btn-outlined {
        padding: 14px 18px;
        font-size: 14px;
        line-height: 20px;
    }

    .result {
        margin-top: 30px;
    }

    .result .found {
        float: none;
    }

    .result .sort {
        text-align: left;
    }

    .veh-card .veh-card-title {
        font-size: 20px;
        line-height: 36px;
    }

    .var-card-info {
        padding: 15px;
        padding-bottom: 20px;
    }

    .var-card-info .veh-model {
        margin-bottom: 20px;
    }

    .results-pagination .pagination>li.active a {
        background-color: transparent;
        color: #fff;
        font-size: 16px;
        line-height: 18px;
    }

    .results-pagination .pagination>li:not(.pagination-btn) {
        width: 32px;
        height: 32px;
    }

    .results-pagination .pagination>li a {
        font-size: 16px;
        line-height: 22px;
        font-weight: 600;
    }

    .results-pagination {
        margin-top: 30px;
    }

    .veh-card .view-details {
        margin-bottom: 35px;
        padding: 0 15px;
    }

    #learMore .btn.btn-outlined {
        font-size: 16px;
        white-space: normal;
    }

    #cbTitle {
        font-size: 30px;
        line-height: 40px;
    }

    #cbDesc {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 10px;
    }

    #carfireBanner .btn-teal {
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    #cbTitle {
        font-size: 26px;
        line-height: 36px;
    }

    #cbDesc {
        font-size: 16px;
        line-height: 24px;
    }

    #carfireBanner .btn-teal {
        padding: 6px 18px;
    }
}

@media only screen and (max-width: 390px) {
    .results-pagination .pagination li.prev-btn {
        margin-right: 10px;
    }

    #cbTitle {
        font-size: 24px;
        line-height: 36px;
    }
}

@media only screen and (max-width: 350px) {
    .filter-container .header {
        font-size: 14px;
    }

    .filter-container .header span.fa {
        font-size: 18px;
        margin: -2px 0px 0;
    }

    .subtitle {
        margin-top: 5px;
    }

    .veh-card .veh-card-title {
        font-size: 18px;
        line-height: 34px;
    }

    .var-card-info .veh-year-make {
        font-size: 18px;
        line-height: 26px;
    }

    .var-card-info .veh-model {
        font-size: 25px;
        line-height: 33px;
        margin-bottom: 10px;
    }

    .veh-card .view-details {
        margin-bottom: 25px;
    }

    .results-pagination .pagination>li a,
    .results-pagination .pagination>li.active a {
        font-size: 12px;
        line-height: 16px;
    }

    .results-pagination .pagination>li:not(.pagination-btn) {
        width: 26px;
        height: 26px;
    }

    .view-details .btn.btn-outlined {
        padding: 14px 16px;
    }

    #learMore {
        padding: 30px 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #cbTitle {
        font-size: 22px;
        line-height: 36px;
    }

    #cbDesc {
        font-size: 15px;
        line-height: 20px;
    }

    #cars {
        margin-top: 10px;
    }
}


@media only screen and (max-width: 320px) {

    .subtitle,
    .result .found,
    .result .sort {
        font-size: 20px;
        line-height: 28px;
    }

    .title {
        font-size: 28px;
        line-height: 33px;
    }

    .var-card-info .veh-model {
        font-size: 25px;
        line-height: 33px;
    }

    .var-card-info .veh-location div,
    .var-card-info .veh-price div {
        font-size: 26px;
        line-height: 32px;
    }

    .var-card-info .veh-location span,
    .var-card-info .veh-price span {
        font-size: 28px;
        line-height: 32px;
    }

    .var-card-info .veh-price span {
        font-size: 24px;
    }

    .var-card-info .veh-price .price-title {
        font-size: 18px;
        line-height: 32px;
    }

    .view-details .btn.btn-outlined {
        font-size: 14px;
        line-height: 20px;
        padding: 14px 20px;
    }
}

/* ===========================================
   LEGGAT-STYLE VEHICLE CARDS
   =========================================== */

/* Card Container */
.veh-card-leggat {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.veh-card-leggat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.veh-card-leggat:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Card Header (New/Used/Demo label) */
.veh-card-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    background: #ffb71b;
    color: #000000;
    text-align: center;
    font-family: Roboto, 'Inter', sans-serif;
}

.veh-card-leggat.used .veh-card-header {
    background: #ec1a2e;
}

.veh-card-leggat.demo .veh-card-header {
    background: #000000;
    color: #ffffff;
}

/* Image Carousel */
.veh-card-carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
}

.veh-card-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    color: #0a2237;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
    padding: 0;
    padding-bottom: 2px;
}

.veh-card-leggat:hover .carousel-arrow {
    opacity: 1;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-arrow:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: #ffffff;
}

/* Video Tour Button inside carousel */
.veh-card-leggat .dv-video-tour {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
}

.veh-card-leggat .btn-video-tour {
    font-size: 11px;
    padding: 6px 10px;
}

/* CPO and On Order Badges */
.veh-card-leggat .dv-certified-used,
.veh-card-leggat .dv-certified-in-transit {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.veh-card-leggat .certified-used-img,
.veh-card-leggat .certified-in-transit-img {
    max-width: 80px;
    border-radius: 4px;
}

/* Card Info Section */
.veh-card-info {
    padding: 16px;
}

.veh-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a2237;
    line-height: 1.3;
    font-family: Roboto, 'Inter', sans-serif;
}

.veh-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
    font-family: Roboto, 'Inter', sans-serif;
}

/* Pricing Section */
.veh-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.veh-price-sale {
    font-size: 20px;
    font-weight: 600;
    color: #0a2237;
    font-family: Roboto, 'Inter', sans-serif;
}

.veh-price-sale .price-title {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
}

.veh-price-sale .price-val {
    background-color: transparent;
    color: #0a2237;
    padding: 0;
    display: inline;
}

.veh-price-msrp {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    font-family: Roboto, 'Inter', sans-serif;
}

.veh-price-msrp-strikethrough {
    text-decoration: line-through;
}

/* Payment Info */
.veh-payment {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.5;
    font-family: Roboto, 'Inter', sans-serif;
}

.veh-payment .lnk-disclaimer {
    font-size: 12px;
    color: #64748b !important;
    text-decoration: underline;
    cursor: pointer;
}

/* Ensure grid layout for new cards */
#results .row {
    margin-left: -8px;
    margin-right: -8px;
}

#results .row .dv-card {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 0;
    margin-left:auto;
    margin-right:auto;
    max-width: 500px;
}

/* Ensure card fills container */
#results .row .dv-card .veh-card-leggat {
    width: 100%;
}

/* Push payment info to bottom */
.veh-card-info {
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.veh-payment {
    margin-top: auto;
}

/* ===========================================
   VEHICLE BADGES (SRP Card Badges)
   =========================================== */

/* Badge Container - fixed height to ensure alignment */
.veh-badge-container {
    min-height: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 6px;
}

/* Base Badge Style */
.veh-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: Roboto, 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

/* On Special Badge (New vehicles) - Gold/Yellow theme */
.veh-badge-special {
    background-color: #ffb71b;
    color: #253746;
}

/* Price Drop Badge (Used vehicles) - Red/Urgent theme */
.veh-badge-pricedrop {
    background-color: #ec1a2e;
    color: #ffffff;
}

/* Demo Badge - Dark theme */
.veh-badge-demo {
    background-color: #253746;
    color: #ffffff;
}

/* Lease Badge - Blue theme */
.veh-badge-lease {
    background-color: #1976d2;
    color: #ffffff;
}

/* Hybrid Badge - Green theme */
.veh-badge-hybrid {
    background-color: #4caf50;
    color: #ffffff;
}

/* Electric Badge - Teal/Electric theme */
.veh-badge-electric {
    background-color: #00bcd4;
    color: #ffffff;
}

/* Mobile Responsive - Leggat Cards */
@media (max-width: 991px) {
    .veh-card-carousel {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 767px) {
    .veh-card-leggat {
        margin-top: 12px;
    }

    .veh-card-carousel {
        aspect-ratio: 4 / 3;
    }

    /* Mobile: Larger touch target for carousel arrows */
    .carousel-arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
        font-size: 22px;
        /* Extend touch area beyond visible button */
        padding: 0;
        margin: 0;
    }
    
    /* Extend touch target area using pseudo-element */
    .carousel-arrow::before {
        content: '';
        position: absolute;
        top: -12px;
        bottom: -12px;
        left: -12px;
        right: -12px;
    }
    
    /* Position arrows closer to edges for easier thumb access */
    .carousel-prev {
        left: 4px;
    }
    
    .carousel-next {
        right: 4px;
    }

    .veh-card-info {
        padding: 12px;
    }

    .veh-title {
        font-size: 16px;
    }

    .veh-subtitle {
        font-size: 13px;
    }

    .veh-price-sale {
        font-size: 18px;
    }

    .veh-payment {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .veh-card-header {
        font-size: 11px;
        padding: 6px 12px;
    }

    .veh-card-info {
        padding: 10px;
    }

    .veh-title {
        font-size: 15px;
    }
}

/* Color indicator circle for exterior colour filter */
.color-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #888;
    flex-shrink: 0;
}

/* Ensure label is flex container for proper alignment */
#filterExtColour .check label {
    display: flex;
    align-items: center;
}

.color-label-text {
    flex: 1;
}

/* ============================================
   CARVANA-STYLE MODIFICATIONS
   ============================================ */

/* Hide the NEW/USED VEHICLE header bar */
.veh-card-header {
    display: none !important;
}

/* Carvana-style payment display */
.veh-payment {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.payment-amount {
    font-size: 18px;
    font-weight: 600;
    color: #0a2237;
}

.payment-freq {
    font-size: 16px;
    font-weight: 400;
    color: #0a2237;
}

.payment-estimated {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}

.payment-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    cursor: pointer;
    margin-left: 4px;
    transition: background-color 0.2s ease;
    border: none;
    padding: 0;
    line-height: 1;
}

.payment-info-icon:hover {
    background: #d1d5db;
    color: #374151;
}

/* Mobile adjustments for payment display */
@media (max-width: 767px) {
    .payment-amount {
        font-size: 16px;
    }

    .payment-freq {
        font-size: 14px;
    }

    .payment-estimated {
        font-size: 11px;
    }
}

/* Hide separate Payment filter - now integrated into Payment & Price */
#filterPayment {
    display: none !important;
}

/* ========================================
   Carvana-style Make & Model Combined Filter
   ======================================== */

/* Make item container */
.make-item {
    margin-bottom: 8px;
}

/* Make checkbox row */
.make-item .make-check {
    margin-bottom: 0;
}

/* Models container - hidden by default, shown when make is checked */
.models-container {
    max-height: 0;
    overflow: hidden;
    margin-left: 28px;
    padding-left: 12px;
    transition: max-height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.models-container.show {
    max-height: 2000px;
    margin-top: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow: visible;
}

/* Models header */
.models-header {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

/* Model checkbox rows */
.models-list .model-check {
    margin-bottom: 4px;
}

.models-list .model-check label {
    font-size: 14px;
}

/* Checkbox styling for make & model */
.make-checkbox+label,
.model-checkbox+label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Hover effect for make items */
.make-item:hover>.make-check {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

/* Visual indicator when make has models selected - use ::before on a sibling element to avoid conflict with checkbox ::after */
.make-item:has(.model-checkbox:checked)>.make-check {
    position: relative;
}

.make-item:has(.model-checkbox:checked)>.make-check::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

/* Mobile adjustments for Make & Model filter */
@media (max-width: 991px) {
    .models-container {
        margin-left: 20px;
        padding-left: 10px;
        border-left: none;
    }

    .models-header {
        font-size: 11px;
    }

    .models-list .model-check label {
        font-size: 13px;
    }
}

/* ============================================
   FILTER COUNT STYLING
   ============================================ */
.filter-count {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    margin-left: 4px;
}

.make-check label .filter-count,
.model-check label .filter-count {
    color: #9ca3af;
    font-weight: 400;
}

/* Slightly smaller count on mobile */
@media (max-width: 991px) {
    .filter-count {
        font-size: 12px;
    }
}

/* Compact button style for narrow banner cards */
.banner_card.compact-btn .view-details .btn.btn-outlined {
    text-align: center;
    justify-content: center;
}

.banner_card.compact-btn .view-details .btn.btn-outlined::after {
    display: none !important;
    content: none !important;
}

.banner_card.compact-btn .view-details .btn.btn-outlined i,
.banner_card.compact-btn .view-details .btn.btn-outlined span.fa {
    display: none !important;
}

/* Carfax badge fix for SRP */
.carfax-badge img {
    height: auto !important;
}

/* SEO H1 Title styling - matches old Tadvantage site pattern */
.srp-h1-title {
    font-family: Roboto, Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #010207;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .srp-h1-title {
        font-size: 20px;
        margin: 0 0 10px 0;
    }
}

@media (max-width: 576px) {
    .srp-h1-title {
        font-size: 18px;
    }
}