/* Before/After Image Comparison Slider */
.before-after-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  background: #071529;
}

.before-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid #ffffff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.before-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  color: var(--navy-900);
  font-size: 0.9rem;
}

.slider-label {
  position: absolute;
  bottom: 16px;
  padding: 4px 12px;
  background: rgba(7, 21, 41, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  z-index: 4;
}

.label-before { left: 16px; }
.label-after { right: 16px; }

/* Postcode Tool */
.postcode-checker-bar {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  margin: 1.25rem 0;
}

.postcode-checker-bar input {
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  flex-grow: 1;
  text-transform: uppercase;
  color: #071529;
}

.postcode-result-badge {
  display: none;
  margin-top: 1rem;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.postcode-result-badge.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Review Cards */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-stars {
  color: var(--gold-400);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.review-quote {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .before-after-container {
    height: 260px;
  }
  .review-card {
    padding: 1.25rem;
  }
}
