/* ================================================================
   Scout theme — Compare cars (/compare, /vergleich).
   Laptop layout from the user's reference picture (p16-compare).
   Loaded only on that page (pages/scout/compare.blade.php).
   ================================================================ */
html.theme-scout .sc-cmp {
    --cmp-ink: #333333;
    --cmp-text: #333333;
    --cmp-muted: #6f6f6f;
    --cmp-line: #e6e8ea;
    --cmp-teal: rgb(var(--sc-primary));
    --cmp-teal-hover: rgb(var(--sc-primary-hover));
    --cmp-link: rgb(var(--sc-link));
    --cmp-best: #fdf6e1;
    color: var(--cmp-ink);
    background: #f2f3f4;
}
html.theme-scout .sc-cmp [hidden] { display: none !important; }
html.theme-scout .sc-cmp__wrap { max-width: 1440px; margin: 0 auto; padding: 26px 33px 56px; }

/* ── breadcrumb + title ────────────────────────────────────────── */
html.theme-scout .sc-cmp__crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cmp-muted); }
html.theme-scout .sc-cmp__crumbs a.sc-cmp__crumb { color: var(--cmp-link); text-decoration: none; }
html.theme-scout .sc-cmp__crumbs a.sc-cmp__crumb:hover { text-decoration: underline; }
html.theme-scout .sc-cmp__crumbs [aria-current] { color: var(--cmp-link); }
html.theme-scout .sc-cmp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 18px 0 24px; }
html.theme-scout .sc-cmp__title { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--cmp-ink); }
html.theme-scout .sc-cmp__sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cmp-text); }
html.theme-scout .sc-cmp__diff { display: inline-flex; flex: none; align-items: center; gap: 14px; padding: 4px 0; font: inherit; font-size: 15px; color: var(--cmp-ink); background: none; border: 0; cursor: pointer; }
html.theme-scout .sc-cmp-switch { position: relative; flex: none; width: 42px; height: 24px; background: #d6d9dc; border-radius: 999px; transition: background .15s ease; }
html.theme-scout .sc-cmp-switch::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; background: #ffffff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s ease; }
html.theme-scout .sc-cmp__diff.is-on .sc-cmp-switch { background: var(--cmp-teal); }
html.theme-scout .sc-cmp__diff.is-on .sc-cmp-switch::after { transform: translateX(18px); }
html.theme-scout .sc-cmp__diff:focus-visible .sc-cmp-switch { outline: 2px solid var(--cmp-teal); outline-offset: 2px; }

/* ── loading / empty ───────────────────────────────────────────── */
html.theme-scout .sc-cmp__loading { display: grid; place-items: center; min-height: 320px; }
html.theme-scout .sc-cmp__spinner { width: 36px; height: 36px; border: 3px solid #d6d9dc; border-top-color: var(--cmp-teal); border-radius: 50%; animation: sc-cmp-spin .8s linear infinite; }
@keyframes sc-cmp-spin { to { transform: rotate(360deg); } }
html.theme-scout .sc-cmp-empty { display: flex; flex-direction: column; align-items: center; padding: 56px 28px; text-align: center; background: #ffffff; border: 1px solid #eceef0; border-radius: 16px; box-shadow: 0 2px 10px rgba(16,24,32,.05); }
html.theme-scout .sc-cmp-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; color: var(--cmp-teal); background: #e8f3f2; border-radius: 50%; }
html.theme-scout .sc-cmp-empty__icon svg { width: 26px; height: 26px; }
html.theme-scout .sc-cmp-empty__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--cmp-ink); }
html.theme-scout .sc-cmp-empty__text { max-width: 520px; margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--cmp-text); }

/* ── buttons ───────────────────────────────────────────────────── */
html.theme-scout .sc-cmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; font-size: 15px; font-weight: 600; color: #ffffff; text-decoration: none; background: var(--cmp-teal); border: 0; border-radius: 8px; box-shadow: 0 2px 6px rgb(var(--sc-primary) / .25); }
html.theme-scout .sc-cmp-btn:hover { color: #ffffff; background: var(--cmp-teal-hover); }
html.theme-scout .sc-cmp-btn svg { width: 17px; height: 17px; }
html.theme-scout .sc-cmp-btn--ghost { color: var(--cmp-teal); background: #ffffff; border: 1.5px solid var(--cmp-teal); box-shadow: none; }
html.theme-scout .sc-cmp-btn--ghost:hover { color: #ffffff; background: var(--cmp-teal); }

/* ── the table ─────────────────────────────────────────────────── */
html.theme-scout .sc-cmp-card { overflow: hidden; background: #ffffff; border: 1px solid #eceef0; border-radius: 16px; box-shadow: 0 2px 10px rgba(16,24,32,.05); }
html.theme-scout .sc-cmp-table { width: 100%; table-layout: fixed; border-collapse: collapse; border-spacing: 0; }
html.theme-scout .sc-cmp-table th,
html.theme-scout .sc-cmp-table td { box-sizing: border-box; }
html.theme-scout .sc-cmp-label { width: 300px; padding: 14px 28px; font-size: 15px; font-weight: 400; line-height: 1.35; text-align: left; vertical-align: middle; color: var(--cmp-ink); }
html.theme-scout .sc-cmp-label--head { padding-top: 26px; font-size: 15px; font-weight: 500; vertical-align: top; color: var(--cmp-muted); background: #fafafa; }

/* column heads: title, photo, price, View car / Remove */
html.theme-scout .sc-cmp-car { padding: 24px 28px 26px; font-weight: 400; text-align: left; vertical-align: top; border-left: 1px solid var(--cmp-line); }
html.theme-scout .sc-cmp-car__title { display: -webkit-box; height: 2.6em; overflow: hidden; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--cmp-ink); text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html.theme-scout .sc-cmp-car__title:hover { color: var(--cmp-teal); }
html.theme-scout .sc-cmp-car__photo { position: relative; display: block; margin: 14px 0 18px; overflow: hidden; aspect-ratio: 16 / 9.4; background: #eef0f2; border-radius: 12px; }
html.theme-scout .sc-cmp-car__photo img,
html.theme-scout .sc-cmp-car__photo video { display: block; width: 100%; height: 100%; object-fit: cover; }
html.theme-scout .sc-cmp-car__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #b8bdc2; }
html.theme-scout .sc-cmp-car__noimg svg { width: 40px; height: 40px; }
html.theme-scout .sc-cmp-chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 600; border-radius: 6px; }
html.theme-scout .sc-cmp-chip svg { width: 15px; height: 15px; }
html.theme-scout .sc-cmp-chip--best { color: #ffffff; background: #1f7a3c; }
html.theme-scout .sc-cmp-chip--state { top: auto; bottom: 12px; color: #ffffff; background: rgba(20,28,36,.78); }
html.theme-scout .sc-cmp-car__plabel { display: block; margin-bottom: 2px; font-size: 12px; color: var(--cmp-muted); }
html.theme-scout .sc-cmp-car__price { display: block; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--cmp-ink); }
html.theme-scout .sc-cmp-car__actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
html.theme-scout .sc-cmp-car__actions .sc-cmp-btn { flex: 1 1 auto; }
html.theme-scout .sc-cmp-car__remove { flex: none; padding: 0; font: inherit; font-size: 15px; color: var(--cmp-link); background: none; border: 0; cursor: pointer; }
html.theme-scout .sc-cmp-car__remove:hover { text-decoration: underline; }

/* empty slot: add another car */
html.theme-scout .sc-cmp-car--add { vertical-align: middle; }
html.theme-scout .sc-cmp-add { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 18px; text-align: center; border: 1.5px dashed #d6d9dc; border-radius: 12px; }
html.theme-scout .sc-cmp-add__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; color: var(--cmp-teal); background: #e8f3f2; border-radius: 50%; }
html.theme-scout .sc-cmp-add__icon svg { width: 22px; height: 22px; }
html.theme-scout .sc-cmp-add strong { font-size: 16px; font-weight: 700; color: var(--cmp-ink); }
html.theme-scout .sc-cmp-add > span:not(.sc-cmp-add__icon) { font-size: 14px; line-height: 1.45; color: var(--cmp-text); }
html.theme-scout .sc-cmp-add .sc-cmp-btn { margin-top: 8px; }

/* groups + rows */
html.theme-scout .sc-cmp-group__head th { padding: 22px 28px 8px; font-size: 16px; font-weight: 600; text-align: left; color: var(--cmp-text); border-top: 1px solid var(--cmp-line); }
html.theme-scout .sc-cmp-row .sc-cmp-label,
html.theme-scout .sc-cmp-cell { border-top: 1px solid #f0f1f2; }
html.theme-scout .sc-cmp-row.is-alt .sc-cmp-label,
html.theme-scout .sc-cmp-row.is-alt .sc-cmp-cell { background: #f7f8f9; }
html.theme-scout .sc-cmp-cell { padding: 12px 16px; font-size: 15px; line-height: 1.35; text-align: center; vertical-align: middle; color: var(--cmp-ink); border-left: 1px solid var(--cmp-line); }
html.theme-scout .sc-cmp-row .sc-cmp-cell.is-best { background: var(--cmp-best); }
html.theme-scout .sc-cmp-sub { display: block; font-size: 12px; color: var(--cmp-muted); }
html.theme-scout .sc-cmp-val { display: block; }
html.theme-scout .sc-cmp-val--strong { font-size: 16px; font-weight: 700; }
html.theme-scout .sc-cmp-val--mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .02em; }
html.theme-scout .sc-cmp-val.is-live { color: #1f7a3c; font-weight: 500; }
html.theme-scout .sc-cmp-best { display: inline-block; margin-top: 4px; padding: 1px 7px; font-size: 12px; font-weight: 600; line-height: 1.4; color: #3d2e00; background: #f2c200; border-radius: 4px; }
html.theme-scout .sc-cmp-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; color: #ffffff; background: #1f7a3c; border-radius: 50%; vertical-align: middle; }
html.theme-scout .sc-cmp-yes svg { width: 15px; height: 15px; }
html.theme-scout .sc-cmp-no { font-size: 18px; color: #9aa0a6; }
html.theme-scout .sc-cmp-cell--add { background: transparent !important; }

/* this page is the comparison → the site-wide compare bar stays hidden here */
html.theme-scout body:has(.sc-cmp) .af-compare-bar { display: none !important; }

/* ── narrower screens: scroll the table sideways until the phone version is designed ── */
@media (max-width: 1199.98px) {
    html.theme-scout .sc-cmp-card { overflow-x: auto; }
    html.theme-scout .sc-cmp-table { min-width: 960px; }
    html.theme-scout .sc-cmp-label { width: 220px; padding-left: 20px; padding-right: 16px; }
    html.theme-scout .sc-cmp-car { padding: 20px; }
}
@media (max-width: 899.98px) {
    html.theme-scout .sc-cmp__wrap { padding: 20px 16px 40px; }
    html.theme-scout .sc-cmp__head { flex-direction: column; align-items: flex-start; }
    html.theme-scout .sc-cmp__title { font-size: 26px; }
}
