.reviews-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.slider-container {
  overflow: hidden;
  border-radius: 0;
  margin-left: 50px;
  margin-right: 50px;
  padding-top: 4px;
  padding-bottom: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* ── Loading state ─────────────────────────────────────────────────────────── */

.reviews-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  color: #888;
  font-size: 14px;
}

.reviews-loading__spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #7a7a7a;
  border-radius: 50%;
  animation: reviews-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes reviews-spin {
  to { transform: rotate(360deg); }
}

/* ── Error state ───────────────────────────────────────────────────────────── */

.reviews-error {
  padding: 20px 0;
  color: #888;
  font-size: 14px;
}

/* ── Review card ───────────────────────────────────────────────────────────── */

.review-card {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid;
  width: calc(33.333% - 30px);
  min-width: 250px;
  max-width: 400px;
  margin: 0 15px;
  padding: 24px 20px;
  box-shadow: none;
  position: relative;
  flex-shrink: 0;
}

/* Focus states voor toegankelijkheid */
.review-card:focus {
  outline: 1px solid #e2e2e2;
  outline-offset: 1px;
}

.review-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Platform icon */
.review-platform-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Review title */
.review-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.review-content {
  font-size: 15px;
  line-height: 1.55;
  color: #333;
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-content::before {
  content: '\201C';
  font-size: 15px;
  color: #7A7A7A;
  margin-right: 2px;
}

.review-content::after {
  content: '\201D';
  font-size: 15px;
  color: #7A7A7A;
  margin-left: 2px;
}

.review-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.reviewer-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  font-style: normal;
  display: block;
}

.reviewer-location {
  color: #666;
  font-size: 13px;
  margin-top: 3px;
}

.review-platform-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}
/* ── Navigation ────────────────────────────────────────────────────────────── */

.slider-navigation {
  text-align: center;
  margin-top: 24px;
}

.nav-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  border: 2px solid transparent;
  padding: 0;
  position: relative;
}

.nav-dot:hover,
.nav-dot:focus {
  background: #e2e2e2;
}

.nav-dot:focus {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.nav-dot:active {
  transform: scale(0.96);
}

.nav-dot.active,
.nav-dot[aria-selected="true"] {
  background: #7a7a7a;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 10;
}

.slider-nav:hover,
.slider-nav:focus {
  background: #e2e2e2;
  color: black;
}

.slider-nav:focus {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.97);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .reviews-slider {
    padding: 10px;
  }

  .slider-container {
    margin-left: 0;
    margin-right: 0;
  }

  .review-card {
    width: calc(88vw - 24px);
    min-width: 220px;
    max-width: 320px;
    margin: 0 8px;
    padding: 20px 16px;
  }

  .review-title {
    font-size: 14px;
  }

  .slider-nav {
    display: none;
  }

  .nav-dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
  

@media (min-width: 641px) and (max-width: 1024px) {
  .slider-container {
    margin-left: 40px;
    margin-right: 40px;
  }

  .review-card {
    width: calc(50% - 20px);
    min-width: 240px;
    max-width: 360px;
    margin: 0 10px;
    padding: 22px 18px;
  }

  .slider-nav {
    width: 35px;
    height: 35px;
  }

  .slider-nav.prev {
    left: 15px;
  }

  .slider-nav.next {
    right: 15px;
  }
}

@media (min-width: 1025px) {
  .review-card {
    width: calc(33.333% - 30px);
    min-width: 300px;
    max-width: 420px;
  }
}

/* ── Accessibility ─────────────────────────────────────────────────────────── */

@media (prefers-contrast: high) {
  .review-card {
    border: 2px solid #000;
  }

  .nav-dot {
    border: 2px solid #000;
  }

  .slider-nav {
    border: 2px solid #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track {
    transition: none;
  }

  .nav-dot {
    transition: none;
  }

  .slider-nav {
    transition: none;
  }

  .reviews-loading__spinner {
    animation: none;
    border-top-color: #ddd;
  }
}

/* ── Print ─────────────────────────────────────────────────────────────────── */

@media print {
  .slider-navigation,
  .slider-nav,
  .reviews-loading {
    display: none;
  }

  .slider-track {
    display: block;
  }

  .review-card {
    display: block;
    margin: 20px 0;
    break-inside: avoid;
  }
}