/* =============================================================================
   FD VASTGOED ONDERHOUD - reviews.css
   Google-reviewbadges (header, offerteknoppen, footer) en het reviewblok.
   Bouwt voort op de variabelen en .reviews__/.review-card-stijlen in style.css.
   ========================================================================== */

/* ---- Iconen ------------------------------------------------------------- */
.rv-g {
  display: inline-block; flex: none;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.5 12.2c0-.7-.06-1.4-.18-2.06H12v3.9h5.9a5.05 5.05 0 0 1-2.19 3.32v2.76h3.54c2.07-1.91 3.25-4.72 3.25-7.92z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.54-2.76c-.98.66-2.24 1.05-3.74 1.05-2.87 0-5.3-1.94-6.17-4.55H2.18v2.85A11 11 0 0 0 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.83 14.08a6.6 6.6 0 0 1 0-4.16V7.07H2.18a11 11 0 0 0 0 9.86l3.65-2.85z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.2 1.64l3.14-3.14C17.45 2.1 14.96 1 12 1A11 11 0 0 0 2.18 7.07l3.65 2.85C6.7 7.32 9.13 5.38 12 5.38z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rv-star {
  display: inline-block; flex: none;
  width: 14px; height: 14px;
  background: #E8B23A;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Vijf sterren in één element: gele vulling tot --rv-pct, rest leeg. */
.rv-stars {
  --rv-size: 18px;
  --rv-empty: #CBD5E1;
  display: inline-block; flex: none;
  width: calc(var(--rv-size) * 5); height: var(--rv-size);
  background: linear-gradient(90deg, #E8B23A var(--rv-pct, 100%), var(--rv-empty) var(--rv-pct, 100%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath transform='translate(0 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(24 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(48 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(72 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(96 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath transform='translate(0 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(24 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(48 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(72 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3Cpath transform='translate(96 0)' d='M12 2.5l2.9 6.06 6.6.78-4.9 4.5 1.32 6.56L12 17.9 6.08 20.9 7.4 14.34 2.5 9.84l6.6-.78L12 2.5z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.rv-stars--badge { --rv-size: 13px; }
.rv-stars--lg { --rv-size: 22px; }
.on-dark .rv-stars, .footer .rv-stars { --rv-empty: rgba(255, 255, 255, 0.28); }

/* ---- Badge (gedeeld) ---------------------------------------------------- */
.rv-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 32px;
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.2;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.rv-badge strong { font-weight: 700; color: inherit; }
.rv-badge:hover .rv-badge__txt { text-decoration: underline; text-underline-offset: 3px; }
.rv-badge:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }

/* Header: compact (G ★ 4,9); vanaf 1280px volledig (G ★★★★★ 4,9 · 38 reviews). */
.rv-badge--header {
  height: 32px; min-width: 64px;
  margin-right: auto;
  color: var(--ink);
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.rv-badge--header .rv-stars--badge,
.rv-badge--header .rv-badge__count { display: none; }
@media (min-width: 1280px) {
  .rv-badge--header .rv-stars--badge { display: inline-block; }
  .rv-badge--header .rv-badge__count { display: inline; }
  .rv-badge--header .rv-star { display: none; }
}
/* Smal scherm zonder score: alleen G + aantal, anders past de header niet. */
@media (max-width: 440px) {
  .rv-badge--header .rv-badge__word { display: none; }
}
@media (max-width: 400px) {
  .rv-badge--header { padding: 0 0.4rem; gap: 0.3rem; margin-left: -0.75rem; }
}

/* Bij offerteknoppen */
.rv-badge--cta { opacity: 0.92; }
.btn-row > .rv-badge--cta { flex-basis: 100%; }
.cta-band__actions > .rv-badge--cta { justify-content: center; }
.mobile-menu__footer > .rv-badge--cta { display: flex; justify-content: center; margin-top: 0.75rem; }
p > .rv-badge--cta, div > .btn + .rv-badge--cta { display: flex; width: max-content; margin-top: 0.75rem; }

/* Footer */
.rv-badge--footer {
  display: flex; width: max-content;
  margin-top: 1.25rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.85);
}
.rv-badge--footer:hover { color: var(--white); }
.rv-badge--footer .rv-star { display: none; }

/* ---- Reviewblok --------------------------------------------------------- */
.rv-block[hidden] { display: none; }
.rv-block .reviews__track { min-height: 300px; }
.rv-block.is-live .reviews__track { min-height: 0; }

/* Plaatshouders tot de reviews er zijn (zelfde maat als een kaart). */
.rv-skel {
  min-height: 300px;
  background: var(--white);
  border: 1px solid var(--line);
}
.section--cream .rv-skel { background: rgba(255, 255, 255, 0.6); }
.rv-summary-skel { min-height: 76px; }

.rv-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.rv-card__time { font-size: 0.8125rem; color: var(--text); }
.rv-card__more {
  align-self: flex-start;
  margin-top: -0.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
}
.review-card__meta a { color: inherit; }
.review-card__meta a:hover strong { text-decoration: underline; }
.review-card__meta span { color: var(--text); }
img.rv-avatar { object-fit: cover; padding: 0; }
.rv-card .review-card__src .rv-g { width: 20px; height: 20px; }

.rv-attrib { color: var(--text); }
.rv-gmaps { font-family: Roboto, Arial, sans-serif; font-weight: 500; color: #5E5E5E; }

.rv-actions { margin-top: 2rem; }

/* Mobiel en tablet: 3 kaarten (mobiel horizontaal scrollend). */
.rv-block .rv-card:nth-child(n+4) { display: none; }
/* Breed scherm: 4 kolommen zodra er 4 of meer reviews zijn. */
@media (min-width: 1200px) {
  .rv-block .reviews__track[data-count="4"],
  .rv-block .reviews__track[data-count="5"] { grid-template-columns: repeat(4, 1fr); }
  .rv-block .rv-card:nth-child(4) { display: flex; }
}

.rv-block .reviews__track:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .rv-block .reviews__track { scroll-behavior: auto; scroll-snap-type: none; }
}

/* Offertefunnel: badge boven het formulier */
.rv-funnel { display: flex; justify-content: center; margin-bottom: 1.5rem; color: var(--ink); }
