/* ================================
   Modern Premium Reviews CSS
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e63946;
  --primary-dark: #c42532;
  --accent: #1d3557;
  --accent-light: #457b9d;
  --dark: #0a0e27;
  --light: #f8f9fa;
  --white: #ffffff;
  --muted: #6b7280;
  --star-gold: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #c42532 100%);
  --gradient-dark: linear-gradient(135deg, #1d3557 0%, #0a0e27 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.3);
  --radius: 24px;
}

body {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Reviews hero wordt nu door index.css gestyled */
.hero-rating {
  margin: 1.5rem 0;
}

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
}

.rating-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.rating-stars {
  font-size: 1.5rem;
  color: var(--star-gold);
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rating-count {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
}


/* ===== Controls Section ===== */
.reviews-controls {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  position: relative;
  padding: 6rem 0 3rem;
}

.controls {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control.grow {
  flex: 1;
  min-width: 250px;
}

.control label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

select,
input[type="search"] {
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: var(--dark);
}

select:focus,
input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
  transform: translateY(-2px);
}

input[type="search"] {
  width: 100%;
}

input[type="search"]::placeholder {
  color: var(--muted);
}

/* ===== Reviews List Section ===== */
.reviews-list {
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
  position: relative;
  padding: 6rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3rem;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .wrap {
    padding: 0 1rem;
  }
  
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control {
    width: 100%;
  }
}

/* ===== Review Card Premium ===== */
.review-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 57, 70, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ===== Card Head ===== */
.review-card .head {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.review-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light);
  border: 2px solid rgba(230, 57, 70, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.review-card:hover .avatar {
  transform: scale(1.1);
  border-color: var(--primary);
}

.review-card .meta {
  flex: 1;
}

.review-card .meta .author {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

.review-card .meta .stars {
  color: var(--star-gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.2));
  margin-bottom: 0.25rem;
}

.review-card .meta .date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Review Text ===== */
.review-card .text {
  margin: 0;
  line-height: 1.6;
  color: #555;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Foto's bij review – knop om te tonen/verbergen */
.review-card .review-images-toggle {
  margin-top: 1rem;
}

.review-card .btn-review-photos {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(230, 57, 70, 0.08);
  border: 2px solid rgba(230, 57, 70, 0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.review-card .btn-review-photos:hover {
  background: rgba(230, 57, 70, 0.15);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.review-card .btn-review-photos:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.review-card .review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.review-card .review-img-wrap {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(230, 57, 70, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.review-card .review-img-wrap:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
}

.review-card .review-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card .source {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  background: rgba(230, 57, 70, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(230, 57, 70, 0.1);
}

.review-card .source:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* ===== Lightbox reviewfoto's ===== */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.review-lightbox[hidden] {
  display: none !important;
}

.review-lightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.review-lightbox .lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.review-lightbox .lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.review-lightbox .lightbox-counter {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.review-lightbox .lightbox-close,
.review-lightbox .lightbox-prev,
.review-lightbox .lightbox-next {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.review-lightbox .lightbox-close:hover,
.review-lightbox .lightbox-prev:hover,
.review-lightbox .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.review-lightbox .lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
}

.review-lightbox .lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.review-lightbox .lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.review-lightbox .lightbox-prev:hover,
.review-lightbox .lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

/* ===== Pagination ===== */
.pager {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 3rem 0 2rem;
}

.pager button {
  border: 2px solid rgba(230, 57, 70, 0.2);
  background: var(--white);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.pager button:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--light);
}

#pageInfo {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 1rem;
}

/* ===== Google Attribution ===== */
.google-attrib {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.google-attrib img {
  height: 20px;
  opacity: 0.8;
}

.gmaps-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  background: rgba(230, 57, 70, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(230, 57, 70, 0.1);
}

.gmaps-link:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* ===== Alert ===== */
.alert.error {
  background: rgba(255, 241, 242, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* ===== Animations ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: slideIn 0.6s ease-out;
  animation-fill-mode: both;
}

.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.15s; }
.review-card:nth-child(4) { animation-delay: 0.2s; }
.review-card:nth-child(5) { animation-delay: 0.25s; }
.review-card:nth-child(6) { animation-delay: 0.3s; }
.review-card:nth-child(7) { animation-delay: 0.35s; }
.review-card:nth-child(8) { animation-delay: 0.4s; }
.review-card:nth-child(9) { animation-delay: 0.45s; }

/* ===== Loading State ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.review-card.loading {
  background: linear-gradient(
    90deg,
    var(--light) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    var(--light) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ===== Empty State ===== */
.grid:empty::before {
  content: 'Geen reviews gevonden';
  display: block;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 600;
  grid-column: 1 / -1;
}