/* ==========================================================================
   BCNYC — 13 Google reviews
   Layout modelled on Trustindex "badge + carousel" widgets, in the site
   palette. Hidden until there is a Trustindex widget or
   real reviews copied from Google (see google-reviews.js).
   ========================================================================== */

.bcnyc.bcnyc-reviews {
  margin: 0;
  background: #FFFFFF;
}

.bcnyc .bcnyc-reviews__head {
  margin: 0 0 clamp(32px, 4vw, 48px);
}

/* Badge (summary) + cards */
.bcnyc .bcnyc-reviews__layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.bcnyc .bcnyc-reviews__layout:has(.bcnyc-reviews__badge[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.bcnyc .bcnyc-reviews__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border: 1px solid var(--bcnyc-line);
  border-radius: var(--bcnyc-radius-lg);
  background: var(--bcnyc-bg);
  text-align: center;
}

.bcnyc .bcnyc-reviews__badge-word {
  margin: 0 0 8px;
  font-family: var(--bcnyc-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bcnyc-navy);
}

.bcnyc .bcnyc-reviews__badge-count {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bcnyc-text);
}

/* Official Google logo in place of the word */
.bcnyc .bcnyc-reviews__badge-source {
  display: flex;
  margin: 14px 0 0;
  line-height: 0;
}

.bcnyc .bcnyc-reviews__logo {
  width: 74px;
  height: auto;
}

/* Desktop: the badge ends with the cards, not with the controls row below
   them (20px margin + 44px buttons) */
@media (min-width: 1024px) {
  .bcnyc .bcnyc-reviews__layout:has(.bcnyc-reviews__controls:not([hidden])) .bcnyc-reviews__badge {
    margin-bottom: 64px;
  }
}

/* Carousel: horizontal scroll-snap track. Swipe on touch screens, buttons
   and arrow keys elsewhere. Only the track scrolls, never the page. */
.bcnyc .bcnyc-reviews__carousel {
  min-width: 0;
}

.bcnyc .bcnyc-reviews__list {
  --bcnyc-reviews-gap: 20px;
  --bcnyc-reviews-per-view: 3;
  display: flex;
  gap: var(--bcnyc-reviews-gap);
  margin: -6px;
  padding: 6px 6px 10px; /* room for the card shadow and the focus ring */
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bcnyc .bcnyc-reviews__list::-webkit-scrollbar {
  display: none;
}

.bcnyc .bcnyc-reviews__list:focus-visible {
  outline: 2px solid var(--bcnyc-sky);
  outline-offset: 2px;
  border-radius: var(--bcnyc-radius-lg);
}

.bcnyc .bcnyc-reviews__card {
  display: flex;
  flex: 0 0 calc((100% - (var(--bcnyc-reviews-per-view) - 1) * var(--bcnyc-reviews-gap)) / var(--bcnyc-reviews-per-view));
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--bcnyc-line);
  border-radius: var(--bcnyc-radius-lg);
  background: #FFFFFF;
  box-shadow: var(--bcnyc-shadow);
}

.bcnyc .bcnyc-reviews__stars {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--bcnyc-blue);
}

.bcnyc .bcnyc-reviews__stars--lg {
  font-size: 22px;
  letter-spacing: 3px;
}

/* Manual reviews */
.bcnyc .bcnyc-reviews__text {
  display: -webkit-box;
  margin: 16px 0 20px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bcnyc-text);
  white-space: pre-line; /* keeps the line breaks of the original review */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

.bcnyc .bcnyc-reviews__card.is-expanded .bcnyc-reviews__text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
}

/* "Read more": shown by the JS only when the text is cut */
.bcnyc .bcnyc-reviews__toggle {
  align-self: flex-start;
  margin: -12px 0 20px; /* 8px under the text */
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--bcnyc-action);
  cursor: pointer;
}

.bcnyc .bcnyc-reviews__toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bcnyc .bcnyc-reviews__toggle:focus-visible {
  outline: 2px solid var(--bcnyc-sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.bcnyc .bcnyc-reviews__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 0; /* author and date at the bottom of every card */
  padding-top: 16px;
  border-top: 1px solid var(--bcnyc-line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--bcnyc-muted);
}

/* Same height with or without a date, so the dividers line up across cards */
.bcnyc .bcnyc-reviews__who {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 2.8em; /* two lines */
  margin: 0;
}

.bcnyc .bcnyc-reviews__author {
  display: block;
  font-weight: 600;
  color: var(--bcnyc-navy);
}

.bcnyc .bcnyc-reviews__date {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}

/* Carousel controls: dots + previous / next */
.bcnyc .bcnyc-reviews__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 0;
}

.bcnyc .bcnyc-reviews__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.bcnyc .bcnyc-reviews__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bcnyc .bcnyc-reviews__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bcnyc-line);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s var(--bcnyc-ease), width 0.2s var(--bcnyc-ease);
}

.bcnyc .bcnyc-reviews__dot.is-active::before {
  background: var(--bcnyc-blue);
}

.bcnyc .bcnyc-reviews__dot[aria-current="true"]::before {
  width: 18px;
  border-radius: 4px;
}

.bcnyc .bcnyc-reviews__dot:focus-visible {
  outline: 2px solid var(--bcnyc-sky);
  outline-offset: 1px;
  border-radius: 50%;
}

.bcnyc .bcnyc-reviews__arrows {
  display: flex;
  gap: 10px;
}

.bcnyc .bcnyc-reviews__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--bcnyc-line);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--bcnyc-navy);
  cursor: pointer;
  transition: background-color 0.2s var(--bcnyc-ease), border-color 0.2s var(--bcnyc-ease), color 0.2s var(--bcnyc-ease);
}

.bcnyc .bcnyc-reviews__arrow svg {
  width: 18px;
  height: 18px;
}

.bcnyc .bcnyc-reviews__arrow:hover:not(:disabled) {
  border-color: var(--bcnyc-navy);
  background: var(--bcnyc-navy);
  color: #FFFFFF;
}

.bcnyc .bcnyc-reviews__arrow:focus-visible {
  outline: 2px solid var(--bcnyc-sky);
  outline-offset: 3px;
}

.bcnyc .bcnyc-reviews__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.bcnyc .bcnyc-reviews__more {
  margin: 24px 0 0;
  font-size: 15px;
}

/* Trustindex widget mode: the widget brings its own layout */
.bcnyc .bcnyc-reviews--embed .bcnyc-reviews__layout {
  display: none;
}

@media (max-width: 1023px) {
  .bcnyc .bcnyc-reviews__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bcnyc .bcnyc-reviews__badge {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 16px;
    padding: 20px 24px;
    text-align: left;
  }

  .bcnyc .bcnyc-reviews__badge > * {
    margin: 0;
  }

  .bcnyc .bcnyc-reviews__list {
    --bcnyc-reviews-per-view: 2;
  }
}

@media (max-width: 639px) {
  .bcnyc .bcnyc-reviews__list {
    --bcnyc-reviews-gap: 14px;
    --bcnyc-reviews-per-view: 1.12; /* the next card peeks in: swipe hint */
  }

  .bcnyc .bcnyc-reviews__card {
    padding: 22px 20px;
  }
}

/* Link injected into the trust strip (03-about) when this section is visible */
.bcnyc .bcnyc-about__trust-link,
.bcnyc .bcnyc-about__trust-link:visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--bcnyc-sky);
  transition: color 0.2s var(--bcnyc-ease);
}

.bcnyc .bcnyc-about__trust-link:hover {
  color: var(--bcnyc-action);
}

/* Hidden parts take no space */
.bcnyc.bcnyc-reviews[hidden],
.bcnyc .bcnyc-reviews__more[hidden],
.bcnyc .bcnyc-reviews__badge[hidden],
.bcnyc .bcnyc-reviews__controls[hidden],
.bcnyc .bcnyc-reviews__embed[hidden] {
  display: none !important;
}
