/* Compare page — compare/compare-page.aspx */

.tb-compare-page {
    --cp-red: #c92127;
    --cp-red-dark: #a81b20;
    --cp-text: #24272c;
    --cp-muted: #6b7280;
    --cp-border: #e8ecf0;
    --cp-bg: #f5f6f8;
    background: var(--cp-bg);
    padding-bottom: 32px;
}

.tb-compare-page .page-content {
    background: transparent;
}

/* Breadcrumb */
.tb-compare-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--cp-border);
}

.tb-compare-breadcrumb .container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.tb-compare-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.tb-compare-breadcrumb .breadcrumb-item a {
    color: var(--cp-muted);
    text-decoration: none;
}

.tb-compare-breadcrumb .breadcrumb-item a:hover {
    color: var(--cp-red);
}

.tb-compare-breadcrumb .breadcrumb-item.active {
    color: var(--cp-text);
    font-weight: 500;
}

/* Hero */
.tb-compare-hero {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-bottom: 1px solid var(--cp-border);
    padding: 24px 0 20px;
}

.tb-compare-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--cp-text);
    line-height: 1.25;
}

.tb-compare-hero p {
    margin: 0;
    font-size: 14px;
    color: var(--cp-muted);
    line-height: 1.5;
}

/* Picker card */
.tb-compare-picker {
    margin-top: 20px;
}

.tb-compare-picker-card {
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
    overflow: hidden;
}

.tb-compare-picker-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.tb-compare-picker-head h2 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cp-text);
}

.tb-compare-picker-head p {
    margin: 0;
    font-size: 13px;
    color: var(--cp-muted);
}

.tb-compare-picker-body {
    padding: 20px;
}

/* Category pills (RadioButtonList) */
.tb-compare-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.tb-compare-categories table {
    border: 0;
    margin: 0;
}

.tb-compare-categories td {
    padding: 0 8px 8px 0;
    border: 0;
}

.tb-compare-categories label {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tb-compare-categories label:hover {
    background: #e5e7eb;
    color: var(--cp-text);
}

.tb-compare-categories input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.tb-compare-categories input[type="radio"]:checked + label {
    color: #fff !important;
    background: var(--cp-red) !important;
    border-color: var(--cp-red) !important;
}

.tb-compare-categories span {
    display: inline-flex;
    margin: 0 8px 8px 0;
}

/* Vehicle slots */
.tb-compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.tb-compare-slot {
    position: relative;
    background: #fafbfc;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.15s, background 0.15s;
}

.tb-compare-slot:hover {
    border-color: #9ca3af;
    background: #fff;
}

.tb-compare-slot.is-filled {
    border-style: solid;
    border-color: var(--cp-border);
    background: #fff;
}

.tb-compare-slot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--cp-text);
    border-radius: 50%;
}

.tb-compare-slot-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cp-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tb-compare-select {
    display: block;
    width: 100%;
    height: 44px;
    margin-bottom: 12px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--cp-text);
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: 8px;
    appearance: auto;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tb-compare-select:focus {
    outline: none;
    border-color: var(--cp-red);
    box-shadow: 0 0 0 3px rgba(201, 33, 39, 0.12);
}

.tb-compare-slot .input-group {
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.tb-compare-slot .input-group:last-child .tb-compare-select {
    margin-bottom: 0;
}

.tb-compare-slot-vs {
    display: none;
}

/* Submit */
.tb-compare-actions {
    text-align: center;
    padding-top: 4px;
}

.tb-compare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    background: var(--cp-red) !important;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(201, 33, 39, 0.25);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tb-compare-btn:hover,
.tb-compare-btn:focus {
    background: var(--cp-red-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 33, 39, 0.3);
    outline: none;
}

/* Popular comparisons section on page */
.tb-compare-page .tb-compare-listing {
    margin-top: 20px;
}

/* Compare text links (CompareCardText) */
.tb-compare-text-section {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #f0f2f5;
    border-radius: 10px;
}

.tb-compare-text-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cp-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tb-compare-text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tb-compare-text-link {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cp-text);
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: 999px;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

.tb-compare-text-link:hover {
    color: var(--cp-red);
    border-color: var(--cp-red);
    background: #fff8f8;
}

/* compareListing sections */
.tb-compare-listing-block {
    margin-bottom: 20px;
}

.tb-compare-listing-block:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .tb-compare-slots {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tb-compare-hero {
        padding: 18px 0 16px;
    }

    .tb-compare-picker-body {
        padding: 16px;
    }

    .tb-compare-btn {
        width: 100%;
        min-width: 0;
    }

    .tb-compare-text-links {
        flex-direction: column;
    }

    .tb-compare-text-link {
        white-space: normal;
    }
}
