/* ============================================
   Resultaten-overzicht — HTML-widget "port-…" op /resultaten/ (post-3396).
   Filterknoppen krijgen in het origineel de kit-knopmaten (13px 26px, radius 7px; hover/focus radius 5px).
   ============================================ */

/* --- Filters --- */
.res-filters {
  display: flex; flex-wrap: wrap; gap: 4px;
  width: fit-content; margin-bottom: 48px; padding: 4px;
  border-radius: 10px;
  background: var(--color-light);
}
.res-filter {
  padding: 13px 26px;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--color-grey);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.4em; /* em: de teller erft de px-waarde, zoals in het origineel */
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: all 0.2s;
}
.res-filter:hover, .res-filter:focus { border-radius: 5px; }
.res-filter:hover:not(.is-active) { color: var(--color-text); }
.res-filter.is-active { background: var(--color-primary); color: var(--color-white); }
.res-filter__count {
  display: inline-block; margin-left: 5px; padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px; font-weight: 700;
  vertical-align: middle;
}
.res-filter.is-active .res-filter__count { background: rgba(255, 255, 255, 0.18); }

/* --- Raster --- */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.res-grid .is-verborgen { display: none; }

/* Inschuiven bij in beeld komen (alleen met JS: .res--js wordt inline gezet vóór de kaarten; zonder JS staat alles er meteen) */
.res--js .res-anim { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.res--js .res-cta.res-anim { transform: translateY(20px); }
.res--js .res-anim.is-in-beeld { opacity: 1; transform: translateY(0); }

/* --- Kaart --- */
.res-kaart {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  cursor: pointer;
}
.res-kaart__foto {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 0;
  transition: transform 0.6s ease;
}
.res-kaart--kapsalon .res-kaart__foto { background-color: #2a1200; }
.res-kaart--vakmensen .res-kaart__foto { background-color: #001a0d; }
.res-kaart--maatwerk .res-kaart__foto { background-color: #00051a; }
.res-kaart__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.7) 68%, rgba(0, 0, 0, 0.92) 100%);
}
.res-kaart__body {
  position: absolute; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 18px 22px;
}
.res-kaart__type {
  width: fit-content; padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.res-kaart--kapsalon .res-kaart__type { background: #ee8331; color: #fff; }
.res-kaart--vakmensen .res-kaart__type { background: #3a7d52; color: #fff; }
.res-kaart--maatwerk .res-kaart__type { background: #f5f4ef; color: #000516; }
.res-kaart__naam {
  margin: 0;
  font-family: var(--font-heading); font-size: 18px; font-weight: 700; line-height: 1.25;
  color: #fff;
}
.res-kaart__usps { display: flex; flex-direction: column; gap: 4px; margin: 3px 0 0; padding: 0; list-style: none; }
.res-kaart__usp {
  display: flex; align-items: flex-start; gap: 6px;
  font-family: var(--font-ui); font-size: 11px; line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
.res-kaart__vink {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 14px; height: 14px; margin-top: 1px;
  border-radius: 50%;
  font-size: 8px; color: #fff;
}
.res-kaart--kapsalon .res-kaart__vink { background: #ee8331; }
.res-kaart--vakmensen .res-kaart__vink { background: #3a7d52; }
.res-kaart--maatwerk .res-kaart__vink { background: #000616; }
.res-kaart__cta {
  display: flex; align-items: center; gap: 5px;
  margin-top: 2px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: #ee8331;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.res-kaart.is-in-beeld:hover, .res-kaart.is-in-beeld:focus-visible { transform: translateY(-6px) scale(1.015); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22); }
.res-kaart.is-in-beeld:hover .res-kaart__foto, .res-kaart.is-in-beeld:focus-visible .res-kaart__foto { transform: scale(1.05); }
.res-kaart.is-in-beeld:hover .res-kaart__cta, .res-kaart.is-in-beeld:focus-visible .res-kaart__cta { opacity: 1; transform: translateY(0); }
.res:not(.res--js) .res-kaart:hover .res-kaart__cta { opacity: 1; transform: none; }

/* --- CTA-blok (2 kolommen breed) --- */
.res-cta {
  grid-column: span 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px;
  aspect-ratio: 3 / 2;
  padding: 36px 40px;
  border-radius: 12px;
}
.res-cta--kapsalon { background: #ee8331; }
.res-cta--vakmensen { background: #0f2b1c; }
.res-cta--maatwerk { background: #071030; }
.res-cta__label {
  width: fit-content; margin: 0 0 10px; padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.res-cta--kapsalon .res-cta__label { background: rgba(238, 131, 49, 0.2); color: #ee8331; }
.res-cta--vakmensen .res-cta__label { background: rgba(58, 125, 82, 0.25); color: #5fbe8a; }
.res-cta--maatwerk .res-cta__label { background: rgba(43, 108, 176, 0.25); color: #70a8e8; }
.res-cta__titel {
  margin: 0 0 8px;
  font-family: var(--font-heading); font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; line-height: 1.25;
  color: #fff;
}
.res-cta__sub { margin: 0; font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, 0.6); }
.res-cta__knop {
  display: inline-block; margin-top: 4px; padding: 11px 22px;
  border-radius: 7px;
  background: #fff; color: var(--color-text); /* kit-linkkleur wint in het origineel van #000516 */
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.res-cta__knop:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); color: var(--color-text); }

/* --- Venster met de live website --- */
.res-venster {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.res-venster[hidden] { display: flex; visibility: hidden; }
.res-venster.is-open { opacity: 1; pointer-events: all; visibility: visible; }
.res-venster__box {
  position: relative;
  display: grid; grid-template-rows: auto 1fr auto;
  width: 100%; max-width: 1200px; height: 90vh; max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #000616;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.res-venster.is-open .res-venster__box { transform: scale(1) translateY(0); }
.res-venster__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.res-venster__badge {
  flex-shrink: 0; padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  color: #fff;
}
.res-venster__badge--kapsalon { background: #ee8331; }
.res-venster__badge--vakmensen { background: #3a7d52; }
.res-venster__badge--maatwerk { background: rgba(255, 255, 255, 0.12); }
.res-venster__naam { flex-shrink: 0; font-family: var(--font-heading); font-size: 17px; font-weight: 800; color: #fff; }
.res-venster__streep { flex-shrink: 0; width: 1px; height: 20px; background: rgba(255, 255, 255, 0.12); }
.res-venster__usps { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-right: auto; }
.res-venster__usp-streep { flex-shrink: 0; width: 1px; height: 20px; background: rgba(255, 255, 255, 0.1); }
.res-venster__usp {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 12px; white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
}
.res-venster__usp-vink {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 8px; color: #fff;
}
.res-venster--kapsalon .res-venster__usp-vink { background: #ee8331; }
.res-venster--vakmensen .res-venster__usp-vink { background: #3a7d52; }
.res-venster--maatwerk .res-venster__usp-vink { background: #000616; }
.res-venster__sluit {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.res-venster__sluit:hover { background: rgba(255, 255, 255, 0.22); }
.res-venster__media { position: relative; overflow: hidden; background: #000616; }
.res-venster__media iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.4s; }
.res-venster__media img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: top; }
.res-venster__laden {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-ui); font-size: 13px; color: rgba(255, 255, 255, 0.4);
}
.res-venster__spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(238, 131, 49, 0.2); border-top-color: #ee8331; border-radius: 50%;
  animation: res-draai 0.8s linear infinite;
}
@keyframes res-draai { to { transform: rotate(360deg); } }
.res-venster__onder {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.res-venster__verhaal { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.5); }
.res-venster__cta {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 6px;
  background: #ee8331; color: #fff;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.res-venster__cta:hover { background: #d4721f; color: #fff; }

@media (max-width: 1200px) {
  .res-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .res-cta { padding: 28px 24px; }
  .res-venster__box { grid-template-rows: auto 50vw auto; }
  .res-venster__usps, .res-venster__streep, .res-venster__verhaal { display: none; }
}
@media (max-width: 767px) {
  .res-filter { padding: 11px 22px; } /* kit-knop op mobiel */
}
@media (max-width: 600px) {
  .res-filter { font-size: 13px; }
}

/* A case without USPs: drop the divider so it does not dangle. */
.res-venster__streep:has(+ .res-venster__usps:empty) { display: none; }
