:root {
  --container-max: 1200px;
  --gutter: clamp(16px, 4vw, 24px);

  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-text: #0f172a;
  --c-muted: #64748b;
  --c-border: rgba(15, 23, 42, .10);

  --c-primary: #0369a1;
  --c-primary-2: #0284c7;

  --r-md: 14px;
  --r-lg: 18px;

  --shadow-1: 0 1px 0 rgba(2, 6, 23, .04);
  --shadow-2: 0 14px 34px rgba(2, 6, 23, .12);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
}

/* Shared base */
.rv-model-page,
.rv-repair-page {
  background: transparent;
  color: var(--c-text);
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
  overflow-x: clip;
}

.rv-frontend-reparatie-overzicht {
  width: 100%;
  max-width: none;
}

@supports not (overflow: clip) {

  .rv-model-page,
  .rv-repair-page {
    overflow-x: hidden;
  }
}

.rv-model-page,
.rv-model-page *,
.rv-repair-page,
.rv-repair-page * {
  box-sizing: border-box;
}

.rv-container {
  width: min(100% - (2 * var(--gutter)), var(--container-max));
  margin-inline: auto;
}

/* Full-bleed backgrounds without layout breakout */
.rv-model-hero,
.rv-repair-hero,
.rv-section--alt {
  position: relative;
}

.rv-model-hero::before,
.rv-repair-hero::before,
.rv-section--alt::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  z-index: 0;
  background: inherit;
}

.rv-model-hero>.rv-container,
.rv-repair-hero>.rv-container,
.rv-section--alt>.rv-container {
  position: relative;
  z-index: 1;
}

body .ast-separate-container .rv-model-page,
body .ast-separate-container .rv-repair-page {
  background: transparent;
}

/* Typography */
.rv-muted {
  color: var(--c-muted);
}

.rv-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}

.rv-h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  margin: 0;
}

.rv-h2 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  margin: 0 0 var(--s-2);
}

/* .rv-h3 lives in rv-components.css so it is available on all frontend pages
   (this stylesheet only loads on repair detail/overzicht templates). */

.rv-eyebrow {
  margin: 0 0 var(--s-1);
  color: var(--c-muted);
  font-weight: 600;
}

/* Focus-visible */
.rv-model-page a:focus-visible,
.rv-repair-page a:focus-visible,
.rv-model-page button:focus-visible,
.rv-repair-page button:focus-visible,
.rv-repair-page summary:focus-visible {
  outline: 3px solid rgba(3, 105, 161, .45);
  outline-offset: 3px;
}

/* Buttons */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
}

.rv-btn--primary {
  background: var(--c-primary);
  color: #fff;
}

.rv-btn--primary:hover {
  background: var(--c-primary-2);
}

.rv-btn--block {
  width: 100%;
}

/* Cards */
.rv-card {
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--s-3);
}

.rv-big {
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
}

/* Section wrapper */
.rv-section {
  padding: var(--s-5) 0;
}

.rv-section--alt {
  background: transparent;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

/* Prevent grid blowouts */
.rv-main,
.rv-side {
  min-width: 0;
}

/* Images always responsive */
.rv-model-page img,
.rv-repair-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* =========================
   MODEL PAGE (rv-model-page)
   ========================= */
.rv-model-hero {
  padding: var(--s-4) 0 var(--s-3);
  background: transparent;
  border-bottom: 1px solid var(--c-border);
}

.rv-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-3);
  color: var(--c-muted);
  font-size: .95rem;
}

.rv-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #6b7280;
}

.rv-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rv-model-header {
  display: grid;
  gap: var(--s-2);
}

.rv-model-sub {
  margin: 0;
  color: var(--c-muted);
}

.rv-model-layout {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4) 0;
}

.rv-model-cards {
  display: grid;
  gap: var(--s-2);
}

.rv-model-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--rv-color-surface);
  box-shadow: var(--shadow-1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.rv-model-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(2, 132, 199, .25);
}

.rv-model-ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rv-model-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-model-ic-fallback {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
}

.rv-model-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.rv-model-meta {
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: .92rem;
}

.rv-model-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.rv-model-price {
  font-weight: 900;
}

.rv-model-aside {
  display: grid;
  gap: var(--s-2);
}

.rv-checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--c-muted);
}

.rv-checklist li {
  margin: 0 0 8px;
}

/* Breakpoints: 0–599, 600–1023, 1024+ */
@media (min-width: 600px) {
  .rv-model-cards {
    /* 280px minimum (was 380px) — allows 2 columns on 600px+ screens */
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }
}

@media (min-width: 1024px) {
  .rv-model-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .rv-model-aside {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 599px) {
  .rv-model-card {
    /* 2-column: icon | title+meta; side wraps to full width via grid-column */
    grid-template-columns: 48px 1fr;
    align-items: start;
  }

  .rv-model-ic {
    width: 48px;
    height: 48px;
  }

  .rv-model-side {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .rv-model-side .rv-btn {
    width: 100%;
  }
}

/* ==========================
   DETAIL PAGE (rv-repair-page)
   ========================== */
.rv-repair-hero {
  padding: var(--s-4) 0 var(--s-3);
  background: transparent;
  border-bottom: 1px solid var(--c-border);
}

.rv-repair-grid {
  display: grid;
  gap: var(--s-3);
}

.rv-trust-row {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.rv-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: transparent;
  backdrop-filter: blur(6px);
  width: fit-content;
}

.rv-trust-score {
  font-weight: 900;
}

.rv-trust-stars {
  letter-spacing: 1px;
}

.rv-trust-note {
  color: var(--c-muted);
}

.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-chip {
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  font-weight: 600;
  color: var(--c-text);
}

.rv-device {
  margin: 0;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-2);
}

.rv-device img {
  border-radius: 12px;
}

.rv-booking {
  display: grid;
  gap: var(--s-3);
}

.rv-booking-card {
  display: grid;
  gap: var(--s-2);
}

.rv-booking-title {
  margin: 0;
}

.rv-booking-device {
  margin: 0;
}

.rv-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.rv-label {
  margin: 0;
  color: var(--c-muted);
  font-weight: 700;
  font-size: .95rem;
}

.rv-price {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rv-meta-value {
  margin: 0;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.rv-content-grid {
  display: grid;
  gap: var(--s-4);
}

.rv-prose {
  max-width: 70ch;
}

.rv-prose p {
  margin: 0 0 var(--s-2);
  line-height: 1.6;
}

.rv-side {
  display: grid;
  gap: var(--s-3);
}

/* FAQ */
.rv-faq {
  display: grid;
  gap: var(--s-2);
}

.rv-faq-item {
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0;
  box-shadow: var(--shadow-1);
}

.rv-faq-item summary {
  cursor: pointer;
  padding: var(--s-2) var(--s-3);
  font-weight: 800;
  list-style: none;
}

.rv-faq-item summary::-webkit-details-marker {
  display: none;
}

.rv-faq-body {
  padding: 0 var(--s-3) var(--s-3);
  color: var(--c-muted);
}

.rv-faq-body p {
  margin: 0;
  line-height: 1.6;
}

/* Related */
.rv-related {
  display: grid;
  gap: var(--s-2);
}

.rv-related-card {
  display: grid;
  gap: 6px;
  padding: var(--s-3);
  border-radius: var(--r-lg);
  background: transparent;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
  text-decoration: none;
}

.rv-related-card:hover {
  box-shadow: var(--shadow-2);
}

/* Breakpoints */
@media (min-width: 600px) {
  .rv-repair-grid {
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }

  .rv-booking {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

@media (min-width: 1024px) {
  .rv-repair-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .rv-booking {
    grid-column: auto;
    grid-template-columns: 1fr;
    position: sticky;
    top: 18px;
  }

  .rv-content-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}
