/*
 * Blokhut verhuur. Kleuren en lettertypes volgen de huisstijl van
 * scoutingmbg.nl; de lettertypes komen uit de Elementor-kit als die er is.
 * Overschrijf de variabelen in je thema om iets aan te passen.
 */
.blokhut {
	--bh-blauw: #1a368d;
	--bh-bordeaux: #873947;
	--bh-groen: #00a551;
	--bh-groen-donker: #1e7a3c;
	--bh-donker: #243119;
	--bh-creme: #f1f2eb;
	--bh-tekst2: #4a5442;
	--bh-rand: #dadcd0;
	--bh-invoer: #7d8472;
	--bh-fout: #a3222f;
	/* Zonder Elementor-kit wordt de waarde ongeldig en erft hij het lettertype van het thema;
	   laadt de site het lettertype van de kit niet, dan nemen we een schreefloze letter in plaats van Times. */
	--bh-kop-font: var(--e-global-typography-primary-font-family, inherit), "Palanquin Dark", Roboto, Arial, sans-serif;
	--bh-knop-font: var(--e-global-typography-secondary-font-family, inherit), "Roboto Slab", Roboto, Arial, sans-serif;

	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--bh-rand);
	border-radius: 12px;
	padding: 24px;
	color: var(--bh-donker);
	font-size: 16px;
	line-height: 1.5;
	scroll-margin-top: 120px;
}
.blokhut *, .blokhut *::before, .blokhut *::after { box-sizing: border-box; }
.blokhut h3, .blokhut h4, .blokhut legend { font-family: var(--bh-kop-font); color: var(--bh-donker); margin: 0; line-height: 1.15; }
.blokhut h3 { font-size: 22px; font-weight: 600; }
.blokhut h4 { font-size: 18px; font-weight: 600; font-family: var(--bh-knop-font); }
.blokhut p { margin: 0; }
.blokhut a { color: var(--bh-blauw); font-weight: 600; }
.blokhut button { font: inherit; }
.blokhut :focus-visible { outline: 3px solid var(--bh-blauw); outline-offset: 2px; }
.blokhut [data-kop]:focus { outline: none; }
.blokhut-klein { font-size: 14px; color: var(--bh-tekst2); }
.blokhut-laden { color: var(--bh-tekst2); }
.blokhut-fout { color: var(--bh-fout); }

/* Stappen */
.blokhut-stappen { list-style: none; margin: 0 0 22px; padding: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; border-bottom: 1px solid #e4e6dc; font-family: var(--bh-knop-font); font-weight: 500; font-size: 15px; color: #5d6356; }
.blokhut-stappen li { display: flex; align-items: center; gap: 10px; margin: 0; }
.blokhut-stap-nr { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #e6e8de; color: #4f5548; }
.blokhut-stappen .is-nu { color: var(--bh-donker); font-weight: 600; }
.blokhut-stappen .is-nu .blokhut-stap-nr { background: var(--bh-blauw); color: #fff; }
.blokhut-stappen .is-klaar .blokhut-stap-nr { background: var(--bh-groen-donker); color: #fff; }

/* Knoppen */
.blokhut-knop { min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid var(--bh-blauw); background: var(--bh-blauw); color: #fff; font-family: var(--bh-knop-font); font-weight: 500; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.blokhut-knop:hover { filter: brightness(1.12); }
.blokhut-knop.is-tweede { background: #fff; color: var(--bh-blauw); }
.blokhut-knop.is-tweede:hover { background: #f3f5fb; filter: none; }
.blokhut-knop.is-verstuur { background: var(--bh-bordeaux); border-color: var(--bh-bordeaux); }
/* A button that is a link: the theme colours links blue, which would be blue on blue. */
.blokhut a.blokhut-knop, .blokhut a.blokhut-knop:hover, .blokhut a.blokhut-knop:focus { color: #fff; text-decoration: none; }
.blokhut a.blokhut-knop.is-tweede, .blokhut a.blokhut-knop.is-tweede:hover, .blokhut a.blokhut-knop.is-tweede:focus { color: var(--bh-blauw); }
.blokhut-knop:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.blokhut-link { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--bh-blauw); font-family: var(--bh-knop-font); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.blokhut-knoppen { display: flex; flex-wrap: wrap; gap: 12px; }
.blokhut-knoppen.is-uiteen { justify-content: space-between; }

/* Stap 1: kalender */
.blokhut-stap1 { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.blokhut-kalender { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.blokhut-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.blokhut-nav > div { display: flex; gap: 8px; }
.blokhut-pijl { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--bh-invoer); background: #fff; color: var(--bh-donker); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.blokhut-pijl:disabled { opacity: .35; cursor: default; }
/* De maanden staan als strook onder elkaar; het venster toont één maand met een stukje van de maand ervoor en erna. */
.blokhut-weekkop, .blokhut-venster { padding: 0 5px; }
.blokhut-venster { overflow: hidden; transition: height .35s ease; }
.blokhut-maand + .blokhut-maand { margin-top: 18px; }
.blokhut-maand h3 { position: sticky; top: 0; z-index: 1; height: 40px; margin: 0; padding-bottom: 8px; display: flex; align-items: flex-end; background: #fff; font-size: 16px; font-weight: 500; color: var(--bh-tekst2); }
.blokhut-maand.is-huidig h3 { font-size: 21px; font-weight: 600; color: var(--bh-donker); }
.blokhut-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.blokhut-weekdag { text-align: center; font-size: 12px; font-weight: 500; color: #5d6356; padding: 2px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.blokhut-dag { height: 46px; width: 100%; border-radius: 8px; border: 1px solid #b5baa8; background: #fff; color: var(--bh-donker); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 15px; font-weight: 500; padding: 0; margin: 0; cursor: pointer; position: relative; overflow: hidden; }
.blokhut-dag:focus-visible { z-index: 2; }
.blokhut-dag > * { position: relative; }
.blokhut-dag[aria-disabled="true"] { cursor: not-allowed; }
/* Wisseldag: het driehoekje linksboven is de ochtend, de rest de avond. */
[class*="is-ochtend-"]::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 42% 0, 0 100%); }
.is-ochtend-vrij::before { background: #fff; }
.is-ochtend-optie::before { background: repeating-linear-gradient(135deg, #f3d98f 0 5px, #fbefcb 5px 10px); }
.is-ochtend-bezet::before { background: var(--bh-bordeaux); }
.blokhut-dag.is-gekozen::before { content: none; }
.blokhut-dag.is-ochtend-vrij:not(.is-gekozen):hover { border-color: var(--bh-blauw); }
.blokhut-dag i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.blokhut-dag.is-avond i { background: var(--bh-groen); }
.blokhut-dag.is-vrij:hover, .blokhut-dag.is-overdag:hover { background: #f3f5fb; border-color: var(--bh-blauw); }
.blokhut-dag.is-optie { background: repeating-linear-gradient(135deg, #f3d98f 0 5px, #fbefcb 5px 10px); color: #3d2e00; border-color: #d9b85a; }
.blokhut-dag.is-bezet { background: var(--bh-bordeaux); border-color: var(--bh-bordeaux); color: #fff; }
.blokhut-dag.is-dicht, .blokhut-dag.is-voorbij { background: #f6f7f2; color: #8a8f83; border: 1px dashed #d3d6c9; cursor: default; }
.blokhut-dag.is-voorbeeld, .blokhut-dag.is-voorbeeld:hover { background: #dfe5f6; border-color: var(--bh-blauw); }
.blokhut-dag.is-ongeldig { box-shadow: inset 0 0 0 2px var(--bh-fout); }
.blokhut-dag.is-gekozen { background: var(--bh-blauw); border-color: var(--bh-blauw); color: #fff; }
.blokhut-melding { min-height: 24px; font-size: 15px; font-weight: 500; color: var(--bh-bordeaux); }
.blokhut-legenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #3b4534; }
.blokhut-legenda li { display: flex; align-items: center; gap: 8px; margin: 0; }
.blokhut-swatch { position: relative; overflow: hidden; width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; }
.blokhut-swatch i { width: 5px; height: 5px; border-radius: 50%; background: var(--bh-groen); }
.blokhut-swatch.is-vrij { border: 1px solid #b5baa8; background: #fff; }
.blokhut-swatch.is-optie { border: 1px solid #d9b85a; background: repeating-linear-gradient(135deg, #f3d98f 0 4px, #fbefcb 4px 8px); }
.blokhut-swatch.is-bezet { background: var(--bh-bordeaux); }
.blokhut-swatch.is-dicht { border: 1px dashed #b5baa8; background: #f6f7f2; }
.blokhut-swatch.is-gekozen { background: var(--bh-blauw); }

.blokhut-zijkant { flex: 1 1 300px; min-width: 0; background: var(--bh-creme); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.blokhut-zijkant > p { color: #3b4534; }
.blokhut-verblijf { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.blokhut-verblijf dt { color: var(--bh-tekst2); }
.blokhut-verblijf dd { margin: 0; font-weight: 500; }
.blokhut-verblijf dd span { font-weight: 400; color: var(--bh-tekst2); }
.blokhut-personen { display: flex; flex-direction: column; gap: 6px; }
.blokhut-personen label { font-weight: 500; }
.blokhut-personen > div { display: flex; align-items: center; gap: 8px; }
.blokhut-personen button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--bh-invoer); background: #fff; color: var(--bh-donker); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.blokhut-personen input { width: 72px; height: 44px; text-align: center; border: 1px solid var(--bh-invoer); border-radius: 8px; font-size: 17px; font-weight: 500; color: var(--bh-donker); background: #fff; padding: 0 4px; }
.blokhut-kosten { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #d5d8cb; padding-top: 14px; }
.blokhut-blok .blokhut-kosten { border-top: 0; padding-top: 0; }
.blokhut-kosten > div { display: flex; justify-content: space-between; gap: 12px; }
.blokhut-kosten small { font-size: 13px; color: var(--bh-tekst2); }
.blokhut-kosten strong { font-weight: 500; white-space: nowrap; }
.blokhut-kosten .blokhut-totaal { border-top: 1px solid #d5d8cb; padding-top: 10px; font-size: 18px; font-weight: 700; }
.blokhut-kosten .blokhut-totaal strong { font-weight: 700; }

/* Stap 2: keuze en formulier */
.blokhut-stap2, .blokhut-stap3 { display: flex; flex-direction: column; gap: 22px; }
.blokhut-stap2 form { display: flex; flex-direction: column; gap: 22px; }
.blokhut-strook { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: var(--bh-creme); border-radius: 10px; padding: 8px 18px; font-size: 15px; }
.blokhut-alert { border: 1px solid var(--bh-fout); background: #fbedee; color: #7a1a24; border-radius: 8px; padding: 12px 16px; font-size: 15px; font-weight: 500; }
.blokhut-kaarten { display: flex; flex-wrap: wrap; gap: 16px; }
.blokhut-kaart { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border: 1px solid #b5baa8; border-radius: 10px; padding: 22px; }
.blokhut-kaart.is-aanbevolen { border: 2px solid var(--bh-blauw); }
.blokhut-kaart ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.blokhut-kaart .blokhut-knop { margin-top: auto; min-height: 52px; }
.blokhut-label { align-self: flex-start; padding: 2px 10px; border-radius: 12px; background: #e5eaf7; color: var(--bh-blauw); font-size: 13px; font-weight: 600; }
.blokhut-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--bh-creme); border: 1px solid #d5d8cb; border-radius: 10px; padding: 6px 16px; font-size: 15px; }
.blokhut-banner span { display: inline-flex; align-items: center; gap: 10px; }
.blokhut-banner.is-ok { background: #e8f4ec; border-color: #a9d5b7; color: #0e4f26; }
.blokhut-banner.is-ok .blokhut-link { color: #0e4f26; }
.blokhut fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.blokhut legend { padding: 0; margin-bottom: 4px; font-size: 22px; font-weight: 600; float: left; width: 100%; }
.blokhut legend + * { clear: both; }
.blokhut-velden { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.blokhut-veld { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* Flex sizes only inside a row; in a column they would set the height. */
.blokhut-velden > .blokhut-veld { flex: 1 1 220px; }
.blokhut-velden > .blokhut-veld.is-breed { flex: 2 1 300px; }
.blokhut-soort { max-width: 360px; }
.blokhut-veld label, .blokhut-labeltekst { font-weight: 500; font-size: 15px; }
.blokhut-veld input, .blokhut-veld select, .blokhut-veld textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--bh-invoer); border-radius: 6px; font: inherit; font-size: 16px; color: var(--bh-donker); background: #fff; }
.blokhut-veld textarea { padding: 10px 12px; resize: vertical; }
.blokhut-veld.heeft-fout input { border-color: var(--bh-fout); border-width: 2px; }
.blokhut-vast { min-height: 46px; display: flex; align-items: center; font-weight: 500; }
.blokhut-veldfout { color: var(--bh-fout); font-size: 14px; font-weight: 500; }
.blokhut-rollen { display: flex; flex-wrap: wrap; gap: 12px; }
.blokhut-rol { flex: 1 1 260px; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; border: 1px solid #b5baa8; cursor: pointer; }
.blokhut-rol.is-gekozen { border: 2px solid var(--bh-blauw); background: #f3f5fb; }
.blokhut-rol input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bh-blauw); flex: none; }
.blokhut-rol span { display: flex; flex-direction: column; color: var(--bh-tekst2); font-size: 15px; }
.blokhut-rol strong { color: var(--bh-donker); font-size: 16px; }
.blokhut-akkoord { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; font-size: 15px; }
.blokhut-akkoord input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bh-blauw); }
.blokhut-akkoord .blokhut-veldfout { grid-column: 2; }
.blokhut-verborgen { display: none !important; }

/* Stap 3 en 4 */
.blokhut-kop { font-size: 26px !important; }
.blokhut-blokken { display: flex; flex-wrap: wrap; gap: 20px; }
.blokhut-blok { flex: 1 1 280px; min-width: 0; border: 1px solid var(--bh-rand); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.blokhut-blok.is-creme { background: var(--bh-creme); border-color: transparent; }
.blokhut-blok dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.blokhut-blok dt { color: var(--bh-tekst2); }
.blokhut-blok dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.blokhut-blok ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.blokhut-blokkop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blokhut-blokkop .blokhut-link { min-height: 32px; font-size: 14px; }
.blokhut-let-op { background: #fbefcb; border: 1px solid #d9b85a; color: #3d2e00; border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.blokhut-stap4 { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.blokhut-klaar { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.blokhut-klaar-icoon { width: 56px; height: 56px; border-radius: 50%; background: #e2f3e8; color: var(--bh-groen-donker); display: inline-flex; align-items: center; justify-content: center; }
.blokhut-klaar-icoon svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
	.blokhut-venster { transition: none; }
}

@media (max-width: 480px) {
	.blokhut { padding: 16px; border-radius: 10px; }
	.blokhut-dag { height: 42px; font-size: 14px; }
	.blokhut-knoppen.is-uiteen { flex-direction: column-reverse; }
	.blokhut-knoppen .blokhut-knop { width: 100%; }
}
