/* Google Maps rating — shared across space cards, detail pages, and venue hero. */

.gms-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.gms-rating--interactive {
  cursor: pointer;
  transition: border-color var(--transition, 0.15s ease), box-shadow var(--transition, 0.15s ease);
}

.gms-rating--interactive:hover {
  border-color: rgba(66, 133, 244, 0.45);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.12);
}

.gms-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black, #111);
  line-height: 1;
}

.gms-rating-score svg {
  flex-shrink: 0;
  color: #fbbc04;
}

.gms-rating-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500, #6b7280);
}

.gms-rating-source svg,
.gms-google-logo {
  flex-shrink: 0;
}

.gms-brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.gms-rating--detail .gms-rating-source--detail {
  display: inline-flex;
  font-size: 13px;
}

.gms-rating--detail .gms-rating-title .gms-brand-inline,
.gms-rating--detail .gms-rating-note .gms-brand-inline {
  font-weight: 500;
}

.gms-rating--detail .gms-rating-cta .gms-brand-inline {
  font-weight: 500;
}

.gms-rating--inline .gms-rating-source {
  font-size: 13px;
}

.gms-rating--card {
  margin-top: 6px;
  margin-bottom: 10px;
}

/* On cards the score is supporting metadata — it should not out-weigh the
   card title, so keep it lighter and smaller than the detail-page treatment. */
.gms-rating--card .gms-rating-score {
  gap: 3px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gray-600, #4b5563);
}

.gms-rating--card .gms-rating-score svg {
  width: 11px;
  height: 11px;
}

.gms-rating--detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius-md, 12px);
  background: var(--gray-50, #f9fafb);
  text-align: left;
}

.gms-rating--detail .gms-rating-main {
  flex: 1;
  min-width: 0;
}

.gms-rating--detail .gms-rating-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gms-rating--detail .gms-rating-score {
  font-size: 26px;
}

.gms-rating--detail .gms-rating-score svg {
  width: 22px;
  height: 22px;
}

.gms-rating--detail .gms-rating-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--black, #111);
}

.gms-rating--detail .gms-rating-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray-600, #4b5563);
}

.gms-rating--detail .gms-rating-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1a73e8;
}

.gms-rating--detail .gms-rating-cta svg {
  flex-shrink: 0;
}

/* Stars render as two stacked rows: a grey track and a gold overlay clipped to
   the rating percentage, so a 3.8 shows four-fifths of the final star. */
.gms-rating-stars {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.gms-rating-stars-track,
.gms-rating-stars-fill {
  display: flex;
  gap: 3px;
}

.gms-rating-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
}

.gms-rating-stars svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #dadce0;
}

.gms-rating-stars-fill svg {
  color: #fbbc04;
}

.venue-hero__stat--rating {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.venue-hero__stat--rating:hover {
  border-color: rgba(66, 133, 244, 0.45);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.12);
}

.venue-hero__stat--rating .gms-rating-score {
  font-size: 18px;
}

.space-detail-page .space-meta-row .gms-rating {
  margin-left: 2px;
}

.space-detail-page .space-meta-row .gms-rating-source {
  font-size: 12px;
}
