/* Wheels On Demand — "Compare now" side-by-side comparison modal.
   Additive only, reuses the site's own tokens (--navy-900, --red-600,
   --r-xl, --line, fonts) so this matches the rest of the site exactly. */

.vcompare-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 20, 40, .72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}
.vcompare-overlay.open { opacity: 1; }

.vcompare-modal {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl, 22px);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: auto;
  padding: 40px 32px 32px;
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}
.vcompare-overlay.open .vcompare-modal { transform: translateY(0) scale(1); }

.vcompare-modal h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

.vcompare-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 20, 40, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcompare-close:hover { background: var(--red-600); }

.vcompare-cols, .vcompare-row-cells {
  display: grid;
  gap: 20px;
  min-width: 560px;
}
.vcompare-grid-2 { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.vcompare-grid-3 { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
.vcompare-grid-4 { grid-template-columns: repeat(4, minmax(200px, 1fr)); }

.vcompare-col {
  position: relative;
  text-align: center;
  padding-top: 8px;
}
.vcompare-col img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-lg, 16px);
  margin-bottom: 12px;
  background: var(--navy-800);
}
.vcompare-col h3 {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 12px;
  min-height: 42px;
}
.vcompare-col .btn { width: 100%; justify-content: center; }

.vcompare-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 20, 40, .55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcompare-remove:hover { background: var(--red-600); }

.vcompare-rows { margin-top: 28px; border-top: 1px solid var(--line); }

.vcompare-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.vcompare-row:nth-child(odd) { background: var(--cream); }

.vcompare-row-label {
  flex: 0 0 140px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding-left: 4px;
  display: flex;
  align-items: center;
}

.vcompare-row-cells { flex: 1; min-width: 0; }

.vcompare-cell {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcompare-cell.vcompare-price {
  color: var(--red-600);
  font-family: 'Bricolage Grotesque';
  font-size: 17px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .vcompare-modal { padding: 32px 16px 24px; }
}
