/*
 * Cander postcode-zoeker
 * Zoekwidget voor mediator-postcode matching.
 * Gebruikt op homepage hero (inline) en op service-pagina's (standalone).
 */

/* ── Standalone wrapper (service-pagina's onder hero) ──────────────────── */
.postcode-section {
  background: #8AA0AD;
  color: #fff;
  padding: 56px 0 64px;
}
.postcode-section .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.postcode-section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 24px;
  color: #fff;
  text-align: center;
}

/* ── Postcode zoeker ──────────────────────────────────── */
.postcode-zoeker {
  margin-top: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 28px 24px;
  backdrop-filter: blur(4px);
}
.postcode-zoeker--standalone {
  margin-top: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.postcode-zoeker label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
  color: #fff;
}
.postcode-input-row {
  display: flex;
  gap: 12px;
}
.postcode-input-row input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Red Hat Display', sans-serif;
  color: #262236;
  outline: none;
  max-width: 280px;
}
.postcode-input-row input::placeholder { color: #999; }
.postcode-input-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #262236;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Red Hat Display', sans-serif;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.postcode-input-row button:hover { background: #3a3550; }

/* ── Mediator resultaten ─────────────────────────────── */
.mediator-results {
  margin-top: 20px;
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mediator-results.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.mediator-results-count {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.mediator-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mediator-filter-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Red Hat Display', sans-serif;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.mediator-filter-btn:hover { background: rgba(255,255,255,0.25); }
.mediator-filter-btn.active {
  background: #fff;
  color: #262236;
  border-color: #fff;
}
.mediator-results-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mediator-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.mediator-result-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.mediator-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(138, 160, 173, 0.2);
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;
}
.mediator-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.mediator-info { flex: 1; }
.mediator-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #262236;
  margin-bottom: 4px;
}
.mediator-regio {
  font-size: 14px;
  color: #8AA0AD;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mediator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.mediator-tag {
  background: rgba(138, 160, 173, 0.12);
  color: #262236;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}
.mediator-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.mediator-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #262236;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Red Hat Display', sans-serif;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.mediator-cta:hover { background: #3a3550; }
.mediator-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.mediator-cta-group .mediator-cta {
  justify-content: center;
  text-align: center;
}
.mediator-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #262236;
  border: 1.5px solid #262236;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Red Hat Display', sans-serif;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}
.mediator-cta-secondary:hover { background: rgba(38, 34, 54, 0.06); }
.mediator-error {
  margin-top: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  display: none;
  color: #fff;
}

@media (max-width: 600px) {
  .postcode-section { padding: 40px 0 48px; }
  .postcode-section-heading { font-size: 22px; margin-bottom: 18px; }
  .postcode-input-row { flex-direction: column; }
  .postcode-input-row input { max-width: 100%; }
  .mediator-result-inner { flex-direction: column; align-items: center; text-align: center; }
  .mediator-tags { justify-content: center; }
  .mediator-regio { justify-content: center; }
}
