
:root{--cc-blue:#1769ff;--cc-blue2:#0d4bd8;--cc-ink:#0b1830;--cc-muted:#6c7b91;--cc-line:#dfe7f2;--cc-bg:#eef3f9;--cc-white:#fff;--cc-soft:#f7faff;--cc-radius:26px;--cc-shadow:0 18px 55px rgba(20,53,105,.08)}
.carhub-condition-body{background:var(--cc-bg);color:var(--cc-ink)}
.carhub-condition-page{min-height:100vh;padding:24px 0 60px}
.carhub-condition-shell{width:min(1180px,calc(100% - 28px));margin:auto}
.carhub-condition-hero{overflow:hidden;border-radius:32px;padding:22px;background:linear-gradient(135deg,#081a38 0%,#0e3f9e 58%,#1769ff 100%);color:#fff;box-shadow:0 24px 65px rgba(10,47,115,.24)}
.carhub-condition-hero__top{display:flex;align-items:center;justify-content:space-between;gap:15px}
.carhub-condition-logo{display:inline-flex;align-items:center;text-decoration:none;color:#fff;font-weight:800}
.carhub-condition-logo img{width:122px;max-height:34px;object-fit:contain;filter:brightness(0) invert(1)}
.carhub-condition-logo span{font-size:20px}
.carhub-condition-live{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#c9dbff}.carhub-condition-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ff0a2;margin-right:7px;box-shadow:0 0 0 5px rgba(79,240,162,.13)}
.carhub-condition-hero__content{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:30px;align-items:center;padding:64px 28px 54px}
.carhub-condition-kicker,.carhub-condition-heading>div>span{display:block;font-size:11px;letter-spacing:.18em;font-weight:850;text-transform:uppercase;color:#4f8cff}
.carhub-condition-hero .carhub-condition-kicker{color:#a9c8ff}
.carhub-condition-hero h1{font-size:clamp(36px,6vw,66px);line-height:1;letter-spacing:-.045em;max-width:780px;margin:13px 0 0;font-weight:680}
.carhub-condition-hero p{max-width:690px;margin:20px 0 0;color:#c7d7f2;font-size:15px;line-height:1.8}
.carhub-condition-hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.carhub-condition-primary,.carhub-condition-ghost{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 18px;border-radius:14px;text-decoration:none;font-weight:800;font-size:14px}
.carhub-condition-primary{background:#fff;color:#0c3e9c}.carhub-condition-primary span{font-size:18px}.carhub-condition-ghost{border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.08)}
.carhub-condition-orbit{position:relative;width:210px;height:210px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.2),rgba(255,255,255,.04) 54%,transparent 55%);border:1px solid rgba(255,255,255,.16)}
.carhub-condition-orbit__ring{position:absolute;inset:17px;border:1px dashed rgba(255,255,255,.32);border-radius:50%}.carhub-condition-orbit__core{text-align:center}.carhub-condition-orbit strong{display:block;font-size:39px;letter-spacing:-.05em}.carhub-condition-orbit span{font-size:11px;color:#c9d8ef}
.carhub-condition-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;overflow:hidden;border-radius:18px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.16)}
.carhub-condition-stats div{padding:16px;background:rgba(255,255,255,.055)}.carhub-condition-stats strong,.carhub-condition-stats span{display:block}.carhub-condition-stats strong{font-size:21px}.carhub-condition-stats span{margin-top:3px;font-size:11px;color:#b8cbea}
.carhub-condition-switcher{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
.carhub-condition-switcher a{min-height:72px;padding:14px 17px;border:1px solid var(--cc-line);border-radius:20px;background:#fff;color:var(--cc-ink);text-decoration:none;box-shadow:var(--cc-shadow);display:flex;align-items:center;justify-content:space-between;font-weight:800}
.carhub-condition-switcher a.is-active{border-color:#8eb5ff;box-shadow:0 16px 38px rgba(23,105,255,.14);background:linear-gradient(135deg,#fff,#edf4ff);color:var(--cc-blue)}
.carhub-condition-switcher b{font-size:9px;letter-spacing:.1em;text-transform:uppercase;background:#e8f0ff;color:var(--cc-blue);padding:6px 8px;border-radius:999px}
.carhub-condition-insights,.carhub-condition-section{margin-top:18px;border:1px solid var(--cc-line);border-radius:var(--cc-radius);background:#fff;box-shadow:var(--cc-shadow)}
.carhub-condition-insights{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;padding:28px}
.carhub-condition-insights__intro h2,.carhub-condition-heading h2{margin:9px 0 0;font-size:28px;line-height:1.12;letter-spacing:-.035em}.carhub-condition-insights__intro p{color:var(--cc-muted);line-height:1.7;font-size:14px;max-width:430px}
.carhub-condition-mix{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.carhub-condition-mix a{padding:17px;border-radius:18px;background:var(--cc-soft);text-decoration:none;color:var(--cc-ink);border:1px solid transparent}.carhub-condition-mix a.is-active{border-color:#b8d0ff;background:#f1f6ff}.carhub-condition-mix__label{display:block;font-size:11px;color:var(--cc-muted);font-weight:750}.carhub-condition-mix strong{display:block;margin:6px 0 14px;font-size:25px}.carhub-condition-mix__bar{display:block;height:5px;border-radius:9px;background:#dfe8f7;overflow:hidden}.carhub-condition-mix__bar i{display:block;height:100%;border-radius:9px;background:var(--cc-blue)}
.carhub-condition-section{padding:28px}.carhub-condition-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:20px}.carhub-condition-heading p{margin:8px 0 0;color:var(--cc-muted);font-size:13px}.carhub-condition-heading-note{font-size:11px;color:#8391a5}
.carhub-condition-brand-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.carhub-condition-brand{padding:15px 10px;border:1px solid var(--cc-line);border-radius:18px;text-decoration:none;color:var(--cc-ink);text-align:center;transition:.2s;background:#fff}.carhub-condition-brand:hover{transform:translateY(-2px);border-color:#a8c5ff}.carhub-condition-brand>span{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 9px;border-radius:14px;background:#f3f7fd;color:var(--cc-blue);font-size:13px;font-weight:850}.carhub-condition-brand img{width:31px;height:31px;object-fit:contain}.carhub-condition-brand strong,.carhub-condition-brand small{display:block}.carhub-condition-brand strong{font-size:13px}.carhub-condition-brand small{margin-top:4px;color:var(--cc-muted);font-size:10px}
.carhub-condition-heading--inventory{align-items:center}.carhub-condition-heading--inventory select{min-width:180px;height:44px;border:1px solid var(--cc-line);border-radius:12px;padding:0 12px;background:#fff;font-weight:750;color:var(--cc-ink)}
.carhub-condition-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.carhub-condition-grid--compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.carhub-condition-car{overflow:hidden;border:1px solid var(--cc-line);border-radius:20px;background:#fff}.carhub-condition-car__media{position:relative;display:block;height:205px;background:#f4f7fb;overflow:hidden}.carhub-condition-car__media img{width:100%;height:100%;display:block;object-fit:cover}.carhub-condition-car__media>span:not(.carhub-condition-car__tag){display:grid;place-items:center;height:100%;color:#9aa8bb;font-size:12px}.carhub-condition-car__tag{position:absolute;top:11px;left:11px;padding:6px 9px;border-radius:999px;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.08);font-size:9px;font-weight:850;text-transform:uppercase}
.carhub-condition-car__body{padding:15px}.carhub-condition-car__title{display:block;text-decoration:none;color:var(--cc-ink);font-size:15px;font-weight:750;line-height:1.25}.carhub-condition-car__price{margin-top:8px;font-size:16px;font-weight:850}.carhub-condition-car__specs{margin-top:6px;color:#71809a;font-size:11px}.carhub-condition-car__button{display:flex;align-items:center;justify-content:center;min-height:40px;margin-top:13px;border:1px solid #8db5ff;border-radius:11px;text-decoration:none;color:var(--cc-blue);font-weight:800;font-size:12px}.carhub-condition-car__button span{margin-left:7px}
.carhub-condition-load{display:flex;align-items:center;justify-content:center;gap:9px;margin:20px auto 0;min-height:44px;padding:0 20px;border:1px solid #91b7ff;border-radius:12px;background:#fff;color:var(--cc-blue);font-weight:800;cursor:pointer}.carhub-condition-load[hidden]{display:none}.carhub-condition-load:disabled{opacity:.55}
.carhub-condition-explorer__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.carhub-condition-explorer__grid>div{padding:20px;border-radius:20px;background:var(--cc-soft);border:1px solid #e8eef7}.carhub-condition-explorer h3{margin:0 0 14px;font-size:15px}.carhub-condition-pills{display:flex;flex-wrap:wrap;gap:8px}.carhub-condition-pills span{display:flex;gap:8px;align-items:center;padding:9px 11px;border-radius:11px;background:#fff;border:1px solid var(--cc-line);font-size:11px}.carhub-condition-pills small{color:var(--cc-muted)}.carhub-condition-fuels{display:flex;flex-wrap:wrap;gap:8px}.carhub-condition-fuels span{padding:9px 12px;border-radius:999px;background:#fff;border:1px solid #cfe0ff;color:#245bc0;font-size:11px;font-weight:750}
.carhub-condition-faq-list{border-top:1px solid var(--cc-line)}.carhub-condition-faq-list details{border-bottom:1px solid var(--cc-line)}.carhub-condition-faq-list summary{list-style:none;display:grid;grid-template-columns:40px 1fr 28px;align-items:center;gap:10px;padding:19px 4px;cursor:pointer}.carhub-condition-faq-list summary::-webkit-details-marker{display:none}.carhub-condition-faq-list summary>span{color:var(--cc-blue);font-size:11px;font-weight:850}.carhub-condition-faq-list summary strong{font-size:14px}.carhub-condition-faq-list summary b{display:grid;place-items:center;width:28px;height:28px;border:1px solid #bdd1f2;border-radius:50%;color:var(--cc-blue)}.carhub-condition-faq-list details[open] summary b{transform:rotate(45deg)}.carhub-condition-faq-list details>div{padding:0 42px 20px;color:var(--cc-muted);font-size:13px;line-height:1.8}.carhub-condition-faq-list a{color:var(--cc-blue);font-weight:750;text-decoration:none}
.carhub-condition-footer{margin-top:18px;border-radius:28px;padding:35px;background:#0a1b39;color:#fff;text-align:center}.carhub-condition-footer>span{font-size:10px;letter-spacing:.18em;font-weight:850;color:#83adff}.carhub-condition-footer h2{margin:10px 0 20px;font-size:30px;letter-spacing:-.03em}.carhub-condition-footer a{display:inline-flex;align-items:center;gap:8px;padding:12px 17px;border-radius:12px;background:#fff;color:#0a3b95;text-decoration:none;font-weight:800}
@media(max-width:900px){.carhub-condition-hero__content{grid-template-columns:1fr;padding:45px 12px 35px}.carhub-condition-orbit{width:150px;height:150px}.carhub-condition-stats{grid-template-columns:repeat(2,1fr)}.carhub-condition-brand-strip{grid-template-columns:repeat(4,1fr)}.carhub-condition-grid,.carhub-condition-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}.carhub-condition-insights{grid-template-columns:1fr}}
@media(max-width:560px){.carhub-condition-shell{width:min(100% - 16px,1180px)}.carhub-condition-page{padding-top:18px}.carhub-condition-hero{border-radius:23px;padding:15px}.carhub-condition-hero h1{font-size:36px}.carhub-condition-hero p{font-size:13px}.carhub-condition-switcher a{min-height:61px;padding:11px;font-size:12px}.carhub-condition-switcher b{display:none}.carhub-condition-insights,.carhub-condition-section{padding:19px;border-radius:21px}.carhub-condition-insights__intro h2,.carhub-condition-heading h2{font-size:23px}.carhub-condition-mix{grid-template-columns:1fr}.carhub-condition-brand-strip{grid-template-columns:repeat(3,1fr)}.carhub-condition-grid,.carhub-condition-grid--compact{grid-template-columns:1fr}.carhub-condition-car__media{height:230px}.carhub-condition-heading--inventory{align-items:flex-start;flex-direction:column}.carhub-condition-heading--inventory select{width:100%}.carhub-condition-explorer__grid{grid-template-columns:1fr}.carhub-condition-faq-list summary{grid-template-columns:30px 1fr 28px}.carhub-condition-faq-list summary strong{font-size:13px}.carhub-condition-faq-list details>div{padding-left:34px}}

/* ==========================================================================
   CONDITION TYPE — GLOBAL HEADER HARDENING
   Keep the shared CarHub header identical to the other discovery templates.
   ========================================================================== */
body.carhub-condition-body .carhub-global-header {
    height: var(--carhub-home-header-height, 64px) !important;
    min-height: var(--carhub-home-header-height, 64px) !important;
    padding: 0 !important;
    background: transparent !important;
}

body.carhub-condition-body .carhub-home-header {
    position: fixed !important;
    top: var(--carhub-home-adminbar-height, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--carhub-home-header-height, 64px) !important;
    min-height: var(--carhub-home-header-height, 64px) !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    z-index: 1200 !important;
    background: #ffffff !important;
}

@media (max-width: 640px) {
    body.carhub-condition-body .carhub-global-header {
        height: var(--carhub-home-header-height, 62px) !important;
        min-height: var(--carhub-home-header-height, 62px) !important;
    }

    body.carhub-condition-body .carhub-home-header {
        height: var(--carhub-home-header-height, 62px) !important;
        min-height: var(--carhub-home-header-height, 62px) !important;
    }

    body.carhub-condition-body .carhub-home-logo img {
        width: 112px !important;
        max-width: 112px !important;
        max-height: 18px !important;
    }
}


/* ==========================================================================
   CONDITION TYPE — HEADER PIXEL PARITY WITH HOMEPAGE
   --------------------------------------------------------------------------
   The Condition page uses the same shared Home header markup. These rules
   intentionally mirror the Home header contract so theme/plugin CSS cannot
   change the search icon, logo, menu, or action sizing on this page.
   ========================================================================== */
body.carhub-condition-body .carhub-home-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 0 24px !important;
    border-bottom: 1px solid var(--ch-border) !important;
}

body.carhub-condition-body .carhub-home-header__menu {
    width: 42px !important;
    height: 42px !important;
    padding: 8px !important;
}

body.carhub-condition-body .carhub-home-header__menu span {
    width: 28px !important;
    height: 3px !important;
}

body.carhub-condition-body .carhub-home-logo {
    max-height: 24px !important;
}

body.carhub-condition-body .carhub-home-logo img {
    width: auto !important;
    max-width: 120px !important;
    max-height: 19px !important;
}

body.carhub-condition-body .carhub-home-header__actions {
    gap: 20px !important;
}

body.carhub-condition-body .carhub-home-header__search {
    width: 30px !important;
    height: 30px !important;
}

body.carhub-condition-body .carhub-icon-search {
    width: 17px !important;
    height: 17px !important;
    border-width: 2px !important;
}

body.carhub-condition-body .carhub-icon-search::after {
    width: 7px !important;
    height: 2px !important;
    right: -5px !important;
    bottom: -3px !important;
}

body.carhub-condition-body .carhub-home-header__signin {
    font-size: 12px !important;
    font-weight: 800 !important;
}

@media (max-width: 640px) {
    body.carhub-condition-body .carhub-home-header {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.carhub-condition-body .carhub-home-logo img {
        width: 112px !important;
        max-width: 112px !important;
        max-height: 18px !important;
    }

    body.carhub-condition-body .carhub-home-header__actions {
        gap: 10px !important;
    }

    body.carhub-condition-body .carhub-home-header__signin {
        font-size: 10px !important;
    }
}

/* ==========================================================================
   CONDITION TYPE — FINAL HEADER + HERO VISUAL POLISH
   ========================================================================== */

/*
 * Use the exact same compact header dimensions as the Home page.
 * The explicit box-sizing/padding reset prevents theme CSS from expanding
 * the shared header wrapper vertically.
 */
body.carhub-condition-body .carhub-global-header {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: var(--carhub-home-header-height, 62px) !important;
    min-height: var(--carhub-home-header-height, 62px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.carhub-condition-body .carhub-home-header {
    box-sizing: border-box !important;
    width: 100% !important;
    height: var(--carhub-home-header-height, 62px) !important;
    min-height: var(--carhub-home-header-height, 62px) !important;
    margin: 0 !important;
    padding: 0 16px !important;
    background: #ffffff !important;
}

@media (min-width: 641px) {
    body.carhub-condition-body .carhub-global-header {
        height: var(--carhub-home-header-height, 64px) !important;
        min-height: var(--carhub-home-header-height, 64px) !important;
    }

    body.carhub-condition-body .carhub-home-header {
        height: var(--carhub-home-header-height, 64px) !important;
        min-height: var(--carhub-home-header-height, 64px) !important;
        padding: 0 24px !important;
    }
}

/*
 * Match the Body Type hero's light gradient treatment.
 */
.carhub-condition-hero {
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(37, 99, 235, .12),
            transparent 22rem
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbfcfe 58%,
            #f4f7fb 100%
        ) !important;
    color: var(--cc-ink) !important;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .07);
}

.carhub-condition-hero .carhub-condition-kicker {
    color: var(--cc-blue) !important;
}

.carhub-condition-hero h1 {
    color: var(--cc-ink) !important;
}

.carhub-condition-hero p {
    color: var(--cc-muted) !important;
}

.carhub-condition-primary {
    color: #ffffff !important;
    background: var(--cc-blue) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
}

.carhub-condition-primary:hover {
    color: #ffffff !important;
    background: var(--cc-blue2) !important;
}

.carhub-condition-primary span {
    color: #ffffff;
}


/* ==========================================================================
   CONDITION TYPE — HOMEPAGE-STYLE DISCOVERY POLISH
   ========================================================================== */

/* Use the same light Body Type hero treatment. */
body.carhub-condition-body .carhub-condition-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /* Move the hero card slightly farther below the header */
    margin-top: 18px;

    padding: 0;
    border: 1px solid var(--ch-border);
    border-radius: 20px;
    color: var(--ch-text);
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(37, 99, 235, .12),
            transparent 22rem
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbfcfe 58%,
            #f4f7fb 100%
        );
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

body.carhub-condition-body .carhub-condition-hero::before {
    content: "";
    position: absolute;
    inset: auto -8% -42% 40%;
    z-index: -1;
    height: 440px;
    border: 1px solid rgba(37, 99, 235, .09);
    border-radius: 50%;
    transform: rotate(-12deg);
}

body.carhub-condition-body .carhub-condition-hero__content {
    display: block;
    padding: 30px 28px 26px;
}

body.carhub-condition-body .carhub-condition-hero h1 {
    margin: 0 0 12px;
    color: var(--ch-text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 700;
}

body.carhub-condition-body .carhub-condition-hero p {
    max-width: 900px;
    margin: 0;
    color: var(--ch-muted);
    font-size: 15px;
    line-height: 1.75;
}

body.carhub-condition-body .carhub-condition-hero__actions {
    margin-top: 24px;
}

body.carhub-condition-body .carhub-condition-primary {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37,99,235,.18);
}

body.carhub-condition-body .carhub-condition-primary span {
    color: #ffffff;
}

body.carhub-condition-body .carhub-condition-stats {
    margin: 0 28px 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--ch-border);
    border-radius: 18px;
    background: #ffffff;
}

body.carhub-condition-body .carhub-condition-stats div {
    min-height: 86px;
    padding: 16px 18px;
    background: #ffffff;
    border-right: 1px solid var(--ch-border);
}

body.carhub-condition-body .carhub-condition-stats div:last-child {
    border-right: 0;
}

body.carhub-condition-body .carhub-condition-stats strong {
    color: var(--ch-text);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
}

body.carhub-condition-body .carhub-condition-stats span {
    margin-top: 5px;
    color: var(--ch-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}

.carhub-condition-home-section {
    overflow: hidden;
}

.carhub-condition-home-tabs {
    margin-top: 4px;
    margin-bottom: 0;
}

.carhub-condition-home-tabs button {
    border: 0;
    cursor: pointer;
}

.carhub-condition-home-panel {
    display: none;
    padding-top: 18px;
}

.carhub-condition-home-panel.is-active {
    display: block;
}

.carhub-condition-home-panel .carhub-home-vehicle-scroller {
    margin: 0;
}

.carhub-condition-home-panel .carhub-home-section-link {
    margin-bottom: 0;
}

.carhub-condition-discover {
    overflow: hidden;
}

.carhub-condition-discover__tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--ch-border);
    scrollbar-width: none;
}

.carhub-condition-discover__tabs::-webkit-scrollbar {
    display: none;
}

.carhub-condition-discover__tabs button {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 17px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

.carhub-condition-discover__tabs button.is-active {
    color: #111827;
}

.carhub-condition-discover__tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 99px;
    background: #2563eb;
}

.carhub-condition-discover__panel {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 8px 4px;
}

.carhub-condition-discover__panel.is-active {
    display: flex;
}

.carhub-condition-discover__panel a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--ch-border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--ch-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.carhub-condition-discover__panel a:hover {
    border-color: #a8c5ff;
}

.carhub-condition-discover__panel small {
    color: var(--ch-muted);
    font-size: 11px;
}

.carhub-condition-launches .carhub-home-vehicle-scroller {
    margin-top: 0;
}

.carhub-condition-compare {
    overflow: hidden;
}

@media (max-width: 900px) {
    body.carhub-condition-body .carhub-condition-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.carhub-condition-body .carhub-condition-stats div:nth-child(2) {
        border-right: 0;
    }

    body.carhub-condition-body .carhub-condition-stats div:nth-child(-n+2) {
        border-bottom: 1px solid var(--ch-border);
    }
}

@media (max-width: 560px) {
    body.carhub-condition-body .carhub-condition-hero__content {
        padding: 24px 16px 20px;
    }

    body.carhub-condition-body .carhub-condition-hero h1 {
        font-size: 30px;
    }

    body.carhub-condition-body .carhub-condition-hero p {
        font-size: 13px;
    }

    body.carhub-condition-body .carhub-condition-stats {
        margin: 0 16px 16px;
        border-radius: 16px;
    }

    body.carhub-condition-body .carhub-condition-stats div {
        min-height: 78px;
        padding: 13px 14px;
    }

    body.carhub-condition-body .carhub-condition-stats strong {
        font-size: 20px;
    }

    .carhub-condition-discover__tabs button {
        padding-left: 13px;
        padding-right: 13px;
        font-size: 13px;
    }

    .carhub-condition-discover__panel a {
        min-height: 40px;
        padding: 0 11px;
        font-size: 12px;
    }
}

/* The shared Home header JS attaches menu-open to the global header wrapper
 * on discovery pages. Mirror the Home drawer state here without creating
 * another header implementation. */
body.carhub-condition-body .carhub-global-header.menu-open .carhub-home-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.carhub-condition-body .carhub-global-header.menu-open .carhub-home-drawer {
    transform: translateX(0);
}

body.carhub-condition-body .carhub-global-header.menu-open .carhub-home-header {
    transform: translate3d(0, -100vh, 0) !important;
}

body.carhub-condition-body .carhub-global-header .carhub-home-drawer {
    z-index: 1300;
}

body.carhub-condition-body .carhub-global-header .carhub-home-menu-overlay {
    z-index: 1290;
}


/* ==========================================================================
   CONDITION TYPE — VEHICLE CARD + DISCOVERY POLISH
   ========================================================================== */
body.carhub-condition-body .carhub-home-vehicle-card,
body.carhub-condition-body .carhub-home-vehicle-card:hover,
body.carhub-condition-body .carhub-home-vehicle-card * {
    text-decoration: none !important;
}

body.carhub-condition-body .carhub-home-vehicle-card__body {
    padding-top: 18px !important;
}

body.carhub-condition-body .carhub-home-vehicle-card__body small {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
}

body.carhub-condition-body .carhub-condition-faq-list summary strong {
    font-size: 15px;
}

body.carhub-condition-body .carhub-condition-nearby {
    overflow: hidden;
}

body.carhub-condition-body .carhub-condition-nearby__heading {
    display: block;
    margin-bottom: 20px;
}

body.carhub-condition-body .carhub-condition-nearby__heading span {
    display: block;
    color: #4f8cff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .18em;
}

body.carhub-condition-body .carhub-condition-nearby__heading h2 {
    margin: 9px 0 0;
}

@media (max-width: 560px) {
    body.carhub-condition-body .carhub-condition-faq-list summary strong {
        font-size: 14px;
    }
}


/* ==========================================================================
   CONDITION TYPE — FINAL NAVIGATION / LINK / CARD POLISH
   ========================================================================== */

/* The Condition page must inherit the same clean, undecorated link treatment
 * as the Home page. This also covers the shared header and drawer. */
body.carhub-condition-body a,
body.carhub-condition-body a:hover,
body.carhub-condition-body a:focus,
body.carhub-condition-body a:visited {
    text-decoration: none !important;
}

/* Match the Home drawer's exact top-level item rhythm. */
body.carhub-condition-body .carhub-home-drawer__nav {
    padding: 10px 16px 30px !important;
}

body.carhub-condition-body .carhub-home-drawer__nav > a,
body.carhub-condition-body .carhub-home-drawer__nav > details > summary {
    box-sizing: border-box !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 14px 4px !important;
    line-height: 1.25 !important;
}

body.carhub-condition-body .carhub-home-drawer__nav > details {
    margin: 0 !important;
}

/* Keep the three condition switcher labels centered in their cards. */
body.carhub-condition-body .carhub-condition-switcher a {
    justify-content: center !important;
    text-align: center !important;
}

/* Move the price/specification lines slightly farther below the vehicle name,
 * without moving the vehicle name or image. */
body.carhub-condition-body .carhub-home-vehicle-card__body > span:not(
    .carhub-home-vehicle-card__button
) {
    margin-top: 10px !important;
}

body.carhub-condition-body .carhub-home-vehicle-card__body small {
    margin-top: 10px !important;
}

/* Explicitly remove decoration from every condition-page vehicle CTA/link. */
body.carhub-condition-body .carhub-home-vehicle-card__button,
body.carhub-condition-body .carhub-home-section-link,
body.carhub-condition-body .carhub-home-city-card,
body.carhub-condition-body .carhub-condition-brand,
body.carhub-condition-body .carhub-condition-switcher a {
    text-decoration: none !important;
}


/* ==========================================================================
   CONDITION TYPE — FINAL POLISH / SEARCH & DISCOVERY
   ========================================================================== */

/* Give the hero a little breathing room below the shared Home header. */
body.carhub-condition-body .carhub-condition-page {
    padding-top: 34px !important;
}

/*
 * The Reconditioned and Used pages reuse the Location discovery surface.
 * The Location page applies its box-sizing contract to its own page root,
 * so repeat that contract here to prevent the search field from growing
 * outside the discovery card when the theme uses content-box sizing.
 */
body.carhub-condition-body .carhub-location-discovery,
body.carhub-condition-body .carhub-location-discovery *,
body.carhub-condition-body .carhub-location-inventory,
body.carhub-condition-body .carhub-location-inventory * {
    box-sizing: border-box;
}

/* Keep the reused discovery surface directly against the condition header. */
body.carhub-condition-body .carhub-location-discovery {
    margin-top: 0 !important;
}

/* Reconditioned/Used discovery is the first content block after the site header.
 * Remove the condition-page's extra top gap so it starts immediately below the
 * fixed shared header, while Brand New keeps the existing page spacing. */
body.carhub-condition-body .carhub-condition-page--discovery-first {
    padding-top: 0 !important;
}

body.carhub-condition-body .carhub-condition-page--discovery-first .carhub-location-discovery {
    margin-top: var(--carhub-home-header-height, 64px) !important;
}

@media (max-width: 640px) {
    body.carhub-condition-body .carhub-condition-page--discovery-first .carhub-location-discovery {
        margin-top: var(--carhub-home-header-height, 62px) !important;
    }
}

/* Brand logos may come from media files with an opaque white canvas.
 * Blend the white canvas into the existing logo tile so the logo appears
 * visually transparent. */
body.carhub-condition-body .carhub-condition-brand img {
    background: transparent !important;
    mix-blend-mode: multiply;
}

/* The condition page owns the vehicle/discovery links visually; never let
 * theme link styles introduce underlines. */
body.carhub-condition-body .carhub-home-section-link,
body.carhub-condition-body .carhub-home-section-link *,
body.carhub-condition-body .carhub-home-vehicle-card,
body.carhub-condition-body .carhub-home-vehicle-card *,
body.carhub-condition-body .carhub-condition-brand,
body.carhub-condition-body .carhub-condition-brand *,
body.carhub-condition-body .carhub-home-city-card,
body.carhub-condition-body .carhub-home-city-card * {
    text-decoration: none !important;
}

/* ============================================================================
   CONDITION TYPE — COLLAPSE STICKY DISCOVERY GAP WHEN HEADER HIDES
   --------------------------------------------------------------------------
   The shared Home header becomes .carhub-header-hidden while the user scrolls.
   Location pages already move their sticky discovery surface to the top in that
   state. Mirror the same behavior on Condition pages so the reused search/filter
   card sits directly against the viewport top instead of leaving the header-height
   gap visible above it.
   ============================================================================ */
body.carhub-condition-body .carhub-global-header.carhub-header-hidden ~ .carhub-condition-page .carhub-location-discovery,
body.carhub-condition-body .carhub-global-header.menu-open ~ .carhub-condition-page .carhub-location-discovery {
    top: 0 !important;
}

/* ==========================================================================
   CONDITION TYPE — SEO PRICE SUMMARY
   ========================================================================== */

body.carhub-condition-body .carhub-condition-seo {
    max-width: 900px;
    margin-top: 14px;
}

body.carhub-condition-body .carhub-condition-seo__description {
    margin: 0 !important;
    color: var(--ch-muted) !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.carhub-condition-body .carhub-condition-seo.is-expanded .carhub-condition-seo__description {
    display: block;
    overflow: visible;
}

body.carhub-condition-body .carhub-condition-seo__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cc-blue);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

body.carhub-condition-body .carhub-condition-seo__toggle span {
    display: inline-block;
    transition: transform .2s ease;
}

body.carhub-condition-body .carhub-condition-seo.is-expanded .carhub-condition-seo__toggle span {
    transform: rotate(180deg);
}

body.carhub-condition-body .carhub-condition-price-table {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--ch-border);
    border-radius: 18px;
    background: #ffffff;
}

body.carhub-condition-body .carhub-condition-price-table[hidden] {
    display: none;
}

body.carhub-condition-body .carhub-condition-price-table h2 {
    margin: 0 0 14px;
    color: var(--ch-text);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

body.carhub-condition-body .carhub-condition-price-table__wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.carhub-condition-body .carhub-condition-price-table table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    background: #fff;
}

body.carhub-condition-body .carhub-condition-price-table th,
body.carhub-condition-body .carhub-condition-price-table td {
    padding: 12px 13px;
    border: 1px solid var(--ch-border);
    text-align: left;
    vertical-align: middle;
}

body.carhub-condition-body .carhub-condition-price-table th {
    color: var(--ch-text);
    font-size: 13px;
    font-weight: 800;
    background: #fbfcfe;
}

body.carhub-condition-body .carhub-condition-price-table td {
    color: #475569;
    font-size: 13px;
}

body.carhub-condition-body .carhub-condition-price-table td:last-child {
    color: var(--ch-text);
    font-weight: 700;
    white-space: nowrap;
}

body.carhub-condition-body .carhub-condition-price-table__empty {
    margin: 0;
    color: var(--ch-muted);
    font-size: 13px;
}

@media (max-width: 560px) {
    body.carhub-condition-body .carhub-condition-seo {
        margin-top: 12px;
    }

    body.carhub-condition-body .carhub-condition-seo__description {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    body.carhub-condition-body .carhub-condition-price-table {
        margin-top: 15px;
        padding: 13px;
        border-radius: 15px;
    }

    body.carhub-condition-body .carhub-condition-price-table h2 {
        font-size: 17px;
    }

    body.carhub-condition-body .carhub-condition-price-table th,
    body.carhub-condition-body .carhub-condition-price-table td {
        padding: 10px;
        font-size: 12px;
    }
}


/* The SEO guide is part of the existing condition hero; no separate card. */
.carhub-condition-hero .carhub-seo-inline {
    max-width: 690px;
}
.carhub-condition-hero .carhub-seo-inline__short,
.carhub-condition-hero .carhub-seo-inline__full {
    color: var(--ch-muted);
    font-size: 15px;
    line-height: 1.8;
}
