.compare-page {
    background: #f5f7fb;
}

.compare-shell {
    width: min(1460px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.compare-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 13px;
}

.compare-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.compare-breadcrumb a:hover { color: #1d4ed8; }

.compare-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 22px;
    padding: 28px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background:
            radial-gradient(circle at 90% 10%, rgba(59, 130, 246, .14), transparent 35%),
            linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.compare-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.compare-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.compare-hero p {
    max-width: 850px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.compare-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.compare-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.compare-action:hover { transform: translateY(-1px); }

.compare-action--primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}
.compare-action--primary:hover { background: #1d4ed8; color: #fff; }

.compare-action--secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}
.compare-action--secondary:hover,
.compare-action--secondary[aria-pressed="true"] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.compare-panel {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
}

.compare-table-scroll {
    width: 100%;
    overflow: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.compare-table {
    width: 100%;
    min-width: calc(210px + (280px * var(--vehicle-count, 2)));
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #334155;
}

.compare-feature-column,
.compare-feature-name {
    position: sticky;
    left: 0;
    width: 210px;
    min-width: 210px;
    max-width: 210px;
    z-index: 5;
}

.compare-feature-column {
    top: 0;
    padding: 22px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: bottom;
    z-index: 8;
}

.compare-feature-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}
.compare-feature-heading small { color: #94a3b8; font-size: 12px; font-weight: 600; }

.compare-vehicle-column {
    width: 280px;
    min-width: 280px;
    padding: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    vertical-align: top;
}
.compare-vehicle-column:last-child { border-right: 0; }

.compare-vehicle-card {
    position: relative;
    padding: 18px 18px 20px;
    text-align: left;
}

.compare-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.compare-remove:hover { border-color: #fecaca; background: #fef2f2; color: #dc2626; }

.compare-vehicle-card__image {
    display: flex;
    height: 156px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    overflow: hidden;
}
.compare-vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}
.compare-vehicle-card__image:hover img { transform: scale(1.035); }

.compare-vehicle-card__body { display: flex; flex-direction: column; align-items: flex-start; }
.compare-vehicle-card__year {
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.compare-vehicle-card__title {
    min-height: 44px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.42;
    text-decoration: none;
}
.compare-vehicle-card__title:hover { color: #2563eb; }
.compare-vehicle-card__price {
    margin-top: 9px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}
.compare-detail-link {
    display: inline-flex;
    gap: 5px;
    margin-top: 12px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.compare-category-row th {
    padding: 12px 20px;
    border-bottom: 1px solid #dbe3ee;
    background: #eef4ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .025em;
    text-align: left;
}

.compare-data-row th,
.compare-data-row td {
    height: 58px;
    padding: 13px 18px;
    border-right: 1px solid #e8edf4;
    border-bottom: 1px solid #e8edf4;
    background: #fff;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}
.compare-data-row:last-child th,
.compare-data-row:last-child td { border-bottom: 0; }
.compare-data-row td:last-child { border-right: 0; }
.compare-data-row:hover th,
.compare-data-row:hover td { background: #fafcff; }

.compare-feature-name {
    background: #f8fafc !important;
    color: #475569;
    font-weight: 700;
    text-align: left !important;
    box-shadow: 1px 0 0 #e2e8f0;
}

.compare-data-row.is-different td {
    color: #0f172a;
    font-weight: 700;
}
.compare-difference-dot {
    color: #f59e0b;
    font-size: 18px;
    line-height: 0;
}
.compare-price-cell { color: #0f766e !important; font-weight: 800 !important; }
.compare-muted { color: #94a3b8; }
.compare-external-link { color: #2563eb; font-weight: 700; text-decoration: none; }
.compare-external-link:hover { text-decoration: underline; }

.compare-table.show-differences-only .compare-data-row.is-same { display: none; }

.compare-mobile-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.compare-help-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #fff);
}
.compare-help-card > div { display: flex; align-items: center; gap: 14px; }
.compare-help-card__icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #dbeafe;
    font-size: 24px;
}
.compare-help-card h2 { margin: 0 0 4px; color: #0f172a; font-size: 17px; font-weight: 800; }
.compare-help-card p { margin: 0; color: #64748b; font-size: 13px; }

.compare-empty {
    padding: 72px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
.compare-empty__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 34px;
}
.compare-empty h2 { margin: 0; color: #0f172a; font-size: 24px; }
.compare-empty p { margin: 10px auto 22px; color: #64748b; }

@media (max-width: 991.98px) {
    .compare-shell { width: min(100% - 22px, 1460px); padding-top: 16px; }
    .compare-hero { align-items: flex-start; flex-direction: column; padding: 22px; border-radius: 18px; }
    .compare-hero__actions { width: 100%; justify-content: flex-start; }
    .compare-mobile-hint { display: flex; }
    .compare-panel { border-radius: 16px; }
    .compare-feature-column,
    .compare-feature-name { width: 155px; min-width: 155px; max-width: 155px; }
    .compare-vehicle-column { width: 245px; min-width: 245px; }
    .compare-vehicle-card { padding: 14px; }
    .compare-vehicle-card__image { height: 135px; }
    .compare-data-row th,
    .compare-data-row td { padding: 12px 13px; font-size: 13px; }
}

@media (max-width: 575.98px) {
    .compare-shell { width: calc(100% - 16px); padding-bottom: 36px; }
    .compare-breadcrumb { margin-left: 4px; }
    .compare-hero { padding: 20px 18px; }
    .compare-hero p { font-size: 14px; }
    .compare-hero__actions { display: grid; grid-template-columns: 1fr; }
    .compare-action { width: 100%; }
    .compare-feature-column,
    .compare-feature-name { width: 132px; min-width: 132px; max-width: 132px; }
    .compare-feature-column { padding: 14px 12px; }
    .compare-vehicle-column { width: 220px; min-width: 220px; }
    .compare-vehicle-card__image { height: 120px; }
    .compare-vehicle-card__title { font-size: 14px; }
    .compare-category-row th { padding-left: 14px; }
    .compare-help-card { align-items: stretch; flex-direction: column; padding: 18px; }
}


/* Market strength rows */
.compare-sales-cell{font-weight:800!important;color:#1d4ed8!important}.compare-category-row th:has(+ td.compare-sales-cell),.compare-data-row:has(.compare-sales-cell){background:#f8fbff}.compare-data-row:has(.compare-sales-cell) .compare-feature-name{color:#1e3a8a}

/* Popular comparison widgets */
.popular-comparisons {
    margin-top: 34px;
}

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

.popular-comparisons__heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 800;
    letter-spacing: -.025em;
}

.popular-comparisons__heading p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.popular-comparisons__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.popular-comparison-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.popular-comparison-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .1);
}

.popular-comparison-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.popular-comparison-card__vehicles {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 20px 20px 17px;
}

.popular-comparison-vehicle {
    min-width: 0;
    text-align: center;
}

.popular-comparison-vehicle__image {
    display: flex;
    height: 130px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

.popular-comparison-vehicle__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.popular-comparison-card:hover .popular-comparison-vehicle__image img {
    transform: scale(1.035);
}

.popular-comparison-vehicle > span {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.popular-comparison-card__vs {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
}

.popular-comparison-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 13px 18px;
    border-top: 1px solid #edf1f6;
    background: #fbfdff;
}

.popular-comparison-card__footer > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.popular-comparison-card__footer strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .popular-comparisons__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .popular-comparisons {
        margin-top: 28px;
    }

    .popular-comparison-card__vehicles {
        grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
        gap: 5px;
        padding: 14px 12px;
    }

    .popular-comparison-vehicle__image {
        height: 96px;
    }

    .popular-comparison-vehicle > span {
        min-height: 38px;
        font-size: 12px;
    }

    .popular-comparison-card__vs {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }

    .popular-comparison-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
