/* Seção de avaliações */
.reviews {
  padding: 2.5rem 0;
  background: var(--bg-section);
}

.reviews__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.reviews__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.reviews__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews__summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.reviews__summary-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.reviews__summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #3483fa;
}

.reviews__summary-label svg {
  flex-shrink: 0;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.review-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-card__star--empty {
  color: var(--border-strong);
}

.review-card__meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.review-card__photos {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.review-card__photos img {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s, opacity 0.2s;
}

.review-card__photos img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.review-modal.is-open {
  display: flex;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.review-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-modal__figure {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.review-modal__img {
  width: 100%;
  max-height: min(75vh, 640px);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-section);
}

.review-modal__counter {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.review-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.review-modal__close:hover {
  background: var(--white);
}

.review-modal__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.review-modal__nav:hover:not(:disabled) {
  background: var(--green);
  color: var(--white);
}

.review-modal__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

body.review-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .review-modal__dialog {
    flex-direction: column;
    gap: 0.75rem;
  }

  .review-modal__nav--prev,
  .review-modal__nav--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .review-modal__nav--prev {
    left: 0.25rem;
  }

  .review-modal__nav--next {
    right: 0.25rem;
  }

  .review-modal__close {
    top: -3rem;
    right: 50%;
    transform: translateX(50%);
  }
}

.review-card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.review-card__footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .reviews__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .review-card--featured {
    grid-column: 1 / -1;
  }
}
