.gpi-place {
  --gpi-accent: #f58220;
  margin-top: 32px;
  padding: 30px;
  border-radius: 14px;
  background: #ededed;
  color: #292929;
}

.gpi-reviews { margin-top: 20px; }

.gpi-summary {
  display: flex;
  justify-content: center;
  padding: 2px 12px 28px;
  text-align: center;
}

.gpi-summary-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gpi-place-image {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .28);
  object-fit: cover;
}

.gpi-place-image-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #777;
}

.gpi-place-image-fallback svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.gpi-place-name,
.gpi-author {
  text-decoration: none;
}

.gpi-place-name {
  margin-bottom: 11px;
  color: #292929;
  font-size: clamp(23px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.15;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .15s ease;
}

.gpi-place-name,
.gpi-place-name:visited,
.gpi-place-name:hover,
.gpi-place-name:focus,
.gpi-place-name:active {
  position: static !important;
  inset: auto !important;
  display: inline-block !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #292929 !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  transform: none !important;
  scale: 1 !important;
}

.gpi-place-name::before,
.gpi-place-name::after,
.gpi-more::before,
.gpi-more::after {
  display: none !important;
  content: none !important;
}

.gpi-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--gpi-accent);
}

.gpi-rating {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.gpi-svg-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gpi-accent);
}

.gpi-svg-stars svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.gpi-summary-stars svg {
  width: 29px;
  height: 29px;
}

.gpi-count {
  margin-bottom: 15px;
  color: #444;
  font-size: 23px;
  line-height: 1.2;
}

.gpi-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: -10px auto 20px;
}

.gpi-details.has-hours-only,
.gpi-details.has-contact-only { grid-template-columns: minmax(0, 1fr); }

.gpi-contact {
  display: grid;
  justify-self: end;
  gap: 9px;
  width: max-content;
  max-width: 100%;
}

.gpi-details.has-contact-only .gpi-contact { justify-self: center; }
.gpi-details.has-contact-only .gpi-contact:not(.has-single-link) {
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: stretch;
}

.gpi-contact-link,
.gpi-contact-link:visited,
.gpi-contact-link:hover,
.gpi-contact-link:focus,
.gpi-contact-link:active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 39px;
  padding: 8px 12px !important;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .04) !important;
  color: #292929 !important;
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.15;
  text-decoration: none !important;
  transform: none !important;
}

.gpi-contact-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: var(--gpi-accent);
}

.gpi-contact-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpi-contact-link:focus-visible {
  outline: 2px solid var(--gpi-accent);
  outline-offset: 2px;
}

.gpi-hours {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 14px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
  text-align: center;
}

.gpi-details.has-hours-only .gpi-hours { justify-self: center; }

.gpi-hours:has(.gpi-hours-week[open]) { padding: 12px 18px 13px; }

.gpi-hours-current {
  color: #347d45;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.gpi-hours-current.is-closed { color: #8b3434; }

.gpi-hours-week { margin-top: 5px; }

.gpi-hours-week[open] {
  display: flex;
  flex-direction: column;
}

.gpi-hours-week summary {
  display: inline-block;
  max-width: 100%;
  cursor: pointer;
  color: #065ee8;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  list-style: none;
}

.gpi-hours-week summary::-webkit-details-marker { display: none; }
.gpi-hours-week summary::marker { content: ""; }
.gpi-hours-week .gpi-hours-hide { display: none; }
.gpi-hours-week[open] .gpi-hours-show { display: none; }
.gpi-hours-week[open] .gpi-hours-hide { display: inline; }
.gpi-hours-week[open] summary { order: 3; margin-top: 9px; }

.gpi-hours-title {
  display: none;
  color: #292929;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.gpi-hours-week[open] .gpi-hours-title {
  display: block;
  order: 1;
  margin-top: 9px;
}

.gpi-hours-week ul {
  display: none;
  position: relative;
  left: calc(50% - 18px);
  width: 260px;
  max-width: 100%;
  margin: 14px 0 0 !important;
  padding: 0;
  transform: translateX(-50%);
  list-style: none;
  color: #333;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .03em;
  text-align: left;
}

.gpi-hours-week[open] ul { display: block; order: 2; }
.gpi-hours-week li {
  display: grid;
  grid-template-columns: 120px max-content;
  gap: 12px;
  align-items: center;
  margin: 0 !important;
  padding: 2px 6px !important;
  border-radius: 6px;
  line-height: 1.25;
}
.gpi-hours-week li::before { content: none !important; display: none !important; }
.gpi-hours-week li.is-today { background: transparent; }
.gpi-hours-week li.is-today .gpi-hours-day,
.gpi-hours-week li.is-today .gpi-hours-time { font-weight: 700; }
.gpi-hours-day,
.gpi-hours-time { font-size: 14px !important; }
.gpi-hours-day { text-align: right; text-transform: uppercase; }
.gpi-hours-time { text-align: left; white-space: nowrap; }

.gpi-maps-attribution {
  margin-top: 14px;
  color: #5e5e5e;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.gpi-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gpi-review {
  position: relative;
  min-width: 0;
  min-height: 245px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border-top: 4px solid var(--gpi-accent);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .09);
}

.gpi-review-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.gpi-review-head > div {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gpi-avatar {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background-color: transparent !important;
  background-clip: padding-box;
  box-shadow: none !important;
  object-fit: cover;
}

.gpi-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3976a8, #58a6a6);
  color: #fff;
  font-weight: 700;
}

.gpi-author {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #165fac;
  font-weight: 700;
  line-height: 1.1 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpi-review-meta {
  margin: 1px 0 0 !important;
  padding: 0 !important;
  color: #777;
  font-size: 14px;
  line-height: 1.15 !important;
}

.gpi-review-stars { margin-top: 6px; }

.gpi-review-text {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 13px;
  font-size: 16px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.gpi-quote {
  position: absolute;
  right: 15px;
  bottom: -21px;
  color: var(--gpi-accent);
  font-size: 84px;
  line-height: 1;
  opacity: .08;
}

.gpi-more {
  display: block;
  margin: 20px 0 0;
  color: #1769a6;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .15s ease;
}

.gpi-more,
.gpi-more:visited,
.gpi-more:hover,
.gpi-more:focus,
.gpi-more:active {
  position: static !important;
  inset: auto !important;
  padding: 0 !important;
  border: 0 !important;
  color: #1769a6 !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  transform: none !important;
  scale: 1 !important;
}

.gpi-map {
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}

.gpi-map-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
}

.gpi-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 15px;
}

.gpi-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gpi-map iframe:not([src]) { visibility: hidden; }

.gpi-error {
  margin: 20px 0;
  padding: 12px 14px;
  border-left: 4px solid #d63638;
  background: #fff3f3;
  color: #6b1b1b;
}

@media (max-width: 760px) {
  .gpi-place { padding: 18px; }
  .gpi-summary { padding-bottom: 14px; }
  .gpi-review-list { grid-template-columns: 1fr; }
  .gpi-review { min-height: 0; }
  .gpi-review-text { display: block; overflow: visible; }
  .gpi-place-name { font-size: 24px; }
  .gpi-count { margin-bottom: 0; font-size: 20px; }
  .gpi-more { font-size: 15px; }
  .gpi-map { padding: 4px; }
  .gpi-details {
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 322px);
    margin: 0 auto 14px;
  }
  .gpi-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    gap: 10px;
    width: 100%;
  }
  .gpi-details.has-contact-only .gpi-contact { justify-self: stretch; }
  .gpi-contact.has-single-link { grid-template-columns: 1fr; }
  .gpi-contact-link,
  .gpi-contact-link:visited,
  .gpi-contact-link:hover,
  .gpi-contact-link:focus,
  .gpi-contact-link:active { min-height: 39px; padding: 8px 10px !important; }
  .gpi-hours { justify-self: stretch; width: 100%; margin: 0; padding: 7px 12px; }
  .gpi-details.has-hours-only .gpi-hours { justify-self: stretch; }
  .gpi-hours:has(.gpi-hours-week[open]) { padding: 11px 14px 13px; }
  .gpi-hours-current { font-size: 16px; }
  .gpi-hours-week summary { font-size: 14px; }
  .gpi-hours-week ul { font-size: 13px; }
  .gpi-hours-day,
  .gpi-hours-time { font-size: 13px !important; }
}
