/* Google Reviews section (php/google-reviews.php) */

.google-reviews-section {
  position: relative;
  background-color: var(--body-bg2);
}

.google-reviews-section .auto-container {
  position: relative;
}

/* --- summary bar --- */
.gr-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 34px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.gr-summary-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gr-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.gr-wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.gr-wordmark span:nth-child(1) { color: #4285f4; }
.gr-wordmark span:nth-child(2) { color: #ea4335; }
.gr-wordmark span:nth-child(3) { color: #fbbc05; }
.gr-wordmark span:nth-child(4) { color: #4285f4; }
.gr-wordmark span:nth-child(5) { color: #34a853; }
.gr-wordmark span:nth-child(6) { color: #ea4335; }

.gr-brand-label {
  font-size: 28px;
  font-weight: 700;
  color: var(--black-color);
}

.gr-score {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.gr-score-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--black-color);
}

.gr-score-count {
  font-size: 18px;
  color: var(--text-color-light);
}

.gr-review-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.gr-review-btn:hover,
.gr-review-btn:focus {
  background: #1557b0;
  color: #fff;
}

/* --- stars --- */
.gr-stars {
  display: flex;
  gap: 3px;
}

.gr-star {
  width: 20px;
  height: 20px;
  fill: #fbbc04;
  flex: 0 0 auto;
}

.gr-star.is-empty {
  fill: rgba(0, 0, 0, .18);
}

/* --- carousel --- */
.gr-carousel {
  position: relative;
}

.gr-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.gr-track::-webkit-scrollbar {
  display: none;
}

.gr-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.gr-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.gr-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.gr-avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  border-radius: 50%;
}

.gr-avatar img {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.gr-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.gr-avatar-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gr-meta {
  min-width: 0;
}

.gr-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 600;
  color: var(--black-color);
  line-height: 1.3;
}

.gr-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gr-verified {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.gr-time {
  font-size: 15px;
  color: var(--text-color-light);
  line-height: 1.4;
}

.gr-text {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55em;
  color: var(--text-color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expanded text scrolls inside the card so the carousel row keeps its height. */
.gr-text.is-open {
  display: block;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 6px;
}

.gr-more {
  margin-top: 6px;
  padding: 0;
  background: none;
  color: #1a73e8;
  font-size: 17px;
  line-height: 1.4;
  cursor: pointer;
}

.gr-more:hover {
  text-decoration: underline;
}

/* --- nav arrows --- */
.gr-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-color-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: all .3s ease;
}

.gr-nav svg {
  width: 18px;
  height: 18px;
}

.gr-nav:hover {
  background: var(--main-color);
  color: #fff;
}

.gr-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.gr-prev { left: -22px; }
.gr-next { right: -22px; }

/* --- dots --- */
.gr-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.gr-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: all .3s ease;
}

.gr-dots button.is-active {
  background: var(--main-color);
  transform: scale(1.35);
}

/* --- responsive --- */
@media (max-width: 991px) {
  .gr-card { flex: 0 0 calc((100% - 24px) / 2); }
  .gr-prev { left: -10px; }
  .gr-next { right: -10px; }
}

@media (max-width: 767px) {
  .gr-summary {
    padding: 24px 20px;
  }
  .gr-summary-left { width: 100%; }
  .gr-review-btn {
    width: 100%;
    text-align: center;
  }
  .gr-track { gap: 16px; }
  .gr-card { flex: 0 0 100%; }
  .gr-nav { display: none; }
  .gr-wordmark { font-size: 26px; }
  .gr-brand-label { font-size: 24px; }
  .gr-score-value { font-size: 28px; }
}
