/* ==========================================================
   Compare Engine
   ========================================================== */

.carhub-compare {
    /*
     * Comparison table width
     *
     * Reduced approximately 15% from the original
     * 220px / 200px column dimensions.
     */
    --compare-label-width: 187px;
    --compare-column-width: 170px;

    --compare-sticky-height: 0px;

    min-height: 100vh;

    /*
     * FIX 14
     * Premium page background.
     *
     * The comparison workspace remains white, while the
     * surrounding page gets a subtle layered background.
     */
    padding: 44px 20px 90px;

    background:
        radial-gradient(
            900px 420px at 50% -120px,
            rgba(37, 99, 235, .10),
            transparent 68%
        ),
        radial-gradient(
            700px 360px at 8% 28%,
            rgba(148, 163, 184, .08),
            transparent 70%
        ),
        radial-gradient(
            700px 360px at 92% 72%,
            rgba(59, 130, 246, .055),
            transparent 70%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 30%,
            #f1f5f9 100%
        );

    color: #0f172a;

    /*
     * Prevent background artifacts from creating horizontal
     * overflow on smaller screens.
     */
    overflow-x: clip;
}


.carhub-compare__shell {
    width: min(1400px, 100%);

    margin: 0 auto;
}


/* ==========================================================
   FIX 15
   Compare Title Area
   ========================================================== */

.carhub-compare__header {
    position: relative;

    max-width: 820px;

    margin: 0 0 28px;

    padding: 6px 0 4px;
}


/*
 * Small blue accent line.
 */
.carhub-compare__header::before {
    content: "";

    display: block;

    width: 42px;
    height: 4px;

    margin-bottom: 16px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #2563eb 0%,
            #60a5fa 100%
        );
}


/*
 * Eyebrow
 */
.carhub-compare__eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 11px;
    font-weight: 850;

    letter-spacing: .14em;

    line-height: 1.2;

    text-transform: uppercase;
}


/*
 * Main Compare title.
 */
.carhub-compare__title {
    margin: 0;

    color: #0b1220;

    font-size:
        clamp(
            30px,
            4vw,
            44px
        );

    font-weight: 850;

    letter-spacing: -.045em;

    line-height: 1.04;
}


/*
 * Subtitle / supporting description.
 */
.carhub-compare__subtitle {
    max-width: 650px;

    margin: 12px 0 0;

    color: #64748b;

    font-size: 15px;

    font-weight: 500;

    letter-spacing: -.005em;

    line-height: 1.6;
}


/* ==========================================================
   Compare Toolbar
   ========================================================== */

.carhub-compare__toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-bottom: 24px;
}


.carhub-compare__toolbar a {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.carhub-compare__toolbar a:hover {
    color: #1d4ed8;

    transform: translateY(-1px);
}


/* ==========================================================
   Compare Workspace
   ========================================================== */

.carhub-compare__workspace {
    position: relative;

    width: 100%;
}


/* ==========================================================
   Sticky Vehicle Header + Navigation
   ========================================================== */

.carhub-compare__sticky {
    position: sticky;

    top: 0;

    z-index: 100000;

    width: 100%;

    overflow: hidden;

    border: 1px solid #dfe7f1;

    border-bottom: 0;

    border-radius: 16px 16px 0 0;

    background:
        rgba(255, 255, 255, .98);

    box-shadow:
        0 10px 35px rgba(15, 23, 42, .10),
        0 2px 8px rgba(15, 23, 42, .04);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);
}


/*
|--------------------------------------------------------------------------
| WordPress admin bar
|--------------------------------------------------------------------------
|
| The comparison header itself remains attached to the top of
| the viewport. The WordPress admin bar, when visible, naturally
| sits above it because WordPress gives the admin bar a higher
| stacking level.
|
| This prevents the comparison cards from exposing background
| specification rows above them while scrolling.
|
*/




.carhub-compare__sticky-vehicles {
    width: 100%;

    overflow: hidden;

    background: #ffffff;
}


/* ==========================================================
   Vehicle Header Row
   ========================================================== */

.carhub-compare__vehicle-row {
    display: grid;

    grid-template-columns:
        var(--compare-label-width)
        1fr;

    width: 100%;

    min-width: 100%;

    border-bottom: 1px solid #e2e8f0;

    background: #ffffff;
}


.carhub-compare__vehicle-columns {
    display: grid;

    grid-template-columns:
        repeat(
            var(--compare-count),
            var(--compare-column-width)
        );

    width: max-content;

    min-width: max-content;

    will-change: transform;
}


/* ==========================================================
   FIX 7
   Vehicle identity panel
   ========================================================== */

.carhub-compare__vehicle-label-spacer {
    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    width: var(--compare-label-width);

    min-width: var(--compare-label-width);

    min-height: 198px;

    padding: 14px;

    box-sizing: border-box;

    border-right: 1px solid #e2e8f0;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );
}


.carhub-compare__vehicle-label-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #2563eb;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .12em;

    line-height: 1.2;
}


.carhub-compare__vehicle-label-title {
    display: block;

    color: #0f172a;

    font-size: 15px;

    font-weight: 850;

    line-height: 1.2;
}


.carhub-compare__vehicle-label-hint {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;

    font-weight: 600;

    line-height: 1.2;
}


/* ==========================================================
   Vehicle Comparison Cards
   ========================================================== */

.carhub-compare__vehicle {
    display: flex;

    flex-direction: column;

    min-width: var(--compare-column-width);

    min-height: 198px;

    padding: 10px;

    border-left: 1px solid #e2e8f0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );

    box-sizing: border-box;
}


.carhub-compare__image {
    display: block;

    width: 100%;

    height: 68px;

    flex: 0 0 68px;

    /*
     * Keep the entire vehicle visible.
     * Never crop the vehicle image regardless
     * of the source image aspect ratio.
     */
    object-fit: contain;

    object-position: center center;

    border-radius: 9px;

    background: #ffffff;

    /*
     * Prevent unusually large source images from
     * visually escaping the card image area.
     */
    max-width: 100%;
    max-height: 68px;
}


.carhub-compare__image--empty {
    display: flex;

    align-items: center;

    justify-content: center;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 700;
}


.carhub-compare__vehicle-name {
    display: flex;

    align-items: flex-start;

    min-height: 32px;

    margin-top: 7px;

    color: #0f172a;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.22;

    overflow-wrap: anywhere;
}


.carhub-compare__vehicle-meta {
    min-height: 0;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 9px;

    font-weight: 600;

    line-height: 1.2;
}


.carhub-compare__vehicle-price {
    display: flex;

    align-items: flex-start;

    min-height: 30px;

    margin-top: 6px;

    color: #111827;

    font-size: 14px;

    font-weight: 850;

    line-height: 1.2;

    overflow-wrap: anywhere;
}


/* ==========================================================
   User Review
   ========================================================== */

.carhub-compare__vehicle-review {
    display: flex;

    align-items: center;

    min-height: 18px;

    gap: 4px;

    margin-top: 1px;

    color: #64748b;

    font-size: 9px;

    font-weight: 650;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color .2s ease;
}


.carhub-compare__vehicle-review:hover {
    color: #2563eb;
}


.carhub-compare__vehicle-review strong {
    color: #334155;

    font-size: 10px;

    font-weight: 800;
}


.carhub-compare__review-stars {
    color: #f59e0b;

    font-size: 12px;

    line-height: 1;
}


/* ==========================================================
   Remove Vehicle
   ========================================================== */

.carhub-compare__remove {
    display: inline-flex;

    align-items: center;

    min-height: 18px;

    margin-top: auto;

    color: #dc2626;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;
}


.carhub-compare__remove:hover {
    text-decoration: underline;
}


/* ==========================================================
   FIX 10
   Sticky Horizontal Navigation
   ========================================================== */

.carhub-compare__navigation {
    display: flex;

    align-items: center;

    gap: 2px;

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    scrollbar-width: none;

    border-top: 1px solid #e8edf3;

    background:
        rgba(248, 250, 252, .96);

    -webkit-overflow-scrolling: touch;
}


.carhub-compare__navigation::-webkit-scrollbar {
    display: none;
}


.carhub-compare__navigation-link {
    position: relative;

    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    min-height: 44px;

    padding: 0 14px;

    border-bottom: 2px solid transparent;

    color: #64748b;

    font-size: 11px;

    font-weight: 750;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}


.carhub-compare__navigation-link:hover {
    color: #2563eb;

    background: #f8fbff;
}


.carhub-compare__navigation-link.is-active {
    border-bottom-color: #2563eb;

    background: #ffffff;

    color: #2563eb;
}


/* ==========================================================
   Scrollable Comparison Values
   ========================================================== */

.carhub-compare__body-scroll {
    width: 100%;

    overflow-x: auto;

    overflow-y: visible;

    border: 1px solid #e2e8f0;

    border-top: 0;

    border-radius: 0 0 18px 18px;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, .06);

    -webkit-overflow-scrolling: touch;
}


.carhub-compare__table {
    width: max-content;

    min-width: 100%;

    background: #ffffff;
}


/* ==========================================================
   Comparison Rows
   ========================================================== */

.carhub-compare__row {
    display: grid;

    grid-template-columns:
        var(--compare-label-width)
        repeat(
            var(--compare-count),
            var(--compare-column-width)
        );

    width: max-content;

    min-width: 100%;
}


.carhub-compare__section {
    /*
     * The section heading must remain the width of the
     * visible comparison viewport.
     *
     * The actual comparison rows remain horizontally
     * scrollable inside .carhub-compare__body-scroll.
     *
     * This prevents the accordion arrow from moving to
     * the far-right edge when 3 or 4 vehicles are selected.
     */
    width: 100%;

    min-width: 100%;

    scroll-margin-top:
        calc(
            var(--compare-sticky-height)
            + 12px
        );
}


.carhub-compare__section
.carhub-compare__row {
    width: max-content;

    min-width: 100%;
}

/* ==========================================================
   FIX 11
   Section / Group Heading
   ========================================================== */

.carhub-compare__group-title {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: 100%;

    min-height: 42px;

    margin: 0;

    padding: 12px 16px;

    box-sizing: border-box;

    border-top: 1px solid #e2e8f0;

    border-bottom: 1px solid #edf1f5;

    background:
        linear-gradient(
            90deg,
            #f8fafc 0%,
            #fbfdff 100%
        );

    color: #0f172a;

    font-size: 12px;

    font-weight: 850;

    letter-spacing: -.01em;

    line-height: 1.3;
}


.carhub-compare__row {
    min-height: 50px;

    border-top: 1px solid #f1f5f9;

    background: #ffffff;
}


/* ==========================================================
   FIX 12
   Sticky Specification Label Column
   ========================================================== */

.carhub-compare__label {
    position: sticky;

    left: 0;

    z-index: 20;

    display: flex;

    align-items: center;

    width: var(--compare-label-width);

    min-width: var(--compare-label-width);

    padding: 11px 14px;

    box-sizing: border-box;

    border-right: 1px solid #e2e8f0;

    background:
        rgba(255, 255, 255, .98);

    color: #475569;

    font-size: 10px;

    font-weight: 750;

    line-height: 1.3;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}


/* ==========================================================
   Comparison Values
   ========================================================== */

.carhub-compare__value {
    display: flex;

    align-items: center;

    width: var(--compare-column-width);

    min-width: var(--compare-column-width);

    min-height: 50px;

    padding: 11px 14px;

    box-sizing: border-box;

    border-left: 1px solid #f0f3f7;

    background: #ffffff;

    color: #0f172a;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.35;

    overflow-wrap: anywhere;
}


.carhub-compare__value--empty {
    color: #94a3b8;

    font-weight: 600;
}


/* ==========================================================
   Boolean Feature Values
   ========================================================== */

.carhub-compare__boolean {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    font-size: 15px;

    font-weight: 900;

    line-height: 1;
}


.carhub-compare__boolean--yes {
    background: #dcfce7;

    color: #15803d;
}


.carhub-compare__boolean--no {
    background: #fee2e2;

    color: #dc2626;
}


/* ==========================================================
   Empty Compare Page
   ========================================================== */

.carhub-compare__empty {

    width: min(
        1120px,
        100%
    );

    margin: 0 auto;

    padding: 0;

    border: 0;

    background: transparent;

    text-align: left;
}


/* ==========================================================
   Empty Hero
   ========================================================== */

.carhub-compare__empty-hero {

    position: relative;

    overflow: hidden;

    padding:
        68px
        54px
        48px;

    border: 1px solid #dfe7f1;

    border-radius: 24px;

    background:
        radial-gradient(
            520px 260px at 85% 0%,
            rgba(
                37,
                99,
                235,
                .12
            ),
            transparent 72%
        ),
        radial-gradient(
            420px 220px at 5% 100%,
            rgba(
                96,
                165,
                250,
                .08
            ),
            transparent 72%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    box-shadow:
        0 18px 50px rgba(
            15,
            23,
            42,
            .07
        );
}


/*
 * Subtle decorative glow.
 */
.carhub-compare__empty-hero::after {

    content: "";

    position: absolute;

    right: -100px;

    top: -100px;

    width: 280px;

    height: 280px;

    border: 1px solid rgba(
        37,
        99,
        235,
        .08
    );

    border-radius: 50%;

    pointer-events: none;
}


.carhub-compare__empty-eyebrow {

    display: block;

    margin-bottom: 10px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .16em;

    line-height: 1.2;
}


.carhub-compare__empty-title {

    position: relative;

    z-index: 1;

    margin: 0;

    color: #0b1220;

    font-size:
        clamp(
            38px,
            5vw,
            58px
        );

    font-weight: 850;

    letter-spacing: -.055em;

    line-height: 1;
}


.carhub-compare__empty-description {

    position: relative;

    z-index: 1;

    max-width: 650px;

    margin: 16px 0 0;

    color: #64748b;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.65;
}


.carhub-compare__empty-actions {

    position: relative;

    z-index: 1;

    margin-top: 28px;
}


.carhub-compare__empty-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    min-height: 50px;

    padding:
        0
        20px
        0
        22px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #1d4ed8 100%
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(
            37,
            99,
            235,
            .22
        );

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.carhub-compare__empty-primary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px rgba(
            37,
            99,
            235,
            .28
        );

    color: #ffffff;
}


.carhub-compare__empty-primary-arrow {

    font-size: 18px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.carhub-compare__empty-primary:hover
.carhub-compare__empty-primary-arrow {

    transform:
        translateX(3px);
}


.carhub-compare__empty-limit {

    position: relative;

    z-index: 1;

    margin: 13px 0 0;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 650;
}


/* ==========================================================
   Capability Cards
   ========================================================== */

.carhub-compare__empty-features {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-top: 16px;
}


.carhub-compare__empty-feature {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    min-height: 142px;

    padding: 18px;

    box-sizing: border-box;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    background: rgba(
        255,
        255,
        255,
        .92
    );

    box-shadow:
        0 5px 18px rgba(
            15,
            23,
            42,
            .04
        );

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.carhub-compare__empty-feature:hover {

    transform:
        translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 10px 25px rgba(
            15,
            23,
            42,
            .07
        );
}


.carhub-compare__empty-feature-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 34px;

    width: 34px;

    height: 34px;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 14px;

    font-weight: 850;

    line-height: 1;
}


.carhub-compare__empty-feature h2 {

    margin: 1px 0 6px;

    color: #0f172a;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.25;
}


.carhub-compare__empty-feature p {

    margin: 0;

    color: #64748b;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.5;
}


/* ==========================================================
   Empty Compare — Popular Comparisons
   ========================================================== */

.carhub-compare__empty-popular {

    margin-top: 24px;

    padding:
        28px;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    box-shadow:
        0 12px 35px rgba(
            15,
            23,
            42,
            .055
        );
}


.carhub-compare__empty-popular-header {

    margin-bottom: 20px;
}


.carhub-compare__empty-popular-header > span {

    display: block;

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .15em;
}


.carhub-compare__empty-popular-header h2 {

    margin: 0;

    color: #0f172a;

    font-size: 24px;

    font-weight: 850;

    letter-spacing: -.03em;

    line-height: 1.2;
}


.carhub-compare__empty-popular-header p {

    max-width: 620px;

    margin: 7px 0 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.5;
}


/*
 * Five suggestions:
 * 3 + 2 on desktop.
 */
.carhub-compare__empty-popular-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.carhub-compare__empty-popular-card {

    display: block;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 4px 14px rgba(
            15,
            23,
            42,
            .04
        );

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.carhub-compare__empty-popular-card:hover {

    transform:
        translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 10px 24px rgba(
            15,
            23,
            42,
            .08
        );
}


.carhub-compare__empty-popular-vehicles {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        24px
        minmax(0, 1fr);

    align-items: center;

    gap: 4px;

    padding:
        12px
        10px
        8px;
}


.carhub-compare__empty-popular-vehicle {

    min-width: 0;
}


.carhub-compare__empty-popular-vehicle img {

    display: block;

    width: 100%;

    height: 74px;

    margin-bottom: 6px;

    object-fit: contain;
}


.carhub-compare__empty-popular-vehicle span {

    display: block;

    overflow: hidden;

    color: #94a3b8;

    font-size: 8px;

    font-weight: 650;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.carhub-compare__empty-popular-vehicle strong {

    display: block;

    overflow: hidden;

    color: #0f172a;

    font-size: 11px;

    font-weight: 800;

    line-height: 1.25;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.carhub-compare__empty-popular-price {
    display: block;

    margin-top: 5px;

    color: #0f172a;

    font-size: 10px;

    font-weight: 750;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.carhub-compare__empty-popular-vs {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background: #0f172a;

    color: #ffffff;

    font-size: 7px;

    font-weight: 850;
}


.carhub-compare__empty-popular-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    padding:
        10px
        11px;

    border-top: 1px solid #edf1f5;

    color: #2563eb;

    font-size: 9px;

    font-weight: 800;
}


/* ==========================================================
   How It Works
   ========================================================== */

.carhub-compare__empty-how {

    margin-top: 28px;

    padding:
        32px
        28px;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}


.carhub-compare__empty-how-header {

    max-width: 620px;
}


.carhub-compare__empty-how-header > span {

    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .15em;
}


.carhub-compare__empty-how-header h2 {

    margin: 0;

    color: #0f172a;

    font-size: 25px;

    font-weight: 850;

    letter-spacing: -.03em;
}


.carhub-compare__empty-how-header p {

    margin: 7px 0 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.5;
}


.carhub-compare__empty-steps {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-top: 26px;
}


.carhub-compare__empty-step {

    position: relative;

    padding:
        20px
        20px
        18px;

    border: 1px solid #e8edf3;

    border-radius: 14px;

    background: #ffffff;
}


.carhub-compare__empty-step-number {

    display: block;

    margin-bottom: 18px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 850;

    letter-spacing: .1em;
}


.carhub-compare__empty-step h3 {

    margin: 0 0 7px;

    color: #0f172a;

    font-size: 14px;

    font-weight: 800;
}


.carhub-compare__empty-step p {

    margin: 0;

    color: #64748b;

    font-size: 11px;

    line-height: 1.55;
}


/* ==========================================================
   Bottom CTA
   ========================================================== */

.carhub-compare__empty-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    margin-top: 18px;

    padding:
        24px
        26px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e293b 100%
        );

    box-shadow:
        0 12px 30px rgba(
            15,
            23,
            42,
            .14
        );
}


.carhub-compare__empty-bottom > div > span {

    display: block;

    margin-bottom: 5px;

    color: #93c5fd;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .14em;
}


.carhub-compare__empty-bottom h2 {

    margin: 0;

    color: #ffffff;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: -.02em;
}


.carhub-compare__empty-bottom > a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 44px;

    padding:
        0
        17px;

    border-radius: 9px;

    background: #ffffff;

    color: #0f172a;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform .2s ease,
        background .2s ease;
}


.carhub-compare__empty-bottom > a:hover {

    transform:
        translateY(-1px);

    background: #eff6ff;

    color: #0f172a;
}



/* ==========================================================
   Similar Cars Comparison
   ========================================================== */

.carhub-compare__similar {

    margin-top: 44px;

    padding: 28px;

    border: 1px solid #e2e8f0;

    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    box-shadow:
        0 16px 45px rgba(
            15,
            23,
            42,
            .07
        );
}


/* ==========================================================
   Similar Cars Header
   ========================================================== */

.carhub-compare__similar-header {

    margin-bottom: 22px;
}


.carhub-compare__similar-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .14em;

    line-height: 1.2;
}


.carhub-compare__similar-title {

    margin: 0;

    color: #0f172a;

    font-size:
        clamp(
            22px,
            3vw,
            30px
        );

    font-weight: 850;

    letter-spacing: -.035em;

    line-height: 1.15;
}


.carhub-compare__similar-subtitle {

    max-width: 680px;

    margin: 9px 0 0;

    color: #64748b;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.5;
}


/* ==========================================================
   Similar Cards Grid
   ========================================================== */

.carhub-compare__similar-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    align-items: start;
}


/* ==========================================================
   Similar Card
   ========================================================== */

.carhub-compare__similar-card {

    position: relative;

    display: block;

    width: 85%;

    justify-self: center;

    overflow: hidden;

    box-sizing: border-box;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(
            15,
            23,
            42,
            .05
        );

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.carhub-compare__similar-card:hover {

    transform:
        translateY(-3px);

    border-color: #bfdbfe;

    box-shadow:
        0 14px 32px rgba(
            37,
            99,
            235,
            .12
        );
}


/* ==========================================================
   Vehicle Pair
   ========================================================== */

.carhub-compare__similar-vehicles {

    position: relative;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 0;

    padding: 14px 12px 16px;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );
}


.carhub-compare__similar-vehicle {
    min-width: 0;
    padding: 0 8px;

    display: grid;
    grid-template-rows:
        90px
        13px
        34px
        auto;

    align-content: start;
}


.carhub-compare__similar-vehicle img {
    display: block;
    width: 100%;
    height: 90px;
    min-height: 90px;
    object-fit: contain;
    object-position: center;
    margin: 0;
}


.carhub-compare__similar-brand {
    display: block;
    height: 13px;
    min-height: 13px;
    margin: 0;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 650;
    line-height: 13px;
    overflow: hidden;
}


.carhub-compare__similar-vehicle strong {
    display: block;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 17px;
    overflow: hidden;
}


.carhub-compare__similar-price {
    display: block;
    height: 15px;
    min-height: 15px;
    margin: 5px 0 0;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    line-height: 15px;
    overflow: hidden;
}


/* ==========================================================
   VS Badge
   ========================================================== */

.carhub-compare__similar-vs {

    position: absolute;

    top: 52px;

    left: 50%;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    margin-left: -17px;

    border-radius: 50%;

    background: #0f172a;

    color: #ffffff;

    font-size: 10px;

    font-weight: 850;

    line-height: 1;

    box-shadow:
        0 5px 14px rgba(
            15,
            23,
            42,
            .18
        );
}


/* ==========================================================
   Card Link
   ========================================================== */

.carhub-compare__similar-link {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 42px;

    padding: 0 14px;

    border-top: 1px solid #edf1f5;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    line-height: 1.2;
}


.carhub-compare__similar-link span {

    font-size: 16px;

    transition:
        transform .2s ease;
}


.carhub-compare__similar-card:hover
.carhub-compare__similar-link span {

    transform:
        translateX(3px);
}


/* ==========================================================
   Compare Any Cars
   ========================================================== */

.carhub-compare__similar-action {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 48px;

    margin-top: 20px;

    padding: 0 18px;

    box-sizing: border-box;

    border: 1px solid #2563eb;

    border-radius: 10px;

    background: #ffffff;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.carhub-compare__similar-action:hover {

    background: #2563eb;

    color: #ffffff;

    transform:
        translateY(-1px);
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 700px) {

    .carhub-compare {
    --compare-label-width: 115px;

    --compare-column-width: 128px;

        /*
         * FIX 16
         *
         * Reduced outer spacing so the comparison area occupies
         * more of the mobile viewport.
         */
        padding: 20px 8px 50px;

        /*
         * Slightly softer mobile background.
         */
        background:
            radial-gradient(
                520px 260px at 50% -80px,
                rgba(37, 99, 235, .075),
                transparent 72%
            ),
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f8fafc 42%,
                #f1f5f9 100%
            );
    }


    /* ======================================================
       FIX 15
       Mobile title area
       ====================================================== */

    .carhub-compare__header {

        max-width: 100%;

        margin-bottom: 20px;

        padding-top: 2px;
    }


    .carhub-compare__header::before {

        width: 34px;

        height: 3px;

        margin-bottom: 12px;
    }


    .carhub-compare__eyebrow {

        margin-bottom: 6px;

        font-size: 10px;

        letter-spacing: .13em;
    }


    .carhub-compare__title {

        font-size:
            clamp(
                27px,
                8vw,
                34px
            );

        letter-spacing: -.04em;

        line-height: 1.06;
    }


    .carhub-compare__subtitle {

        margin-top: 8px;

        font-size: 13px;

        line-height: 1.45;
    }


    .carhub-compare__toolbar {

        gap: 10px;

        margin-bottom: 18px;
    }


    /* ======================================================
       Sticky area
       ====================================================== */

    .carhub-compare__sticky {

        border-radius:
            12px 12px 0 0;
    }


    /* ======================================================
       FIX 7 — Mobile identity panel
       ====================================================== */

    .carhub-compare__vehicle-label-spacer {

        /*
         * FIX 16
         * Match the actual mobile vehicle-card height.
         */
        min-height: 170px;

        padding: 9px;
    }


    .carhub-compare__vehicle-label-eyebrow {

        font-size: 8px;
    }


    .carhub-compare__vehicle-label-title {

        font-size: 12px;
    }


    .carhub-compare__vehicle-label-hint {

        font-size: 8px;
    }


    /* ======================================================
       FIX 16
       Compact mobile comparison cards
       ====================================================== */

    .carhub-compare__vehicle {

        min-height: 170px;

        padding: 8px;
    }


    .carhub-compare__image {

    width: 100%;

    height: 54px;

    flex: 0 0 54px;

    max-width: 100%;

    max-height: 54px;

    object-fit: contain;

    object-position: center center;

    border-radius: 8px;

    background: #ffffff;
}


    .carhub-compare__vehicle-name {

    min-height: 0;

    margin-top: 5px;

    font-size: 11px;

    line-height: 1.18;
}


    .carhub-compare__vehicle-meta {

    min-height: 0;

    margin-top: 4px;

    font-size: 8px;

    line-height: 1.15;
}


    .carhub-compare__vehicle-price {

        min-height: 27px;

        margin-top: 10px;

        font-size: 12px;

        line-height: 1.18;
    }


    .carhub-compare__vehicle-review {

        min-height: 16px;

        gap: 3px;

        margin-top: 0;

        font-size: 8px;
    }


    .carhub-compare__vehicle-review strong {

        font-size: 9px;
    }


    .carhub-compare__review-stars {

        font-size: 10px;
    }


    .carhub-compare__remove {

        min-height: 16px;

        font-size: 9px;
    }


    /* ======================================================
       Navigation
       ====================================================== */

    .carhub-compare__navigation-link {

        min-height: 40px;

        padding: 0 11px;

        font-size: 10px;
    }


    /* ======================================================
       Section headings
       ====================================================== */

    /* ======================================================
   Mobile expandable table headings
   ====================================================== */

.carhub-compare__group-title {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: calc(100% - 10px);

    min-height: 52px;

    margin: 7px 5px 0;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    color: #0f172a;

    font-size: 13px;

    font-weight: 750;

    line-height: 1.25;

    cursor: pointer;

    user-select: none;

    box-shadow:
        0 2px 6px rgba(
            15,
            23,
            42,
            .06
        );

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

/*
 * Closed table heading.
 */
.carhub-compare__section:not(.is-open)
.carhub-compare__group-title {

    background: #ffffff;

    border-color: #e2e8f0;

    box-shadow:
        0 2px 6px rgba(
            15,
            23,
            42,
            .06
        );
}


/*
 * Hover / touch state.
 */
.carhub-compare__group-title:hover {

    border-color: #cbd5e1;

    background: #f8fafc;
}


/*
 * Open table heading.
 */
.carhub-compare__section.is-open
.carhub-compare__group-title {

    border-color: #dbeafe;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );

    box-shadow:
        0 3px 8px rgba(
            37,
            99,
            235,
            .07
        );
}

    /* ======================================================
   Mobile comparison accordions
   ====================================================== */

.carhub-compare__group-title {

    cursor: pointer;

    user-select: none;
}

.carhub-compare__group-arrow {

    width: 9px;

    height: 9px;

    flex: 0 0 9px;

    margin-left: 9px;

    border-right-width: 2px;

    border-bottom-width: 2px;
}

/* ======================================================
   Mobile accordion heading width
   ====================================================== */

.carhub-compare__section {

    width: 100%;

    min-width: 100%;

    max-width: 100%;
}


.carhub-compare__group-title {

    width: calc(100% - 10px);

    margin-left: 5px;

    margin-right: 5px;

    box-sizing: border-box;
}

/* ======================================================
   Comparison Accordion Arrow
   ====================================================== */

.carhub-compare__group-arrow {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 9px;

    width: 9px;

    height: 9px;

    margin-left: 9px;

    box-sizing: border-box;

    border-right: 2px solid #334155;

    border-bottom: 2px solid #334155;

    transform:
        rotate(45deg)
        translateY(-2px);

    transform-origin: center;

    transition:
        transform .2s ease,
        border-color .2s ease;

    pointer-events: none;
}


/*
 * Closed section:
 * downward-facing arrow.
 */
.carhub-compare__section:not(.is-open)
.carhub-compare__group-arrow {

    transform:
        rotate(45deg)
        translateY(-2px);

    border-color: #334155;
}


/*
 * Open section:
 * upward-facing arrow.
 */
.carhub-compare__section.is-open
.carhub-compare__group-arrow {

    transform:
        rotate(225deg)
        translateY(-2px);

    border-color: #2563eb;
}





/*
 * Closed sections hide their complete
 * comparison table.
 */
.carhub-compare__section:not(.is-open)
.carhub-compare__row {

    display: none;
}


/*
 * Give the accordion heading a slightly more
 * tactile mobile appearance.
 */
.carhub-compare__group-title:hover {

    border-color: #cbd5e1;

    background: #f8fafc;
}


.carhub-compare__group-title:active {

    background: #f1f5f9;

    transform: scale(.995);
}


    /* ======================================================
       Specification table
       ====================================================== */

    .carhub-compare__label,
    .carhub-compare__value {

        min-height: 44px;

        padding: 9px;

        font-size: 10px;
    }


    /* ======================================================
       Boolean values
       ====================================================== */

    .carhub-compare__boolean {

        width: 21px;

        height: 21px;

        font-size: 13px;
    }

    /* ======================================================
   Similar Cars — Mobile
   ====================================================== */

.carhub-compare__similar {

    margin-top: 28px;

    padding: 18px 12px;

    border-radius: 16px;
}


.carhub-compare__similar-header {

    margin-bottom: 16px;

    padding: 0 4px;
}


.carhub-compare__similar-title {

    font-size: 22px;

    line-height: 1.15;
}


.carhub-compare__similar-subtitle {

    font-size: 12px;

    line-height: 1.45;
}


.carhub-compare__similar-grid {

    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding: 2px 2px 8px;

    margin-right: -4px;

    scrollbar-width: none;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;
}


.carhub-compare__similar-grid::-webkit-scrollbar {

    display: none;
}


.carhub-compare__similar-card {

    flex: 0 0 248px;

    width: 248px;

    max-width: 248px;

    scroll-snap-align: start;
}


.carhub-compare__similar-vehicles {

    padding: 12px 6px 14px;
}


.carhub-compare__similar-vehicle {
    padding: 0 4px;

    display: grid;
    grid-template-rows:
        78px
        12px
        30px
        auto;

    align-content: start;
}

.carhub-compare__similar-vehicle img {
    height: 78px;
    min-height: 78px;
    margin: 0;
}

.carhub-compare__similar-brand {
    height: 12px;
    min-height: 12px;
    line-height: 12px;
    font-size: 8px;
    margin: 0;
}

.carhub-compare__similar-vehicle strong {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    font-size: 11px;
    line-height: 15px;
    overflow: hidden;
}

.carhub-compare__similar-price {
    height: 14px;
    min-height: 14px;
    margin: 5px 0 0;
    font-size: 11px;
    line-height: 14px;
}

.carhub-compare__similar-vs {

    top: 43px;

    width: 30px;

    height: 30px;

    margin-left: -15px;

    font-size: 9px;
}


.carhub-compare__similar-link {

    min-height: 40px;

    padding: 0 12px;

    font-size: 10px;
}


.carhub-compare__similar-action {

    min-height: 46px;

    margin-top: 16px;

    font-size: 12px;
}

}

/* ======================================================
   Popular Comparisons — Mobile
   ====================================================== */

.carhub-compare__empty-popular {

    margin-top: 14px;

    padding:
        18px
        10px;

    border-radius: 16px;
}


.carhub-compare__empty-popular-header {

    padding:
        0
        2px;

    margin-bottom: 13px;
}


.carhub-compare__empty-popular-header h2 {

    font-size: 19px;
}


.carhub-compare__empty-popular-header p {

    font-size: 9px;

    line-height: 1.45;
}


.carhub-compare__empty-popular-grid {

    display: flex;

    gap: 9px;

    overflow-x: auto;

    padding:
        1px
        2px
        5px;

    scroll-snap-type: x mandatory;

    scrollbar-width: thin;
}


.carhub-compare__empty-popular-card {

    flex:
        0 0 238px;

    scroll-snap-align: start;
}


.carhub-compare__empty-popular-vehicle img {

    height: 66px;
}


.carhub-compare__empty-popular-vehicle strong {

    font-size: 10px;
}

.carhub-compare__empty-popular-vehicle
.carhub-compare__empty-popular-price {

    display: block;

    margin-top: 5px;

    color: #334155;

    font-size: 10px;

    font-weight: 750;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.carhub-compare__empty-popular-vehicle span {

    font-size: 7px;
}


.carhub-compare__empty-popular-footer {

    padding:
        9px
        10px;

    font-size: 8px;
}

/* ======================================================
   Empty Compare Page — Mobile
   ====================================================== */

.carhub-compare__empty {

    width: 100%;
}


.carhub-compare__empty-hero {

    padding:
        40px
        20px
        30px;

    border-radius: 18px;

    text-align: center;
}


.carhub-compare__empty-eyebrow {

    margin-bottom: 8px;

    font-size: 9px;
}


.carhub-compare__empty-title {

    font-size:
        clamp(
            32px,
            10vw,
            42px
        );
}


.carhub-compare__empty-description {

    margin:
        13px
        auto
        0;

    max-width: 330px;

    font-size: 13px;

    line-height: 1.55;
}


.carhub-compare__empty-actions {

    margin-top: 22px;
}


.carhub-compare__empty-primary {

    width: 100%;

    min-height: 48px;

    box-sizing: border-box;
}


.carhub-compare__empty-limit {

    font-size: 9px;
}


.carhub-compare__empty-features {

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 8px;

    margin-top: 10px;
}


.carhub-compare__empty-feature {

    min-height: 145px;

    padding: 13px;

    display: block;
}


.carhub-compare__empty-feature-icon {

    width: 30px;

    height: 30px;

    margin-bottom: 10px;
}


.carhub-compare__empty-feature h2 {

    font-size: 11px;
}


.carhub-compare__empty-feature p {

    font-size: 9px;

    line-height: 1.45;
}


.carhub-compare__empty-how {

    margin-top: 14px;

    padding:
        22px
        14px;

    border-radius: 16px;
}


.carhub-compare__empty-how-header h2 {

    font-size: 21px;
}


.carhub-compare__empty-how-header p {

    font-size: 10px;
}


.carhub-compare__empty-steps {

    grid-template-columns:
        1fr;

    gap: 8px;

    margin-top: 16px;
}


.carhub-compare__empty-step {

    padding:
        15px;

    border-radius: 11px;
}


.carhub-compare__empty-step-number {

    margin-bottom: 9px;

    font-size: 9px;
}


.carhub-compare__empty-step h3 {

    margin-bottom: 5px;

    font-size: 12px;
}


.carhub-compare__empty-step p {

    font-size: 9px;
}


.carhub-compare__empty-bottom {

    align-items: stretch;

    flex-direction: column;

    gap: 15px;

    margin-top: 10px;

    padding:
        20px
        16px;

    border-radius: 14px;
}


.carhub-compare__empty-bottom h2 {

    font-size: 17px;
}


.carhub-compare__empty-bottom > a {

    width: 100%;

    box-sizing: border-box;
}

.carhub-compare__type-badge{display:inline-flex;align-items:center;width:fit-content;margin-top:14px;padding:7px 11px;border:1px solid #cfe0ff;border-radius:999px;background:#f2f7ff;color:#2166f3;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.carhub-compare__types{margin-top:18px;padding:18px;border:1px solid #e5eaf1;border-radius:18px;background:#fff}.carhub-compare__types-header{margin-bottom:13px}.carhub-compare__types-eyebrow{display:block;margin-bottom:5px;color:#2166f3;font-size:9px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.carhub-compare__types-header h2{margin:0;color:#0b1730;font-size:20px;line-height:1.2}.carhub-compare__types-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.carhub-compare__type-card{position:relative;min-width:0;min-height:92px;padding:12px;border:1px solid #e1e7ef;border-radius:13px;background:#fbfcfe;color:#1f2937;text-decoration:none!important;display:flex;flex-direction:column;justify-content:space-between;gap:8px;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.carhub-compare__type-card:hover,.carhub-compare__type-card:focus{border-color:#9fc0ff;box-shadow:0 8px 22px rgba(33,102,243,.09);transform:translateY(-1px);color:#1f2937}.carhub-compare__type-card.is-active{border-color:#2166f3;background:#f2f7ff}.carhub-compare__type-card-label{color:#2166f3;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.carhub-compare__type-card strong{max-width:100%;color:#18253b;font-size:12px;line-height:1.3}.carhub-compare__type-card-arrow{align-self:flex-end;color:#2166f3;font-size:14px;font-weight:800}@media(max-width:900px){.carhub-compare__types-grid{display:flex;overflow-x:auto;gap:9px;padding-bottom:3px;scrollbar-width:thin}.carhub-compare__type-card{flex:0 0 175px}}@media(max-width:640px){.carhub-compare__type-badge{margin-top:10px;font-size:9px}.carhub-compare__types{margin-top:14px;padding:13px 10px;border-radius:15px}.carhub-compare__types-header h2{font-size:18px}.carhub-compare__type-card{flex-basis:158px;min-height:86px;padding:10px}}

/* ========================================================================== 
   COMPARE PAGE ENHANCEMENT PATCH
   --------------------------------------------------------------------------
   Dynamic SEO summary, five-key-highlight table, balanced similar cards,
   related model news rail, and the shared discovery filter pattern.
   ========================================================================== */

/* 10% smaller comparison-type cards. */
.carhub-compare__type-card {
    min-height: 83px;
    padding: 10px;
}

/* Dynamic SEO summary. Full text remains available in the DOM. */
.carhub-compare__seo-summary {
    max-width: 820px;
    margin-top: 12px;
}

.carhub-compare__seo-description {
    max-width: 820px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.carhub-compare__seo-summary.is-expanded .carhub-compare__seo-description {
    display: block;
    overflow: visible;
}

.carhub-compare__seo-toggle {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2166f3;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
}

.carhub-compare__seo-toggle:hover,
.carhub-compare__seo-toggle:focus {
    color: #174bc0;
    text-decoration: underline;
}

/* Five key highlights, with one column per compared vehicle. */
.carhub-compare__highlights {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    border: 1px solid #e1e7ef;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.carhub-compare__highlights-scroll {
    width: 100%;
    overflow-x: auto;
}

.carhub-compare__highlights-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
}

.carhub-compare__highlights-table th,
.carhub-compare__highlights-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.35;
}

.carhub-compare__highlights-table thead th {
    background: #f7f9fc;
    color: #18253b;
    font-weight: 800;
}

.carhub-compare__highlights-table thead th:first-child,
.carhub-compare__highlights-table tbody th {
    width: 150px;
}

.carhub-compare__highlights-table tbody th {
    color: #475569;
    font-weight: 700;
}

.carhub-compare__highlights-table tbody td {
    color: #25344d;
    font-weight: 600;
}

.carhub-compare__highlights-table tr:last-child th,
.carhub-compare__highlights-table tr:last-child td {
    border-bottom: 0;
}

/* Similar-car cards: equal height and a lower, consistent CTA. */
.carhub-compare__similar-grid {
    align-items: stretch;
}

.carhub-compare__similar-card {
    width: 100%;
    justify-self: stretch;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.carhub-compare__similar-vehicles {
    flex: 1 1 auto;
}

.carhub-compare__similar-link {
    margin-top: 8px;
    min-height: 46px;
}

.carhub-compare__similar-title {
    font-size: clamp(20px, 2.6vw, 27px);
    font-weight: 750;
    letter-spacing: -.025em;
}

/* Latest news rail. */
.carhub-compare__news,
.carhub-compare__discover {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid #e1e7ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(20, 39, 72, .045);
}

.carhub-compare__news-header,
.carhub-compare__discover-heading {
    margin-bottom: 18px;
}

.carhub-compare__news-header h2,
.carhub-compare__discover-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.carhub-compare__news-header p {
    max-width: 700px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.carhub-compare__news-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.carhub-compare__news-card {
    flex: 0 0 235px;
    width: 235px;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #e1e7ef;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.carhub-compare__news-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .10);
}

.carhub-compare__news-image {
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5f9;
}

.carhub-compare__news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carhub-compare__news-image span {
    color: #2166f3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.carhub-compare__news-body {
    min-height: 153px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
}

.carhub-compare__news-body time {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.carhub-compare__news-body h3 {
    margin: 7px 0 0;
    color: #18253b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.carhub-compare__news-body > span {
    margin-top: auto;
    color: #2166f3;
    font-size: 11px;
    font-weight: 800;
}

/* Shared "Find the right car for you" discovery card. */
.carhub-compare__discover-heading > span {
    display: block;
    margin-bottom: 6px;
    color: #2166f3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .15em;
}

.carhub-compare__discover-find {
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 15px;
    background: #fff;
}

.carhub-compare__discover-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid #e1e7ef;
    scrollbar-width: none;
}

.carhub-compare__discover-tabs::-webkit-scrollbar {
    display: none;
}

.carhub-compare__discover-tabs button {
    flex: 0 0 auto;
    padding: 15px 18px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: #fff;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.carhub-compare__discover-tabs button.is-active {
    border-bottom-color: #2563eb;
    color: #0f172a;
}

.carhub-compare__discover-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
}

.carhub-compare__discover-panel[hidden] {
    display: none;
}

.carhub-compare__discover-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #e1e7ef;
    border-radius: 9px;
    background: #fff;
    color: #25344d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.carhub-compare__discover-panel a:hover {
    border-color: #2563eb;
    color: #2563eb;
}

@media (max-width: 900px) {
    .carhub-compare__type-card {
        flex-basis: 158px;
    }

    .carhub-compare__similar-card {
        min-height: 100%;
    }
}

@media (max-width: 640px) {
    .carhub-compare__seo-summary {
        margin-top: 10px;
    }

    .carhub-compare__seo-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .carhub-compare__highlights {
        margin-top: 14px;
    }

    .carhub-compare__highlights-table th,
    .carhub-compare__highlights-table td {
        padding: 10px 11px;
        font-size: 11px;
    }

    .carhub-compare__highlights-table thead th:first-child,
    .carhub-compare__highlights-table tbody th {
        width: 118px;
    }

    .carhub-compare__type-card {
        flex-basis: 142px;
        min-height: 77px;
        padding: 9px;
    }

    .carhub-compare__type-card strong {
        font-size: 11px;
    }

    .carhub-compare__similar-title {
        font-size: 20px;
        font-weight: 750;
    }

    .carhub-compare__news,
    .carhub-compare__discover {
        margin-top: 20px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .carhub-compare__news-header h2,
    .carhub-compare__discover-heading h2 {
        font-size: 21px;
    }

    .carhub-compare__news-card {
        flex-basis: 220px;
        width: 220px;
        min-height: 270px;
    }

    .carhub-compare__news-image {
        height: 120px;
    }

    .carhub-compare__discover-tabs button {
        padding: 13px 15px;
        font-size: 12px;
    }

    .carhub-compare__discover-panel {
        gap: 8px;
        padding: 14px;
    }

    .carhub-compare__discover-panel a {
        min-height: 39px;
        padding: 0 12px;
        font-size: 11px;
    }
}


/* ==========================================================================
   SIMILAR-CAR CARD — COMPACT CONTENT HEIGHT
   Keeps vehicle information aligned while removing unnecessary empty space.
   ========================================================================== */

.carhub-compare__similar-card {
    min-height: 0 !important;
    height: auto !important;
}

.carhub-compare__similar-vehicles {
    flex: 0 0 auto !important;
    padding-bottom: 14px !important;
}

.carhub-compare__similar-link {
    position: static !important;
    flex: 0 0 50px !important;
    min-height: 50px !important;
    height: 50px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 700px) {
    .carhub-compare__similar-card {
        min-height: 0 !important;
        height: auto !important;
    }

    .carhub-compare__similar-vehicles {
        padding-bottom: 14px !important;
    }

    .carhub-compare__similar-link {
        flex: 0 0 50px !important;
        min-height: 50px !important;
        height: 50px !important;
        margin-top: 0 !important;
    }
}
