/* Minification failed. Returning unminified contents.
(1818,31): run-time error CSS1030: Expected identifier, found '.'
(1818,61): run-time error CSS1031: Expected selector, found ')'
(1818,61): run-time error CSS1025: Expected comma or open brace, found ')'
(1825,31): run-time error CSS1030: Expected identifier, found '.'
(1825,61): run-time error CSS1031: Expected selector, found ')'
(1825,61): run-time error CSS1025: Expected comma or open brace, found ')'
(2051,18): run-time error CSS1030: Expected identifier, found '.'
(2051,35): run-time error CSS1031: Expected selector, found ')'
(2051,35): run-time error CSS1025: Expected comma or open brace, found ')'
(2120,28): run-time error CSS1030: Expected identifier, found '.'
(2120,48): run-time error CSS1031: Expected selector, found ')'
(2120,48): run-time error CSS1025: Expected comma or open brace, found ')'
(2125,28): run-time error CSS1030: Expected identifier, found '.'
(2125,48): run-time error CSS1031: Expected selector, found ')'
(2125,48): run-time error CSS1025: Expected comma or open brace, found ')'
(2136,28): run-time error CSS1030: Expected identifier, found '.'
(2136,48): run-time error CSS1031: Expected selector, found ')'
(2136,48): run-time error CSS1025: Expected comma or open brace, found ')'
(2143,28): run-time error CSS1030: Expected identifier, found '.'
(2143,48): run-time error CSS1031: Expected selector, found ')'
(2143,48): run-time error CSS1025: Expected comma or open brace, found ')'
(2147,28): run-time error CSS1030: Expected identifier, found '.'
(2147,43): run-time error CSS1031: Expected selector, found ')'
(2147,43): run-time error CSS1025: Expected comma or open brace, found ')'
(2154,28): run-time error CSS1030: Expected identifier, found '.'
(2154,48): run-time error CSS1031: Expected selector, found ')'
(2154,48): run-time error CSS1025: Expected comma or open brace, found ')'
(2161,28): run-time error CSS1030: Expected identifier, found '.'
(2161,44): run-time error CSS1031: Expected selector, found ')'
(2161,44): run-time error CSS1025: Expected comma or open brace, found ')'
(2165,28): run-time error CSS1030: Expected identifier, found '.'
(2165,44): run-time error CSS1031: Expected selector, found ')'
(2165,44): run-time error CSS1025: Expected comma or open brace, found ')'
(2176,28): run-time error CSS1030: Expected identifier, found '.'
(2176,44): run-time error CSS1031: Expected selector, found ')'
(2176,44): run-time error CSS1025: Expected comma or open brace, found ')'
(2182,33): run-time error CSS1030: Expected identifier, found '.'
(2182,34): run-time error CSS1030: Expected identifier, found 'veh-card-leggat'
(2182,49): run-time error CSS1031: Expected selector, found ')'
(2182,49): run-time error CSS1025: Expected comma or open brace, found ')'
(2635,16): run-time error CSS1030: Expected identifier, found '.'
(2635,39): run-time error CSS1031: Expected selector, found ')'
(2635,39): run-time error CSS1025: Expected comma or open brace, found ')'
(2639,16): run-time error CSS1030: Expected identifier, found '.'
(2639,39): run-time error CSS1031: Expected selector, found ')'
(2639,39): run-time error CSS1025: Expected comma or open brace, found ')'
(2717,15): run-time error CSS1030: Expected identifier, found '.'
(2717,40): run-time error CSS1031: Expected selector, found ')'
(2717,40): run-time error CSS1025: Expected comma or open brace, found ')'
(2721,15): run-time error CSS1030: Expected identifier, found '.'
(2721,40): run-time error CSS1031: Expected selector, found ')'
(2721,40): run-time error CSS1025: Expected comma or open brace, found ')'
(2908,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(2944,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(2954,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(2966,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(3024,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(3031,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color-dark'
(3036,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(3042,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(3059,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(3060,30): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(3071,22): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(6960,46): run-time error CSS1039: Token not allowed after unary operator: '-oem-color'
(6960,76): run-time error CSS1039: Token not allowed after unary operator: '-oem-color-dark'
(7064,24): run-time error CSS1039: Token not allowed after unary operator: '-oem-color'
(7974,22): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(8017,33): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(8054,24): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(8133,22): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(8433,28): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(8489,24): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(8497,17): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
 */
/* 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;
}

/* Two-tier cash/finance pricing on SRP cards */
.cash-fee-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    width: 100%;
}
.cfp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    line-height: 1.4;
}
.cfp-label {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-right: 8px;
    white-space: nowrap;
}
.cfp-value {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
}
.cfp-discount {
    padding-bottom: 6px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 4px;
}
.cfp-finance .cfp-value {
    font-weight: 700;
    font-size: 25px;
}
.cfp-note {
    font-size: 12px;
    color: #555;
    text-align: right;
    margin-top: 2px;
}
.price-hst {
    font-size: 12px;
    font-weight: 400;
    color: #555;
}

.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: center;
    overflow: hidden;
    height: 100%;
    width: 100%;
    border: none;
    background-color: #000000;
}

.banner_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#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;
}

.text-filter .icon {
    padding: 10px;
    color: #555;
    min-width: 50px;
    text-align: center;
    font-size: 24px;
}

.text-filter .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: contain;
    }

    #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 - now styled by parent .dv-card */
.veh-card-leggat {
    display: block;
    background: #ffffff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: none; /* Transition handled by parent .dv-card */
    width: 100%;
    cursor: pointer;
}

.veh-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.veh-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Standalone card styling (when not in .dv-card context) */
.veh-card-leggat:not(#results .row .dv-card .veh-card-leggat) {
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.veh-card-leggat:not(#results .row .dv-card .veh-card-leggat):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.veh-card-leggat:hover {
    text-decoration: none;
    color: inherit;
}

.veh-card-leggat:focus {
    outline: none;
}

/* 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;
}

.kia-cpo-logo {
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 6px 0;
}

.kia-cpo-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 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;
    flex-direction: column;
    margin-top: 14px;
}
.veh-price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.veh-price-sale {
    font-size: 28px;
    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;
}

/* +HST & Lic disclaimer text */
.veh-price-tax {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    font-family: Roboto, 'Inter', sans-serif;
    margin-top: 0;
}

.veh-pricing:has(.cash-fee-pricing) > .veh-price-tax {
    display: none;
}

.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;
}

/* OEM Incentive line items on SRP card */
.veh-incentives {
    margin-top: 4px;
    font-size: 12px;
    font-family: Roboto, 'Inter', sans-serif;
    line-height: 1.4;
}
.veh-incentive-item {
    display: block;
    color: #16a34a;
}
.veh-incentive-label {
    font-weight: 400;
}
.veh-incentive-amount {
    font-weight: 600;
}

/* 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;
    display: flex;
    flex-wrap: wrap;
}

#results .row .dv-card {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 0;
    margin-left:auto;
    margin-right:auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

/* Vehicle cards with dealer location - wrapper gets card styling */
#results .row .dv-card:has(.veh-dealer-location) {
    margin-top: 16px;
}

/* Inner wrapper for the visual card (contains both anchor and location) */
#results .row .dv-card:has(.veh-dealer-location) > .veh-card-leggat {
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

#results .row .dv-card:has(.veh-dealer-location) > .veh-dealer-location {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

#results .row .dv-card:has(.veh-dealer-location):has(.veh-pistonflow) > .veh-dealer-location {
    border-radius: 0;
}

#results .row .dv-card:has(.veh-pistonflow) > .veh-pistonflow {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

#results .row .dv-card:has(.veh-dealer-location):hover > .veh-card-leggat,
#results .row .dv-card:has(.veh-dealer-location):hover > .veh-dealer-location,
#results .row .dv-card:has(.veh-pistonflow):hover > .veh-pistonflow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Vehicle cards without dealer location */
#results .row .dv-card:has(.veh-card-leggat):not(:has(.veh-dealer-location)) {
    margin-top: 16px;
}

#results .row .dv-card:has(.veh-card-leggat):not(:has(.veh-dealer-location)) > .veh-card-leggat {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#results .row .dv-card:has(.veh-card-leggat):not(:has(.veh-dealer-location)):hover > .veh-card-leggat {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Non-vehicle cards (like trade-in ads) - match card height */
#results .row .dv-card:not(:has(.veh-card-leggat)) {
    margin-top: 16px;
}

/* Banner card styling */
#results .row .dv_banner_card .banner_card {
    display: flex;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0;
}

#results .row .dv_banner_card .banner_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 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;
}

/* Sold Badge - Bold Red/Urgent standout */
.veh-badge-sold {
    background-color: #b71c1c;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 12px;
}

/* 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;
}

/* Commercial Badge - Electric Blue theme */
.veh-badge-commercial {
    background-color: #7df9ff;
    color: #253746;
}

/* 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;
}

/* Made In Canada Badge - Red theme with maple leaf */
.veh-badge-canada {
    background-color: #d80621;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.veh-badge-canada .maple-leaf-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: -4px 0;
}

/* EVAP (Electric Vehicle Affordability Program) Badge - Green government theme */
.veh-badge-evap {
    background-color: #2e7d32;
    color: #ffffff;
}

/* ===========================================
   OEM OFFER BADGES (SRP Card Offer Badges)
   =========================================== */

/* Offer Type Badge - Top left corner of carousel (nested in corner) */
.veh-offer-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #1a3b5d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px 6px 8px;
    border-radius: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.veh-offer-badge .fa-tag {
    font-size: 10px;
}

/* Bonus Badge - Bottom right of carousel (white bg, OEM text color) */
.veh-bonus-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: #fff;
    color: #1a3b5d;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.veh-bonus-badge .fa-check {
    font-size: 10px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    .veh-offer-badge {
        font-size: 9px;
        padding: 4px 8px 4px 6px;
    }

    .veh-bonus-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* 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: 25px;
    }

    .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;
    }
}

/* ============================================
   CASCADING SUV BODY STYLE FILTER
   ============================================ */
.suv-item {
    margin-bottom: 8px;
}

.suv-item .suv-parent-check {
    margin-bottom: 0;
}

.suv-subtypes-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;
}

.suv-subtypes-container.show {
    max-height: 500px;
    margin-top: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow: visible;
}

.suv-subtypes-list .suv-sub-check {
    margin-bottom: 4px;
}

.suv-subtypes-list .suv-sub-check label {
    font-size: 14px;
}

.suv-parent-checkbox+label,
.suv-sub-checkbox+label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.suv-item:hover>.suv-parent-check {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.suv-item:has(.suv-sub-checkbox:checked)>.suv-parent-check {
    position: relative;
}

.suv-item:has(.suv-sub-checkbox:checked)>.suv-parent-check::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .suv-subtypes-container {
        margin-left: 20px;
        padding-left: 10px;
    }

    .suv-subtypes-list .suv-sub-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;
}

/* === Carfax Badges (server-rendered from DB) === */
.carfax-badges {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0;
    padding: 4px 3px;
    overflow: hidden;
}

.carfax-badges a {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    border: none;
    overflow: hidden;
    max-width: 100%;
}

.carfax-badges a:hover {
    opacity: 0.85;
}

.carfax-badges .carfax-logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 1;
    min-width: 0;
}

.carfax-badges .carfax-badge-img {
    height: 40px;
    width: auto;
    flex-shrink: 1;
    min-width: 0;
}

.carfax-badges .carfax-single-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
}

/* Hover mode */
.carfax-hover .carfax-hover-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.carfax-hover .carfax-hover-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.carfax-hover .carfax-hover-content img {
    height: 36px;
    width: auto;
}

.carfax-hover .carfax-hover-trigger:hover .carfax-hover-content {
    display: block;
}

/* SRP Header Row - Title and Sort Side by Side */
.srp-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

/* 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;
    padding: 0;
    line-height: 1.3;
}

/* Sort Dropdown Styling */
.srp-sort-wrapper {
    position: relative;
}

.srp-sort-btn {
    background: transparent;
    border: none;
    font-family: Roboto, Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #010207;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.srp-sort-btn:hover,
.srp-sort-btn:focus,
.srp-sort-btn:active,
.srp-sort-btn:visited {
    color: var(--primary-color, #c00);
    outline: none;
    text-decoration: none !important;
}

.srp-sort-btn .fa {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.srp-sort-wrapper.open .srp-sort-btn .fa {
    transform: rotate(180deg);
}

.srp-sort-menu {
    min-width: 200px;
    padding: 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 5px;
}

.srp-sort-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.srp-sort-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color, #c00);
}

.srp-sort-menu li a .fa {
    width: 16px;
    text-align: center;
    color: #666;
}

.srp-sort-menu li a:hover .fa {
    color: var(--primary-color, #c00);
}

/* Sort Container - holds dropdown and clear button */
.srp-sort-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sort Active State - shows when a sort is applied */
.srp-sort-wrapper.sort-active .srp-sort-btn {
    color: var(--primary-color, #c00);
    font-weight: 600;
}

/* Sort Clear Button */
.srp-sort-clear {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srp-sort-clear:hover {
    color: #dc3545;
}

@media (max-width: 991px) {
    .srp-h1-title {
        font-size: 20px;
    }
    
    .srp-header-row {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .srp-h1-title {
        font-size: 18px;
    }
    
    .srp-sort-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* ===========================================
   DEALER LOCATION LINK
   =========================================== */

.veh-dealer-location {
    padding: 10px 16px;
    background: #ffffff;
}

.veh-dealer-location a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color, #c00);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.veh-dealer-location a:hover,
.veh-dealer-location a:focus {
    color: var(--primary-color-dark, #990000);
    text-decoration: none !important;
}

.veh-dealer-location a:visited {
    color: var(--primary-color, #c00);
    text-decoration: none !important;
}

.veh-dealer-location a .fa-map-marker {
    font-size: 14px;
    color: var(--primary-color, #c00);
}

.veh-pistonflow {
    padding: 10px 16px;
    background: #ffffff;
    text-align: center;
}

.veh-pistonflow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: transparent;
    color: var(--primary-color, #46c3b2);
    border: 1.5px solid var(--primary-color, #46c3b2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: Roboto, 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.veh-pistonflow-btn:hover,
.veh-pistonflow-btn:focus {
    background: var(--primary-color, #46c3b2);
    color: #ffffff;
    outline: none;
}

.veh-pistonflow-btn .fab {
    font-size: 15px;
}
/* ============================================
   2026 FILTER UI OVERRIDES
   ============================================ */

/* NOTE: CSS Variables removed for .NET 4 bundling compatibility.
   Values hardcoded:
   Primary: #ec1a2e
   Primary Hover: #3fa8a0
   Bg: #ffffff
   Border: #e5e7eb
   Text: #1f2937
   Text Light: #6b7280
   Chip Bg: #e6f7f5
   Chip Text: #000000
*/

/* ============================================
   SIDEBAR CONTAINER
   ============================================ */
#sideFilter {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.filter-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.filter-container .header {
    padding: 16px 20px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    border-bottom: 1px solid #e5e7eb;
}

.filter-container .header.sm {
    background: #ffffff;
    color: #1f2937;
}

.filter-container .body {
    background-color: #ffffff;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
}

.filter-container .body .filters {
    padding: 0;
}

/* ============================================
   APPLIED FILTERS SECTION
   ============================================ */
.applied-filters {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.applied-filters-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.applied-filters-header .filter-count {
    background: #ec1a2e;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.clear-all-filters {
    color: #ec1a2e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}

.clear-all-filters:hover {
    color: #e00e22;
    text-decoration: underline;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f7f5;
    color: #000000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #ff99b8;
}

.filter-chip .remove-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(3, 105, 161, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-chip .remove-chip:hover {
    background: rgba(3, 105, 161, 0.4);
}

.filter-chip .remove-chip svg {
    width: 10px;
    height: 10px;
}

/* Hide applied filters when empty */
.applied-filters:empty,
.applied-filters.hidden {
    display: none;
}

/* ============================================
   COLLAPSIBLE FILTER SECTIONS
   ============================================ */
.filter.collapsible {
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.filter .coll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 20px 20px;
    transition: background-color 0.2s ease;
    min-height: 56px;
}

.filter .coll:hover {
    background-color: #f9fafb;
}

.filter .coll .title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    line-height: 1.4;
}

.filter .coll .filter-icon {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.filter .coll.collapsed .filter-icon {
    transform: rotate(180deg);
}

.filter .filter-collapse {
    margin-left: 0;
    padding: 0 20px 16px;
}

.filter .filter-collapse .check-filters {
    margin-top: 0;
    /* Removed max-height and overflow to prevent individual scrollbars */
    max-height: none;
    overflow-y: visible;
    padding-bottom: 2px;
}

/* ============================================
   CUSTOM CHECKBOX STYLING
   ============================================ */
.filter .check {
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.filter .check input[type="checkbox"],
.filter .check input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.filter .check label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    font-weight: 400;
    line-height: 1.4;
    padding-left: 28px;
    position: relative;
    user-select: none;
    transition: color 0.2s ease;
}

.filter .check label::before {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s ease;
}

.filter .check input[type="radio"]+label::before {
    border-radius: 50%;
}

.filter .check label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter .check input[type="radio"]+label::after {
    width: 8px;
    height: 8px;
    top: 9px;
    border: none;
    border-radius: 50%;
    background: white;
    left: 5px;
    transform: translateY(-50%);
}

.filter .check input:checked+label::before {
    background: #ec1a2e;
    border-color: #ec1a2e;
}

.filter .check input:checked+label::after {
    opacity: 1;
}

.filter .check input:checked+label {
    color: #1f2937;
    font-weight: 500;
}

.filter .check:hover label::before {
    border-color: #ec1a2e;
}

/* ============================================
   BODY STYLE ICONS
   ============================================ */
.filter-bodystyle .check {
    padding: 10px 0;
}

.filter-bodystyle .check label {
    padding-left: 32px;
}

.filter-bodystyle .check .bodystyle-icon {
    width: 40px;
    height: 24px;
    margin-right: 10px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.2s ease;
}

.filter-bodystyle .check input:checked+label .bodystyle-icon,
.filter-bodystyle .check:hover .bodystyle-icon {
    opacity: 1;
    filter: grayscale(0%);
}

/* SVG body style icons inline */
.bodystyle-icon-sedan {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M58 20h-2l-4-8H12l-4 8H6a2 2 0 00-2 2v4h4a4 4 0 108 0h28a4 4 0 108 0h6v-4a2 2 0 00-2-2zM12 26a2 2 0 110-4 2 2 0 010 4zm40 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-suv {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 16H42l-6-8H14l-4 8H8a4 4 0 00-4 4v6h4a5 5 0 1010 0h22a5 5 0 1010 0h6v-6a4 4 0 00-4-4zM13 28a3 3 0 110-6 3 3 0 010 6zm38 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-truck {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M58 18H36V8H10l-4 10H4a2 2 0 00-2 2v6h4a5 5 0 1010 0h28a5 5 0 1010 0h6v-6a2 2 0 00-2-2zM11 28a3 3 0 110-6 3 3 0 010 6zm42 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-coupe {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 18l-8-8H18l-8 10H6a2 2 0 00-2 2v4h4a4 4 0 108 0h28a4 4 0 108 0h6v-4a2 2 0 00-2-2h-2zM12 26a2 2 0 110-4 2 2 0 010 4zm40 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-van {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 12H42l-4-6H10a4 4 0 00-4 4v14h4a5 5 0 1010 0h20a5 5 0 1010 0h8a2 2 0 002-2v-8a2 2 0 00-2-2h-2zM15 28a3 3 0 110-6 3 3 0 010 6zm34 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-crossover {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M54 16H44l-6-8H16l-6 10H8a3 3 0 00-3 3v5h4a5 5 0 1010 0h22a5 5 0 1010 0h6v-5a3 3 0 00-3-3zM14 28a3 3 0 110-6 3 3 0 010 6zm36 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-wagon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 14H48l-4-6H14l-4 8H6a2 2 0 00-2 2v6h4a4 4 0 108 0h28a4 4 0 108 0h6v-8a2 2 0 00-2-2zM12 26a2 2 0 110-4 2 2 0 010 4zm40 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-hatchback {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M52 16l-4-6H16l-6 8H8a2 2 0 00-2 2v4h4a4 4 0 108 0h24a4 4 0 108 0h6v-4a2 2 0 00-2-2h-2zM14 26a2 2 0 110-4 2 2 0 010 4zm36 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-convertible {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 18l-8-6H20l-10 8H8a2 2 0 00-2 2v2h4a4 4 0 108 0h28a4 4 0 108 0h6v-2a2 2 0 00-2-2-2 2 0 01-2-2zM14 26a2 2 0 110-4 2 2 0 010 4zm38 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ============================================
   COLOR SWATCHES FOR EXTERIOR/INTERIOR COLOR
   ============================================ */
.filter-color .check {
    padding: 8px 0;
}

.filter-color .check label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
    margin-left: auto;
}

/* Common color swatches */
.color-swatch-black {
    background: #1f2937;
}

.color-swatch-white {
    background: #ffffff;
    border-color: #d1d5db;
}

.color-swatch-silver {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
}

.color-swatch-grey,
.color-swatch-gray {
    background: #6b7280;
}

.color-swatch-red {
    background: #dc2626;
}

.color-swatch-blue {
    background: #2563eb;
}

.color-swatch-brown {
    background: #78350f;
}

.color-swatch-green {
    background: #16a34a;
}

.color-swatch-beige {
    background: #d4c4a8;
}

.color-swatch-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.color-swatch-orange {
    background: #ea580c;
}

.color-swatch-yellow {
    background: #facc15;
}

.color-swatch-purple {
    background: #7c3aed;
}

.color-swatch-tan {
    background: #c9a66b;
}

.color-swatch-maroon {
    background: #7f1d1d;
}

.color-swatch-burgundy {
    background: #7f1d1d;
}

.color-swatch-navy {
    background: #1e3a5f;
}

.color-swatch-charcoal {
    background: #374151;
}

/* ============================================
   RANGE SLIDER STYLING
   ============================================ */
.filter .budget {
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    margin-top: 8px;
    padding: 0;
}

.filter .budget .budget-slider {
    margin-top: 12px;
    padding: 0;
}

/* Slider value inputs */
.slider-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.slider-input-group {
    flex: 1;
}

.slider-input-group label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.slider-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    text-align: center;
    background-color: #fff;
}

.slider-input-group input:focus {
    outline: none;
    border-color: #ec1a2e;
    box-shadow: 0 0 0 3px rgba(236, 26, 46, 0.1);
}

/* noUiSlider Override for Carvana style */
.budget-slider .noUi-target {
    border: none;
    box-shadow: none;
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
}

.budget-slider .noUi-base,
.budget-slider .noUi-connects {
    background: #e5e7eb;
    border-radius: 2px;
}

.budget-slider .noUi-connect {
    background: #ec1a2e;
}

.budget-slider .noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -8px;
    border-radius: 50%;
    border: 2px solid #ec1a2e;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: grab;
}

.budget-slider .noUi-horizontal .noUi-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 8px rgba(0, 168, 225, 0.3);
}

.budget-slider .noUi-handle:after,
.budget-slider .noUi-handle:before {
    display: none;
}

/* ============================================
   SPECIALS TOGGLE SWITCH
   ============================================ */
.filter-toggle {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    min-height: 56px;
}

.filter-toggle .toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    font-family: Roboto, Poppins, sans-serif;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #ec1a2e;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-buttons {
    padding: 16px 20px;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    gap: 10px;
}

.filter-buttons .btn {
    flex: 1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.filter-buttons .btn-primary,
.filter-buttons .btn-apply {
    background: #ec1a2e;
    border-color: #ec1a2e;
    color: white;
}

.filter-buttons .btn-primary:hover,
.filter-buttons .btn-apply:hover {
    background: #e00e22;
    border-color: #e00e22;
}

.filter-buttons .btn-outlined,
.filter-buttons .btn-clear {
    background: white;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.filter-buttons .btn-outlined:hover,
.filter-buttons .btn-clear:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ============================================
   MILEAGE (KM) FILTER INPUTS
   ============================================ */
.mileage-inputs {
    display: flex;
    gap: 12px;
    padding: 0 0 8px;
}

.mileage-input-group {
    flex: 1;
}

.mileage-input-group label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.mileage-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

/* ============================================
   MOBILE FILTER TOGGLE BUTTON
   ============================================ */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 991px) {
    .search-bar-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-bar-wrapper .text-filter {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: #f0f5fa;
        color: #6b7280;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
        position: relative;
    }

    .mobile-filter-toggle:hover {
        background: #e5ebf1;
        color: #1f2937;
    }

    .mobile-filter-toggle i {
        font-size: 18px;
    }

    .mobile-filter-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #ec1a2e;
        color: white;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
    }

    .mobile-filter-count.hidden {
        display: none;
    }

    .text-filter .input-field {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .mobile-filter-overlay {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    #sideFilter {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        max-height: none;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: white;
    }

    #sideFilter.show {
        transform: translateX(0);
    }

    .filter-container {
        border: none;
        border-radius: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
        height: 100%;
    }

    .filter-container .body {
        height: auto !important;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-filter-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile filter header with close */
    .filter-container .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .filter-close-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: #1f2937;
        font-size: 24px;
    }

    /* Hide sticky header when mobile filter is open */
    body.mobile-filter-open .header,
    body.mobile-filter-open .header--mobile,
    body.mobile-filter-open .header__wrap,
    body.mobile-filter-open .header__banner,
    body.mobile-filter-open .search-bar-wrapper {
        display: none !important;
    }
}

/* Mobile Apply Filters Button Footer */
.mobile-filter-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-apply-filters {
    width: 100%;
    padding: 14px 24px;
    background: #eb0a1e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-apply-filters:hover,
.btn-apply-filters:focus {
    background: #c00818;
}

@media (max-width: 767px) {
    #sideFilter {
        max-width: 100%;
    }
}

/* ============================================
   SEARCH BAR WRAPPER (Carvana-style)
   ============================================ */
.search-bar-wrapper {
    background: #f0f1f3;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: sticky;
    top: 16px;
    z-index: 100;
    transition: all 0.3s ease;
}

.search-bar-wrapper.is-sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    background-color: #e00e22;
    top: 0;
    z-index: 1050;
}

.search-bar-wrapper .text-filter {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 4px 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-bar-wrapper .text-filter .icon {
    color: #6b7280;
    font-size: 18px;
    padding: 10px 12px;
    min-width: 44px;
}

.search-bar-wrapper .text-filter .search-icon-btn {
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-bar-wrapper .text-filter .search-icon-btn:hover {
    color: #1f2937;
}

.search-bar-wrapper .text-filter .input-field {
    border: none;
    font-size: 16px;
    line-height: 24px;
    height: 40px;
    padding: 8px 12px 8px 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.search-bar-wrapper .text-filter .input-field:focus {
    outline: none;
    box-shadow: none;
}

.search-bar-wrapper .text-filter .input-field::placeholder {
    color: #9ca3af;
}

/* ============================================
   PAGINATION (Carvana-style compact)
   ============================================ */
#dvPagination.results-pagination {
    margin-left: 360px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#dvPagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: none;
    flex-wrap: wrap;
}

#dvPagination .pagination>li {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin: 0;
    float: none;
}

#dvPagination .pagination>li.pagination-chevron {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

#dvPagination .pagination>li.pagination-chevron:not(.disabled):hover {
    background: #e5e7eb;
}

#dvPagination .pagination>li.pagination-chevron.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#dvPagination .pagination>li a {
    font-size: 14px;
    line-height: 1;
    color: #1f2937;
    font-weight: 500;
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border:none;
}

#dvPagination .pagination>li.pagination-chevron a {
    font-size: 16px;
    color: #6b7280;
}

#dvPagination .pagination>li.pagination-chevron a i {
    font-size: 14px;
}

#dvPagination .pagination>li:not(.pagination-chevron):not(.active):not(.disabled):hover {
    background: #f3f4f6;
}

#dvPagination .pagination>li.active {
    background: #ec1a2e;
}

#dvPagination .pagination>li.active a {
    color: #ffffff;
    font-weight: 600;
}

#dvPagination .pagination>li.disabled a {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination responsive adjustments */
@media (max-width: 991px) {
    #dvPagination.results-pagination {
        margin-left: 0;
    }
}

@media (max-width: 1450px) and (min-width: 992px) {
    #dvPagination.results-pagination {
        margin-left: 310px;
    }
}

/* ============================================
   CUSTOM COLLAPSE (replaces Bootstrap collapse)
   ============================================ */
.filter .filter-collapse {
    display: none;
    overflow: hidden;
}

/* Show content that should be visible by default (has 'in' class or 'collapse-in' class) */
.filter .filter-collapse.in,
.filter .filter-collapse.collapse-in {
    display: block;
}

/* Chevron rotation - matches slideToggle duration (200ms) */
/* When expanded (open): point up. When collapsed (closed): point down */
.filter .coll .filter-icon {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.filter .coll.collapsed .filter-icon {
    transform: rotate(0deg);
}

/* ============================================
   CARVANA-STYLE COMBINED PAYMENT & PRICE FILTER
   ============================================ */
.filter-subsection {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-subsection:first-child {
    padding-top: 8px;
}

.filter-subsection-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.filter-subsection-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
}

.slider-separator {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #9ca3af;
    font-size: 14px;
}

/* Slider container with extra spacing */
.slider-container {
    padding: 16px 0 8px 0;
}

/* Slider range labels (min/max below slider) */
.slider-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}

.slider-range-min,
.slider-range-max {
    font-weight: 400;
}

/* Single input for payment slider */
.slider-input-single {
    flex: 0 0 auto !important;
}

.slider-input-single input {
    width: 120px !important;
}

/* CTA Sections */
.filter-cta-section {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.filter-cta-section:last-child {
    border-bottom: none;
    padding-bottom: 12px;
}

.filter-cta-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.filter-cta-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Override noUiSlider for Carvana-style larger handles */
.budget-slider .noUi-horizontal .noUi-handle {
    width: 28px;
    height: 28px;
    right: -14px;
    top: -12px;
    border-radius: 50%;
    border: 2px solid #ec1a2e;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
}

.budget-slider .noUi-horizontal .noUi-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 10px rgba(0, 168, 225, 0.4);
}

.budget-slider .noUi-horizontal .noUi-handle::before,
.budget-slider .noUi-horizontal .noUi-handle::after {
    display: none;
}

/* Thicker track for visibility */
.budget-slider .noUi-target {
    height: 6px;
    border-radius: 3px;
}

/* Payment slider single handle - connect goes from start */
.payment-slider-single .noUi-connect {
    background: #ec1a2e;
}

/* ============================================
   MOBILE INLINE CONDITION FILTER BUTTONS
   ============================================ */
.mobile-condition-filter {
    display: none;
}

@media (max-width: 991px) {
    .mobile-condition-filter {
        display: flex;
        gap: 8px;
        padding: 10px 0;
        margin-bottom: 5px;
    }

    .mobile-condition-filter .condition-btn {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        background: #fff;
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        font-family: Roboto, Poppins, sans-serif;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
    }

    .mobile-condition-filter .condition-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .mobile-condition-filter .condition-btn.active {
        background: #253746;
        border-color: #253746;
        color: #fff;
    }

    .mobile-condition-filter .condition-btn.active:hover {
        background: #1a2830;
        border-color: #1a2830;
    }
}
/**
 * Birchwood VDP Styles
 * Modeled after Birchwood website VDP design
 * Uses site color scheme from leggat-ancaster-toyota.css
 * Primary: #ec1a2e (red), Dark: #e00e22, Default: #000000
 */

/* ==================== STICKY HEADER - BIRCHWOOD STYLE ==================== */
.bvdp-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000000; /* Toyota black */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bvdp-sticky-header.is-visible {
    transform: translateY(0);
}

.bvdp-sticky-header .container {
    padding-right: 0;
}

.bvdp-sticky-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    padding-left: 15px;
    gap: 15px;
    min-height: 60px;
}

/* Vehicle Info Section (Desktop Only) */
.bvdp-sticky-vehicle-info {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.bvdp-sticky-thumb {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bvdp-sticky-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bvdp-sticky-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.bvdp-sticky-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bvdp-sticky-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.bvdp-sticky-badge.stock {
    color: #ec1a2e;
    background: #ffffff;
}

.bvdp-sticky-badge.promo {
    color: #ffffff;
    background: transparent;
    opacity: 0.9;
}

/* Price Section (Desktop Only) */
.bvdp-sticky-pricing {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 15px;
    flex-shrink: 0;
}

.bvdp-sticky-price-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.bvdp-sticky-price-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.bvdp-sticky-price-value sup {
    font-size: 11px;
    font-weight: 400;
}

.bvdp-sticky-price-label {
    color: #999999;
    font-size: 11px;
    text-transform: lowercase;
}

.bvdp-sticky-price-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

/* Contact Dealership Button */
.bvdp-sticky-contact {
    flex-shrink: 0;
    display: flex;
}

.bvdp-contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ec1a2e; /* Toyota red */
    border: none;
    color: #ffffff;
    padding: 0 15px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.bvdp-contact-btn:hover,
.bvdp-contact-btn:focus,
.bvdp-contact-btn.is-open {
    background: #e00e22; /* Toyota red dark */
}

.bvdp-contact-btn .fa-comment {
    font-size: 20px;
}

.bvdp-contact-caret {
    transition: transform 0.2s ease;
    font-size: 24px;
    margin-left: 8px;
}

.bvdp-contact-btn.is-open .bvdp-contact-caret {
    transform: rotate(180deg);
}

/* ==================== CONTACT DROPDOWN (Desktop) ==================== */
.bvdp-contact-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
    max-width: 400px;
    width: 100%;
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bvdp-contact-dropdown.is-visible {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.bvdp-contact-dropdown-inner {
    padding: 0;
}

.bvdp-contact-dealer-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.bvdp-contact-dealer-logo {
    width: 50%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.bvdp-contact-dealer-info {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    border-left: 2px solid #ddd;
}

.bvdp-contact-dealer-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.bvdp-contact-dealer-address {
    font-size: 13px;
    color: #666;
}

.bvdp-contact-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bvdp-contact-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.bvdp-contact-menu li:last-child {
    border-bottom: none;
}

.bvdp-contact-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.bvdp-contact-menu a:hover {
    background: #f8f8f8;
    color: #ec1a2e;
}

.bvdp-contact-menu a .fa {
    width: 18px;
    text-align: center;
    color: #ec1a2e;
    font-size: 15px;
}

/* ==================== CONTACT OVERLAY (Mobile Full-Screen) ==================== */
.bvdp-contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #ffffff;
    display: none;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.bvdp-contact-overlay.is-visible {
    display: flex;
    transform: translateX(0);
}

.bvdp-contact-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000000; /* Toyota black */
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
}

.bvdp-contact-overlay-header .fa-comment {
    font-size: 16px;
}

.bvdp-contact-overlay-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.bvdp-contact-overlay-close:hover {
    opacity: 0.8;
}

.bvdp-contact-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.bvdp-contact-overlay .bvdp-contact-dealer-header {
    padding: 25px 20px;
}

.bvdp-contact-overlay .bvdp-contact-menu a {
    padding: 18px 20px;
    font-size: 15px;
}

/* Backdrop for dropdown */
.bvdp-contact-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.3);
    display: none;
}

.bvdp-contact-backdrop.is-visible {
    display: block;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Desktop: Show dropdown, hide overlay button behavior */
@media (min-width: 901px) {
    .bvdp-sticky-content {
        flex-wrap: nowrap;
    }
    
    .bvdp-contact-overlay {
        display: none !important;
    }
}

/* Mobile: Hide vehicle info and pricing, show only contact button */
@media (max-width: 900px) {
    .d-none.d-md-flex {
        display: none !important;
    }
    
    .bvdp-sticky-header .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .bvdp-sticky-content {
        justify-content: stretch;
        padding: 0 !important;
        gap: 0 !important;
    }
    
    .bvdp-sticky-contact {
        width: 100%;
    }
    
    .bvdp-contact-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 18px 24px;
        font-size: 20px;
        font-weight: 600;
        gap: 14px;
    }
    
    .bvdp-contact-btn .fa-comment {
        font-size: 22px;
    }
    
    .bvdp-contact-btn .bvdp-contact-caret {
        margin-left: auto;
        font-size: 30px;
    }
    
    .bvdp-contact-dropdown {
        display: none !important;
    }
}

/* Legacy styles for compatibility */
.bvdp-sticky-info {
    display: flex;
    flex-direction: column;
}

.bvdp-sticky-status {
    color: #ec1a2e;
    font-size: 13px;
    font-weight: 500;
}

.bvdp-sticky-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    padding-right: 20px;
}

.bvdp-sticky-price .bvdp-price-amount {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.bvdp-sticky-price .bvdp-price-label {
    color: #999;
    font-size: 12px;
}

.bvdp-sticky-actions .bvdp-btn-inquiry {
    background: #ec1a2e;
    border-color: #ec1a2e;
    color: #fff;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bvdp-sticky-actions .bvdp-btn-inquiry:hover {
    background: #e00e22;
    border-color: #e00e22;
}

/* ==================== CONTAINER ==================== */
.bvdp-container {
    padding-bottom: 60px;
    overflow-x: hidden;
}

/* ==================== BACK NAVIGATION ==================== */
.bvdp-back-nav {
    padding: 25px 0;
}

.bvdp-back-nav a {
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.bvdp-back-nav a:hover {
    color: #ec1a2e;
}

.bvdp-back-nav a .fa {
    margin-right: 8px;
    font-size: 20px;
}

/* ==================== HERO SECTION ==================== */
.bvdp-hero {
    padding: 0 0 40px;
}

/* Gallery */
.bvdp-gallery {
    margin-bottom: 30px;
}

.bvdp-main-slider {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.bvdp-main-slider .slick-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    height: auto;
}

.bvdp-main-slider .slick-prev,
.bvdp-main-slider .slick-next {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 10;
}

.bvdp-main-slider .slick-prev {
    left: 15px;
}

.bvdp-main-slider .slick-next {
    right: 15px;
}

.bvdp-main-slider .slick-prev:before,
.bvdp-main-slider .slick-next:before {
    color: #000;
    font-size: 24px;
}

.bvdp-thumb-slider {
    margin: 0 -5px;
}

.bvdp-thumb-slider .slick-slide {
    padding: 0 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.bvdp-thumb-slider .slick-slide.slick-current {
    opacity: 1;
}

.bvdp-thumb-slider .slick-slide:hover {
    opacity: 1;
}

.bvdp-thumb-slider img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    height: auto;
}

.bvdp-video-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.bvdp-gallery-actions {
    margin-top: 15px;
    text-align: center;
}

.bvdp-view-all-btn {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.bvdp-view-all-btn:hover {
    background: #000;
    color: #fff;
}

/* Vehicle Info */
.bvdp-vehicle-info {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    /* Removed shadow to match cleaner look of screenshot if desired, or keep it subtle */
    box-shadow: none;
}

/* Badge Style - Matched to Screenshot (Text only, no background pill unless 'used' needs distinction) */
.bvdp-badge {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    background: none;
    padding: 0;
}

/* Title Row with Heart */
.bvdp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    position: relative;
}

.bvdp-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0;
    padding-right: 40px;
    /* Space for heart icon */
}

.bvdp-favorite-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    color: #ccc;
    position: absolute;
    top: 5px;
    right: 0;
    transition: color 0.2s;
}

.bvdp-favorite-btn:hover {
    color: #ec1a2e;
}

/* Status Row */
.bvdp-status-row {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.bvdp-status-badge {
    color: #333;
}

/* Price Section */
.bvdp-price-section {
    margin-bottom: 20px;
}

.bvdp-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.bvdp-price-value {
    font-size: 32px;
    font-weight: 700;
    color: #ec1a2e;
    /* Leggat Red */
}

.bvdp-biweekly-link {
    font-size: 16px;
    font-weight: 600;
    color: #ec1a2e;
    /* Leggat Red */
    text-decoration: none;
    transition: all 0.2s;
}

.bvdp-biweekly-link:hover {
    text-decoration: none;
    color: #000000;
}

.bvdp-price-note {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

/* Action Buttons Row */
.bvdp-action-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.bvdp-btn-primary {
    background: #ec1a2e;
    /* Leggat Red */
    border: 1px solid #ec1a2e;
    color: #fff;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.bvdp-btn-primary:hover {
    background: #e00e22;
    /* Darker Red */
    border-color: #e00e22;
    color: #fff;
}

.bvdp-btn-outline {
    background: transparent;
    border: 1px solid #ec1a2e;
    /* Leggat Red */
    color: #ec1a2e;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bvdp-btn-outline:hover {
    background: #fff5f5;
    /* Light red tint */
    color: #e00e22;
    border-color: #e00e22;
}

/* Remove theme arrows */
.bvdp-btn-primary:after,
.bvdp-btn-outline:after {
    content: none !important;
    display: none !important;
}

/* Inquiry Dropdown Menu */
.bvdp-inquiry-dropdown {
    position: relative;
}

.bvdp-inquiry-dropdown .dropdown-toggle {
    width: 100%;
    padding: 10px 20px !important;
    /* Prevent padding changes on hover */
}

.bvdp-inquiry-dropdown .dropdown-toggle:hover,
.bvdp-inquiry-dropdown .dropdown-toggle:focus,
.bvdp-inquiry-dropdown .dropdown-toggle:active {
    padding: 10px 20px !important;
    color: #fff !important;
    /* Lock padding and color on hover */
}

.bvdp-inquiry-dropdown .dropdown-toggle,
.bvdp-inquiry-dropdown .dropdown-toggle:visited {
    color: #fff !important;
}

.bvdp-inquiry-dropdown .bvdp-chevron {
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.2s;
}

.bvdp-inquiry-dropdown.open .bvdp-chevron,
.bvdp-inquiry-dropdown .dropdown-toggle[aria-expanded="true"] .bvdp-chevron {
    transform: rotate(180deg);
}

.bvdp-inquiry-menu {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px 0;
    margin-top: 8px;
}

.bvdp-inquiry-menu>li>a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.bvdp-inquiry-menu>li>a:hover {
    background: #f8f8f8;
    color: #ec1a2e;
}

.bvdp-inquiry-menu>li>a .fa {
    width: 20px;
    margin-right: 10px;
    color: #ec1a2e;
}

/* Frequency Dropdown - Add spacing between text and chevron */
.bvdp-payment-container .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.bvdp-payment-container .dropdown-toggle .dd_val {
    margin-right: 0;
}

.bvdp-payment-container .dropdown-toggle .fa {
    position: static !important;
}

/* Specs Grid - Force Grid Layout */
.bvdp-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    gap: 0;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    overflow: visible;
}

.bvdp-spec-cell {
    padding: 15px;
    font-size: 13px;
    color: #333;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    line-height: 1.4;
    border: none;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.bvdp-spec-cell:nth-child(-n+3) {
    border-top: 1px solid #e0e0e0;
}

.bvdp-spec-cell:nth-child(3n+1) {
    border-left: 1px solid #e0e0e0;
}



/* Action Links Row - Side by Side */
.bvdp-links-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-top: 20px;
    align-items: center;
}

.bvdp-action-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14px !important;
    color: #ec1a2e !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

.bvdp-action-link:hover {
    color: #000000;
    text-decoration: none !important;
}

.bvdp-action-link:visited,
.bvdp-action-link:focus {
    color: #ec1a2e;
    text-decoration: none !important;
}

.bvdp-action-link .fa {
    font-size: 12px;
}

.bvdp-action-link .fa-arrow-right {
    transform: rotate(-45deg);
}

.bvdp-action-link .fa-map-marker {
    font-size: 14px;
}

/* Trade-In Link */
.bvdp-tradein-link {
    margin-top: 20px;
}

.bvdp-tradein-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ec1a2e;
    /* Leggat Red */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.bvdp-tradein-link a:hover {
    text-decoration: none;
    color: #000000;
}

.bvdp-tradein-link a .fa {
    font-size: 12px;
    /* Rotation for arrow if needed */
    transform: rotate(-45deg);
}

.bvdp-tradein-link a .fa-map-marker {
    transform: none;
    font-size: 14px;
}

.bvdp-tradein-link a:visited,
.bvdp-tradein-link a:focus {
    text-decoration: none;
    color: #ec1a2e;
}

/* Center Test Drive and Contact Modals - Robust Method */
#mdBookTestDrive,
#mdContactUs {
    text-align: center;
    padding-right: 0 !important;
}

#mdBookTestDrive:before,
#mdContactUs:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

#mdBookTestDrive .modal-dialog,
#mdContactUs .modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    margin: 30px auto !important;
    /* Ensure horizontal auto margin */
    float: none !important;
    max-width: 600px;
    width: 90%;
    /* Responsive width */
}

.bvdp-carfax {
    margin-top: 15px;
}

/* === Carfax Badges on VDP (server-rendered from DB) === */
.bvdp-carfax .carfax-badges {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.bvdp-carfax .carfax-badges a {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    border: none;
    flex-wrap: wrap;
}

.bvdp-carfax .carfax-badges a:hover {
    opacity: 0.85;
}

.bvdp-carfax .carfax-badges .carfax-logo-img {
    height: 50px;
    width: auto;
}

.bvdp-carfax .carfax-badges .carfax-badge-img {
    height: 50px;
    width: auto;
}

.bvdp-carfax .carfax-badges .carfax-single-img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

/* Hover mode on VDP */
.bvdp-carfax .carfax-hover .carfax-hover-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bvdp-carfax .carfax-hover .carfax-hover-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.bvdp-carfax .carfax-hover .carfax-hover-content img {
    height: 36px;
    width: auto;
}

.bvdp-carfax .carfax-hover .carfax-hover-trigger:hover .carfax-hover-content {
    display: block;
}

/* ==================== WHY YOU'LL LOVE IT SECTION ==================== */
.bvdp-love-section {
    background: #f8f8f8;
    padding: 50px 0;
}

.bvdp-love-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.bvdp-love-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bvdp-love-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: #333;
}

.bvdp-love-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro', sans-serif;
    position: absolute;
    left: 0;
    color: #ec1a2e;
    font-weight: 600;
}

/* ==================== PAYMENT CALCULATOR SECTION ==================== */
.bvdp-payment-section {
    padding: 50px 0;
}

.bvdp-payment-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
}

.bvdp-payment-subtitle {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.bvdp-payment-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* Tabs - Birchwood Style */
.bvdp-tabs {
    position: relative;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    font-size: 0;
    line-height: 0;
}

.bvdp-tabs .nav-tabs {
    margin-bottom: -1px;
    display: inline-flex;
    border: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.bvdp-tabs .nav-tabs>li {
    margin-bottom: 0;
    float: none;
}

.bvdp-tabs .nav-tabs>li>a {
    border: none;
    border-right: 1px solid #ddd;
    border-radius: 0;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    background: #fff;
    margin: 0;
    transition: all 0.2s;
}

.bvdp-tabs .nav-tabs>li:last-child>a {
    border-right: none;
}

.bvdp-tabs .nav-tabs>li>a:hover {
    border-color: #ddd;
    background: #f5f5f5;
    color: #333;
}

.bvdp-tabs .nav-tabs>li.active>a,
.bvdp-tabs .nav-tabs>li.active>a:hover,
.bvdp-tabs .nav-tabs>li.active>a:focus {
    border: none;
    border-right: 1px solid #ddd;
    background: #333;
    color: #fff;
    font-weight: 600;
}

.bvdp-tabs .nav-tabs>li:last-child.active>a {
    border-right: none;
}

/* Payment Options */
.bvdp-payment-options {
    padding: 20px 0;
    background: transparent !important;
    color: #333 !important;
}

.bvdp-payment-options .tab-pane {
    background: transparent !important;
    color: #333 !important;
}

.bvdp-payment-options .financeTabContent,
.bvdp-payment-options .leaseTabContent,
.bvdp-payment-options .cashTabContent {
    background: transparent !important;
    color: #333 !important;
}

/* Override dark backgrounds from quote.js */
#PaymentCalculator,
#PaymentCalculator .col-md-8,
#PaymentCalculator .col-md-4,
.bvdp-payment-container,
.bvdp-payment-options,
.bvdp-payment-options .tab-pane,
.bvdp-payment-options .tab-content,
#dvPaymentsTabContent {
    background-color: transparent !important;
    background: transparent !important;
}

/* Force payment cards container to have flex layout */
.bvdp-payment-cards {
    background: transparent !important;
}

/* Override any pmt_container styling from quote.js */
.bvdp-payment-options .pmt_container,
.bvdp-payment-cards .pmt_container,
#financePayments .pmt_container,
#leasePayments .pmt_container {
    display: none !important;
}

/* Ensure BVDP cards are visible */
.bvdp-payment-card {
    display: block !important;
}

.bvdp-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.bvdp-form-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bvdp-form-group label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.bvdp-frequency-select .dropdown-toggle {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 14px;
}

/* Payment Cards */
.bvdp-payment-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}

.bvdp-payment-card {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.bvdp-payment-card:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.bvdp-payment-card.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.bvdp-payment-card .bvdp-card-amount {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.bvdp-payment-card .bvdp-card-amount .cents {
    font-size: 14px;
    vertical-align: super;
}

.bvdp-payment-card .bvdp-card-frequency {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.bvdp-payment-card.active .bvdp-card-frequency {
    color: #ccc;
}

.bvdp-payment-card .bvdp-card-term {
    font-size: 12px;
    color: #555;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.bvdp-payment-card.active .bvdp-card-term {
    color: #ccc;
    border-top-color: #555;
}

/* Pre-approval Link */
.bvdp-preapproval {
    text-align: center;
    margin-bottom: 30px;
}

.bvdp-preapproval a {
    color: #ec1a2e;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.bvdp-preapproval a:hover {
    text-decoration: underline;
}

.bvdp-preapproval .fa {
    margin-right: 8px;
    color: #ec1a2e;
}

/* Cash Down Section */
.bvdp-cash-down-section {
    margin-bottom: 25px;
}

.bvdp-cash-down-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.bvdp-cash-down-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bvdp-cash-down-input {
    flex: 0 0 150px;
}

.bvdp-cash-down-input .form-control {
    height: 48px;
    font-size: 16px;
    border-radius: 4px;
    text-align: center;
}

.bvdp-cash-down-text {
    flex: 1;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Trade Section */
.bvdp-trade-section {
    margin-bottom: 20px;
}

.bvdp-trade-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.bvdp-trade-value-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bvdp-trade-value-input {
    flex: 0 0 200px;
}

.bvdp-trade-value-input label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.bvdp-trade-value-input .form-control {
    height: 48px;
    font-size: 16px;
    border-radius: 4px;
    text-align: center;
}

.bvdp-trade-value-text {
    flex: 1;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    padding-top: 20px;
}

.bvdp-trade-value-text a {
    color: #ec1a2e;
    font-weight: 500;
}

.bvdp-trade-row .form-control {
    height: 48px;
    font-size: 14px;
    border-radius: 4px;
}

.bvdp-trade-row .form-control:first-child {
    flex: 1;
}

.bvdp-mileage-input {
    flex: 0 0 180px !important;
}

.bvdp-trade-row .btn {
    white-space: nowrap;
    height: 48px;
    padding: 0 20px;
}

/* Summary Card */
.bvdp-summary-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
}

.bvdp-summary-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.bvdp-payment-amount {
    font-family: 'Roboto', sans-serif;
}

.bvdp-payment-amount .bvdp-currency {
    font-size: 24px;
    font-weight: 700;
    vertical-align: top;
    color: #000;
}

.bvdp-payment-amount .bvdp-amount {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.bvdp-payment-amount .bvdp-cents {
    font-size: 24px;
    font-weight: 700;
    vertical-align: top;
    color: #000;
}

.bvdp-payment-term {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.bvdp-summary-details {
    margin-bottom: 25px;
}

.bvdp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.bvdp-summary-row.bvdp-summary-total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: 600;
    color: #000;
}

/* Action Buttons */
.bvdp-action-buttons {
    margin-top: 20px;
}

.bvdp-action-buttons .btn {
    margin-bottom: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.bvdp-action-buttons .btn-primary {
    background: #ec1a2e !important;
    border-color: #ec1a2e !important;
    color: #fff !important;
}

.bvdp-action-buttons .btn-primary:hover {
    background: #e00e22 !important;
    border-color: #e00e22 !important;
}

.bvdp-action-buttons .btn .fa {
    margin-right: 8px;
}

.bvdp-legal-link {
    text-align: center;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    margin-top: 15px;
}

.bvdp-legal-link:hover {
    color: #ec1a2e;
    text-decoration: underline;
}

/* ==================== CONTACT FORMS SECTION ==================== */
.bvdp-contact-section {
    padding: 30px 0 50px;
}

.bvdp-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 0 auto 20px;
    /* Center horizontally with auto margins */
    max-width: 800px;
}

.bvdp-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bvdp-form-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #000;
}

.bvdp-form-header h3 .fa {
    color: #ec1a2e;
    margin-right: 10px;
}

.bvdp-form-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.bvdp-form-close:hover {
    color: #ec1a2e;
}

.bvdp-form .form-group {
    margin-bottom: 20px;
}

.bvdp-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.bvdp-form .form-control {
    height: 48px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.bvdp-form textarea.form-control {
    height: auto;
    min-height: 100px;
}

.bvdp-form-response {
    margin-bottom: 15px;
}

/* ==================== VEHICLE DETAILS SECTION ==================== */
.bvdp-details-section {
    padding: 50px 0;
    background: #fff;
}

.bvdp-details-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.bvdp-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.bvdp-detail-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.bvdp-detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 5px;
}

.bvdp-detail-value {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

/* ==================== FEATURES ACCORDIONS SECTION ==================== */
.bvdp-features-section {
    padding: 50px 0;
    background: #f8f8f8;
}

.bvdp-features-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.bvdp-accordions .panel {
    background: #fff;
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bvdp-accordions .panel-heading {
    padding: 0;
    background: none;
    border: none;
}

.bvdp-accordions .panel-title a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: background 0.2s;
}

.bvdp-accordions .panel-title a:hover {
    background: #f5f5f5;
}

.bvdp-accordions .panel-title a .fa {
    transition: transform 0.3s;
}

.bvdp-accordions .panel-title a.collapsed .fa {
    transform: rotate(180deg);
}

.bvdp-accordions .panel-body {
    padding: 20px;
    border-top: 1px solid #eee;
}

.bvdp-accordions .panel-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}

.bvdp-accordions .panel-body ul li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    font-size: 14px;
    color: #333;
    break-inside: avoid;
}

.bvdp-accordions .panel-body ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro', sans-serif;
    position: absolute;
    left: 0;
    color: #ec1a2e;
    font-size: 12px;
}

/* ==================== SIMILAR VEHICLES SECTION - BIRCHWOOD STYLE ==================== */
.bvdp-similar-section {
    padding: 60px 0;
    background: #fff;
}

/* Header with title and search link */
.bvdp-similar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
}

.bvdp-similar-section h2 {
    font-size: 32px;
    font-family: Roboto, Poppins, sans-serif;
    font-weight: 700;
    margin: 0;
    color: #000;
    text-align: center;
}

.bvdp-similar-search-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ec1a2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.bvdp-similar-search-link:hover {
    text-decoration: underline;
    color: #ec1a2e;
}

/* Carousel Wrapper with external buttons */
.bvdp-similar-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

/* Carousel Navigation Buttons - Birchwood Style (round, outside slider) */
.bvdp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d0d0d0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bvdp-carousel-btn:hover {
    border-color: #333;
    background: #fff;
}

.bvdp-carousel-btn .fa {
    color: #333;
    font-size: 16px;
}

.bvdp-carousel-prev {
    left: 0;
}

.bvdp-carousel-next {
    right: 0;
}

.bvdp-similar-slider {
    margin: 0;
    overflow: hidden;
}

.bvdp-similar-slide {
    padding: 0 10px;
}

/* ==================== VEHICLE CARDS - SRP STYLE ==================== */
/* These styles ensure vehicle cards in Similar Vehicles look like SRP cards */

.bvdp-similar-slider .veh-card-leggat {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    color: #0a2237;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.bvdp-similar-slider .veh-card-leggat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #0a2237;
    text-decoration: none;
}

/* Hide the NEW/USED header bar like SRP */
.bvdp-similar-slider .veh-card-header {
    display: none;
}

/* Vehicle Card Carousel/Image */
.bvdp-similar-slider .veh-card-carousel {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.bvdp-similar-slider .veh-card-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Info Section */
.bvdp-similar-slider .veh-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.bvdp-similar-slider .veh-title {
    font-size: 16px;
    font-weight: 600;
    color: #0a2237;
    line-height: 1.3;
    font-family: Roboto, 'Inter', sans-serif;
    margin-bottom: 2px;
}

.bvdp-similar-slider .veh-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
    font-family: Roboto, 'Inter', sans-serif;
    margin-bottom: 12px;
}

/* Pricing Section */
.bvdp-similar-slider .veh-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.bvdp-similar-slider .veh-price-sale {
    font-size: 18px;
    font-weight: 600;
    color: #0a2237;
    font-family: Roboto, 'Inter', sans-serif;
}

/* Responsive adjustments for Similar Vehicles carousel */
@media (max-width: 991px) {
    .bvdp-similar-carousel-wrapper {
        padding: 0 40px;
    }

    .bvdp-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .bvdp-carousel-btn .fa {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .bvdp-similar-header {
        flex-direction: column;
        gap: 10px;
    }

    .bvdp-similar-search-link {
        position: static;
        transform: none;
    }

    .bvdp-similar-carousel-wrapper {
        padding: 0;
    }

    .bvdp-carousel-btn {
        display: none;
    }

    .bvdp-similar-section h2 {
        font-size: 24px;
    }
}

/* Legacy styles - keep for backwards compatibility */
.veh-card-leggat {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    color: #333;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.veh-card-leggat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #333;
}

.veh-card-header {
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    letter-spacing: 0.5px;
}

.veh-card-leggat.used .veh-card-header {
    background: #ec1a2e;
    /* Red for Used */
}

.veh-card-leggat.new .veh-card-header {
    background: #000000;
    /* Leggat Dark Blue/Black for New */
}

.veh-card-carousel {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.veh-card-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.veh-card-info {
    padding: 15px;
}

.veh-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.veh-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.veh-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.veh-price-sale {
    font-size: 20px;
    font-weight: 700;
    color: #ec1a2e;
}

/* Legacy slick arrows hidden - using custom external buttons now */
.bvdp-similar-slider .slick-prev,
.bvdp-similar-slider .slick-next {
    display: none !important;
}

.bvdp-payments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.bvdp-payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bvdp-payment-option:hover {
    border-color: #ec1a2e;
    background: #fff;
}

.bvdp-payment-option.active {
    border-color: #ec1a2e;
    background: #fff4f5;
}

.bvdp-payment-option .bvdp-term {
    font-weight: 600;
    color: #000;
}

.bvdp-payment-option .bvdp-rate {
    color: #666;
    font-size: 14px;
}

.bvdp-payment-option .bvdp-pmt {
    font-weight: 700;
    color: #ec1a2e;
    font-size: 16px;
}

/* ==================== SPECS AND WARRANTY SECTIONS ==================== */
.bvdp-specs-wrapper {
    margin-bottom: 30px;
}

.bvdp-specs-wrapper .spec {
    margin-bottom: 20px;
}

.bvdp-specs-wrapper .spec-val {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.bvdp-specs-wrapper .spec-val.bold {
    font-weight: 700;
    font-size: 16px;
    border-bottom: none;
    margin-bottom: 5px;
    color: #000;
}

.bvdp-warranty-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.bvdp-warranty-wrapper .warranty {
    margin-bottom: 10px;
}

.bvdp-warranty-wrapper .ai-val {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.bvdp-warranty-wrapper .ai-val img {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.bvdp-warranty-wrapper .warr {
    font-size: 14px;
    color: #333;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .bvdp-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bvdp-similar-slider .slick-prev,
    .bvdp-similar-slider .slick-next {
        display: none !important;
    }

    .bvdp-accordions .panel-body ul {
        columns: 1;
    }
}

@media (max-width: 767px) {
    .bvdp-sticky-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .bvdp-sticky-price {
        align-items: flex-start;
    }

    .bvdp-sticky-actions {
        width: 100%;
    }

    .bvdp-sticky-actions .btn {
        width: 100%;
    }

    .bvdp-title {
        font-size: 22px;
    }

    .bvdp-trim {
        font-size: 16px;
    }

    .bvdp-main-slider .slick-slide img {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .bvdp-vehicle-info {
        margin-top: 20px;
    }

    /* Action buttons - stack vertically on mobile */
    .bvdp-action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bvdp-action-row .bvdp-btn-primary,
    .bvdp-action-row .bvdp-btn-outline,
    .bvdp-action-row .bvdp-inquiry-dropdown {
        width: 100%;
        flex: none;
    }

    .bvdp-inquiry-dropdown .dropdown-toggle {
        width: 100%;
    }

    .bvdp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Specs grid - 2 columns on mobile */
    .bvdp-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* All cells get full border on mobile - simpler approach */
    .bvdp-spec-cell,
    .bvdp-spec-cell:nth-child(-n+3),
    .bvdp-spec-cell:nth-child(3n+1),
    .bvdp-spec-cell:nth-child(-n+2),
    .bvdp-spec-cell:nth-child(2n+1) {
        border: 1px solid #e0e0e0 !important;
    }

    .bvdp-details-grid {
        grid-template-columns: 1fr;
    }

    .bvdp-payment-card {
        padding: 15px 10px;
        min-width: 100px;
    }

    /* Payment cards - allow horizontal scroll on mobile */
    .bvdp-payment-cards {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .bvdp-payment-card .bvdp-card-amount {
        font-size: 20px;
    }

    .bvdp-payment-card .bvdp-card-term {
        font-size: 11px;
    }

    .bvdp-tabs .nav-tabs>li>a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .bvdp-trade-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bvdp-trade-row .form-control {
        flex: 1;
        max-width: none;
    }

    .bvdp-input-group .form-control {
        max-width: none;
    }

    /* Cash down section - compact on mobile */
    .bvdp-cash-down-section,
    .bvdp-trade-section {
        margin-bottom: 12px;
    }

    .bvdp-cash-down-section h4,
    .bvdp-trade-section h4 {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .bvdp-cash-down-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bvdp-cash-down-input {
        width: auto !important;
        max-width: none;
    }

    .bvdp-cash-down-input.input-group {
        width: auto !important;
        max-width: 160px;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .bvdp-cash-down-input.input-group .input-group-addon {
        display: flex !important;
        align-items: center !important;
        justify-content: center;
        padding: 0 8px !important;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        border-right: none !important;
        border-radius: 4px 0 0 4px !important;
        font-size: 13px;
        color: #666;
        width: auto !important;
        height: 34px !important;
        float: none !important;
    }

    .bvdp-cash-down-input.input-group .form-control {
        flex: 1 !important;
        border-radius: 0 4px 4px 0 !important;
        border: 1px solid #ddd !important;
        height: 34px !important;
        padding: 4px 8px !important;
        font-size: 13px;
        width: 100px !important;
        float: none !important;
    }

    .bvdp-cash-down-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center;
        gap: 8px !important;
    }

    .bvdp-cash-down-text {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px;
        color: #888;
        line-height: 1.3;
        width: 100%;
        margin-top: 4px !important;
    }

    .bvdp-trade-link-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    .bvdp-payment-amount .bvdp-amount {
        font-size: 36px;
    }

    .bvdp-form-card {
        padding: 20px;
    }

    /* Reduce section padding on mobile */
    .bvdp-features-section,
    .bvdp-similar-section,
    .bvdp-love-section,
    .bvdp-details-section {
        padding: 25px 0 !important;
    }

    .bvdp-similar-header {
        margin-bottom: 15px;
    }

    .bvdp-details-section h2,
    .bvdp-features-section h2,
    .bvdp-similar-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .bvdp-accordions .panel {
        margin-bottom: 6px;
    }

    .bvdp-accordions .panel-title a {
        padding: 12px 15px;
        font-size: 15px;
    }

    /* About This Vehicle section - appears separately on mobile */
    .bvdp-features-section .col-md-6:first-child {
        padding-top: 0 !important;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }

    .bvdp-features-section .bvdp-section-title:first-of-type {
        margin-top: 0;
    }

    .bvdp-description-wrapper {
        margin-bottom: 0;
    }
}

/* Mobile Optimization for Sticky Header - Simplify to match Birchwood */
@media (max-width: 767px) {

    .bvdp-sticky-info,
    .bvdp-sticky-price {
        display: none !important;
    }

    .bvdp-sticky-content {
        justify-content: center;
        padding: 5px 0;
    }

    .bvdp-sticky-actions {
        width: 100%;
        text-align: center;
    }

    .bvdp-sticky-actions .bvdp-btn-inquiry {
        width: 100%;
        max-width: 280px;
        font-size: 14px;
        padding: 8px 15px;
    }

    .bvdp-sticky-header {
        /* Ensure it sits at top */
        top: 0;
    }
}

/* Love It Section - Birchwood Reference Match */
.bvdp-love-it-section {
    background: #eff4f4;
    padding: 60px 0;
    margin-bottom: 30px;
    position: relative;
}

.bvdp-love-it-section::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-top: 25px solid #eff4f4;
}

.bvdp-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.bvdp-love-content .row {
    display: flex;
    flex-wrap: wrap;
}

.bvdp-love-left-col {
    padding-right: 60px;
    display: flex;
    flex-direction: column;
}

.bvdp-love-right-col {
    padding-left: 80px;
    border-left: 2px solid #d7dddd;
}

.bvdp-love-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.bvdp-love-list-standard {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.bvdp-love-list-standard li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.bvdp-love-tagline {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.bvdp-love-tagline-sub {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0;
}

.bvdp-love-footer-wrapper {
    margin-top: 36px;
}

.bvdp-love-footer {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 20px;
    color: #333;
}

.bvdp-love-footer .fa {
    margin-right: 10px;
    font-size: 22px;
    color: #cc0000;
}

/* Right Column - Features */
.bvdp-love-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bvdp-love-features-list li {
    display: flex;
    align-items: center;
    margin-top: 18px;
    font-size: 14px;
    color: #333;
}

.bvdp-love-features-list li:first-child {
    margin-top: 0;
}

.bvdp-love-features-list li .fa {
    margin-right: 15px;
    font-size: 20px;
    color: #cc0000;
}

.bvdp-love-features-list li span {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .bvdp-love-left-col {
        padding-right: 15px;
        margin-bottom: 40px;
        border-bottom: 2px solid #d7dddd;
        padding-bottom: 40px;
    }

    .bvdp-love-right-col {
        padding-left: 15px;
        border-left: none;
    }

    .bvdp-love-subtitle {
        font-size: 20px;
    }
}

/* ===========================================
   OFFER BANNER & AVAILABLE OFFERS SECTION
   =========================================== */

/* Offer Banner - Hero Section */
.bvdp-offer-banner {
    margin: 16px 0;
    background: linear-gradient(135deg, var(--oem-color, #1c2b39) 0%, var(--oem-color-dark, #0d1620) 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bvdp-offer-banner a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bvdp-offer-banner a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff;
}

.bvdp-offer-icon {
    font-size: 20px;
    margin-right: 12px;
    opacity: 0.9;
}

.bvdp-offer-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    font-family: Roboto, 'Inter', sans-serif;
}

.bvdp-offer-arrow {
    font-size: 14px;
    opacity: 0.7;
}

/* Available Offers Section - Calculator */
.bvdp-available-offers {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border-top: none !important;
    border: none !important;
}

.bvdp-available-offers h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.bvdp-offers-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.bvdp-offers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Offer Item */
.bvdp-offer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.bvdp-offer-item:hover {
    border-color: #ccc !important;
}

.bvdp-offer-item.auto-applied {
    background: #f0f7f0 !important;
    border-color: #c3e6c3 !important;
    cursor: default;
}

.bvdp-offer-item.excluded {
    background: #fff;
    opacity: 0.7;
}

.bvdp-offer-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--oem-color, #1c2b39);
}

.bvdp-offer-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.bvdp-offer-details {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bvdp-offer-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    cursor: pointer;
}

.bvdp-offer-description {
    font-size: 12px;
    color: #666;
}

.bvdp-offer-amount {
    font-size: 15px;
    font-weight: 700;
    color: #1a5f7a;
    white-space: nowrap;
}

.bvdp-offer-item.excluded .bvdp-offer-amount {
    color: #999;
}

/* Auto-applied badge */
.bvdp-offer-auto-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    background: #1a3b5d;
    color: #fff;
    border-radius: 3px;
    vertical-align: middle;
}

/* Off-program rate notice */
.bvdp-off-program-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #6d5c00;
}
.bvdp-off-program-notice i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #f9a825;
    font-size: 15px;
}

/* Applied tag for checked incentives */
.bvdp-applied-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    color: #fff;
    border-radius: 3px;
    vertical-align: middle;
}

/* ===========================================
   HERO INCENTIVE BADGES (Below Price Section)
   =========================================== */
.bvdp-incentive-badges {
    margin-top: 16px !important;
    margin-bottom: 10px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bvdp-incentive-badge {
    display: flex;
    align-items: center;
    background: #eaf2fb !important;
    border: 1px solid #b8d4f0 !important;
    border-radius: 8px;
    padding: 12px 16px !important;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.bvdp-incentive-badge:hover {
    border-color: #cc0000 !important;
    background: #dce9f7 !important;
    box-shadow: 0 2px 8px rgba(26, 59, 93, 0.12);
}

.bvdp-incentive-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.bvdp-incentive-badge-icon .fa {
    color: #fff;
    font-size: 14px;
}

/* EVAP Badge on VDP hero */
.bvdp-evap-badge {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bvdp-evap-badge .veh-badge-evap {
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
}

.bvdp-evap-badge-label {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 500;
}

/* EVAP offer item in Available Offers section */
.bvdp-offer-item.evap-offer {
    border-left: 3px solid #2e7d32;
}

.bvdp-incentive-badge-content {
    flex: 1;
    min-width: 0;
}

.bvdp-incentive-badge-title {
    font-size: 14px;
    font-weight: 600;
    color: #1c2b39;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.bvdp-incentive-badge-subtitle {
    font-size: 13px;
    color: #cc0000;
    margin: 0;
    line-height: 1.3;
}

.bvdp-incentive-badge-arrow {
    color: #cc0000;
    font-size: 14px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .bvdp-offer-banner a {
        padding: 12px 14px;
    }

    .bvdp-offer-text {
        font-size: 14px;
    }

    .bvdp-offer-item {
        padding: 10px 12px;
    }

    .bvdp-offer-name {
        font-size: 13px;
    }

    .bvdp-offer-amount {
        font-size: 14px;
    }

    .bvdp-incentive-badges {
        margin-top: 12px !important;
    }

    .bvdp-incentive-badge {
        padding: 10px 12px;
    }

    .bvdp-incentive-badge-icon {
        width: 32px;
        height: 32px;
    }

    .bvdp-incentive-badge-icon .fa {
        font-size: 12px;
    }

    .bvdp-incentive-badge-title {
        font-size: 13px;
    }

    .bvdp-incentive-badge-subtitle {
        font-size: 11px;
    }
}
/* Build and Price Configure Page - Drivethru Layout */
.bpv2-configure-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 0 15px 60px 15px;
    margin-left: 0 !important;
}

.bpv2-configure-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Back Navigation */
.bpv2-back-nav {
    padding: 15px 0;
}
.bpv2-back-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.bpv2-back-nav a:hover {
    color: #c00;
}
.bpv2-back-nav .fa {
    margin-right: 5px;
}

/* Main Layout - Drivethru Style */
.bpv2-main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.bpv2-content-col {
    flex: 0 0 60%;
    min-width: 0;
}

.bpv2-sidebar-col {
    flex: 0 0 calc(40% - 30px);
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Hero Card - Vehicle Image and Title */
.bpv2-hero-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bpv2-hero-content {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

/* Info Header - Title and Specs above gallery */
.bpv2-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.bpv2-info-title-row {
    flex-shrink: 0;
}

.bpv2-gallery-col {
    width: 100%;
}

/* Gallery Styles */
.bpv2-gallery-main {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.bpv2-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Loading Spinner */
.bpv2-gallery-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bpv2-gallery-loader.active {
    display: flex;
}

.bpv2-gallery-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #c00;
    border-radius: 50%;
    animation: bpv2-spin 0.8s linear infinite;
}

@keyframes bpv2-spin {
    to {
        transform: rotate(360deg);
    }
}

.bpv2-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.bpv2-gallery-nav:hover {
    background: rgba(0,0,0,0.7);
}

.bpv2-gallery-prev { left: 10px; }
.bpv2-gallery-next { right: 10px; }

.bpv2-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.bpv2-gallery-thumb {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bpv2-gallery-thumb:hover,
.bpv2-gallery-thumb.active {
    opacity: 1;
    border-color: #c00;
}

.bpv2-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle Info */
.bpv2-vehicle-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.bpv2-vehicle-trim {
    font-size: 20px;
    font-weight: 400;
    color: #666;
    margin: 0;
    display: inline;
}

.bpv2-details-toggle {
    display: inline;
    color: #c00;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

.bpv2-details-toggle:hover {
    text-decoration: underline;
}

.bpv2-trim-row {
    margin-bottom: 0;
}

/* Specs Grid */
.bpv2-specs-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.bpv2-specs-grid.collapsed {
    display: none;
}

.bpv2-spec-cell {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
}

.bpv2-spec-value {
    font-weight: 700;
    color: #000000;
    font-size: 14px;
    margin-bottom: 2px;
}

.bpv2-spec-label {
    color: #777;
    font-size: 11px;
}

/* Configuration Sections */
.bpv2-config-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bpv2-disclaimer-section {
    line-height: 1.6;
    color: #555;
}

.bpv2-disclaimer-section p {
    margin: 0;
    font-size: 14px;
}

.bpv2-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
}

/* Color Swatches */
.bpv2-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.bpv2-color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.bpv2-color-swatch:hover {
    border-color: #999;
}

.bpv2-color-swatch.active {
    border-color: #c00;
}

.bpv2-color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.bpv2-selected-color {
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.bpv2-selected-color-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bpv2-selected-color-price {
    font-size: 14px;
    color: #c00;
    font-weight: 600;
    margin-left: 8px;
}

/* Key Features */
.bpv2-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bpv2-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.bpv2-feature-list li .fa {
    color: #28a745;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Sidebar - Calculator Card */
.bpv2-calculator-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

.bpv2-calc-price-header {
    background: #000000;
    color: #fff;
    padding: 25px;
    text-align: center;
}

.bpv2-calc-price-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.bpv2-calc-price-label {
    font-size: 14px;
    opacity: 0.8;
}

.bpv2-calc-body {
    padding: 20px;
}

/* Payment Tabs */
.bpv2-payment-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.bpv2-payment-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.bpv2-payment-tab:hover {
    color: #333;
}

.bpv2-payment-tab.active {
    color: #c00;
}

.bpv2-payment-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #c00;
}

/* Payment Content */
.bpv2-payment-content {
    display: none;
}

.bpv2-payment-content.active {
    display: block;
}

.bpv2-payment-result {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bpv2-payment-amount {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

.bpv2-payment-amount span {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.bpv2-payment-details {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Term Buttons */
.bpv2-term-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.bpv2-term-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.bpv2-term-btn:hover {
    border-color: #c00;
}

.bpv2-term-btn.active {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* Form Group */
.bpv2-form-group {
    margin-bottom: 15px;
}

.bpv2-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bpv2-form-group select,
.bpv2-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Price Breakdown */
.bpv2-price-breakdown {
    margin-top: 0;
}

.bpv2-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.bpv2-price-row.total {
    border-top: 2px solid #000000;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 16px;
}

/* CTA Buttons */
.bpv2-cta-section {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.bpv2-cta-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    text-decoration: none;
}

.bpv2-cta-btn.primary {
    background: #c00;
    color: #fff;
}

.bpv2-cta-btn.primary:hover {
    background: #a00;
    color: #fff;
}

.bpv2-cta-btn.outline {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.bpv2-cta-btn.outline:hover {
    border-color: #c00;
    color: #c00;
}

.bpv2-cta-btn .fa {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .bpv2-content-col {
        flex: 0 0 55%;
    }
    
    .bpv2-sidebar-col {
        flex: 0 0 calc(45% - 30px);
    }
    
    /* Stack info header on smaller screens */
    .bpv2-info-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .bpv2-specs-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .bpv2-main-layout {
        flex-direction: column;
    }
    
    .bpv2-sidebar-col {
        width: 100%;
        flex: none;
        position: static;
        order: 10;
    }
    
    .bpv2-content-col {
        width: 100%;
        flex: none;
        order: 1;
    }
    
    /* Hide specs by default on tablet/mobile, show with toggle */
    .bpv2-specs-grid {
        display: none;
    }
    
    .bpv2-specs-grid:not(.collapsed) {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .bpv2-vehicle-title {
        font-size: 24px;
    }

    .bpv2-disclaimer-section p {
        font-size: 12px;
    }
    
    .bpv2-feature-list {
        grid-template-columns: 1fr;
    }
    
    .bpv2-spec-cell {
        flex: 1 1 45%;
    }
}

/* Modal Header White Text */
#contactModal .modal-header {
    color: #fff;
}
#contactModal .modal-header .modal-title {
    color: #fff;
}
#contactModal .modal-header .close {
    color: #fff;
    opacity: 1;
}
#contactModal .modal-header .close:hover {
    color: #fff;
    opacity: 0.8;
}

/* ===== Modern Form Styling for Contact Modal (parity with Models page) ===== */
#contactModal.in,
#contactModal.show,
#contactModal.in .modal-dialog,
#contactModal.show .modal-dialog,
#contactModal.in .modal-content,
#contactModal.show .modal-content {
    visibility: visible !important;
    opacity: 1 !important;
}

#contactModal .modal-dialog {
    max-width: 520px !important;
    margin: 30px auto !important;
}

#contactModal .modal-content {
    border: none !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

#contactModal .modal-header {
    background: var(--primary-color, #eb0a1e) !important;
    padding: 16px 24px !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#contactModal .modal-header .modal-title {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    flex-grow: 1 !important;
    order: 1 !important;
}

#contactModal .modal-header .close {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    order: 2 !important;
}

#contactModal .modal-body {
    padding: 24px !important;
    background: #fff !important;
}

#contactModal .bpv2-modal-vehicle-info {
    background: #f8f9fa !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid var(--primary-color, #eb0a1e) !important;
}

#contactModal .bpv2-modal-vehicle-info strong {
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

#contactModal .form-group label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.01em !important;
}

#contactModal .form-control {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #1a1a1a !important;
    background-color: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#contactModal .form-control:focus {
    border-color: var(--primary-color, #eb0a1e) !important;
    box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1) !important;
    outline: none !important;
}

#contactModal .form-control::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

#contactModal textarea.form-control {
    min-height: 100px !important;
    resize: vertical !important;
}

#contactModal .form-group {
    margin-bottom: 16px !important;
}

#contactModal .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Allow testDriveDateGroup to be hidden when display:none is set */
#contactModal #testDriveDateGroup[style*="display: none"],
#contactModal #testDriveDateGroup[style*="display:none"] {
    display: none !important;
}

#contactModal .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#contactModal .modal-footer {
    padding: 16px 24px 16px 0 !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#contactModal .modal-footer .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
}

#contactModal .modal-footer .btn::after,
#contactModal .modal-footer .btn::before,
#contactModal .modal-footer .btn i,
#contactModal .modal-footer .btn svg {
    display: none !important;
}

#contactModal .modal-footer .btn-outlined-dark,
#contactModal .modal-footer .btn[type="submit"],
#contactModal .modal-footer .btn:last-of-type {
    background: var(--primary-color, #eb0a1e) !important;
    color: #fff !important;
    border: none !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    max-width: calc(70% - 6px) !important;
    min-width: auto !important;
}

#contactModal .modal-footer .btn-outlined-dark:hover,
#contactModal .modal-footer .btn[type="submit"]:hover,
#contactModal .modal-footer .btn:last-of-type:hover {
    opacity: 0.9 !important;
}

#contactModal .modal-footer .btn[data-dismiss="modal"],
#contactModal .modal-footer .btn:first-of-type:not(:last-of-type) {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d0d5dd !important;
    order: 2 !important;
    flex: 0 0 auto !important;
    max-width: calc(30% - 6px) !important;
    min-width: auto !important;
    width: calc(30% - 6px) !important;
}

#contactModal .modal-footer .btn[data-dismiss="modal"]:hover,
#contactModal .modal-footer .btn:first-of-type:not(:last-of-type):hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}
/* Standard Equipment Section */
.bpv2-standard-equipment-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bpv2-standard-equipment-section .bpv2-section-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.bpv2-standard-equipment-section .bpv2-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

/* Standard Equipment Feature Categories - Stacked Accordion */
.bpv2-standard-equipment-section .features-categories {
    display: flex;
    flex-direction: column;
}

.bpv2-standard-equipment-section .feature-category {
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
}

.bpv2-standard-equipment-section .feature-category:last-child {
    border-bottom: none;
}

.bpv2-standard-equipment-section .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bpv2-standard-equipment-section .category-header:hover {
    background: #f8f9fa;
}

.bpv2-standard-equipment-section .category-name {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bpv2-standard-equipment-section .category-icon {
    margin: 0;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.bpv2-standard-equipment-section .category-features {
    display: none;
    padding: 0 10px 20px;
}

.bpv2-standard-equipment-section .feature-category.expanded .category-features {
    display: block;
}

.bpv2-standard-equipment-section .feature-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    columns: 2;
    column-gap: 40px;
}

.bpv2-standard-equipment-section .feature-list li {
    font-size: 14px;
    color: #333;
    padding: 5px 0;
    break-inside: avoid;
}

.bpv2-standard-equipment-section .loading-features {
    text-align: center;
    padding: 40px;
    color: #666;
}

.bpv2-standard-equipment-section .no-features {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .bpv2-standard-equipment-section .feature-list {
        columns: 1;
    }
}
@media (max-width: 576px) {
    #contactModal .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    #contactModal .modal-body {
        padding: 20px !important;
    }

    #contactModal .modal-footer {
        padding: 12px 16px 12px 0 !important;
        flex-direction: row !important;
        gap: 10px !important;
    }

    #contactModal .modal-footer .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Price Breakdown - Subtotal and Tax Rows */
.bpv2-price-breakdown .bpv2-price-row.subtotal {
    padding-top: 10px;
    margin-top: 5px;
    font-weight: 500;
}

.bpv2-price-breakdown .bpv2-price-row.tax-row {
    color: #666;
    font-size: 13px;
}

/* Collapsible Price Breakdown */
.bpv2-breakdown-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
    transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
}

.bpv2-breakdown-collapsible.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
    transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

/* Total row inside collapsible - remove top border */
.bpv2-breakdown-collapsible .bpv2-price-row.total {
    border-top: none;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 16px;
}

/* Toggle Row - Contains HST toggle and Breakdown toggle */
.bpv2-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

/* Breakdown Toggle Link */
.bpv2-breakdown-toggle,
.bpv2-breakdown-toggle:link,
.bpv2-breakdown-toggle:visited,
.bpv2-breakdown-toggle:hover,
.bpv2-breakdown-toggle:active,
.bpv2-breakdown-toggle:focus {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.bpv2-breakdown-toggle .fa {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.bpv2-breakdown-toggle.expanded .fa {
    transform: rotate(180deg);
}

.bpv2-breakdown-toggle.expanded .bpv2-breakdown-toggle-text::before {
    content: "Hide";
}

.bpv2-breakdown-toggle.expanded .bpv2-breakdown-toggle-text {
    font-size: 0;
}

.bpv2-breakdown-toggle.expanded .bpv2-breakdown-toggle-text::before {
    font-size: 13px;
}

/* Tax Toggle Switch */
.bpv2-tax-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.bpv2-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

.bpv2-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bpv2-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.bpv2-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.bpv2-toggle-switch input:checked + .bpv2-toggle-slider {
    background-color: var(--primary-color, #eb0a1e);
}

.bpv2-toggle-switch input:checked + .bpv2-toggle-slider:before {
    transform: translateX(20px);
}

.bpv2-toggle-label {
    font-size: 13px;
    color: #666;
}

/* Make sidebar not sticky (scrollable) */
.bpv2-sidebar-col {
    position: static !important;
    top: auto !important;
}

/* Down Payment & Trade-In Section */
.bpv2-down-trade-section {
    padding: 10px 0 0 0;
    border-top: 1px solid #eee;
    margin-top: 5px;
    margin-bottom: 0;
}

.bpv2-down-trade-row {
    display: flex;
    gap: 15px;
}

.bpv2-down-payment-group,
.bpv2-trade-in-group {
    flex: 1;
    margin-bottom: 0;
}

.bpv2-down-trade-section .bpv2-form-group label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.bpv2-currency-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.bpv2-currency-input input:focus {
    border-color: var(--primary-color, #c00);
    outline: none;
}

.bpv2-verify-trade-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--primary-color, #c00);
    text-decoration: none;
}

.bpv2-verify-trade-link:hover {
    text-decoration: underline;
}

/* Hide down payment/trade section for Cash tab */
.bpv2-payment-content.active ~ .bpv2-down-trade-section {
    display: block;
}

#cashContent.active ~ .bpv2-down-trade-section {
    display: none;
}

/* Modal z-index fixes to ensure modal covers fixed header */
.modal-backdrop {
    z-index: 10050 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

.modal {
    z-index: 10060 !important;
}

#contactModal {
    z-index: 10060 !important;
}

#contactModal .modal-dialog {
    z-index: 10061;
}

