:root {
    --cl-blue: #2166f3;
    --cl-blue-dark: #0d2b69;
    --cl-blue-soft: #edf4ff;
    --cl-ink: #10203a;
    --cl-muted: #71819a;
    --cl-line: #dce6f4;
    --cl-bg: #f5f8fc;
    --cl-white: #fff;
    --cl-shadow: 0 18px 55px rgba(24, 62, 120, .08);
}

.carhub-location-page {
    min-height: 100vh;
    padding: 18px 0 60px;
    background:
        radial-gradient(circle at 10% 0%, rgba(33, 102, 243, .10), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #f3f6fb 100%);
    color: var(--cl-ink);
}

.carhub-location-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.carhub-location-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8e5fb;
    border-radius: 34px;
    padding: 24px;
    background:
        radial-gradient(circle at 85% 18%, rgba(73, 135, 255, .28), transparent 30%),
        linear-gradient(135deg, #0d2c69 0%, #1556c8 55%, #2877ff 100%);
    color: #fff;
    box-shadow: 0 28px 75px rgba(18, 70, 150, .20);
}

.carhub-location-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -150px;
    bottom: -210px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025);
}

.carhub-location-hero__topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 3px 3px 25px;
}

.carhub-location-eyebrow,
.carhub-location-year {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.carhub-location-year {
    letter-spacing: .03em;
    opacity: .72;
    text-transform: none;
}

.carhub-location-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    align-items: center;
    gap: 30px;
    padding: 18px 18px 34px;
}

.carhub-location-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .88;
}

.carhub-location-kicker span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9bc1ff;
    box-shadow: 0 0 0 5px rgba(155,193,255,.14);
}

.carhub-location-hero h1 {
    max-width: 720px;
    margin: 13px 0 16px;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 760;
}

.carhub-location-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.75;
}

.carhub-location-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.carhub-location-hero__actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 45px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.10);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.carhub-location-hero__actions a:first-child {
    border-color: #fff;
    background: #fff;
    color: var(--cl-blue-dark);
}

.carhub-location-hero__visual {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.carhub-location-orb {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 18px rgba(255,255,255,.035), 0 22px 50px rgba(0,0,0,.12);
}

.carhub-location-orb span {
    display: block;
    margin-bottom: -25px;
    font-size: 45px;
    font-weight: 800;
    letter-spacing: -.05em;
}

.carhub-location-orb small {
    font-size: 11px;
    opacity: .72;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.carhub-location-pin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    font-size: 11px;
    font-weight: 800;
}

.carhub-location-pin span {
    color: #a8c7ff;
}

.carhub-location-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
}

.carhub-location-metrics div {
    padding: 18px 16px;
    border-right: 1px solid rgba(255,255,255,.14);
}

.carhub-location-metrics div:last-child {
    border-right: 0;
}

.carhub-location-metrics strong,
.carhub-location-metrics span {
    display: block;
}

.carhub-location-metrics strong {
    font-size: 22px;
    letter-spacing: -.03em;
}

.carhub-location-metrics span {
    margin-top: 4px;
    color: rgba(255,255,255,.63);
    font-size: 10px;
}

.carhub-location-conditionbar,
.carhub-location-insights,
.carhub-location-inventory,
.carhub-location-latest,
.carhub-location-faq {
    margin-top: 18px;
    border: 1px solid var(--cl-line);
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--cl-shadow);
}

.carhub-location-conditionbar {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    align-items: center;
    gap: 20px;
    padding: 22px;
}

.carhub-location-conditionbar > div:first-child > span,
.carhub-location-sectionhead span,
.carhub-location-insight-card > span {
    display: block;
    color: var(--cl-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.carhub-location-conditionbar h2,
.carhub-location-sectionhead h2 {
    margin: 7px 0 0;
    color: var(--cl-ink);
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 720;
}

.carhub-location-conditionbar__options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.carhub-location-conditionbar__options a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 10px 13px;
    border: 1px solid var(--cl-line);
    border-radius: 16px;
    color: var(--cl-ink);
    background: #fff;
    text-decoration: none;
    transition: .18s ease;
}

.carhub-location-conditionbar__options a:hover,
.carhub-location-conditionbar__options a.is-active {
    border-color: #8db6ff;
    background: var(--cl-blue-soft);
    box-shadow: 0 8px 24px rgba(33,102,243,.10);
}

.carhub-location-conditionbar__options strong {
    font-size: 13px;
}

.carhub-location-conditionbar__options small {
    margin-top: 5px;
    color: var(--cl-muted);
    font-size: 10px;
}

.carhub-location-insights,
.carhub-location-inventory,
.carhub-location-latest,
.carhub-location-faq {
    padding: 24px;
}

.carhub-location-sectionhead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.carhub-location-sectionhead p {
    max-width: 390px;
    margin: 0;
    color: var(--cl-muted);
    font-size: 12px;
    line-height: 1.65;
}

.carhub-location-insight-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 14px;
}

.carhub-location-insight-card {
    border: 1px solid #e4ebf5;
    border-radius: 21px;
    padding: 18px;
    background: #fbfdff;
}

.carhub-location-insight-card--large {
    min-height: 300px;
}

.carhub-location-insight-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.carhub-location-insight-card__heading span {
    color: var(--cl-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.carhub-location-insight-card__heading strong {
    font-size: 20px;
}

.carhub-location-brandgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.carhub-location-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px;
    border: 1px solid #e5ecf5;
    border-radius: 13px;
    background: #fff;
    text-decoration: none;
    color: var(--cl-ink);
}

.carhub-location-brand:hover {
    border-color: #a9c7ff;
    background: #f4f8ff;
}

.carhub-location-brand__logo {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border: 1px solid #e2eaf5;
    border-radius: 9px;
    background: #fff;
}

.carhub-location-brand__logo img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.carhub-location-brand__logo b {
    color: var(--cl-blue);
    font-size: 12px;
}

.carhub-location-brand strong,
.carhub-location-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carhub-location-brand strong {
    font-size: 11px;
}

.carhub-location-brand small {
    margin-top: 3px;
    color: var(--cl-muted);
    font-size: 9px;
}

.carhub-location-insight-stack {
    display: grid;
    gap: 14px;
}

.carhub-location-barlist {
    margin-top: 15px;
}

.carhub-location-barlist > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--cl-muted);
    font-size: 11px;
}

.carhub-location-barlist > div strong {
    color: var(--cl-ink);
}

.carhub-location-barlist > i {
    display: block;
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: #e9f0f9;
}

.carhub-location-barlist > i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2166f3, #6ea4ff);
}

.carhub-location-fuelchips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.carhub-location-fuelchips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #d8e6fb;
    border-radius: 999px;
    background: #f7faff;
    color: #2457a8;
    font-size: 10px;
    font-weight: 750;
}

.carhub-location-fuelchips b {
    color: var(--cl-ink);
}

.carhub-location-sectionhead--inventory {
    align-items: center;
}

.carhub-location-sectionhead--inventory select {
    min-width: 190px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--cl-line);
    border-radius: 12px;
    background: #fff;
    color: var(--cl-ink);
    font-size: 12px;
    font-weight: 750;
}

.carhub-location-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.carhub-location-car {
    overflow: hidden;
    border: 1px solid #dfe8f4;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(25,60,110,.05);
}

.carhub-location-car__media {
    position: relative;
    display: grid;
    place-items: center;
    height: 205px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

.carhub-location-car__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.carhub-location-car__media > span:not(.carhub-location-car__condition) {
    color: #99a8bd;
    font-size: 11px;
}

.carhub-location-car__condition {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border: 1px solid rgba(220,230,244,.9);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 7px 20px rgba(20,50,90,.08);
    color: var(--cl-ink);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.carhub-location-car__body {
    padding: 14px;
}

.carhub-location-car__title {
    display: block;
    color: var(--cl-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.carhub-location-car__price {
    margin-top: 7px;
    color: var(--cl-ink);
    font-size: 16px;
    font-weight: 850;
}

.carhub-location-car__specs {
    margin-top: 6px;
    min-height: 16px;
    color: var(--cl-muted);
    font-size: 10px;
}

.carhub-location-car__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 41px;
    margin-top: 12px;
    border: 1px solid #8db5ff;
    border-radius: 11px;
    color: var(--cl-blue);
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.carhub-location-car__button:hover {
    background: var(--cl-blue);
    border-color: var(--cl-blue);
    color: #fff;
}

.carhub-location-load {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 19px auto 0;
    padding: 0 20px;
    border: 1px solid #8db5ff;
    border-radius: 12px;
    background: #fff;
    color: var(--cl-blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.carhub-location-load[hidden] {
    display: none;
}

.carhub-location-load:disabled {
    opacity: .55;
}

.carhub-location-faq__list {
    border-top: 1px solid var(--cl-line);
}

.carhub-location-faq__list details {
    border-bottom: 1px solid var(--cl-line);
}

.carhub-location-faq__list summary {
    display: grid;
    grid-template-columns: 38px 1fr 30px;
    align-items: center;
    gap: 10px;
    padding: 18px 3px;
    list-style: none;
    cursor: pointer;
}

.carhub-location-faq__list summary::-webkit-details-marker {
    display: none;
}

.carhub-location-faq__list summary > span {
    color: var(--cl-blue);
    font-size: 10px;
    font-weight: 900;
}

.carhub-location-faq__list summary strong {
    font-size: 14px;
    font-weight: 700;
}

.carhub-location-faq__list summary b {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid #b9d0f5;
    border-radius: 50%;
    color: var(--cl-blue);
    font-size: 16px;
    font-weight: 500;
}

.carhub-location-faq__list details[open] summary b {
    transform: rotate(45deg);
}

.carhub-location-faq__list details > div {
    max-width: 850px;
    padding: 0 48px 20px;
    color: var(--cl-muted);
    font-size: 12px;
    line-height: 1.8;
}

.carhub-location-faq__list a {
    color: var(--cl-blue);
    font-weight: 750;
    text-decoration: none;
}

.carhub-location-footer {
    margin-top: 18px;
    padding: 40px 25px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0a1d40, #12469c);
    color: #fff;
    text-align: center;
    box-shadow: 0 25px 60px rgba(10,43,100,.16);
}

.carhub-location-footer > span {
    color: #9ec2ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
}

.carhub-location-footer h2 {
    margin: 10px 0 9px;
    color: #fff;
    font-size: 30px;
    letter-spacing: -.04em;
}

.carhub-location-footer p {
    max-width: 560px;
    margin: 0 auto 20px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    line-height: 1.7;
}

.carhub-location-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    color: #0d3f94;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.carhub-location-empty {
    margin-top: 40px;
    padding: 60px 25px;
    border: 1px solid var(--cl-line);
    border-radius: 28px;
    background: #fff;
    text-align: center;
}

.carhub-location-empty span {
    color: var(--cl-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.carhub-location-empty h1 {
    margin: 10px 0;
    font-size: 35px;
}

.carhub-location-empty p {
    color: var(--cl-muted);
}

@media (max-width: 950px) {
    .carhub-location-hero__grid {
        grid-template-columns: 1fr;
    }

    .carhub-location-hero__visual {
        justify-items: start;
    }

    .carhub-location-orb {
        width: 145px;
        height: 145px;
    }

    .carhub-location-orb span {
        font-size: 35px;
    }

    .carhub-location-conditionbar,
    .carhub-location-insight-grid {
        grid-template-columns: 1fr;
    }

    .carhub-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .carhub-location-page {
        padding-top: 8px;
    }

    .carhub-location-shell {
        width: min(100% - 16px, 1180px);
    }

    .carhub-location-hero {
        padding: 15px;
        border-radius: 24px;
    }

    .carhub-location-hero__grid {
        padding: 25px 8px 24px;
    }

    .carhub-location-hero h1 {
        font-size: 39px;
    }

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

    .carhub-location-hero__topline {
        padding-bottom: 10px;
    }

    .carhub-location-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .carhub-location-metrics div:nth-child(2) {
        border-right: 0;
    }

    .carhub-location-metrics div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .carhub-location-conditionbar,
    .carhub-location-insights,
    .carhub-location-inventory,
    .carhub-location-latest,
    .carhub-location-faq {
        padding: 19px;
        border-radius: 22px;
    }

    .carhub-location-conditionbar__options {
        grid-template-columns: 1fr;
    }

    .carhub-location-sectionhead,
    .carhub-location-sectionhead--inventory {
        align-items: flex-start;
        flex-direction: column;
    }

    .carhub-location-sectionhead h2,
    .carhub-location-conditionbar h2 {
        font-size: 23px;
    }

    .carhub-location-sectionhead--inventory select {
        width: 100%;
    }

    .carhub-location-brandgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carhub-location-grid {
        grid-template-columns: 1fr;
    }

    .carhub-location-car__media {
        height: 235px;
    }

    .carhub-location-faq__list summary {
        grid-template-columns: 34px 1fr 29px;
    }

    .carhub-location-faq__list summary strong {
        font-size: 13px;
    }

    .carhub-location-faq__list details > div {
        padding-left: 43px;
        padding-right: 6px;
    }

    .carhub-location-footer h2 {
        font-size: 25px;
    }
}

/* ==========================================================================\n   LOCATION + CONDITION DISCOVERY — FINAL TEMPLATE\n   The public header remains the exact shared homepage header.\n   ========================================================================== */

html,
body.carhub-location-body {
    margin: 0 !important;
    padding: 0 !important;
}

body.carhub-location-body .carhub-global-header {
    height: calc(var(--carhub-home-adminbar-height, 0px) + var(--carhub-home-header-height, 64px));
    min-height: calc(var(--carhub-home-adminbar-height, 0px) + var(--carhub-home-header-height, 64px));
}

body.carhub-location-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;
    z-index: 1200 !important;
}

.carhub-location-page,
.carhub-location-page * {
    box-sizing: border-box;
}

.carhub-location-page {
    padding-top: 18px;
}

.carhub-location-discovery {
    position: sticky;
    top: calc(var(--carhub-home-adminbar-height, 0px) + var(--carhub-home-header-height, 64px));
    z-index: 1000;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid #e1e9f3;
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    /*
     * Subtle lower shadow keeps the sticky search/filter surface visually
     * separated from the inventory while scrolling.
     */
    box-shadow:
        0 7px 18px rgba(20,50,90,.10),
        0 1px 3px rgba(20,50,90,.05);
    backdrop-filter: blur(14px);
}

.carhub-location-search {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 13px;
    border: 1px solid #cfd9e6;
    border-radius: 18px;
    background: #fff;
}

.carhub-location-search__icon {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 11px;
}

.carhub-location-search__icon::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    border: 2px solid #17243a;
    border-radius: 50%;
}

.carhub-location-search__icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    left: 15px;
    top: 17px;
    border-radius: 2px;
    background: #17243a;
    transform: rotate(45deg);
}

.carhub-location-search input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #17243a;
    font-size: 16px;
}

.carhub-location-discovery .carhub-home-search-quick,
.carhub-location-discovery .carhub-home-search-suggestions {
    width: 100%;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    margin-top: 8px;
    z-index: 40;
}

.carhub-location-discovery .carhub-home-search-quick__item,
.carhub-location-discovery .carhub-home-search-suggestions__item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.carhub-location-discovery .carhub-home-search-quick__item:hover,
.carhub-location-discovery .carhub-home-search-suggestions__item:hover {
    border: 0;
}

.carhub-location-search button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f0f5fb;
    color: #17243a;
    cursor: pointer;
    font-size: 20px;
}

.carhub-location-filter-row,
.carhub-location-sort-row {
    display: flex;
    gap: 9px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 1px 2px;
    scrollbar-width: none;
}

.carhub-location-filter-row::-webkit-scrollbar,
.carhub-location-sort-row::-webkit-scrollbar,
.carhub-location-insert-scroll::-webkit-scrollbar {
    display: none;
}

.carhub-location-filter-chip,
.carhub-location-filter-button,
.carhub-location-sort-row > button,
.carhub-location-sort-chip,
.carhub-location-filter-count {
    position: relative;
    flex: 0 0 auto;
    min-height: 45px;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    background: #fff;
    color: #26344b;
    box-shadow: 0 2px 7px rgba(20,50,90,.04);
    font-size: 13px;
    font-weight: 500;
}

.carhub-location-filter-chip {
    display: flex;
    align-items: center;
    padding: 0 30px 0 14px;
    cursor: pointer;
}

.carhub-location-filter-chip > span {
    display: none;
}

.carhub-location-filter-chip select,
.carhub-location-sort-chip select {
    min-width: 110px;
    height: 43px;
    padding: 0 24px 0 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.carhub-location-filter-chip::after,
.carhub-location-sort-chip::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #26344b;
    border-bottom: 2px solid #26344b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.carhub-location-filter-button,
.carhub-location-filter-count,
.carhub-location-sort-row > button {
    padding: 0 15px;
    cursor: pointer;
    white-space: nowrap;
}

.carhub-location-filter-count {
    border-color: #2870f6;
    color: #2870f6;
    font-weight: 700;
}

.carhub-location-filter-count span {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    margin-left: 4px;
    border-radius: 50%;
    background: #2870f6;
    color: #fff;
    font-size: 11px;
}

.carhub-location-filter-count b {
    margin-left: 7px;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.carhub-location-sort-row {
    border-top: 1px solid #eef2f7;
}

.carhub-location-sort-chip {
    display: flex;
    align-items: center;
    padding: 0 30px 0 14px;
}

.carhub-location-sort-chip > span {
    display: none;
}

.carhub-location-sort-chip select {
    min-width: 120px;
}

.carhub-location-sort-row > button.is-active {
    border-color: #2870f6;
    background: #fff;
    color: #2870f6;
}

.carhub-location-filter-chip.is-active {
    border-color: #2870f6;
    background: #f4f8ff;
    color: #2166f3;
    box-shadow: 0 3px 12px rgba(33,102,243,.08);
}

.carhub-location-filter-chip.is-active select {
    color: #2166f3;
}

.carhub-location-filter-chip--disabled {
    opacity: .65;
}

/* When the homepage header hides while scrolling, the sticky discovery
 * controls move to the viewport edge instead of leaving a blank header gap. */
body.carhub-location-body .carhub-global-header.carhub-header-hidden ~ .carhub-location-page .carhub-location-discovery {
    top: 0;
}

body.carhub-location-body .carhub-global-header.menu-open ~ .carhub-location-page .carhub-location-discovery {
    top: 0;
}

.carhub-location-hero {
    padding: 30px;
}

.carhub-location-hero__grid {
    display: block;
    padding: 18px 8px 28px;
}

.carhub-location-hero h1 {
    max-width: 760px;
}

.carhub-location-hero__actions {
    margin-top: 20px;
}

.carhub-location-conditionbar {
    margin-top: 16px;
}

.carhub-location-sectionhead--inventory {
    margin-bottom: 13px;
}

.carhub-location-sectionhead--inventory p {
    margin: 7px 0 0;
    color: var(--cl-muted);
    font-size: 12px;
}

.carhub-location-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.carhub-location-insert-card {
    grid-column: 1 / -1;
    overflow: hidden;
    padding: 18px;
    border: 1px solid #dce7f4;
    border-radius: 18px;
    background: #eaf5fc;
}

.carhub-location-insert-card > span {
    display: block;
    color: #1f65d8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.carhub-location-insert-card h3 {
    margin: 5px 0 12px;
    color: #1c2a40;
    font-size: 19px;
    line-height: 1.15;
}

.carhub-location-insert-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 3px;
    scrollbar-width: none;
}

.carhub-location-insert-scroll button,
.carhub-location-insert-scroll a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #dfe7f0;
    border-radius: 11px;
    background: #fff;
    color: #26344b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.carhub-location-insert-scroll button:hover,
.carhub-location-insert-scroll a:hover {
    border-color: #8db5ff;
    color: #2166f3;
}

.carhub-location-insert-scroll small {
    margin-left: 4px;
    font: inherit;
}

.carhub-location-metrics-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--cl-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--cl-shadow);
}

.carhub-location-metrics-card > div {
    min-width: 0;
    min-height: 108px;
    padding: 20px 18px;
    border-right: 1px solid var(--cl-line);
}

.carhub-location-metrics-card > div:last-child {
    border-right: 0;
}

.carhub-location-metrics-card strong,
.carhub-location-metrics-card span {
    display: block;
}

.carhub-location-metrics-card strong {
    color: #10203a;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.carhub-location-metrics-card span {
    margin-top: 6px;
    color: #71819a;
    font-size: 11px;
}

.carhub-location-loading,
.carhub-location-error {
    margin-top: 16px;
    padding: 18px;
    border: 1px dashed #cbd8e8;
    border-radius: 15px;
    color: #71819a;
    text-align: center;
    font-size: 13px;
}

.carhub-location-error {
    color: #a44b4b;
    background: #fffafa;
}

.carhub-location-loading[hidden],
.carhub-location-error[hidden] {
    display: none;
}

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

@media (max-width: 620px) {
    :root {
        --carhub-home-header-height: 62px;
    }

    body.carhub-location-body .carhub-global-header {
        height: calc(var(--carhub-home-adminbar-height, 0px) + 62px);
        min-height: calc(var(--carhub-home-adminbar-height, 0px) + 62px);
    }

    body.carhub-location-body .carhub-home-header {
        height: 62px !important;
        min-height: 62px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .carhub-location-discovery {
        top: calc(var(--carhub-home-adminbar-height, 0px) + 62px);
        padding: 7px;
        border-radius: 15px;
    }

    .carhub-location-search {
        min-height: 52px;
        border-radius: 15px;
    }

    .carhub-location-search input {
        font-size: 14px;
    }

    .carhub-location-filter-chip,
    .carhub-location-filter-button,
    .carhub-location-sort-row > button,
    .carhub-location-sort-chip,
    .carhub-location-filter-count {
        min-height: 38px;
        border-radius: 11px;
        font-size: 12px;
    }

    .carhub-location-filter-chip select,
    .carhub-location-sort-chip select {
        height: 36px;
        min-width: 92px;
        font-size: 12px;
    }

    .carhub-location-filter-chip {
        padding-left: 11px;
        padding-right: 27px;
    }

    .carhub-location-sort-chip {
        padding-left: 11px;
        padding-right: 27px;
    }

    .carhub-location-hero {
        padding: 18px;
        border-radius: 24px;
    }

    .carhub-location-hero__grid {
        padding: 12px 2px 20px;
    }

    .carhub-location-hero h1 {
        font-size: 38px;
    }

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

    .carhub-location-grid {
        grid-template-columns: 1fr;
    }

    .carhub-location-insert-card {
        padding: 14px;
    }

    .carhub-location-metrics-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carhub-location-metrics-card > div:nth-child(2) {
        border-right: 0;
    }

    .carhub-location-metrics-card > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--cl-line);
    }

    .carhub-location-metrics-card > div:nth-child(3) {
        border-right: 1px solid var(--cl-line);
    }
}


/* ==========================================================================
   LOCATION PAGE — FINAL UI/HEADER/FILTER HARDENING
   ========================================================================== */

/* Use the shared homepage header without allowing the location template
   to change its geometry or let theme link styles clip/underline controls. */
body.carhub-location-body .carhub-global-header {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    box-sizing: border-box;
}

body.carhub-location-body .carhub-home-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden;
}

body.carhub-location-body .carhub-home-logo,
body.carhub-location-body .carhub-home-header__search,
body.carhub-location-body .carhub-home-header__signin {
    text-decoration: none !important;
}

body.carhub-location-body .carhub-home-header__actions {
    min-width: 0;
    gap: 10px !important;
}

body.carhub-location-body .carhub-home-header__signin {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 10px !important;
    line-height: 1;
}

body.carhub-location-body .carhub-home-logo {
    min-width: 0;
}

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

/* The drawer must use exactly the same spacing as the homepage drawer and
   must not inherit underline styles from the active WordPress theme. */
body.carhub-location-body .carhub-home-drawer__nav > a,
body.carhub-location-body .carhub-home-drawer__nav > details > summary,
body.carhub-location-body .carhub-home-drawer__nav a {
    text-decoration: none !important;
}

body.carhub-location-body .carhub-home-drawer__nav > a,
body.carhub-location-body .carhub-home-drawer__nav > details > summary {
    min-height: 52px !important;
    padding: 14px 4px !important;
    line-height: 1.25 !important;
}

/* Location filters: compact mobile chips, approximately 20% narrower than
   the previous controls while keeping their horizontal-scroll behavior. */
@media (max-width: 620px) {
    body.carhub-location-body .carhub-location-filter-chip,
    body.carhub-location-body .carhub-location-filter-button,
    body.carhub-location-body .carhub-location-sort-row > button,
    body.carhub-location-body .carhub-location-sort-chip,
    body.carhub-location-body .carhub-location-filter-count {
        min-height: 38px;
        font-size: 12px;
    }

    body.carhub-location-body .carhub-location-filter-chip {
        padding-left: 10px;
        padding-right: 24px;
    }

    body.carhub-location-body .carhub-location-filter-chip select {
        min-width: 74px;
        height: 36px;
        padding-right: 18px;
        font-size: 12px;
    }

    body.carhub-location-body .carhub-location-filter-chip:nth-of-type(3) select {
        min-width: 82px;
    }

    body.carhub-location-body .carhub-location-filter-chip::after {
        right: 9px;
        width: 7px;
        height: 7px;
    }
}

/* Active filters are always visibly selected. */
.carhub-location-filter-chip.is-active {
    border-color: #2870f6 !important;
    background: #f4f8ff !important;
    color: #2166f3 !important;
}

/* Vehicle cards intentionally match the Body Type card typography on mobile. */
.carhub-location-car__price {
    color: var(--cl-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.carhub-location-car__specs {
    margin-top: 7px;
    min-height: 20px;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.carhub-location-car__button {
    min-height: 42px;
    font-size: 15px;
    font-weight: 650;
    gap: 0;
}

.carhub-location-car__button span {
    display: none !important;
}

/* Keep the location hero's blue treatment aligned with CarHub's premium
   discovery gradient used by the condition/discovery templates. */
.carhub-location-hero {
    background:
        radial-gradient(circle at 85% 18%, rgba(73, 135, 255, .28), transparent 30%),
        linear-gradient(135deg, #081a38 0%, #0e3f9e 58%, #1769ff 100%);
}

/* The condition chooser belongs at the end of the content, immediately
   before FAQ, so it does not interrupt the live inventory flow. */
.carhub-location-conditionbar {
    margin-top: 18px;
    margin-bottom: 0;
}


/* ==========================================================================
 * Location filter system — premium trigger chips + homepage filter dialog
 * ========================================================================== */

.carhub-location-filter-chip {
    min-width: 0;
    min-height: 45px;
    padding: 0 38px 0 14px;
    border: 1px solid #e0e7f0;
    background: #fff;
    color: #26344b;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.carhub-location-filter-chip > span {
    display: block;
    overflow: hidden;
    max-width: 135px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carhub-location-filter-chip > i {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #26344b;
    border-bottom: 2px solid #26344b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.carhub-location-filter-chip__clear {
    position: absolute;
    right: 30px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-top: -9px;
    border-radius: 50%;
    color: #2166f3;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    z-index: 2;
}

.carhub-location-filter-chip.is-active {
    border-color: #2870f6;
    background: #f4f8ff;
    color: #2166f3;
    box-shadow: 0 3px 12px rgba(33,102,243,.08);
}

.carhub-location-filter-chip.is-active > i {
    display: none;
}

.carhub-location-filter-count {
    border-color: #2870f6;
    background: #fff;
    color: #2870f6;
}

.carhub-location-filter-count.is-active {
    border-color: #2870f6;
    box-shadow: 0 3px 12px rgba(33,102,243,.08);
}

.carhub-location-filter-modal {
    z-index: 6000;
}

.carhub-location-filter-modal .carhub-home-filter-dialog {
    width: min(94%, 720px);
    max-height: calc(100dvh - 24px);
    margin: 0 !important;
}

.carhub-location-filter-modal .carhub-home-filter-layout {
    min-height: 460px;
    max-height: none;
    overflow: hidden;
}

.carhub-location-filter-modal .carhub-home-filter-content {
    min-width: 0;
    overflow-y: auto;
}

.carhub-location-filter-modal .home-filter-options {
    max-height: 48vh;
}

.carhub-location-filter-modal .home-filter-options button.is-selected {
    border-color: #2870f6;
    background: #2166f3;
    color: #fff;
}

.carhub-location-filter-modal .home-filter-options button.is-selected small {
    color: rgba(255,255,255,.82);
}

.carhub-location-filter-empty {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px dashed #dbe5f1;
    border-radius: 12px;
    color: #71819a;
    font-size: 13px;
}

.carhub-location-filter-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-top: 1px solid #e5ebf3;
    background: #fff;
}

.carhub-location-filter-dialog__footer button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.carhub-location-filter-dialog__footer button:first-child {
    background: transparent;
    color: #94a3b8;
}

.carhub-location-filter-dialog__footer button:last-child {
    background: #2870f6;
    color: #fff;
}

@media (max-width: 700px) {
    .carhub-location-filter-modal .carhub-home-filter-dialog {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        max-height: calc(100dvh - 12px) !important;
        margin: 0 !important;
        border-radius: 22px;
    }

    .carhub-location-filter-modal .carhub-home-filter-layout {
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 460px;
        max-height: calc(100dvh - 170px);
    }

    .carhub-location-filter-modal .carhub-home-filter-nav {
        padding: 8px;
    }

    .carhub-location-filter-modal .carhub-home-filter-nav button {
        min-height: 42px;
        padding: 11px 8px;
        font-size: 15px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .carhub-location-filter-modal .carhub-home-filter-content {
        padding: 22px;
    }

    .carhub-location-filter-modal .home-filter-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .carhub-location-filter-chip > span {
        max-width: 105px;
    }
}


/* -------------------------------------------------------------------------
 * Location first-line filter triggers
 * ---------------------------------------------------------------------- */

.carhub-location-filter-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    flex: 0 0 auto;
    width: 158px;
    min-width: 158px;
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid #e0e7f0;
    border-radius: 13px;
    background: #fff;
    color: #4f5f76;
    box-shadow: 0 2px 7px rgba(20,50,90,.04);
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.carhub-location-filter-trigger__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carhub-location-filter-trigger__chevron {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #26344b;
    border-bottom: 2px solid #26344b;
    transform: translateY(-2px) rotate(45deg);
}

.carhub-location-filter-trigger__clear {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    border-radius: 50%;
    color: #2870f6;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
}

.carhub-location-filter-trigger.is-active {
    border-color: #2870f6;
    background: #f4f8ff;
    color: #2166f3;
    box-shadow: 0 3px 12px rgba(33,102,243,.10);
}

.carhub-location-filter-trigger.is-active .carhub-location-filter-trigger__clear {
    color: #2166f3;
}

.carhub-location-filter-trigger.is-active .carhub-location-filter-trigger__chevron {
    border-color: #2166f3;
}

.carhub-location-filter-trigger:focus-visible,
.carhub-location-filter-count:focus-visible {
    outline: 2px solid #2870f6;
    outline-offset: 2px;
}

/* The first-row controls and the Popularity control intentionally share
 * the same visual typography. */
.carhub-location-filter-trigger,
.carhub-location-sort-chip select,
.carhub-location-sort-row > button {
    font-size: 13px;
    font-weight: 600;
}

/* Keep the popup above the sticky discovery surface. */
.carhub-location-filter-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
}

/* Prevent the long first row from shrinking individual filter controls. */
.carhub-location-filter-row {
    align-items: center;
}

@media (max-width: 700px) {
    .carhub-location-filter-trigger {
        width: 154px;
        min-width: 154px;
        min-height: 45px;
        padding-inline: 12px;
    }
}

/* ==========================================================================
 * FINAL LOCATION FILTER PRESENTATION OVERRIDES
 * --------------------------------------------------------------------------
 * The location page uses the exact shared CarHub "Find Your Car" dialog
 * surface. Location-specific CSS must not change its geometry or create a
 * second popup design.
 * ========================================================================== */

/* A clear button must never occupy/display space while it is hidden. */
.carhub-location-filter-trigger__clear[hidden],
.carhub-location-filter-count[hidden] {
    display: none !important;
}

/* First-row controls: reduce each trigger by ~25% while keeping the
 * horizontal-scroll behavior. */
.carhub-location-filter-trigger {
    width: 118px !important;
    min-width: 118px !important;
    min-height: 45px;
    padding-inline: 12px;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.carhub-location-filter-trigger__label {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.carhub-location-filter-trigger__clear {
    font-size: 17px;
}

/*
 * Use the same dialog geometry as the homepage filter modal. The location
 * page should not use a separate/narrower popup.
 */
.carhub-location-filter-modal .carhub-home-filter-dialog {
    width: min(94%, 720px) !important;
    margin: 7vh auto 0 !important;
    border-radius: 22px;
    box-sizing: border-box;
}

/* Keep the shared homepage two-column filter layout intact. */
.carhub-location-filter-modal .carhub-home-filter-layout {
    grid-template-columns: 210px minmax(0, 1fr);
}

/* Use the homepage modal footer appearance. */
.carhub-location-filter-modal .carhub-home-filter-dialog__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--ch-border);
    background: #fff;
}

/* The location dialog is still centered on narrow screens. */
@media (max-width: 640px) {
    .carhub-location-filter-trigger {
        width: 118px !important;
        min-width: 118px !important;
    }

    .carhub-location-filter-modal .carhub-home-filter-dialog {
        width: calc(100vw - 28px) !important;
        max-width: none !important;
        margin: 5vh auto 0 !important;
        border-radius: 22px;
    }

    .carhub-location-filter-modal .carhub-home-filter-layout {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

/* Never let the location popup be shifted by inherited location-page
 * alignment rules. */
body.carhub-location-body .carhub-location-filter-modal {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

 /*
 * Location/condition filter dialog uses the homepage "Find Your Car"
 * modal geometry as its single visual source of truth.
 *
 * The location page keeps its own filter data and AJAX behavior, but the
 * dialog itself remains horizontally centered and is positioned slightly
 * lower on the screen for the location/condition page.
 */
.carhub-location-filter-modal.is-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

.carhub-location-filter-modal.is-open .carhub-home-filter-dialog {
    margin: 0 !important;
    transform: translateY(50%) !important;
}

.carhub-location-filter-modal .carhub-home-filter-nav button {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .carhub-location-filter-modal.is-open {
        padding: 6px !important;
    }

    .carhub-location-filter-modal.is-open .carhub-home-filter-dialog {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        max-height: 85dvh !important;
        margin: 0 !important;
        transform: translateY(50%) !important;
    }

    .carhub-location-filter-modal .carhub-home-filter-layout {
        grid-template-columns: 118px minmax(0, 1fr) !important;
        min-height: 391px !important;
        max-height: calc(100dvh - 205px) !important;
    }
}



/* ==========================================================================
   LOCATION PAGE — FINAL VISUAL ALIGNMENT
   Source of truth for card typography/background: Body Type template.
   ========================================================================== */

/* Match the light premium Body Type hero treatment instead of the old
   deep-blue discovery gradient. */
body.carhub-location-body .carhub-location-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(--cl-ink);
    border-color: rgba(226, 232, 240, .95);
    box-shadow: var(--cl-shadow);
}

body.carhub-location-body .carhub-location-hero h1 {
    color: var(--cl-ink);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

body.carhub-location-body .carhub-location-hero p {
    color: var(--cl-muted);
}

body.carhub-location-body .carhub-location-kicker {
    color: var(--cl-blue);
    opacity: 1;
    font-weight: 700;
}

body.carhub-location-body .carhub-location-hero__actions a {
    border-color: rgba(37, 99, 235, .28);
    color: var(--cl-blue);
    background: #fff;
}

body.carhub-location-body .carhub-location-hero__actions a:first-child {
    border-color: #d8e5f5;
    background: #fff;
    color: var(--cl-ink);
}

/* Body Type section/card headings use the calmer 20px–25px / 500 style. */
body.carhub-location-body .carhub-location-sectionhead h2,
body.carhub-location-body .carhub-location-conditionbar h2,
body.carhub-location-body .carhub-location-insert-card h3 {
    font-size: clamp(20px, 2.35vw, 25px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* Give the live inventory card a little more breathing room below discovery. */
body.carhub-location-body .carhub-location-inventory {
    margin-top: 28px !important;
}

/* Keep the same heading scale on small screens as the Body Type cards. */
@media (max-width: 760px) {
    body.carhub-location-body .carhub-location-hero h1 {
        font-size: 34px;
        font-weight: 500;
    }

    body.carhub-location-body .carhub-location-sectionhead h2,
    body.carhub-location-body .carhub-location-conditionbar h2,
    body.carhub-location-body .carhub-location-insert-card h3 {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.25;
    }

    body.carhub-location-body .carhub-location-inventory {
        margin-top: 28px !important;
    }
}


/* Inline SEO price guide: keep location SEO content inside the existing hero. */
.carhub-location-hero .carhub-seo-inline {
    max-width: 650px;
}
.carhub-location-hero .carhub-seo-inline__short,
.carhub-location-hero .carhub-seo-inline__full {
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.75;
}
.carhub-location-hero .carhub-seo-inline__details > summary {
    color: #1769ff;
}
.carhub-location-hero .carhub-seo-inline__table-title {
    color: #10203a !important;
}


/* ==========================================================================
   FINAL SHARED HOMEPAGE DRAWER ALIGNMENT
   Location uses the exact same drawer item geometry as the homepage.
   ========================================================================== */
body.carhub-location-body .carhub-home-drawer__nav > a,
body.carhub-location-body .carhub-home-drawer__nav > details > summary {
    min-height: 52px !important;
    padding: 14px 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
}

body.carhub-location-body .carhub-home-drawer__nav > details {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
