:root {
  --navy:        #0A2540;
  --blue:        #1E5BC6;
  --blue-bright: #2F80ED;
  --ink:         #1A1F2E;
  --ink-soft:    #4A5163;
  --ink-mute:    #7A8194;
  --line:        #E2E7EE;
  --paper:       #FFFFFF;
  --gold:        #D4A24C;
  --shadow-sm:   0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md:   0 8px 24px rgba(10, 37, 64, 0.10);
  --radius:      14px;
  --radius-sm:   8px;
  --ease:        cubic-bezier(.22,.61,.36,1);
  --transition:  all 0.3s cubic-bezier(.22,.61,.36,1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: transparent;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Reviews widget wrapper */
.reviews-widget {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Aggregate rating at the top */
.aggregate-rating-header {
  padding: 20px 24px 16px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.place-info {
  text-align: center;
}

.google-logo-header {
  height: 24px;
  margin-bottom: 10px;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--gold);
  font-size: 20px;
}

.star.empty {
  color: rgba(212, 162, 76, 0.3);
}

.review-count {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Review list */
.reviews-list {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

/* Each review row */
.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card:last-child {
  border-bottom: none;
}

/* Author row: avatar + name/stars/date */
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.2;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-rating {
  display: flex;
  gap: 1px;
  align-items: center;
}

.review-rating .star {
  font-size: 13px;
}

.review-date {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Review body text */
.review-text {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.review-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-text.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.see-more-wrapper {
  min-height: 18px;
}

.see-more-link {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s var(--ease);
}

.see-more-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.see-more-link-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Footer CTA */
.reviews-footer {
  padding: 18px 24px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.google-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  padding: 9px 20px;
  border-radius: 20px;
  border: 1px solid rgba(30, 91, 198, 0.25);
  background: rgba(30, 91, 198, 0.06);
}

.google-link:hover {
  color: var(--navy);
  background: rgba(30, 91, 198, 0.1);
  border-color: rgba(30, 91, 198, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
}

.google-link .material-icons {
  font-size: 13px;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading p {
  color: var(--ink-mute);
  font-size: 15px;
}

/* Error state */
.error {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-mute);
}

.error .material-icons {
  font-size: 44px;
  color: #f44336;
  margin-bottom: 14px;
  display: block;
}

.retry-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 16px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  display: inline-block;
}

.retry-btn:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.retry-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e4e8ee 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.skeleton-name {
  height: 14px;
  width: 140px;
}

.skeleton-rating {
  height: 12px;
  width: 90px;
}

.skeleton-text {
  height: 13px;
  width: 100%;
}

.skeleton-text.short {
  width: 65%;
}

/* Focus styles */
.see-more-link:focus-visible,
.google-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  .reviews-list {
    padding: 0 16px;
  }

  .aggregate-rating-header {
    padding: 16px 16px 14px;
  }

  .reviews-footer {
    padding: 16px 16px 20px;
  }

  .story h2 {
  max-width: 560px;
}

.story-pull {
  max-width: 520px;
  padding: 32px 36px;
}

.expect-intro {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted, #4f5b6f);
}

.expect-list li {
  padding-top: 15px;
  padding-bottom: 15px;
}
}
