/**
 * Kwezi Safaris: kwezi-reviews.css
 * Google review cards printed by kwezi_render_reviews_block()
 * (inc/kwezi-reviews.php) and kwezi-reviews.js.
 *
 * CHANGE 99 (Nov 2026): shared copy of the sand-background review styles
 * from single-service-v2.php, for the templates that used the Elfsight
 * widget (page-destination-v2.php, single-service-hotel-v2.php,
 * single-service2-v2.php). Colour tokens fall back to the brand values.
 */

/* -- Native Google Reviews   full base + sand-background colours -- */

/* Layout */
.kwezi-rv__summary {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px; margin-bottom: 28px;
  border-radius: 10px; flex-wrap: wrap;
  background: rgba(26,26,24,0.05);
  border: 1px solid rgba(26,26,24,0.10);
}
.kwezi-rv__score {
  font-size: 48px; font-weight: 300;
  line-height: 1; letter-spacing: -0.03em; flex-shrink: 0;
  color: var(--ink, #1a1a18);
}
.kwezi-rv__summary-right { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kwezi-rv__stars { display: flex; gap: 3px; }
.kwezi-rv__stars--lg svg { width: 18px; height: 18px; }
.kwezi-rv__star--filled { fill: var(--amber, #e9731b); }
.kwezi-rv__star--empty  { fill: none; stroke: var(--amber, #e9731b); stroke-width: 1.5; }
.kwezi-rv__count {
  font-size: 12px; font-weight: 300; color: var(--ink-muted, #7a7a72);
}
.kwezi-rv__cta {
  margin-left: auto; padding: 9px 20px;
  border: 1px solid rgba(26,26,24,0.25); border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink, #1a1a18); text-decoration: none;
  transition: background 0.2s, border-color 0.2s; white-space: nowrap;
}
.kwezi-rv__cta:hover {
  background: rgba(26,26,24,0.07);
  border-color: rgba(26,26,24,0.45);
}
.kwezi-rv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.kwezi-rv__card {
  border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(26,26,24,0.04);
  border: 1px solid rgba(26,26,24,0.10);
}
.kwezi-rv__header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  position: relative !important;
  top: auto !important; left: auto !important;
  width: auto !important; z-index: auto !important;
}
.kwezi-rv__meta { display: flex; align-items: center; gap: 10px; }
.kwezi-rv__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.kwezi-rv__avatar--initials {
  background: var(--maroon, #720b00); color: #fff;
  font-size: 16px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.kwezi-rv__meta-text { display: flex; flex-direction: column; gap: 2px; }
.kwezi-rv__author {
  font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--ink, #1a1a18);
}
.kwezi-rv__author:hover { text-decoration: underline; }
.kwezi-rv__time { font-size: 11px; font-weight: 300; color: var(--ink-muted, #7a7a72); }
.kwezi-rv__text {
  font-size: 13px; font-weight: 300;
  color: var(--ink-soft, #3d3d39); line-height: 1.65; margin: 0;
}
.kwezi-rv__error {
  font-size: 13px; color: var(--ink-muted, #7a7a72);
  text-align: center; padding: 40px 0;
}

/* Skeleton shimmer */
.kwezi-rv__skeleton {
  background: rgba(26,26,24,0.04);
  border: 1px solid rgba(26,26,24,0.08);
  border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.kwezi-rv__sk-header,
.kwezi-rv__sk-line {
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(26,26,24,0.06) 25%, rgba(26,26,24,0.12) 50%, rgba(26,26,24,0.06) 75%);
  background-size: 200% 100%;
  animation: kwezi-shimmer 1.5s infinite;
}
.kwezi-rv__sk-header { height: 40px; width: 60%; }
.kwezi-rv__sk-line   { height: 12px; width: 90%; }
.kwezi-rv__sk-line--wide { width: 100%; height: 12px; }
@keyframes kwezi-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kwezi-rv__sk-header,
  .kwezi-rv__sk-line { animation: none; }
  .kwezi-rv__cta { transition: none; }
}
