/* ================================================================
   Zillow Reviews Widget — zrw-styles.css
   All selectors scoped to .zr-wrap — safe inside Elementor/WP
   ================================================================ */

.zr-wrap *,
.zr-wrap *::before,
.zr-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.zr-wrap {
  background: #f7f8fa;
  border-radius: 16px;
  padding: 48px 32px 36px;
  max-width: 1100px;
  width: 100%;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Header ──────────────────────────────────────────────── */
.zr-wrap .zr-header {
  text-align: center;
  margin-bottom: 36px;
}
.zr-wrap .zr-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.zr-wrap .zr-rating-label {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zr-wrap .zr-stars-lg {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 6px;
}
.zr-wrap .zr-stars-lg svg { width: 32px; height: 32px; }
.zr-wrap .zr-count {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}
.zr-wrap .zr-count strong { font-weight: 700; color: #111827; }

.zr-wrap .zr-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #006aff;
  letter-spacing: -.5px;
  text-decoration: none;
}
.zr-wrap .zr-wordmark svg { width: 28px; height: 28px; }

/* ── Slider ──────────────────────────────────────────────── */
.zr-wrap .zr-slider {
  overflow: hidden;
}
.zr-wrap .zr-track {
  display: flex;
  gap: 18px;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── Cards ───────────────────────────────────────────────── */
.zr-wrap .zr-card {
  flex: 0 0 calc((100% - 36px) / 3);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .28s, transform .28s;
  cursor: default;
}
.zr-wrap .zr-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.zr-wrap .zr-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zr-wrap .zr-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
  overflow: hidden;
}
.zr-wrap .zr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.zr-wrap .zr-author { flex: 1; min-width: 0; }
.zr-wrap .zr-author-name {
  font-size: 14px; font-weight: 700; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zr-wrap .zr-author-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.zr-wrap .zr-badge { width: 24px; height: 24px; flex-shrink: 0; }

.zr-wrap .zr-stars-row { display: flex; align-items: center; gap: 3px; }
.zr-wrap .zr-stars-row svg { width: 18px; height: 18px; }
.zr-wrap .zr-check {
  width: 16px; height: 16px; margin-left: 4px;
  background: #006aff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.zr-wrap .zr-check svg { width: 9px; height: 9px; }

.zr-wrap .zr-read-more {
  font-size: 13px; color: #9ca3af;
  font-weight: 600; align-self: flex-start;
  background: none; border: none; padding: 0; cursor: pointer;
}
.zr-wrap .zr-read-more:hover { color: #006aff; }

/* ── Arrows ──────────────────────────────────────────────── */
.zr-wrap .zr-slider-wrap {
  position: relative;
}
.zr-wrap .zr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background .2s, color .2s, box-shadow .2s, opacity .2s;
  padding: 0;
}
.zr-wrap .zr-arrow:hover:not(:disabled) {
  background: #006aff;
  color: #fff;
  border-color: #006aff;
  box-shadow: 0 4px 14px rgba(0,106,255,.25);
}
.zr-wrap .zr-arrow:disabled { opacity: .3; cursor: default; }
.zr-wrap .zr-arrow svg { width: 18px; height: 18px; }
.zr-wrap .zr-arrow-prev { left: -20px; }
.zr-wrap .zr-arrow-next { right: -20px; }
@media (max-width: 580px) {
  .zr-wrap .zr-arrow-prev { left: -12px; }
  .zr-wrap .zr-arrow-next { right: -12px; }
}

/* ── Read-more inline expand ─────────────────────────────── */
.zr-wrap .zr-text-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.zr-wrap .zr-text {
  font-size: 15px; line-height: 1.65; color: #374151;
  display: -webkit-box; -webkit-line-clamp: 5;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: max-height .3s ease;
}
.zr-wrap .zr-text.zr-text-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* ── Star fills ──────────────────────────────────────────── */
.zr-wrap .s-fill path { fill: #f5a623; }
.zr-wrap .s-empty path { fill: #e5e7eb; }

/* ── Footer ──────────────────────────────────────────────── */
.zr-wrap .zr-footer { text-align: center; margin-top: 28px; }
.zr-wrap .zr-cta {
  display: inline-block;
  padding: 13px 42px;
  background: #1e3a5f;
  color: #fff; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  letter-spacing: .02em;
  transition: background .22s;
}
.zr-wrap .zr-cta:hover { background: #006aff; color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .zr-wrap .zr-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 580px) {
  .zr-wrap { padding: 32px 16px 28px; }
  .zr-wrap .zr-title { font-size: 24px; }
  .zr-wrap .zr-card { flex-basis: 100%; }
}
