/* Compare page: model picker chips + up to 3 side-by-side columns. */

.compare-page { padding-block: 32px 48px; max-width: 1120px; margin-inline: auto; }
.compare-page h1 { margin-bottom: 8px; }
.compare-intro { color: var(--ink-2); max-width: 65ch; margin-bottom: 20px; }

.compare-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.compare-chip[aria-pressed='true'] { background: var(--brand); color: #fff; }

.compare-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface-2);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.compare-empty__hint { color: var(--ink-2); }
.compare-suggested { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* The page itself never scrolls sideways — only this card does, so a phone
   with 2-3 wide columns gets a normal, contained horizontal swipe instead of
   the whole layout shifting under it. */
.compare-columns {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.compare-col {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 900px) {
  .compare-columns { overflow-x: visible; }
  .compare-col { flex: 1 1 0; }
}
.compare-col__media { position: relative; }
.compare-col__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); border-radius: var(--r-media); }
.compare-col__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.compare-col__name { display: inline-block; font-size: 1.1rem; font-weight: 700; }
/* Touch target floor without growing the visible text line (measured live:
   309 x 28px, the model name link with no reserved height) — same padding +
   negative-margin pattern as .compare-row__value a below. */
@media (pointer: coarse) {
  .compare-col__name { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; margin-block: -8px; }
}
.compare-col__rows { display: flex; flex-direction: column; gap: 8px; }
.compare-row { display: flex; flex-direction: column; gap: 2px; padding-block: 6px; border-top: 1px solid var(--line); }
.compare-row__label { font-size: 0.75rem; color: var(--ink-2); }
.compare-row__value { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.compare-row__value--best { color: var(--brand); }
.compare-row__value a { font-weight: 500; font-size: 0.85rem; }
/* Touch target floor without growing the visible text line (measured live:
   132 x 22px, "Lihat halaman model" with no reserved height) — matches the
   same padding + negative-margin pattern used for .choose-result-card__name. */
@media (pointer: coarse) {
  .compare-row__value a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 11px; margin-block: -11px; }
}
.compare-row__best-chip { height: 20px; padding: 0 8px; font-size: 0.7rem; background: var(--brand); color: #fff; }

@media (pointer: coarse) {
  .compare-col__remove { width: 44px; height: 44px; top: -6px; right: -6px; }
}
