/*
 * Zoekfunctie: live-suggesties (.ihp-sr--dd, binnen de SearchWP-container
 * .searchwp-live-search-results) en de resultatenpagina (.ihp-sr--page).
 * Markup: inc/search.php. Klassen met ihp- staan in de WP Rocket RUCSS-safelist.
 */
.ihp-sr { --sr-ink: #333f48; --sr-deep: #1e3a48; --sr-grey: #6b7880; --sr-line: #eaedef; --sr-sand: #f0eddf; --sr-blue: #a6c1d4; --sr-light: #f2f6f9; font-family: 'Raleway', system-ui, -apple-system, sans-serif; color: var(--sr-ink); }
.ihp-sr a { text-decoration: none; color: inherit; }
/* Oude dropdown-stijl legt een ::after over het hele blok (zie dd_fix_css() in inc/search.php). */
.searchwp-live-search-results .ihp-sr a::after { content: none !important; display: none !important; }
.ihp-sr__ico { flex: none; color: var(--sr-grey); }

/* ---- Dropdown ---- */
.ihp-sr--dd { padding: 2px 0; }
.ihp-sr--dd .ihp-sr__head { margin: 0; padding: 12px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sr-grey); }
.ihp-sr--dd .ihp-sr__row { display: flex; align-items: center; gap: 12px; padding: 8px 18px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.ihp-sr--dd .ihp-sr__row:hover, .ihp-sr--dd .ihp-sr__row:focus { background: var(--sr-sand); outline: none; }
.ihp-sr--dd .ihp-sr__row--cat { font-weight: 700; color: var(--sr-deep); }
.ihp-sr--dd .ihp-sr__row--cat .ihp-sr__ico { color: var(--sr-deep); }
.ihp-sr--dd .ihp-sr__row img, .ihp-sr--dd .ihp-sr__noimg { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; display: block; flex: none; background: var(--sr-light); }
.ihp-sr--dd .ihp-sr__all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 -6px; padding: 13px 18px; border-top: 1px solid var(--sr-line); font-size: 14px; font-weight: 700; color: var(--sr-deep); background: #fff; position: sticky; bottom: -6px; }
.ihp-sr--dd .ihp-sr__all:hover { background: var(--sr-sand); }
.ihp-sr--dd .ihp-sr__all .ihp-sr__ico { color: var(--sr-deep); }
.ihp-sr--dd .ihp-sr__empty { padding: 16px 18px 18px; text-align: left; }

/* ---- Geen resultaat (dropdown + pagina) ---- */
.ihp-sr__empty-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--sr-ink); }
.ihp-sr__empty-text { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--sr-grey); }
.ihp-sr__empty-text a { color: var(--sr-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ihp-sr__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ihp-sr__pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #d4dade; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--sr-deep); }
.ihp-sr__pill:hover { border-color: var(--sr-deep); }
.ihp-sr__pill .ihp-sr__ico { width: 14px; height: 14px; color: var(--sr-deep); }

/* ---- Resultatenpagina ---- */
.ihp-sr--page { max-width: 1200px; margin: 0 auto; padding: 8px 0 56px; }
.ihp-sr__form { display: flex; gap: 10px; max-width: 640px; margin: 0 0 18px; }
.ihp-sr__form input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #d4dade; border-radius: 6px; font: inherit; font-size: 16px; color: var(--sr-ink); background: #fff; }
.ihp-sr__form input[type="search"]:focus { border-color: var(--sr-deep); outline: none; }
.ihp-sr__form button { height: 48px; padding: 0 22px; border: 0; border-radius: 5px; background: var(--sr-blue); color: var(--sr-deep); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ihp-sr__form button:hover { background: #8fafc6; }
.ihp-sr__count { margin: 0 0 8px; font-size: 15px; color: var(--sr-grey); }
.ihp-sr__sec { margin-top: 32px; }
.ihp-sr__sec h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; color: var(--sr-ink); }
.ihp-sr__sec h2 span { font-weight: 400; color: var(--sr-grey); }
.ihp-sr__pill--cat { padding: 10px 16px; font-size: 15px; }
.ihp-sr__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ihp-sr__card { display: flex; flex-direction: column; gap: 10px; }
.ihp-sr__card-img { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sr-light); }
.ihp-sr__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms; }
.ihp-sr__card:hover .ihp-sr__card-img img { transform: scale(1.03); }
.ihp-sr__card-img .ihp-sr__noimg { display: block; width: 100%; height: 100%; }
.ihp-sr__card-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.ihp-sr__card:hover .ihp-sr__card-title { text-decoration: underline; text-underline-offset: 3px; }
.ihp-sr__grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ihp-sr__grid--posts .ihp-sr__card-img { aspect-ratio: 3 / 2; }
.ihp-sr__list { display: flex; flex-direction: column; max-width: 760px; border-top: 1px solid var(--sr-line); }
.ihp-sr__list .ihp-sr__row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--sr-line); font-size: 16px; font-weight: 600; }
.ihp-sr__list .ihp-sr__row:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ihp-sr--page .ihp-sr__empty { margin-top: 8px; padding: 24px; border-radius: 8px; background: var(--sr-light); max-width: 760px; }

@media (max-width: 1080px) { .ihp-sr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.ihp-sr--page { padding: 4px 0 40px; }
	.ihp-sr__grid, .ihp-sr__grid--posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.ihp-sr__sec { margin-top: 26px; }
	.ihp-sr__sec h2 { font-size: 19px; }
	.ihp-sr__form button { padding: 0 16px; }
}
