/* Google reviews carousel — pairs with reviews-marquee.php + hm-rev-carousel.js */

.hm-rev-carousel__wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "prev viewport next"
    ". dots .";
  align-items: center;
  gap: 12px 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
}

.hm-rev-carousel__viewport {
  grid-area: viewport;
  overflow: hidden;
  width: 100%;
  outline: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
}

.hm-rev-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hm-rev-carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
}

.hm-rev-carousel__slide .hm-rev-item {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.hm-rev-carousel__nav {
  grid-area: next;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
}

.hm-rev-carousel__nav--prev {
  grid-area: prev;
}

.hm-rev-carousel__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.04);
}

.hm-rev-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.hm-rev-carousel__dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 0 0;
  min-height: 20px;
}

.hm-rev-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hm-rev-carousel__dot.is-active {
  width: 22px;
  background: var(--c-brand-limelight, #c8db4f);
}

.hm-rev-carousel__more {
  text-align: center;
  margin: 22px 0 0;
}

.hm-rev-carousel__more a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.85;
}

.hm-rev-carousel__more a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Newer Google-card fields used by reviews-marquee.php */
.hm-rev-item__reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hm-rev-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hm-rev-item__meta,
.hm-rev-item__when {
  font-size: 0.8rem;
  opacity: 0.65;
}

.hm-rev-item__g-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hm-rev-item__g-logo svg,
.hm-rev-g-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hm-rev-item__rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hm-rev-stars {
  display: inline-flex;
  gap: 2px;
}

.hm-rev-stars .g-stars__star {
  width: 16px;
  height: 16px;
  display: block;
}

@media (max-width: 720px) {
  .hm-rev-carousel__wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "viewport"
      "dots";
    padding: 0 4px;
    gap: 14px;
  }

  .hm-rev-carousel__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hm-rev-carousel__nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(18, 18, 19, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .hm-rev-carousel__nav--prev {
    left: 6px;
    grid-area: unset;
  }

  .hm-rev-carousel__nav--next {
    right: 6px;
    grid-area: unset;
  }

  .hm-rev-carousel__dots {
    padding-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-rev-carousel__track {
    transition: none !important;
  }
}
