/* ==========================================================================
   AutoRebuildFax — Recommended Vehicles section
   Prefix: rv-*
   ========================================================================== */

/* ── Section ─────────────────────────────────────────────────────────── */
.rv-section {
  background: #f7f7f9;
  padding: 76px 0;
}
.rv-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section head ────────────────────────────────────────────────────── */
.rv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 20px;
  flex-wrap: wrap;
}
.rv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(138,26,31,.07);
  border: 1px solid rgba(138,26,31,.15);
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a1a1f;
  margin-bottom: 12px;
}
.rv-eyebrow i { font-size: .85rem; }
.rv-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -.022em;
  color: #24272c;
  margin: 0 0 6px;
  line-height: 1.15;
}
.rv-title-sub {
  font-size: .875rem;
  color: #696665;
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
}
.rv-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #d8d8dc;
  background: #fff;
  color: #24272c;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: flex-start;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.rv-view-all:hover {
  background: #8a1a1f;
  border-color: #8a1a1f;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px -6px rgba(138,26,31,.45);
}
.rv-view-all i { transition: transform .2s ease; font-size: .9rem; }
.rv-view-all:hover i { transform: translateX(3px); }

/* ── Grid ────────────────────────────────────────────────────────────── */
.rv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Card ────────────────────────────────────────────────────────────── */
.rv-card {
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.rv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px -14px rgba(36,39,44,.14), 0 0 0 1px rgba(138,26,31,.10);
  border-color: rgba(138,26,31,.18);
}

/* ── Image ───────────────────────────────────────────────────────────── */
.rv-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f2;
  flex: 0 0 auto;
}
.rv-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.rv-card:hover .rv-img { transform: scale(1.06); }

/* Top badges */
.rv-img-badges {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  z-index: 3;
}
.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.6;
}
.rv-badge--featured {
  background: rgba(138,26,31,.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.rv-badge--year {
  background: rgba(24,28,36,.82);
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.10);
}

/* ARF documented dot (bottom-right of image, visible when no hover) */
.rv-documented-dot {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(15,20,28,.75);
  border: 1px solid rgba(20,160,119,.35);
  font-size: .67rem;
  font-weight: 700;
  color: #14a077;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .25s ease;
}
.rv-card:hover .rv-documented-dot { opacity: 0; pointer-events: none; }
.rv-doc-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #14a077;
  flex: 0 0 auto;
  animation: rv-pulse 2s ease-in-out infinite;
}
@keyframes rv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.65); }
}

/* Hover reveal strip (slides up from bottom of image) */
.rv-certified-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(24,28,36,.96) 0%, rgba(15,20,28,.96) 100%);
  border-top: 1px solid rgba(20,160,119,.22);
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  transform: translateY(100%);
  transition: transform .30s ease;
}
.rv-card:hover .rv-certified-strip { transform: translateY(0); }
.rv-certified-strip i { color: #14a077; font-size: .88rem; flex: 0 0 auto; }
.rv-certified-strip-arrow {
  margin-left: auto;
  color: rgba(255,255,255,.35);
  font-size: .80rem;
}

/* ── Card body ───────────────────────────────────────────────────────── */
.rv-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rv-body-type {
  font-size: .70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #8e8e93;
  margin-bottom: 4px;
}
.rv-body-name {
  font-size: .97rem;
  font-weight: 700;
  color: #24272c;
  margin: 0 0 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-body-name a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.rv-body-name a:hover { color: #8a1a1f; }

/* Specs */
.rv-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rv-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .76rem;
  color: #696665;
  white-space: nowrap;
}
.rv-spec i { color: #b0b0b5; font-size: .85rem; }
.rv-spec-div {
  width: 1px; height: 11px;
  background: #e8e8eb;
  flex: 0 0 auto;
}

/* Price */
.rv-price {
  font-size: 1.10rem;
  font-weight: 700;
  color: #24272c;
  margin-bottom: 14px;
  line-height: 1;
}
.rv-price-na {
  font-size: .82rem;
  font-weight: 500;
  color: #8e8e93;
}

/* Footer: owner + CTA */
.rv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f2;
  margin-top: auto;
}
.rv-owner {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  overflow: hidden;
  min-width: 0;
}
.rv-owner-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #21252f 0%, #2c313d 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff;
  flex: 0 0 auto;
  overflow: hidden;
}
.rv-owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-owner-name {
  font-size: .74rem;
  font-weight: 600;
  color: #696665;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(138,26,31,.07);
  color: #8a1a1f;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background .2s ease, color .2s ease;
}
.rv-cta:hover {
  background: #8a1a1f;
  color: #fff;
  text-decoration: none;
}
.rv-cta i { font-size: .78rem; }

/* ── Empty ───────────────────────────────────────────────────────────── */
.rv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  color: #8e8e93;
  font-size: .9rem;
}
.rv-empty i { display: block; font-size: 2rem; color: #d8d8dc; margin-bottom: 10px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rv-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 767px) {
  .rv-section { padding: 52px 0; }
  .rv-inner { padding: 0 20px; }
  .rv-head { margin-bottom: 28px; }
  .rv-grid { gap: 12px; }
}

@media (max-width: 575px) {
  .rv-section { padding: 44px 0; }
  .rv-inner { padding: 0 16px; }
  .rv-head { flex-direction: column; align-items: flex-start; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-view-all { align-self: stretch; justify-content: center; }
}
