/* ==========================================================================
   inHoorn – aanvullingen op style.css (zoekbalk, datumveld, agenda planner, print)
   Huisstijl: roze #FF3D7F, tekst #272727 / #727272, lichtgrijs #dedede
   ========================================================================== */

/* ---------------- Zoekbalk voorpagina ---------------- */
.filter-header.ih-searchbar {
	height: auto;
	overflow: visible;
	border-radius: 0 5px 5px 5px;
}
.ih-searchbar-form {
	display: grid;
	grid-template-columns: 3fr 3fr 2fr 2.4fr;
	align-items: stretch;
	margin: 0;
}
.ih-sb-field { position: relative; background: #fff; border-right: 1px solid #dedede; min-width: 0; }
.ih-sb-field select,
.ih-sb-field .date-input {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	border: 0;
	border-radius: 0;
	padding: 5px 34px 5px 12px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: normal;
	color: #565656;
	background-color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	text-overflow: ellipsis;
	float: none;
}
/* pijltje bij de keuzelijsten, zoals voorheen (grijs vlak met wit driehoekje) */
.ih-sb-select::before, .ih-sb-toggle::before { content: ""; position: absolute; right: 0; top: 0; width: 24px; height: 100%; background: #FF3D7F; pointer-events: none; }
.ih-sb-select::after, .ih-sb-toggle::after { content: ""; position: absolute; right: 9px; top: 50%; margin-top: -2px; border-top: 5px solid #fff; border-left: 3px solid transparent; border-right: 3px solid transparent; pointer-events: none; transition: transform .2s; }
.ih-sb-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.ih-sb-field .date-input { background: #fff url("../img/icons/calendar.png") no-repeat right 10px center; }
.ih-sb-field select:focus,
.ih-sb-field .date-input:focus { outline: 2px solid #FF3D7F; outline-offset: -2px; }
.ih-sb-submit {
	height: 50px;
	border: 0;
	color: #fff;
	background: #FF3D7F;
	font-size: 0.9rem;
	padding: 0 12px;
	white-space: nowrap;
}
.ih-sb-submit:hover, .ih-sb-submit:focus-visible { background: #e2306c; }
.ih-sb-submit:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Meerdere activiteiten kiezen */
.ih-sb-multi { position: relative; }
.ih-sb-toggle {
	position: relative; display: block; width: 100%; height: 50px; margin: 0; border: 0; border-radius: 0;
	padding: 5px 34px 5px 12px; background: #fff; color: #565656; text-align: left;
	font-family: inherit; font-size: 0.9rem; font-weight: normal; cursor: pointer;
}
.ih-sb-toggle-text { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ih-sb-toggle.has-value { color: #272727; }
.ih-sb-toggle:focus-visible { outline: 2px solid #FF3D7F; outline-offset: -2px; }
.ih-sb-toggle::after, .ih-sb-toggle::before { margin: 0; }
.ih-sb-options {
	min-width: 100%; width: 260px; padding: 6px 0; margin: 0 !important;
	border: 0; border-top: 3px solid #FF3D7F; border-radius: 0 0 5px 5px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .2); z-index: 1060;
}
.ih-sb-options-title { margin: 4px 14px 6px; font-size: 0.8rem; color: #727272; }
.ih-sb-option {
	position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px;
	font-size: 0.9rem; color: #272727; cursor: pointer; user-select: none;
}
.ih-sb-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ih-sb-option i { width: 20px; text-align: center; color: #FF3D7F; }
.ih-sb-option::after { content: ""; margin-left: auto; width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
.ih-sb-option:hover { background: #fdf0f4; }
.ih-sb-option:has(input:checked) { background: #FF3D7F; color: #fff; }
.ih-sb-option:has(input:checked) i { color: #fff; }
.ih-sb-option:has(input:checked)::after { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FF3D7F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ih-sb-option:has(input:focus-visible) { outline: 2px solid #FF3D7F; outline-offset: -2px; }
.ih-sb-option.is-checked { background: #FF3D7F; color: #fff; }
.ih-sb-option.is-checked i { color: #fff; }

/* Tablet en telefoon: zoekbalk onder de foto's, velden onder elkaar */
@media (max-width: 991.98px) {
	.tp-banner-container .filter-title { position: static; width: 100%; margin: 0; }
	.tp-banner-container .title-header { position: absolute; top: 34%; left: 0; right: 0; z-index: 99; padding: 0 15px; }
	.filter-header.ih-searchbar { display: block !important; max-width: none; margin: 0; border-radius: 0; border-width: 0; padding: 12px; }
	.ih-searchbar-form { grid-template-columns: 1fr 1fr; gap: 8px; }
	.ih-sb-field { border-right: 0; border-radius: 4px; overflow: hidden; }
	.ih-sb-date { grid-column: 1 / -1; order: -1; }
	.ih-sb-submit { grid-column: 1 / -1; border-radius: 4px; background: #fff; color: #FF3D7F; font-weight: bold; font-size: 1rem; }
	.ih-sb-submit:hover, .ih-sb-submit:focus-visible { background: #fbe3ec; }
	.ih-sb-field select, .ih-sb-field .date-input, .ih-sb-toggle { font-size: 16px; } /* voorkomt inzoomen op iPhone */
	.ih-sb-field.ih-sb-multi { overflow: visible; }
	.ih-sb-toggle { border-radius: 4px; }
	.ih-sb-options { width: 100%; }
	.ih-sb-option { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 420px) {
	.ih-searchbar-form { grid-template-columns: 1fr; }
}

/* ---------------- Datumveld (flatpickr) in huisstijl ---------------- */
.flatpickr-calendar { font-family: 'Open Sans', sans-serif; z-index: 10050; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
	background: #FF3D7F; border-color: #FF3D7F; color: #fff;
}
.flatpickr-day.inRange { background: #ffe0eb; border-color: #ffe0eb; box-shadow: -5px 0 0 #ffe0eb, 5px 0 0 #ffe0eb; }
.flatpickr-day.today { border-color: #FF3D7F; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: rgba(57, 57, 57, .25); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: #FF3D7F; }

/* Zijbalk en agenda: één datumveld over de volle breedte */
.filter-widget .ih-daterange,
.filter-widget .date-input.ih-daterange { width: 100%; float: none; cursor: pointer; }

/* ---------------- Agenda op "Plan je bezoek": nette, gelijke kaarten ---------------- */
.ih-event-grid { margin-top: 10px; margin-bottom: 30px; }
.ih-event { display: flex; flex-direction: column; height: 100%; border: 1px solid #dedede; background: #fff; }
.ih-event-img { position: relative; display: block; aspect-ratio: 7 / 5; overflow: hidden; }
.ih-event-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ih-event-date {
	position: absolute; left: 0; bottom: 0;
	background: #FF3D7F; color: #fff;
	font-size: 0.85rem; font-weight: bold; line-height: 1.2;
	padding: 6px 12px;
}
.ih-event-body.info-gallery { flex: 1 1 auto; display: flex; flex-direction: column; border: 0; margin: 0; padding: 16px 14px 18px; }
.ih-event-body.info-gallery::before { display: none; }
.ih-event-body h3 { font-size: 1.1rem; line-height: 1.35; padding: 0 0 4px; }
.ih-event-body h3 a { color: #272727; }
.ih-event-body h3 a:hover { color: #FF3D7F; text-decoration: none; }
.ih-event-cat { color: #FF3D7F; font-size: 0.8rem; margin: 0 0 6px; }
.ih-event-meta { font-size: 0.85rem; margin: 0 0 14px; color: #555; }
.ih-event-body .content-btn { margin-top: auto; }
.ih-empty { font-size: 0.95rem; }
.ih-cat-count { color: #999; font-size: 0.8em; }

.ih-print-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 0 0 10px; }
.ih-print-summary { margin: 0; font-size: 0.95rem; color: #272727; }
.ih-print-only { display: none; }

/* ---------------- Kleine reparaties ---------------- */
.ih-planner-sidebar .form-check-inline { display: block; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; }
img { height: auto; }
.title img, .ih-event-img img { max-width: 100%; }

/* ==========================================================================
   Printen (Plan je bezoek)
   ========================================================================== */
@media print {
	@page { margin: 14mm; }
	body { background: #fff !important; color: #000; font-size: 11pt; }
	#header, #footer, .footer-v1, .section-title-01, .semiboxshadow, .ih-planner-sidebar,
	.ih-print-bar .btn, .ih-no-print, #toTop, .content-btn, .tp-banner-container { display: none !important; }
	#layout { overflow: visible !important; }
	.content-central { box-shadow: none !important; margin: 0 !important; max-width: none !important; }
	.ih-planner-main { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; }
	.ih-planner-main > div { width: 100% !important; padding: 0 !important; }
	.ih-print-bar { border-bottom: 2px solid #FF3D7F; margin-bottom: 8mm; }
	.ih-print-summary { font-size: 14pt; font-weight: bold; }
	.titles { margin: 6mm 0 3mm !important; padding: 0 !important; }
	.titles i, .titles hr { display: none !important; }
	.titles h2 { font-size: 16pt; padding: 0; }
	.ih-event-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4mm; margin: 0 !important; }
	.ih-event-grid > .col { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
	.ih-event { break-inside: avoid; page-break-inside: avoid; flex-direction: row; border-color: #bbb; }
	.ih-event-img { flex: 0 0 32%; aspect-ratio: auto; }
	.ih-event-date { display: none !important; }
	.ih-print-logo { display: block !important; height: 14mm; width: auto; margin-bottom: 3mm; }
	.ih-event-img img { height: 28mm; }
	.ih-event-body.info-gallery { text-align: left; padding: 2mm 3mm; }
	.ih-event-body h3 { font-size: 11pt; }
	.ih-event-body .separator { display: none; }
	.ih-print-only { display: block; font-size: 8pt; color: #555; word-break: break-all; margin: 0; }
	a { color: #000 !important; text-decoration: none !important; }
	.ih-planner-block { break-inside: auto; }
}

/* responsive.css verbergt op kleine schermen de oude velden; de nieuwe zoekbalk moet zichtbaar blijven */
@media (max-width: 600px) {
	.filter-header.ih-searchbar .date-input,
	.filter-header.ih-searchbar select,
	.filter-header.ih-searchbar .ih-sb-submit { display: block !important; width: 100% !important; border-top: 0; font-size: 16px; }
}

/* Opengeklapte lijst boven de inhoud eronder tonen */
.filter-title.ih-dropdown-open, .tp-banner-container.ih-dropdown-open { z-index: 1000; }
.tp-banner-container.ih-dropdown-open { overflow: visible !important; }
.ih-sb-options[data-bs-popper="static"], .ih-sb-multi .dropdown-menu { top: 100%; left: 0; }
