/*
 * CarGurus-inspired theme — clean white layout, blue accents, system-like sans-serif
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --impl-primary-color: #00357a;
    --impl-primary-hover: #002a61;
    --impl-gradient-color: linear-gradient(180deg, #003d8a 0%, #00357a 100%);
    --impl-white-color: #ffffff;
    --impl-font-color: #4a4a4a;
    --impl-heading-color: #1a1a1a;
    --impl-bg-color: #1a1a1a;
    --impl-border-radius: 8px;
    --impl-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    --impl-transition: all 0.2s ease;
    --cg-section-alt: #f5f7fa;
    --cg-border: #e5e7eb;
    --cg-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cg-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--impl-font-color);
    background-color: var(--impl-white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cg-font);
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

/* ── Header & nav ── */
.impl_main_wrapper {
    overflow: visible !important;
    height: auto !important;
    min-height: 100%;
}

.impl_header_wrapper {
    background: var(--impl-white-color);
    border-bottom: 1px solid var(--cg-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 5000;
    overflow: visible !important;
}

.impl_banner_section,
.impl_page_banner_section {
    overflow: visible !important;
    position: relative;
}

/* Inner pages: nav band stacks above breadcrumb so dropdowns are not clipped */
.impl_inner_page_top {
    position: relative;
    z-index: 5000;
    overflow: visible !important;
}

.impl_inner_nav_band {
    position: relative;
    z-index: 2;
    overflow: visible !important;
    border-bottom: none;
}

.impl_inner_breadcrumb_band {
    position: relative;
    z-index: 1;
    background: var(--impl-white-color);
    border-bottom: 1px solid var(--cg-border);
}

.impl_navbar,
.impl_nav_item,
.impl_navbar_nav,
.impl_navbar .row,
.impl_header_wrapper .col-12,
.impl_header_wrapper .container-fluid {
    overflow: visible !important;
}

.impl_nav_item {
    position: relative;
    z-index: 5001;
}

.impl_menu_dd {
    position: relative;
    z-index: 5002;
}

.impl_navbar .impl_logo {
    min-height: 60px;
    padding: 10px 15px;
}

.impl_navbar_nav li a {
    font-weight: 500;
    font-size: 15px;
}

.impl_sub_menu {
    border-bottom: 3px solid var(--impl-primary-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 5100;
    top: calc(100% + 4px);
    left: 0;
    min-width: 240px;
    background: #fff;
}

.impl_sub_menu.open {
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.impl_section_wrapper,
.impl_listing_wrapper,
.impl_makes_wrapper,
.impl_curated_lanes,
.impl_ai_recommendations {
    position: relative;
    z-index: 1;
}

/* ── Hero / banner — white, no orange ── */
.impl_banner_section {
    background: var(--impl-white-color);
    background-image: none;
}

.impl_banner_section::before {
    display: none;
}

.impl_banner_wrapper {
    padding: 48px 0 64px;
}

.impl_banner_text h6 {
    font-size: 15px;
    font-weight: 500;
    color: var(--impl-font-color);
    letter-spacing: 0.01em;
}

.impl_banner_text h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--impl-heading-color);
    margin-top: 8px;
}

.impl_banner_tab li a {
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.impl_banner_tab li a.active,
.impl_banner_tab li a:hover {
    color: var(--impl-primary-color);
    border-bottom-color: var(--impl-primary-color);
}

.impl_banner_form {
    border: 1px solid var(--cg-border);
    border-radius: 12px;
    box-shadow: var(--impl-box-shadow);
    flex-wrap: wrap;
    gap: 0;
    padding: 6px;
}

.impl_banner_dropdown select {
    font-family: var(--cg-font);
    font-size: 15px;
    padding: 16px 0;
}

.impl_banner_btn .impl_btn,
.impl_btn {
    font-family: var(--cg-font);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    background: var(--impl-primary-color);
    background-image: none;
    min-height: 48px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.impl_btn:hover {
    background: var(--impl-primary-hover);
    transform: none;
}

.impl_btn.impl_btn_outline {
    background: transparent;
    border: 2px solid var(--impl-primary-color);
    color: var(--impl-primary-color);
}

.impl_btn.impl_btn_outline:hover {
    background: var(--impl-primary-color);
    color: var(--impl-white-color);
    background-image: none;
}

/* ── Section backgrounds — white / light gray only ── */
.impl_about_wrapper,
.impl_choose_wrapper,
.impl_news_wrapper {
    background-color: var(--impl-white-color);
    border-radius: 0;
}

.impl_section_wrapper {
    padding: 56px 0 !important;
    background-color: var(--impl-white-color);
}

.impl_section_wrapper:nth-child(even),
.impl_type_wrapper,
.impl_ai_recommendations {
    background-color: var(--cg-section-alt) !important;
}

.impl_explore_card:hover .impl_explore_bottom {
    background-color: #eef4f9;
}

/* ── Inner page banner ── */
.impl_page_banner_section {
    background: var(--impl-white-color);
    background-image: none;
    border-bottom: 1px solid var(--cg-border);
}

.impl_inner_nav_band.impl_page_banner_section {
    border-bottom: none;
}

.impl_page_wrapper {
    padding: 32px 50px 24px !important;
}

.impl_page_heading h3 {
    text-transform: none;
    font-weight: 700;
    color: var(--impl-heading-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ── Cards & listings ── */
.impl_explore_box {
    border-radius: 10px;
    border-color: var(--cg-border);
    transition: box-shadow 0.2s ease;
}

.impl_explore_card:hover .impl_explore_box {
    box-shadow: var(--impl-box-shadow);
}

.impl_fiter_tab li a.active {
    background: var(--impl-primary-color);
    background-image: none;
    border-radius: 6px;
}

.impl_section_heading h3,
.curated-heading,
.impl_page_heading h3,
.impl_booking_heading h3,
.impl_contact_heading h3,
.ai-section-heading .section-heading-title {
    font-family: var(--cg-font);
    color: var(--impl-heading-color);
    font-weight: 700;
}

/* ── Loader ── */
.ball {
    background: var(--impl-primary-color);
    background-image: none;
}

/* ── Tabs & curated ── */
.curated-tabs .nav-link {
    border-color: var(--impl-primary-color);
    font-family: var(--cg-font);
    border-radius: 24px;
}

.curated-tabs .nav-link:hover,
.curated-tabs .nav-link.active {
    background: var(--impl-primary-color);
    border-color: var(--impl-primary-color);
}

/* ── Swiper controls ── */
.swiper-button-next,
.swiper-button-prev {
    background: var(--impl-white-color);
    color: var(--impl-heading-color);
    border: 1px solid var(--cg-border);
    box-shadow: var(--impl-box-shadow);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--impl-primary-color);
    color: var(--impl-white-color);
}

/* ── Footer ── */
.impl_footer_wrapper {
    background-image: none;
    background-color: #1a1a1a;
}

/* ── Discovery actions ── */
.discovery-actions .btn-like {
    background: var(--impl-primary-color);
    border-color: var(--impl-primary-color);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .impl_banner_wrapper {
        padding: 40px 0 48px;
    }

    .impl_banner_form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .impl_banner_dropdown {
        flex-direction: column;
    }

    .impl_banner_dropdown span {
        padding: 0 !important;
        border-bottom: 1px solid var(--cg-border);
    }

    .impl_banner_dropdown span::after {
        display: none;
    }

    .impl_banner_dropdown select {
        width: 100%;
        padding: 14px 12px;
    }

    .impl_banner_btn,
    .impl_banner_btn .impl_btn {
        width: 100%;
        margin-top: 8px;
    }

    .impl_page_wrapper {
        padding: 24px 16px 16px !important;
    }

    .impl_section_wrapper {
        padding: 40px 0 !important;
    }

    .impl_nav_item {
        background: var(--impl-white-color);
    }
}

@media (max-width: 767.98px) {
    .impl_banner_tab {
        gap: 20px;
        flex-wrap: wrap;
    }

    .impl_banner_text h1 {
        font-size: 1.75rem;
    }

    .impl_page_heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .impl_container,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .impl_about_wrapper,
    .impl_choose_wrapper,
    .impl_news_wrapper {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
}

@media (max-width: 575.98px) {
    .impl_banner_wrapper {
        padding: 28px 0 36px;
    }

    .impl_banner_tab {
        gap: 12px 20px;
    }

    .impl_section_wrapper {
        padding: 32px 0 !important;
    }
}

/* Prevent horizontal overflow on small screens */
.impl_main_wrapper,
.container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* ── Hero search button centered ── */
.impl_banner_form {
    flex-direction: column;
    align-items: stretch;
}

.impl_banner_dropdown {
    width: 100%;
}

.impl_banner_btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.impl_banner_btn .impl_btn {
    min-width: 220px;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .impl_banner_form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .impl_banner_btn {
        flex: 0 0 100%;
        justify-content: center;
        margin-top: 12px;
    }
}

/* ── No hover overlay icons (CarGurus style) ── */
.impl_explore_links,
.cg-vehicle-card .impl_explore_links,
.impl_curated_lanes .impl_explore_links,
.impl_ai_recommendations .impl_explore_links,
.impl_listing_wrapper .impl_explore_links {
    display: none !important;
}

/* ── Unified homepage vehicle card (Explore, Curated, AI) ── */
.cg-vehicle-card {
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cg-vehicle-card:hover {
    border-color: #c5d4e4;
    box-shadow: 0 4px 14px rgba(0, 53, 122, 0.08);
}

.cg-vehicle-card .impl_explore_box {
    border: none;
    box-shadow: none;
    background: #fff;
    padding: 0;
    border-radius: 10px;
}

.cg-vehicle-card .impl_explore_img {
    border-radius: 10px 10px 0 0;
    max-height: 220px;
}

.cg-vehicle-card .impl_explore_img::before {
    display: none;
}

.cg-vehicle-card .impl_explore_img > img,
.cg-vehicle-card .impl_explore_img a img {
    min-height: 200px;
    width: 100%;
    object-fit: cover;
}

.cg-vehicle-card .cg-vehicle-card__body {
    padding: 0 14px 14px;
    background: #fff;
}

.cg-vehicle-card .impl_veh_price {
    position: static;
    padding: 12px 0 2px;
    text-align: left;
}

.cg-vehicle-card .impl_veh_price h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--impl-primary-color);
    margin: 0;
}

.cg-vehicle-card .impl_explore_text {
    margin: 6px 0 0;
}

.cg-vehicle-card .impl_explore_text h6 {
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

.cg-vehicle-card .impl_explore_text h6 a {
    color: var(--impl-primary-color);
}

.cg-vehicle-card .impl_explore_text h6 a:hover {
    color: var(--impl-primary-hover);
}

.cg-vehicle-card .cg-vehicle-card__dealer {
    font-size: 0.8125rem;
}

.cg-vehicle-card .cg-vehicle-card__specs,
.cg-vehicle-card .impl_explore_bottom {
    background: #fff !important;
    border-top: 1px solid #f0f2f5;
    border-radius: 0;
    padding: 10px 0 0;
    margin-top: 10px;
    text-align: center;
}

.cg-vehicle-card:hover .impl_explore_bottom,
.cg-vehicle-card:hover .cg-vehicle-card__specs {
    background: #fff !important;
}

.cg-vehicle-card .impl_explore_info svg {
    fill: var(--impl-primary-color);
    width: 22px;
    height: auto;
}

.cg-vehicle-card .impl_explore_info h6 {
    color: var(--impl-primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.cg-vehicle-card .deal-badge {
    top: 8px;
    left: 8px;
}

.impl_curated_lanes .swiper-slide,
.impl_ai_recommendations .swiper-slide {
    height: auto;
}

/* Curated + AI carousels — same card UI as Explore (override legacy head.php rules) */
.impl_curated_lanes .cg-vehicle-card .impl_veh_price,
.impl_ai_recommendations .cg-vehicle-card .impl_veh_price {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    padding: 12px 0 2px;
    text-align: left;
}

.impl_curated_lanes .cg-vehicle-card .impl_explore_img,
.impl_ai_recommendations .cg-vehicle-card .impl_explore_img {
    transform: none !important;
    transition: none !important;
}

.impl_curated_lanes .cg-vehicle-card:hover,
.impl_ai_recommendations .cg-vehicle-card:hover {
    transform: none !important;
}

.impl_curated_lanes .cg-vehicle-card .impl_explore_bottom,
.impl_ai_recommendations .cg-vehicle-card .impl_explore_bottom {
    background: #fff !important;
    border-top: 1px solid #f0f2f5;
    border-radius: 0;
}

.impl_explore_wrapper .explore-vehicle-card[data-aos],
.impl_curated_lanes [data-aos],
.impl_ai_recommendations [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.explore-vehicle-card.d-none {
    display: none !important;
}

/* Deal badges */
.cg-deal-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: none;
}

.cg-deal-badge--great,
.cg-deal-badge.cg-deal-badge--great {
    background: #e8f5e9;
    color: #2e7d32;
}

.cg-deal-badge--good,
.cg-deal-badge.cg-deal-badge--good {
    background: #e3f2fd;
    color: #1565c0;
}

.cg-deal-badge--fair {
    background: #fff8e1;
    color: #f57f17;
}

/* ── Listing page — CarGurus list grid ── */
.impl_listing_wrapper .row.g-4 {
    --bs-gutter-y: 1rem;
}

.cg-listing-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    margin-bottom: 0;
}

.cg-listing-card:hover {
    border-color: #c5d4e4;
    box-shadow: 0 4px 16px rgba(0, 53, 122, 0.08);
}

.cg-listing-card__media {
    flex: 0 0 42%;
    max-width: 280px;
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f4f6;
}

.cg-listing-card__media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.cg-listing-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.cg-listing-card__badge--cpo {
    background: #e8f5e9;
    color: #2e7d32;
}

.cg-listing-card__body {
    flex: 1;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.cg-listing-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.cg-listing-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cg-listing-card__title a {
    color: var(--impl-heading-color);
    text-decoration: none;
}

.cg-listing-card__title a:hover {
    color: var(--impl-primary-color);
}

.cg-listing-card__trim {
    font-size: 0.875rem;
}

.cg-listing-card__save {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cg-border);
    border-radius: 50%;
    color: var(--impl-font-color);
    font-size: 1.15rem;
    text-decoration: none;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cg-listing-card__save:hover {
    border-color: var(--impl-primary-color);
    color: var(--impl-primary-color);
}

.cg-listing-card__meta,
.cg-listing-card__specs {
    font-size: 0.875rem;
}

.cg-listing-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.35rem;
}

.cg-listing-card__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--impl-heading-color);
    line-height: 1.1;
}

.cg-listing-card__cta {
    min-width: auto !important;
    min-height: 40px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .cg-listing-card {
        flex-direction: column;
    }

    .cg-listing-card__media {
        flex: none;
        max-width: none;
        width: 100%;
    }

    .cg-listing-card__media img {
        min-height: 200px;
        max-height: 220px;
    }

    .cg-listing-card__price-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cg-listing-card__cta {
        width: 100%;
        justify-content: center;
    }
}

/* Explore section tabs */
.impl_explore_wrapper .impl_fiter_tab {
    margin-bottom: 1.5rem;
}

.impl_explore_wrapper .impl_fiter_tab .impl_btn:not(.active) {
    background: #fff;
    color: var(--impl-heading-color);
    border: 1px solid var(--cg-border);
}

.impl_explore_wrapper .impl_fiter_tab .impl_btn.active {
    background: var(--impl-primary-color);
    color: #fff;
    border-color: var(--impl-primary-color);
}

/* ── Listing page — 2-column grid cards ── */
.cg-listing-card--grid {
    flex-direction: column;
    height: 100%;
}

.cg-listing-card--grid .cg-listing-card__media--grid {
    flex: none;
    max-width: none;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.cg-listing-card--grid .cg-listing-card__media--grid img {
    min-height: 200px;
    max-height: 220px;
    width: 100%;
    object-fit: cover;
}

.cg-listing-card--grid .cg-listing-card__deal {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.cg-listing-card--grid .cg-listing-card__body {
    padding: 0 14px 14px;
    gap: 0.35rem;
}

.cg-listing-card--grid .cg-listing-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--impl-primary-color);
    order: -2;
    padding-top: 10px;
}

.cg-listing-card--grid .cg-listing-card__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.cg-listing-card--grid .cg-listing-card__title a {
    color: var(--impl-primary-color);
}

.cg-listing-card--grid .cg-listing-card__dealer {
    font-size: 0.8125rem;
}

.cg-listing-card--grid .cg-listing-card__specs {
    margin-top: 8px;
    padding-top: 10px;
}

.cg-listing-card--grid .cg-listing-card__cta {
    margin-top: 10px;
}

.impl_listing_wrapper .row.g-4 > .listing-grid-card {
    display: flex;
}

@media (min-width: 992px) {
    .impl_listing_wrapper .row.g-4 > .listing-grid-card.col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.impl_listing_wrapper .listing-grid-card .cg-vehicle-card {
    width: 100%;
}

.impl_listing_wrapper .cg-vehicle-card .impl_explore_links {
    display: none !important;
}

/* Desktop only — tablet/mobile use accordion drawer submenu */
@media (min-width: 1200px) {
    .impl_sub_menu {
        position: absolute !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Tablet + mobile hamburger drawer — Services dropdown must expand inline */
@media (max-width: 1199.98px) {
    body.menu-open .impl_header_wrapper,
    body.menu-open .impl_inner_page_top,
    body.menu-open .impl_inner_nav_band {
        z-index: 10250 !important;
        position: relative;
    }

    .impl_navbar_nav {
        z-index: 10260 !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: #fff !important;
        padding-bottom: 40px;
    }

    .menu-open .impl_body_overlay {
        z-index: 10240 !important;
        pointer-events: auto !important;
    }

    body.menu-open .impl_toggle_btn {
        position: relative;
        z-index: 10270;
    }

    .impl_navbar_nav .impl_menu_dd {
        width: 100%;
    }

    .impl_navbar_nav .impl_menu_dd > a {
        width: 100%;
    }

    .impl_navbar_nav .impl_sub_menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        min-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        display: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-bottom: none !important;
        background: #f8fafc !important;
        margin: 0;
        padding: 0;
    }

    .impl_navbar_nav .impl_sub_menu.open,
    .impl_navbar_nav .impl_menu_dd.is-open > .impl_sub_menu {
        display: block !important;
        padding: 4px 0 8px !important;
    }

    .impl_navbar_nav .impl_menu_dd.is-open > a img {
        transform: rotate(180deg);
    }

    .impl_navbar_nav .impl_sub_menu li a {
        color: var(--impl-heading-color) !important;
        border-bottom-color: #e5e7eb !important;
        padding: 10px 0 8px 12px !important;
        font-size: 14px !important;
    }
}

/* ── Vehicle detail page (CarGurus VDP) ── */
.cg-vdp {
    background: #fff;
}

.cg-vdp-sidebar {
    position: sticky;
    top: 100px;
    border: 1px solid var(--cg-border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    background: #fff;
}

.cg-vdp-sidebar__meta {
    font-size: 0.9rem;
}

.cg-vdp-sidebar__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--impl-heading-color);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.cg-vdp-sidebar__price {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--impl-heading-color);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.cg-vdp-sidebar__deal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cg-vdp-sidebar__deal-note {
    font-size: 0.875rem;
    font-weight: 600;
}

.cg-vdp-feature {
    border: 1px solid var(--cg-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #fff;
    height: 100%;
}

.cg-vdp-feature__label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cg-vdp-feature strong {
    display: block;
    font-size: 0.9rem;
    color: var(--impl-heading-color);
    font-weight: 600;
    line-height: 1.35;
}

.cg-vdp-overview,
.cg-vdp-dealer,
.cg-vdp-request,
.impl_listingSingle_wrapper .impl_listing_contact_card {
    border-color: var(--cg-border) !important;
}

.impl_listingSingle_wrapper .impl_listing_main_stage {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--cg-border);
}

.impl_listingSingle_wrapper .impl_auto_tab li a.active {
    background: var(--impl-primary-color);
    color: #fff;
}

@media (max-width: 991.98px) {
    .cg-vdp-sidebar {
        position: static;
        margin-top: 1rem;
    }
}

/* ── Compact vehicle detail page ── */
.cg-vdp--compact {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
}

.cg-vdp--compact .cg-vdp-sidebar {
    padding: 1rem 1.1rem;
    top: 88px;
}

.cg-vdp--compact .cg-vdp-sidebar__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cg-vdp--compact .cg-vdp-sidebar__price {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.cg-vdp--compact .cg-vdp-sidebar__includes {
    margin-bottom: 0.75rem !important;
}

.cg-vdp--compact .cg-vdp-sidebar__actions {
    margin-bottom: 0.75rem !important;
}

.cg-vdp--compact .cg-vdp-request {
    padding: 0.75rem !important;
}

.cg-vdp--compact .cg-vdp-features {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.cg-vdp--compact .cg-vdp-feature {
    padding: 0.65rem 0.75rem;
}

.cg-vdp--compact .cg-vdp-overview,
.cg-vdp--compact .cg-vdp-dealer {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.cg-vdp--compact .impl_listing_main_stage .display-img {
    max-height: 380px;
    object-fit: cover;
}

.cg-vdp--compact .impl_listing_contact_card {
    padding: 1rem !important;
}

.cg-vdp--compact .impl_auto_tab {
    margin-bottom: 0.75rem;
}

/* Vehicle detail — compact breadcrumb, title lives in sidebar */
body.impl_page_listing_single .impl_inner_breadcrumb_band {
    padding-top: 16px !important;
    padding-bottom: 12px !important;
}

body.impl_page_listing_single .impl_page_heading h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.impl_page_listing_single .impl_page_heading {
    margin: 0;
}

.cg-vdp-sidebar__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
}

.cg-vdp-sidebar__price-row .cg-vdp-sidebar__price {
    margin-bottom: 0;
}

.cg-vdp-sidebar__actions--inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.cg-vdp-sidebar__actions--inline .impl_btn {
    min-width: 0;
    width: 100%;
    padding: 0.55rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

/* Listing page — shared filter sidebar */
.impl_listing_wrapper .impl_fiter_box {
    background: var(--impl-white-color);
    border-radius: var(--impl-border-radius);
    box-shadow: var(--impl-box-shadow);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.impl_listing_wrapper .impl_fiter_heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.impl_listing_wrapper .impl_fiter_heading h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--impl-heading-color);
    margin: 0;
}

.impl_listing_wrapper .impl_listing_filter_accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 !important;
    background: transparent;
}

.impl_listing_wrapper .impl_listing_filter_accordion .accordion-button {
    padding: 14px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--impl-heading-color);
    background: transparent;
    box-shadow: none;
}

.impl_listing_wrapper .impl_listing_filter_accordion .accordion-button:not(.collapsed) {
    color: var(--impl-primary-color);
}

.impl_listing_wrapper .impl_listing_filter_accordion .accordion-body {
    padding: 15px 0;
}

.impl_listing_wrapper .impl_filter_check_grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.impl_listing_wrapper .impl_filter_check_grid li {
    position: relative;
}

.impl_listing_wrapper .impl_filter_check_grid input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.impl_listing_wrapper .impl_filter_check_grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--impl-font-color);
}

.impl_listing_wrapper .impl_filter_check_grid label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
}

.impl_listing_wrapper .impl_filter_check_grid input[type="checkbox"]:checked + label::before {
    background: var(--impl-primary-color);
    border-color: var(--impl-primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.impl_listing_wrapper .price-input .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.impl_listing_wrapper .price-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--impl-font-color);
}

.impl_listing_wrapper .impl_filter_btn {
    margin-top: 20px;
}

.impl_listing_wrapper .impl_filter_btn .impl_btn {
    width: 100%;
}

.impl_listing_wrapper .btn-clear-filters {
    color: var(--impl-font-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.impl_listing_wrapper .impl_filter_check_grid.scrollable {
    max-height: 220px;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .impl_listing_wrapper .impl_sort_right {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .impl_listing_wrapper .impl_listing_filter_col {
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 92vw);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 10300;
        background: #fff;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18);
        transform: translateX(105%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 24px;
        margin: 0 !important;
        flex: none;
        max-width: min(360px, 92vw);
    }

    body.listing-filter-open .impl_listing_wrapper .impl_listing_filter_col {
        transform: translateX(0);
    }

    .impl_listing_filter_drawer_head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
    }

    .impl_listing_filter_close {
        border: 0;
        background: #f3f4f6;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.5rem;
        line-height: 1;
        color: #111;
        cursor: pointer;
    }

    .impl_listing_wrapper .impl_listing_filter_col .impl_fiter_box {
        position: relative;
        top: 0;
        margin: 12px 16px 0;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .impl_listing_wrapper .impl_listing_filter_col .impl_fiter_heading {
        display: none;
    }

    .impl_listing_filter_backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 10290;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.listing-filter-open .impl_listing_filter_backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.listing-filter-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .impl_listing_filter_drawer_head,
    .impl_listing_filter_backdrop {
        display: none !important;
    }
}

/* Header search — shared overlay (desktop + mobile); do not use slide transforms */
.impl_search_area {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

.impl_search_area.open {
    transform: none !important;
}

.impl_search_area .srch_inner {
    max-width: none;
    margin: 0;
}

.impl_search_close {
    right: 16px !important;
    top: 16px !important;
}

body.impl_page_listing_single .cg-vdp__tabs {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cg-border);
}

body.impl_page_listing_single .impl_auto_tab {
    border-bottom: 1px solid var(--cg-border);
    margin-bottom: 1rem;
}

body.impl_page_listing_single .impl_auto_tab li a {
    border-radius: 8px 8px 0 0;
}

body.impl_page_listing_single .impl_auto_tab li a.active {
    background: var(--impl-primary-color);
    color: #fff;
}

body.impl_page_listing_single .impl_feat_table .table {
    margin-bottom: 0;
}

body.impl_page_listing_single .impl_listing_similar_section {
    background: var(--cg-section-alt);
    border: 1px solid var(--cg-border);
}

/* Photo gallery modal — above site header (z-index 5000+) */
#listingPhotoModal.modal {
    z-index: 10200 !important;
}

body.modal-open .modal-backdrop {
    z-index: 10190 !important;
}

#listingPhotoModal .modal-content.impl_listing_photo_modal {
    background: #111;
    color: #fff;
    border: none;
    min-height: 100vh;
    position: relative;
}

#listingPhotoModal .impl_listing_modal_close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10300;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    padding: 0;
}

#listingPhotoModal .impl_listing_modal_close span {
    display: block;
    margin-top: -2px;
}

#listingPhotoModal .impl_listing_modal_close:hover {
    background: #fff;
    color: #000;
}

#listingPhotoModal .impl_listing_modal_header_spacer {
    width: 44px;
    height: 1px;
    flex-shrink: 0;
}

#listingPhotoModal .modal-header {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.85);
    position: sticky;
    top: 0;
    z-index: 3;
}

#listingPhotoModal .impl_listing_modal_back {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
}

#listingPhotoModal .impl_listing_modal_back:hover {
    color: #e2e8f0 !important;
}

#listingPhotoModal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.9;
    width: 2.5rem;
    height: 2.5rem;
}

#listingPhotoModal .modal-title {
    color: #fff;
}

#listingPhotoModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-bottom: 2rem;
}

#listingPhotoModal .modal-body .text-muted {
    color: #cbd5e1 !important;
}

/* Account — saved cars */
.impl_account_saved_wrap .impl_fiter_tab {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.5rem;
    padding: 4px;
    max-width: fit-content;
    border: 1px solid var(--cg-border);
    border-radius: 8px;
    background: #fff;
}

.impl_account_saved_wrap .impl_fiter_tab li a {
    min-height: 38px;
    padding: 0 1rem;
    border-radius: 6px;
    text-decoration: none;
}

.impl_account_saved_wrap .impl_fiter_tab li a:not(.active) {
    background: #fff;
    color: var(--impl-heading-color);
    border: 1px solid transparent;
}

.impl_account_saved_wrap .impl_fiter_tab li a.active {
    background: var(--impl-primary-color);
    color: #fff;
    border-color: var(--impl-primary-color);
}

.impl_saved_vehicle_card {
    position: relative;
    height: 100%;
}

.impl_saved_vehicle_card .cg-vehicle-card {
    height: 100%;
}

.impl_saved_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
}

.impl_saved_remove_form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    margin: 0;
}

.impl_saved_remove {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    color: #dc3545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    pointer-events: auto;
    transition: background 0.15s ease, transform 0.15s ease;
}

.impl_saved_remove_form .impl_saved_remove {
    position: static;
}

.impl_saved_remove:hover {
    background: #fff5f5;
    color: #b02a37;
    transform: scale(1.05);
}

.impl_account_saved_wrap .impl_account_empty_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.impl_account_saved_wrap .impl_account_empty_card svg {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.impl_account_saved_wrap .impl_account_empty_card p,
.impl_account_saved_wrap .impl_account_empty_card h3 {
    width: 100%;
}

@media (min-width: 992px) {
    .impl_account_saved_wrap .row.g-4 > .listing-grid-card.col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.impl_account_saved_actions {
    gap: 0.75rem;
}

.impl_account_saved_wrap .impl_auto_btn_row .impl_btn,
.impl_account_saved_actions .impl_btn {
    display: inline-flex;
    margin: 0;
}

/* Account — purchases */
.impl_account_purchases_wrap .impl_account_empty_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.impl_purchase_vehicle_card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.impl_purchase_vehicle_card .cg-vehicle-card {
    height: auto;
    flex: 1;
}

.impl_purchase_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
}

.impl_purchase_meta {
    padding: 0 14px 14px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

.impl_lead_contact_actions .impl_btn_sm {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
}

.impl_lead_contact_actions--compact .impl_btn_sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
}

.impl_lead_contact_form textarea {
    resize: vertical;
    min-height: 72px;
}

/* Account my-listings — purchase + inquiry feed */
.impl_account_leads_block {
    border-top: 1px solid #e8edf3;
    padding-top: 1.75rem;
}

.impl_account_leads_head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.15rem;
}

.impl_account_leads_title {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.impl_account_leads_sub {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    max-width: 42rem;
}

.impl_account_badge_new {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.impl_account_leads_feed {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.impl_account_lead_card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 1rem 1.15rem 1.1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.impl_account_lead_card:hover {
    border-color: #d5dee9;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.impl_account_lead_card.is-unread {
    border-color: #fdba74;
    background: linear-gradient(180deg, #fffbf5 0%, #fff 48%);
}

.impl_account_lead_card.is-purchase {
    border-left: 3px solid #07326f;
}

.impl_account_lead_card_top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.65rem;
}

.impl_account_lead_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.impl_account_lead_badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.impl_account_lead_badge--purchase {
    background: #07326f;
    color: #fff;
}

.impl_account_lead_badge--contact {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.impl_account_lead_badge--new {
    background: #fef3c7;
    color: #92400e;
}

.impl_account_lead_time {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

.impl_account_lead_card_body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.impl_account_lead_main {
    flex: 1 1 240px;
    min-width: 0;
}

.impl_account_lead_vehicle {
    display: inline;
    font-size: 1rem;
    font-weight: 650;
    color: #07326f;
    text-decoration: none;
}

.impl_account_lead_vehicle:hover {
    text-decoration: underline;
    color: #052552;
}

.impl_account_lead_price {
    display: inline;
    margin-left: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.impl_account_lead_name {
    margin: 0.35rem 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.impl_account_lead_aside {
    flex: 0 0 auto;
}

.impl_account_mark_read {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.impl_account_mark_read:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.impl_lead_contact_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 0.65rem;
}

.impl_lead_contact_meta_item {
    font-size: 0.84rem;
    color: #475569;
    text-decoration: none;
}

.impl_lead_contact_meta_item:hover {
    color: #07326f;
    text-decoration: underline;
}

.impl_lead_contact_btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.impl_lead_contact_btns .impl_btn_sm {
    min-width: 5.25rem;
    justify-content: center;
}

.impl_lead_contact_form {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.85rem 1rem;
}

.impl_account_lead_message {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.45;
}

.impl_account_leads_empty {
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #d5dee9;
    color: #64748b;
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .impl_account_purchases_wrap .row.g-4 > .listing-grid-card.col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Shared account listing cards (recent, seller, compare) */
.impl_recent_vehicle_card,
.impl_seller_vehicle_card,
.impl_compare_vehicle_card,
.impl_compare_pick_card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.impl_recent_vehicle_card .cg-vehicle-card,
.impl_seller_vehicle_card .cg-vehicle-card,
.impl_compare_vehicle_card .cg-vehicle-card,
.impl_compare_pick_card .cg-vehicle-card {
    flex: 1;
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

.impl_seller_listing_badge,
.impl_compare_selected_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
}

.impl_seller_listing_meta,
.impl_compare_card_actions {
    background: #fff;
}

.impl_compare_pick_card.is-selected {
    outline: 2px solid var(--impl-primary-color, #07326f);
    outline-offset: -2px;
}

.impl_compare_wrapper .impl_compare_selection_bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

@media (min-width: 992px) {
    .impl_account_recent_wrap .row.g-4 > .listing-grid-card.col-lg-4,
    .impl_my_listings_wrapper .row.g-4 > .listing-grid-card.col-lg-4,
    .impl_compare_wrapper .row.g-4 > .listing-grid-card.col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .impl_compare_wrapper .row.g-4 > .listing-grid-card.col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.impl_account_recent_wrap .impl_account_empty_card,
.impl_account_preferences_wrap .impl_account_empty_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.impl_account_preferences_wrap .impl_account_prefs_form {
    max-width: 820px;
}

.impl_makes_wrapper .row > [class*="col-"] {
    display: flex;
}
