/* ============================================================
   Google Reviews Widget — Reha & Care
   ============================================================ */

.grw-wrapper {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 860px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  background: #fff;
  border: 1px solid #e0e0e0;
}

/* ── Summary / collapsed bar ─────────────────────────────── */

.grw-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  gap: 12px;
  transition: background 0.15s;
  text-align: left;
}

.grw-summary:hover,
.grw-summary:focus-visible {
  background: #f8f8f8;
  outline: none;
}

.grw-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.grw-google-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.grw-summary-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #202124;
  white-space: nowrap;
}

.grw-summary-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.grw-summary-rating {
  font-size: 1.4rem;
  font-weight: 700;
  color: #202124;
  line-height: 1;
}

.grw-summary-stars .grw-star--filled {
  color: #FBBC05;
  font-size: 1.2rem;
}

.grw-summary-stars .grw-star--empty {
  color: #ccc;
  font-size: 1.2rem;
}

.grw-summary-count {
  font-size: 0.88rem;
  color: #5f6368;
  white-space: nowrap;
}

.grw-summary-right {
  flex-shrink: 0;
}

.grw-chevron {
  display: inline-block;
  font-size: 1.2rem;
  color: #5f6368;
  transition: transform 0.25s ease;
  line-height: 1;
}

.grw-summary--open .grw-chevron {
  transform: rotate(180deg);
}

/* ── Expandable panel ────────────────────────────────────── */

.grw-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 1px solid transparent;
}

.grw-panel--open {
  max-height: 1600px; /* large enough for all cards */
  border-top-color: #e0e0e0;
}

/* ── Cards grid ──────────────────────────────────────────── */

.grw-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px 20px 0;
}

/* ── Individual review card ──────────────────────────────── */

.grw-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(60, 64, 67, 0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}

.grw-card:hover {
  box-shadow: 0 3px 12px rgba(60, 64, 67, 0.18);
}

.grw-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* ── Avatar ──────────────────────────────────────────────── */

.grw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.grw-card-meta {
  flex: 1;
  min-width: 0;
}

.grw-reviewer-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grw-review-date {
  font-size: 0.78rem;
  color: #9aa0a6;
}

.grw-card-stars {
  flex-shrink: 0;
}

.grw-card-stars .grw-star--filled {
  color: #FBBC05;
  font-size: 1rem;
}

.grw-card-stars .grw-star--empty {
  color: #ddd;
  font-size: 1rem;
}

/* ── Review text ─────────────────────────────────────────── */

.grw-review-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grw-review-text {
  font-size: 0.875rem;
  color: #3c4043;
  line-height: 1.55;
  margin: 0;
}

.grw-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  color: #1a73e8;
  cursor: pointer;
  font-weight: 600;
  align-self: flex-start;
  transition: color 0.15s;
}

.grw-toggle-btn:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* ── Footer link ─────────────────────────────────────────── */

.grw-footer {
  padding: 16px 20px 20px;
  text-align: center;
}

.grw-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
  padding: 8px 18px;
  border: 1.5px solid #dadce0;
  border-radius: 24px;
  transition: background 0.15s, box-shadow 0.15s;
}

.grw-all-link:hover {
  background: #f1f3f4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.grw-all-link .grw-google-logo {
  width: 18px;
  height: 18px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .grw-summary {
    padding: 14px 14px;
  }

  .grw-summary-label {
    display: none; /* save space on mobile */
  }

  .grw-cards-grid {
    grid-template-columns: 1fr;
    padding: 14px 14px 0;
  }

  .grw-footer {
    padding: 14px 14px 16px;
  }
}
