:root {
  --lbc-orange: #ff6e14;
  --bg: #f2f2f2;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e0e0e0;
  --warn-bg: #fff4e5;
  --warn-border: #ff6e14;
  --warn-text: #7a3e00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--lbc-orange);
}
.logo em { font-style: normal; color: var(--text); font-weight: 600; }
.logo-dot { color: var(--text); }
.subtitle { color: var(--muted); font-size: 0.9rem; }

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.my-car {
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.my-car .my-car-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #bdbdbd;
  margin-bottom: 6px;
}
.my-car .my-car-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.my-car .my-car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.my-car .spec-chip {
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.section-title {
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loader {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 30px 0;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--lbc-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.filter-toggle input {
  cursor: pointer;
}
.filter-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.filter-select-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.filter-select {
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card.severity-red { border-left-color: #d1372f; }
.card.severity-orange { border-left-color: #e08a2c; }
.card.severity-green { border-left-color: #2a9d4f; }

.card-main {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.photos {
  flex: 0 0 260px;
}
.photo-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  display: block;
}
.thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  overflow-x: auto;
}
.thumbs img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.thumbs img.active {
  border-color: var(--lbc-orange);
}

.info { flex: 1; min-width: 0; }

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.listing-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.listing-title a { color: var(--text); text-decoration: none; }
.listing-title a:hover { text-decoration: underline; }

.price {
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}
.price-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.location-date {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  margin-bottom: 10px;
}
.specs-grid div { font-size: 0.85rem; }
.specs-grid .label { color: var(--muted); display: block; font-size: 0.72rem; }

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.option-pill {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
}

.seller {
  font-size: 0.82rem;
  color: var(--muted);
}
.seller strong { color: var(--text); }

.description {
  font-size: 0.85rem;
  color: #333;
  margin: 10px 0 0;
  line-height: 1.4;
}

.compare-section {
  border-top: 1px solid var(--border);
  padding: 14px 18px 16px;
  background: #fafafa;
}

.verdict-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.verdict-better { background: #e3f6e8; color: #1a7a3a; }
.verdict-comparable { background: #eaf0fb; color: #2c4b9b; }
.verdict-worse { background: #fdeee0; color: #a85a10; }
.verdict-na { background: #f0f0f0; color: #666; }

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.compare-pros .compare-col-title { color: #1a7a3a; }
.compare-cons .compare-col-title { color: #b3401a; }

.compare-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.compare-list li { margin-bottom: 4px; }
.compare-list li:last-child { margin-bottom: 0; }

.compare-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.compare-notes {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .compare-columns { grid-template-columns: 1fr; }
}

.foot {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 620px) {
  .card-main { flex-direction: column; }
  .photos { flex: none; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}
