/* ============================================================
   Zoekresultaten (search.php) + zoekformulier (searchform.php)
   "Editorial Premium": nile-900, gold eyebrow, hairline-kaarten.
   ============================================================ */

/* WP-conventie-utility: alleen voor screenreaders. Bewust ongescoped — ook
   WordPress-core zet deze class (zoekveld-label, paginering-kop "Berichten
   paginering" van the_posts_pagination); zonder definitie wordt die tekst
   gewoon zichtbaar op de pagina. */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Hero ── */
.srch-hero {
  position: relative;
  background: var(--grad-navy-bg);
  padding: clamp(150px, 18vh, 210px) var(--pad) clamp(48px, 7vw, 80px);
  color: var(--n-0);
}
.srch-hero::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,23,.5), transparent);
}
.srch-hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.srch-titel {
  font-family: var(--font-h); font-weight: 800;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0; max-width: 26ch; overflow-wrap: anywhere; /* lange zoektermen breken netjes af */
}
.srch-subtitel { margin: 0; font-size: clamp(15px, 2vw, 17px); font-weight: 300; color: rgba(255,255,255,.75); }

/* Zoekformulier in de hero */
.srch-form { max-width: 560px; margin-top: 10px; }
.srch-form form { display: flex; gap: 10px; }
.srch-form .search-field {
  flex: 1; min-width: 0; padding: 14px 18px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04);
  color: var(--n-0); font-family: var(--font-b); font-size: 15px;
}
.srch-form .search-field::placeholder { color: var(--nile-300); }
.srch-form .search-field:focus {
  outline: none; border-color: var(--teal-500); background: rgba(255,255,255,.07);
}
.srch-form .search-submit {
  font-family: var(--font-h); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--teal-500); color: #fff; cursor: pointer;
  transition: background .35s ease, transform .35s ease;
}
.srch-form .search-submit:hover { background: var(--teal-300); transform: translateY(-2px); }
.srch-form .search-submit:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 2px; }

/* ── Resultatenlijst ── */
.srch-resultaten {
  background: var(--nile-900);
  padding: clamp(56px, 8vw, 96px) var(--pad) clamp(88px, 12vw, 140px);
}
.srch-inner { max-width: 800px; margin: 0 auto; }
.srch-lijst { display: flex; flex-direction: column; gap: 20px; }

.srch-kaart {
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 28px 30px;
  transition: border-color .3s ease, transform .3s ease;
}
.srch-kaart:hover { border-color: rgba(59,198,177,.4); transform: translateY(-2px); }

.srch-kaart-info { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.srch-type {
  font-family: var(--font-h); font-weight: 700; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-500);
  padding: 4px 10px; border: 1px solid rgba(212,160,23,.35); border-radius: var(--r-pill);
}
.srch-datum { font-size: 13px; color: var(--nile-300); }

.srch-kaart-titel {
  margin: 0 0 8px; font-family: var(--font-h); font-weight: 700;
  font-size: clamp(19px, 2.6vw, 24px); line-height: 1.25; letter-spacing: -.01em;
}
.srch-kaart-titel a { color: var(--n-0); transition: color .25s; }
.srch-kaart-titel a:hover { color: var(--teal-300); }

.srch-samenvatting {
  margin: 0 0 14px; font-size: 15px; font-weight: 300;
  line-height: 1.65; color: rgba(255,255,255,.75);
}

.srch-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-h); font-weight: 600; font-size: 14.5px;
  color: var(--teal-300); transition: color .25s;
}
.srch-link:hover { color: #5FD5C2; } /* zelfde teal-hover als de contactknoppen */
.srch-link .ico { width: 18px; height: 18px; transition: transform .3s ease; }
.srch-link:hover .ico { transform: translateX(4px); }

/* ── Paginering (the_posts_pagination) ── */
.srch-paginatie { margin-top: 44px; display: flex; justify-content: center; }
.srch-paginatie .nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.srch-paginatie .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md);
  font-family: var(--font-h); font-weight: 600; font-size: 14.5px;
  color: rgba(255,255,255,.85);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.srch-paginatie a.page-numbers:hover { border-color: var(--teal-500); color: var(--teal-300); }
.srch-paginatie .page-numbers.current { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.srch-paginatie .page-numbers.dots { border: none; }
.srch-paginatie .ico { width: 18px; height: 18px; }

/* ── Lege staat ── */
.srch-leeg { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.srch-leeg h2 {
  font-family: var(--font-h); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 12px; color: var(--n-0);
}
.srch-leeg p {
  margin: 0 auto; max-width: 46ch;
  font-size: 15.5px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.75);
}
.srch-links { margin-top: 28px; }
.srch-links ul {
  display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.srch-links a {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px;
  border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85); font-family: var(--font-h); font-weight: 500; font-size: 14px;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.srch-links a:hover { border-color: var(--teal-500); color: var(--teal-300); background: rgba(47,158,141,.08); }
.srch-links a .ico { width: 16px; height: 16px; }

/* Zichtbare focus bij toetsenbord-navigatie (op de donkere achtergrond) */
.srch-kaart-titel a:focus-visible,
.srch-link:focus-visible,
.srch-links a:focus-visible,
.srch-paginatie .page-numbers:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .srch-form form { flex-direction: column; }
  .srch-form .search-submit { width: 100%; }
  .srch-kaart { padding: 22px; }
}
