/* Google rating sticker + review-summary bubble on place pages. */

/* ── Rating sticker (under the place title) ── */

.pg-rvbadge {
  display: inline-flex;
  align-items: center;
  gap: 6.6px;
  margin: 2px 0 10px;
  padding: 4.4px 11px 4.4px 8.8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.3px;
  line-height: 1;
  vertical-align: middle;
  transition: border-color .15s, box-shadow .15s;
}

a.pg-rvbadge:hover {
  border-color: #c9c4b7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.pg-rvbadge .pg-rv__g { display: block; flex: none; }

.pg-rvbadge__num { font-weight: 700; }

.pg-rvbadge__count { color: var(--muted); font-size: 13.2px; }

.pg-rvbadge .pg-rv__stars { font-size: 13.2px; letter-spacing: 1.1px; }

/* ── Stars ─────────────────────────────────── */

/* Two stacked copies of the same glyphs; the coloured one is clipped to the
   rating, which gives an exact fractional star with no images. */
.pg-rv__stars {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.pg-rv__stars-bg { color: #ddd8cc; }

.pg-rv__stars-fg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #e8a33d;
}

/* ── Summary bubble ────────────────────────── */

.pg-rv {
  margin-top: 28px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pg-rv__heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--coral);
  font-size: 22px;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

/* Same shape as the insider-tips bubble — accent rule down the left, 10px
   radius, matching padding — but white with a thin stroke instead of the
   dark card, so the two never read as the same voice. */
.pg-rv__bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #4285F4;
  border-radius: 10px;
  padding: 16px 18px;
}

.pg-rv__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pg-rv__head .pg-rv__g { display: block; flex: none; }

.pg-rv__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.pg-rv__inline-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.pg-rv__count { font-weight: 400; font-size: 12px; color: var(--muted); }

.pg-rv__text p {
  margin: 0 0 .7em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pg-rv__text p:last-child { margin-bottom: 0; }

.pg-rv__src {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.pg-rv__src a { color: var(--muted); text-decoration: underline; }
.pg-rv__src a:hover { color: var(--coral); }

/* ── Compact variant (guide place cards) ───── */

.pg-rv--compact {
  margin-top: 16px;
  margin-bottom: 0;
  padding-top: 14px;
}

.pg-rv--compact .pg-rv__heading { font-size: 15px; margin-bottom: 10px; }
.pg-rv--compact .pg-rv__bubble { padding: 12px 14px; }
.pg-rv--compact .pg-rv__head { margin-bottom: 10px; padding-bottom: 8px; }
.pg-rv--compact .pg-rv__text p { font-size: 14px; line-height: 1.55; }
.pg-rv--compact .pg-rv__src { margin-top: 10px; padding-top: 8px; font-size: 11.5px; }

@media (max-width: 700px) {
  .pg-rv__heading { font-size: 20px; }
  .pg-rv--compact .pg-rv__heading { font-size: 14.5px; }
  .pg-rv__bubble { padding: 14px; }
  /* Score drops below the label rather than squeezing onto the same row. */
  .pg-rv__inline-score { margin-left: 0; flex-basis: 100%; }
}
