/* ============================================================
   YOUR WAY TRAVEL — reviews.css
   Reviews page styles
   ============================================================ */

.reviews-page {
  padding: 4rem 0 6rem;
}

/* ── Reviews List — stacked single column ── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  max-width: 820px;
  margin: 0 auto;
}

/* ── Review Card ── */
.review-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Header: name + location */
.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.review-card__identity {}

.review-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.review-card__location {
  font-size: 0.83rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.review-card__quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
  user-select: none;
  flex-shrink: 0;
}

/* Review text */
.review-card__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ── Image Gallery ──
   Holds up to 3 images in a horizontal row.
   The container is always present but hidden when no images exist,
   so adding images later requires only updating reviews.json.
── */
.review-card__images {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hide gallery wrapper when empty (no images provided) */
.review-card__images:empty {
  display: none;
}

.review-card__photo {
  width: calc(33.333% - 0.5rem);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: zoom-in;
}

.review-card__photo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

/* Placeholder shown in the UI to indicate where images will appear.
   Visible only when a review has the images array but it's empty.
   Remove this styling once real images are loaded. */
.review-card__images-placeholder {
  width: 100%;
  padding: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-border);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ── Loading / empty states ── */
.loading-text {
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
  padding: 3rem 0;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .review-card { padding: 1.5rem 1.25rem; }
  .review-card__photo { width: calc(50% - 0.375rem); }
  .review-card__photo:nth-child(3) { width: 100%; }
}
