/*
 * UwBoeking for WordPress: front end.
 *
 * The look follows the UwBoeking html Zoek & Boek. Every colour is a CSS
 * variable, set in UwBoeking > Settings or per Elementor widget:
 *   --uwb-primary  buttons, chosen days, accents   (#63a97b)
 *   --uwb-text     text                            (#2c3e50)
 *   --uwb-panel    sidebar, cards, panels          (#ffffff)
 *   --uwb-bg       background of Zoek & Boek       (#dcecd9)
 *   --uwb-range    the chosen period in calendars  (#fdf4d8)
 *   --uwb-radius   corner radius of buttons        (8px)
 *   --uwb-font, --uwb-font-size
 * and, for finer control (all optional, set by the Elementor widgets):
 *   buttons   --uwb-btn-bg, --uwb-btn-text, --uwb-btn-hover-bg, --uwb-btn-hover-text
 *   fields    --uwb-input-bg, --uwb-input-text, --uwb-input-border
 *   sidebar   --uwb-sidebar-bg, --uwb-sidebar-text, --uwb-heading
 *   filters   --uwb-filter-head, --uwb-filter-label, --uwb-filter-count, --uwb-accent
 *   cards     --uwb-card-bg, --uwb-card-title-bg, --uwb-card-title, --uwb-card-text,
 *             --uwb-card-muted, --uwb-price, --uwb-tag-bg, --uwb-tag-text, --uwb-image-height
 *   calendar  --uwb-cal-selected, --uwb-cal-selected-text, --uwb-cal-nav, --uwb-cal-hover
 * Selectors carry the .uwb root and the element name, so themes that style
 * every button or select do not win.
 */

.uwb {
	--uwb-p: var(--uwb-primary, #3f7f57);
	--uwb-t: var(--uwb-text, #2c3e50);
	--uwb-surface: var(--uwb-panel, #fff);
	/* Secondary text: a darker grey than before, readable (WCAG AA) on light and dark panels. */
	--uwb-muted: color-mix(in srgb, var(--uwb-t) 75%, var(--uwb-surface));
	--uwb-border: color-mix(in srgb, var(--uwb-t) 20%, var(--uwb-surface));
	--uwb-line: color-mix(in srgb, var(--uwb-t) 8%, var(--uwb-surface));
	--uwb-pill: color-mix(in srgb, var(--uwb-p) 12%, var(--uwb-surface));
	--uwb-hover: color-mix(in srgb, var(--uwb-p) 18%, var(--uwb-surface));
	--uwb-p-dark: color-mix(in srgb, var(--uwb-p), #000 15%);
	--uwb-b-bg: var(--uwb-btn-bg, var(--uwb-p));
	--uwb-b-text: var(--uwb-btn-text, var(--uwb-auto-btn-text, #fff));
	--uwb-b-hover: var(--uwb-btn-hover-bg, color-mix(in srgb, var(--uwb-b-bg), #000 15%));
	--uwb-b-hover-text: var(--uwb-btn-hover-text, var(--uwb-btn-text, var(--uwb-auto-hover-text, var(--uwb-b-text))));
	--uwb-i-bg: var(--uwb-input-bg, var(--uwb-surface));
	--uwb-i-text: var(--uwb-input-text, var(--uwb-t));
	--uwb-i-border: var(--uwb-input-border, var(--uwb-border));
	--uwb-sel: var(--uwb-cal-selected, var(--uwb-p));
	--uwb-sel-text: var(--uwb-cal-selected-text, var(--uwb-auto-sel-text, #fff));
	--uwb-focus: var(--uwb-t);
	--uwb-range-text: var(--uwb-auto-range-text, var(--uwb-t));
	--uwb-r: var(--uwb-radius, 8px);
	--uwb-r-input: calc(var(--uwb-r) * .75);
	--uwb-r-lg: calc(var(--uwb-r) * 2);
	--uwb-danger: #b42318;
	color: var(--uwb-t);
	font-family: var(--uwb-font, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
	font-size: var(--uwb-font-size, 14px);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	box-sizing: border-box;
}

/* Text on buttons and chosen days follows their background, unless the owner sets it:
   a light colour gets dark text, a dark colour white text. */
@supports (color: oklch(from red l c h)) {
	.uwb {
		--uwb-b-text: var(--uwb-btn-text, var(--uwb-auto-btn-text, oklch(from var(--uwb-b-bg) clamp(0, (0.68 - l) * 999, 1) 0 0)));
		--uwb-b-hover-text: var(--uwb-btn-hover-text, var(--uwb-btn-text, var(--uwb-auto-hover-text, oklch(from var(--uwb-b-hover) clamp(0, (0.68 - l) * 999, 1) 0 0))));
		--uwb-sel-text: var(--uwb-cal-selected-text, var(--uwb-auto-sel-text, oklch(from var(--uwb-sel) clamp(0, (0.68 - l) * 999, 1) 0 0)));
		--uwb-range-text: var(--uwb-auto-range-text, oklch(from var(--uwb-range, #fdf4d8) clamp(0, (0.68 - l) * 999, 1) 0 0));
	}
}

/* Hidden, but read by screen readers. */
.uwb .uwb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Not "inherit": content inside <details> would inherit from the browser's own slot. */
.uwb *,
.uwb *::before,
.uwb *::after {
	box-sizing: border-box;
}

.uwb [hidden] {
	display: none !important;
}

.uwb button,
.uwb input,
.uwb select,
.uwb textarea {
	font-family: inherit;
	font-size: 1em;
	letter-spacing: normal;
	text-transform: none;
}

.uwb h2,
.uwb h3,
.uwb p,
.uwb ul,
.uwb dl,
.uwb figure {
	margin: 0;
	padding: 0;
}

.uwb ul,
ul.uwb {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

ul.uwb > li::marker,
.uwb ul > li::marker {
	content: none;
}

.uwb a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

/* ---------- Buttons ---------- */

.uwb a.uwb-button,
.uwb button.uwb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-height: 0;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid var(--uwb-border);
	border-radius: var(--uwb-r);
	background: var(--uwb-surface);
	box-shadow: none;
	color: var(--uwb-t);
	font-size: 1em;
	font-weight: 700;
	line-height: normal;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}

.uwb a.uwb-button:hover,
.uwb button.uwb-button:hover {
	border-color: var(--uwb-p);
	background: var(--uwb-surface);
	color: var(--uwb-t);
}

.uwb a.uwb-button--primary,
.uwb button.uwb-button--primary {
	border-color: var(--uwb-b-bg);
	background: var(--uwb-b-bg);
	color: var(--uwb-b-text);
}

.uwb a.uwb-button--primary:hover,
.uwb a.uwb-button--primary:focus,
.uwb button.uwb-button--primary:hover,
.uwb button.uwb-button--primary:focus {
	border-color: var(--uwb-b-hover);
	background: var(--uwb-b-hover);
	color: var(--uwb-b-hover-text);
}

.uwb button.uwb-button:disabled,
.uwb button.uwb-button:disabled:hover {
	border-color: var(--uwb-b-bg);
	background: var(--uwb-b-bg);
	color: var(--uwb-b-text);
	opacity: .5;
	cursor: not-allowed;
}

.uwb .uwb-button--block {
	width: 100%;
}

.uwb button.uwb-button--search {
	padding: 12px;
	font-size: 1.143em;
}

.uwb button.uwb-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--uwb-p-dark);
	font-size: .929em;
	font-weight: 400;
	text-decoration: underline;
	cursor: pointer;
}

.uwb button.uwb-link:hover {
	background: none;
	color: var(--uwb-t);
}

.uwb button:focus-visible,
.uwb a:focus-visible,
.uwb select:focus-visible,
.uwb input:focus-visible,
.uwb textarea:focus-visible,
.uwb summary:focus-visible {
	outline: 2px solid var(--uwb-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--uwb-surface);
}

/* ---------- Fields ---------- */

.uwb select.uwb-input,
.uwb input.uwb-input,
.uwb textarea.uwb-input {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--uwb-i-border);
	border-radius: var(--uwb-r-input);
	background-color: var(--uwb-i-bg);
	box-shadow: none;
	color: var(--uwb-i-text);
	font-size: 1em;
	line-height: 1.3;
}

.uwb select.uwb-input {
	padding-right: 32px;
	cursor: pointer;
}

.uwb select.uwb-input:focus,
.uwb input.uwb-input:focus,
.uwb textarea.uwb-input:focus {
	border-color: var(--uwb-p);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--uwb-p), transparent 82%);
	outline: none;
}

.uwb .uwb-field {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.uwb .uwb-field__label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--uwb-t);
	font-size: 1em;
	font-weight: 600;
	line-height: 1.3;
}

.uwb label.uwb-check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 24px;
	margin: 0 0 4px;
	color: var(--uwb-filter-label, inherit);
	font-size: 1em;
	font-weight: 400;
	line-height: normal;
	cursor: pointer;
	transition: color .2s;
}

.uwb label.uwb-check:hover {
	color: var(--uwb-accent, var(--uwb-p));
}

.uwb .uwb-check input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--uwb-accent, var(--uwb-p));
	cursor: pointer;
}

.uwb .uwb-check__count {
	margin-left: auto;
	color: var(--uwb-filter-count, var(--uwb-muted));
	font-size: .929em;
}

.uwb .uwb-notice,
.uwb.uwb-notice {
	margin: 0 0 15px;
	padding: 12px 15px;
	border-left: 4px solid var(--uwb-p);
	border-radius: var(--uwb-r-input);
	background: var(--uwb-pill);
	color: var(--uwb-t);
}

.uwb .uwb-notice--error {
	border-color: var(--uwb-danger);
	background: #fdecea;
	color: var(--uwb-danger);
}

.uwb .uwb-notice--warning {
	border-color: #e3a008;
	background: #fff8e6;
	color: #7a5200;
}

.uwb .uwb-pills,
.uwb.uwb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uwb .uwb-pills li,
.uwb.uwb-pills li {
	margin: 0;
	padding: 6px 10px;
	border-radius: 20px;
	background: var(--uwb-tag-bg, var(--uwb-pill));
	color: var(--uwb-tag-text, var(--uwb-t));
	font-size: .857em;
	font-weight: 500;
	line-height: 1.2;
}

.uwb .uwb-loading {
	color: var(--uwb-muted);
}

.uwb .uwb-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--uwb-pill);
	border-top-color: var(--uwb-p);
	border-radius: 50%;
	animation: uwb-spin .8s linear infinite;
}

@keyframes uwb-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Arrival → departure field ---------- */

.uwb button.uwb-dates {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--uwb-i-border);
	border-radius: var(--uwb-r-input);
	background: var(--uwb-i-bg);
	box-shadow: none;
	color: var(--uwb-i-text);
	font-size: 1em;
	font-weight: 400;
	line-height: normal;
	text-align: left;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s, box-shadow .15s;
}

.uwb button.uwb-dates:hover {
	border-color: var(--uwb-p);
	background: var(--uwb-i-bg);
	color: var(--uwb-i-text);
}

.uwb .is-open > button.uwb-dates {
	border-color: var(--uwb-p);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--uwb-p), transparent 85%);
}

.uwb .uwb-dates__icon {
	flex-shrink: 0;
	color: var(--uwb-i-text);
	opacity: .65;
}

.uwb .uwb-dates__text {
	flex: 1;
	min-width: 0;
	white-space: normal;
	font-size: .929em;
	text-align: center;
}

.uwb .uwb-dates__text.is-placeholder,
.uwb .uwb-dates__sep {
	color: var(--uwb-i-text);
	opacity: .65;
}

.uwb .uwb-dates__sep {
	line-height: 1;
}

/* ---------- Calendar ---------- */

.uwb .uwb-field--dates {
	position: relative;
}

.uwb .uwb-popover {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 6px);
	left: 0;
	width: max-content;
	max-width: calc(100vw - 40px);
	padding: 20px 12px 12px;
	border-radius: calc(var(--uwb-r) * 1.5);
	background: var(--uwb-surface);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
	color: var(--uwb-t);
}

.uwb .uwb-popover__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding: 12px 12px 0;
	border-top: 1px solid var(--uwb-line);
}

.uwb .uwb-popover__summary {
	margin-right: auto;
	color: var(--uwb-muted);
}

.uwb button.uwb-popover__clear {
	min-height: 44px;
	padding: 0 6px;
	color: var(--uwb-t);
}

.uwb button.uwb-popover__done {
	min-height: 44px;
	padding: 0 22px;
}

.uwb .uwb-backdrop {
	display: none;
}

.uwb .uwb-cal {
	position: relative;
	user-select: none;
}

.uwb .uwb-cal.is-loading .uwb-cal__months {
	opacity: .5;
}

.uwb .uwb-cal__body {
	display: flex;
	align-items: flex-start;
	gap: 4px;
}

.uwb button.uwb-cal__nav {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	align-self: center;
	margin: 0;
	padding: 14px 12px;
	border: 0;
	border-radius: var(--uwb-r-input);
	background: transparent;
	box-shadow: none;
	color: var(--uwb-cal-nav, #3d8f98);
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}

.uwb button.uwb-cal__nav:hover:not(:disabled) {
	background: var(--uwb-pill);
	color: var(--uwb-cal-nav, #3d8f98);
}

.uwb button.uwb-cal__nav:disabled {
	background: transparent;
	opacity: .25;
	cursor: not-allowed;
}

.uwb .uwb-cal__months {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(var(--uwb-cal-months, 2), minmax(252px, 1fr));
	gap: 24px;
}

.uwb .uwb-cal__title {
	margin-bottom: 14px;
	color: var(--uwb-t);
	font-size: 1.071em;
	font-weight: 600;
	text-align: center;
}

.uwb .uwb-cal__weekdays,
.uwb .uwb-cal__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.uwb .uwb-cal__weekdays {
	margin-bottom: 6px;
	color: var(--uwb-muted);
	font-size: .857em;
}

.uwb .uwb-cal__weekdays span {
	padding: 4px 0;
	text-align: center;
}

.uwb .uwb-cal__day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	font-size: 1em;
}

.uwb .uwb-cal__num,
.uwb button.uwb-cal__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	max-width: 100%;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--uwb-t);
	font-size: 1em;
	font-weight: 400;
	line-height: 1;
	transition: background .15s;
}

.uwb button.uwb-cal__num {
	cursor: pointer;
}

.uwb .uwb-cal__day.is-past .uwb-cal__num,
.uwb .uwb-cal__day.is-disabled .uwb-cal__num,
.uwb .uwb-cal__day.is-unknown .uwb-cal__num {
	color: color-mix(in srgb, var(--uwb-t) 32%, var(--uwb-surface));
	cursor: not-allowed;
}

.uwb .uwb-cal__day.is-today .uwb-cal__num {
	font-weight: 700;
}

.uwb .uwb-cal__day.is-today .uwb-cal__num::after {
	content: "";
	position: absolute;
	bottom: 3px;
	left: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	transform: translateX(-50%);
}

.uwb .uwb-cal__day.is-between {
	background: var(--uwb-range, #fdf4d8);
}

/* Days inside the chosen period: text that reads on the period colour. */
.uwb .uwb-cal__day.is-between .uwb-cal__num {
	color: var(--uwb-range-text, var(--uwb-t));
}

.uwb .uwb-cal__day.is-start {
	background: linear-gradient(to right, transparent 50%, var(--uwb-range, #fdf4d8) 50%);
}

.uwb .uwb-cal__day.is-end {
	background: linear-gradient(to right, var(--uwb-range, #fdf4d8) 50%, transparent 50%);
}

/* Only an arrival so far: no band yet. */
.uwb .uwb-cal:not(:has(.is-end)) .uwb-cal__day.is-start,
.uwb .uwb-cal__day.is-start.is-end {
	background: transparent;
}

.uwb .uwb-cal__day.is-start .uwb-cal__num,
.uwb .uwb-cal__day.is-end .uwb-cal__num,
.uwb .uwb-cal__day.is-start button.uwb-cal__num:hover,
.uwb .uwb-cal__day.is-end button.uwb-cal__num:hover {
	background: var(--uwb-sel);
	color: var(--uwb-sel-text);
	font-weight: 600;
	opacity: 1;
}

.uwb .uwb-cal__day:not(.is-past):not(.is-disabled):not(.is-start):not(.is-end) button.uwb-cal__num:hover {
	background: var(--uwb-cal-hover, var(--uwb-hover));
	color: var(--uwb-t);
}

/* Availability calendars: free nights get a soft circle. */
.uwb .uwb-cal--availability .uwb-cal__day.is-available:not(.is-disabled):not(.is-start):not(.is-end):not(.is-between) .uwb-cal__num,
.uwb.uwb-cal--availability .uwb-cal__day.is-available:not(.is-disabled):not(.is-start):not(.is-end):not(.is-between) .uwb-cal__num {
	background: var(--uwb-pill);
}

.uwb .uwb-cal--availability .uwb-cal__day.is-unavailable .uwb-cal__num,
.uwb.uwb-cal--availability .uwb-cal__day.is-unavailable .uwb-cal__num {
	color: color-mix(in srgb, var(--uwb-t) 40%, var(--uwb-surface));
	text-decoration: line-through;
}

.uwb .uwb-cal__day.is-arrival .uwb-cal__num {
	font-weight: 700;
}

.uwb .uwb-cal__status {
	margin: 10px 0 0;
	color: var(--uwb-muted);
	font-size: .929em;
	text-align: center;
}

.uwb .uwb-cal__status.is-error {
	color: var(--uwb-danger);
}

.uwb .uwb-cal__legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 12px;
	color: var(--uwb-muted);
	font-size: .929em;
}

.uwb .uwb-cal__key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.uwb .uwb-cal__key i {
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

.uwb .uwb-cal__key.is-available i {
	background: var(--uwb-pill);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uwb-p) 30%, #fff);
}

.uwb .uwb-cal__key.is-unavailable i {
	background: var(--uwb-surface);
	box-shadow: inset 0 0 0 1px var(--uwb-border);
}

/* ---------- Search bar (zoekwidget) ---------- */

.uwb.uwb-searchbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	padding: 14px;
	border-radius: var(--uwb-r-lg);
	background: var(--uwb-panel, #fff);
}

.uwb-searchbar .uwb-field__label {
	font-size: 1.071em;
	font-weight: 700;
}

.uwb-searchbar .uwb-field--dates {
	flex: 1 1 220px;
	min-width: 200px;
}

.uwb-searchbar .uwb-field--guests {
	flex: 0 1 220px;
}

.uwb-searchbar select.uwb-input {
	min-height: 46px;
}

.uwb.uwb-searchbar > button.uwb-button {
	height: 46px;
	padding: 0 28px;
	font-size: 1.143em;
}

.uwb.uwb-searchbar--vertical {
	flex-direction: column;
	align-items: stretch;
}

.uwb.uwb-searchbar--vertical > * {
	flex: none !important;
	min-width: 0 !important;
}

/* A select with an icon in front, as the persons field of the html search widget. */
.uwb .uwb-select-icon {
	position: relative;
	display: block;
}

.uwb .uwb-select-icon > svg {
	position: absolute;
	top: 50%;
	left: 12px;
	color: var(--uwb-i-text);
	opacity: .65;
	pointer-events: none;
	transform: translateY(-50%);
}

.uwb .uwb-select-icon > select.uwb-input {
	padding-left: 40px;
}

/* ---------- Zoek & Boek ---------- */

.uwb.uwb-zoekboek {
	container-type: inline-size;
	padding: 20px;
	border-radius: var(--uwb-r-lg);
	background: var(--uwb-bg, #dcecd9);
}

.uwb .uwb-zoekboek__inner {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	max-width: 1400px;
	margin: 0 auto;
}

.uwb .uwb-sidebar {
	flex-shrink: 0;
	width: 320px;
	padding: 25px;
	border-radius: var(--uwb-r-lg);
	background: var(--uwb-sidebar-bg, var(--uwb-panel, #fff));
	box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
	color: var(--uwb-sidebar-text, var(--uwb-t));
}

.uwb .uwb-sidebar__title {
	margin: 0 0 20px;
	color: var(--uwb-heading, inherit);
	font-family: inherit;
	font-size: 1.714em;
	font-weight: 700;
	line-height: 1.2;
}

.uwb .uwb-searchform {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: 15px 10px;
	margin-bottom: 10px;
}

.uwb .uwb-searchform > .uwb-field--dates,
.uwb .uwb-searchform > button,
.uwb .uwb-searchform > .uwb-field--guests:nth-last-child(2):nth-child(2) {
	grid-column: 1 / -1;
}

.uwb .uwb-filters__toggle {
	display: none;
}

.uwb details.uwb-filters > summary {
	list-style: none;
}

.uwb details.uwb-filters > summary::-webkit-details-marker {
	display: none;
}

.uwb button.uwb-filters__reset {
	margin: 0 0 15px;
	padding: 10px 12px;
	border-color: var(--uwb-border);
	background: transparent;
	color: var(--uwb-t);
	font-size: 1em;
	font-weight: 600;
}

.uwb .uwb-filters {
	margin-top: 15px;
}

.uwb fieldset.uwb-filters__group {
	min-width: 0;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.uwb .uwb-filters__group legend {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 0 0 5px;
	border-bottom: 1px solid var(--uwb-border);
	color: var(--uwb-filter-head, inherit);
	font-size: 1.143em;
	font-weight: 700;
}

.uwb .uwb-filters__group label.uwb-check:last-child {
	margin-bottom: 0;
}

.uwb .uwb-results {
	flex-grow: 1;
	min-width: 0;
}

.uwb .uwb-results__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 20px;
}

.uwb .uwb-results__count {
	color: var(--uwb-heading, var(--uwb-t));
	font-size: 1.714em;
	font-weight: 700;
	line-height: 1.2;
}

.uwb .uwb-results__sort select {
	width: auto;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--uwb-i-border);
	border-radius: var(--uwb-r-input);
	background-color: var(--uwb-i-bg);
	color: var(--uwb-i-text);
	font-size: 1em;
	cursor: pointer;
}

.uwb .uwb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
}

.uwb.uwb-zoekboek[style*="--uwb-columns"] .uwb-grid {
	grid-template-columns: repeat(var(--uwb-columns), minmax(0, 1fr));
}

.uwb .uwb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--uwb-r-lg);
	background: var(--uwb-card-bg, var(--uwb-panel, #fff));
	box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
	color: var(--uwb-card-text, var(--uwb-t));
	transition: transform .2s, box-shadow .2s;
}

.uwb .uwb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.uwb .uwb-card__title {
	padding: 15px;
	border-bottom: 1px solid var(--uwb-line);
	background: var(--uwb-card-title-bg, transparent);
	color: var(--uwb-card-title, var(--uwb-t));
	font-family: inherit;
	font-size: 1.143em;
	font-weight: 700;
	line-height: 1.3;
}

.uwb .uwb-card__title a:hover {
	color: var(--uwb-accent, var(--uwb-p));
}

.uwb .uwb-card__media {
	display: block;
	height: var(--uwb-image-height, 200px);
	overflow: hidden;
	background: var(--uwb-line);
}

.uwb .uwb-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.uwb .uwb-card__body {
	position: relative;
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	padding: 15px;
}

.uwb .uwb-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 40px;
}

.uwb .uwb-card__persons {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 5px;
	color: var(--uwb-card-muted, var(--uwb-muted));
	font-size: 1em;
}

.uwb .uwb-price {
	margin-left: auto;
	text-align: right;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}

.uwb .uwb-price.is-visible {
	opacity: 1;
	visibility: visible;
}

.uwb .uwb-price__label {
	display: block;
	color: var(--uwb-card-muted, var(--uwb-muted));
	font-size: .857em;
}

.uwb .uwb-price__label:empty {
	display: none;
}

.uwb .uwb-price__amount {
	color: var(--uwb-price, inherit);
	font-size: 1.429em;
	font-weight: 700;
	line-height: 1.2;
}

.uwb .uwb-card.is-unavailable .uwb-price__amount {
	color: var(--uwb-muted);
	font-size: 1em;
	font-weight: 600;
}

.uwb .uwb-card.is-unavailable .uwb-card__media img {
	filter: grayscale(.8);
}

.uwb .uwb-card .uwb-pills {
	margin: 4px 0 12px;
}

.uwb .uwb-card__foot {
	padding-top: 12px;
}

.uwb .uwb-card__text {
	margin: 4px 0 12px;
	color: inherit;
	font-size: .929em;
	line-height: 1.5;
}

.uwb .uwb-card__foot {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}

.uwb .uwb-card__dates {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 18px;
	color: var(--uwb-card-muted, var(--uwb-muted));
	font-size: .929em;
	text-align: center;
}

/* No dates yet: say what gives a price, instead of an empty space. */
.uwb .uwb-card__dates.is-hint {
	font-style: italic;
}

/* Other dates than asked, as in the html Zoek & Boek. */
.uwb .uwb-card__dates.is-alternative {
	color: var(--uwb-p);
	font-weight: 600;
}

.uwb .uwb-alt-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	grid-column: 1 / -1;
	margin: 4px 0 -4px;
	padding-top: 18px;
	border-top: 1px solid var(--uwb-border);
	color: var(--uwb-heading, var(--uwb-t));
	font-family: inherit;
	font-size: 1.286em;
	font-weight: 700;
}

.uwb .uwb-alt-heading small {
	color: var(--uwb-muted);
	font-size: .778em;
	font-weight: 400;
}

.uwb .uwb-card__foot a.uwb-button {
	min-height: 40px;
	padding: 10px;
	font-size: .952em;
	white-space: nowrap;
}

.uwb .uwb-card__overlay {
	position: absolute;
	z-index: 10;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--uwb-surface) 80%, transparent);
}

.uwb.is-searching .uwb-card__overlay {
	display: flex;
}

.uwb .uwb-empty {
	margin-bottom: 20px;
	padding: 40px 25px;
	border-radius: var(--uwb-r-lg);
	background: var(--uwb-panel, #fff);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
	color: var(--uwb-t);
	font-size: 1.143em;
	text-align: center;
}

.uwb .uwb-empty-help {
	margin: -5px 0 20px;
	text-align: center;
}

.uwb .uwb-empty-help__actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 15px;
}

.uwb .uwb-empty-help__searching {
	color: var(--uwb-muted);
}

.uwb .uwb-alternatives__title {
	margin-bottom: 10px;
	font-weight: 600;
}

.uwb .uwb-alternatives__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.uwb button.uwb-alternative {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid var(--uwb-p);
	border-radius: var(--uwb-r);
	background: var(--uwb-surface);
	box-shadow: none;
	color: var(--uwb-t);
	font-size: 1em;
	line-height: 1.3;
	cursor: pointer;
}

.uwb button.uwb-alternative:hover {
	background: var(--uwb-pill);
	color: var(--uwb-t);
}

.uwb button.uwb-alternative span {
	color: var(--uwb-muted);
	font-size: .929em;
}

.uwb button.uwb-notice__action {
	margin-left: 10px;
	color: inherit;
	font-weight: 600;
}

/* ---------- Accommodation page ---------- */

.uwb.uwb-gallery,
.uwb.uwb-facilities,
.uwb-section {
	margin-top: 2em;
	margin-bottom: 2em;
}

.uwb.uwb-gallery {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: var(--uwb-r-lg);
}

.uwb.uwb-gallery[data-count="1"] {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.uwb.uwb-gallery[data-count="2"] {
	grid-template-rows: 1fr;
}

.uwb .uwb-gallery__item {
	display: block;
	overflow: hidden;
	background: var(--uwb-line);
}

.uwb .uwb-gallery__item:first-child {
	grid-row: 1 / -1;
}

.uwb .uwb-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .3s;
}

.uwb .uwb-gallery__item:hover img {
	transform: scale(1.03);
}

.uwb .uwb-gallery__item--more {
	display: none;
}

.uwb button.uwb-gallery__all {
	position: absolute;
	right: 14px;
	bottom: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.uwb.uwb-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	color: var(--uwb-muted);
	font-weight: 600;
}

.uwb.uwb-facts li + li::before {
	content: "·";
	margin: 0 10px;
}

.uwb.uwb-facilities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 15px 25px;
}

.uwb .uwb-facilities h3 {
	margin: 0 0 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--uwb-border);
	color: var(--uwb-t);
	font-family: inherit;
	font-size: 1em;
	font-weight: 700;
}

/* ---------- Availability calendar widget ---------- */

.uwb.uwb-availability {
	padding: 20px 12px;
	border-radius: var(--uwb-r-lg);
	background: var(--uwb-panel, #fff);
	box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
}

/* ---------- Iframe module ---------- */

.uwb.uwb-module {
	position: relative;
	min-height: 200px;
}

.uwb.uwb-module iframe {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	border: 0;
	/* The module reports its height after loading. */
}

/* Until the booking module has loaded, show that something is coming. */
.uwb .uwb-module__loading {
	position: absolute;
	top: 80px;
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--uwb-muted);
	transform: translateX(-50%);
}

.uwb.uwb-module.is-loaded .uwb-module__loading {
	display: none;
}

/* ---------- Photo viewer ---------- */

.uwb-no-scroll {
	overflow: hidden;
}

.uwb.uwb-viewer {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 14, 18, .94);
	color: #fff;
}

.uwb.uwb-viewer:focus {
	outline: none;
}

.uwb .uwb-viewer__figure {
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 80px);
}

.uwb .uwb-viewer__figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	object-fit: contain;
}

.uwb button.uwb-viewer__close,
.uwb button.uwb-viewer__prev,
.uwb button.uwb-viewer__next {
	position: absolute;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 2em;
	line-height: 1;
	cursor: pointer;
}

.uwb button.uwb-viewer__close:hover,
.uwb button.uwb-viewer__prev:hover,
.uwb button.uwb-viewer__next:hover {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}

.uwb button.uwb-viewer__close {
	top: 16px;
	right: 16px;
}

.uwb button.uwb-viewer__prev {
	left: 16px;
}

.uwb button.uwb-viewer__next {
	right: 16px;
}

.uwb .uwb-viewer__count {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	opacity: .8;
}

/* ---------- Narrow places: follow the room the widget gets ---------- */

.uwb .uwb-toolbar,
.uwb button.uwb-filters__apply {
	display: none;
}

@container (max-width: 900px) {
	.uwb .uwb-zoekboek__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.uwb .uwb-sidebar {
		width: 100%;
	}

	.uwb .uwb-results__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.uwb.uwb-zoekboek[style*="--uwb-columns"] .uwb-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

/* Phones and narrow columns: "Sort | Filters" below the search button, as in the html Zoek & Boek. */
@container (max-width: 720px) {
	.uwb .uwb-toolbar {
		display: flex;
		align-items: center;
		gap: 8px 28px;
		margin-top: 4px;
	}

	.uwb .uwb-toolbar__item,
	.uwb button.uwb-toolbar__item {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
		color: var(--uwb-p);
		font-size: 1em;
		font-weight: 600;
		line-height: 1;
		cursor: pointer;
	}

	.uwb button.uwb-toolbar__item:hover,
	.uwb button.uwb-toolbar__item:focus {
		background: none;
		color: var(--uwb-p);
	}

	.uwb button.uwb-toolbar__item[aria-expanded="true"] {
		font-weight: 700;
	}

	/* The sort control is a real select laid over the label: native picker, one tap. */
	.uwb .uwb-toolbar__item select {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		opacity: 0;
		cursor: pointer;
		appearance: none;
	}

	.uwb .uwb-results__sort {
		display: none;
	}

	/* At the bottom of the open filters: one tap back to the results. */
	.uwb button.uwb-filters__apply {
		position: sticky;
		bottom: 10px;
		display: flex;
		margin-top: 10px;
		box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	}

	.uwb .uwb-filters:not([open]) {
		margin-top: 0;
	}

	.uwb .uwb-filters[open] {
		margin-top: 10px;
	}
}

@container (max-width: 560px) {
	.uwb.uwb-zoekboek {
		padding: 8px;
	}

	.uwb .uwb-zoekboek__inner {
		gap: 16px;
	}

	.uwb .uwb-sidebar {
		padding: 16px;
	}

	.uwb .uwb-sidebar__title {
		display: none;
	}

	.uwb .uwb-results__count {
		font-size: 1.429em;
	}

	.uwb .uwb-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}

/* Bigger tap targets for filters on touch screens. */
@media (pointer: coarse) {
	.uwb label.uwb-check {
		min-height: 40px;
		margin: 0;
	}

	.uwb .uwb-check input {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 720px) {
	.uwb.uwb-searchbar > * {
		flex: 1 1 100% !important;
		min-width: 0 !important;
	}

	/* Phones: the calendar is a sheet from the bottom of the screen. */
	.uwb .uwb-popover {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		max-width: none;
		max-height: 88vh;
		max-height: 88dvh;
		padding: 16px 12px 0;
		overflow-y: auto;
		border-radius: calc(var(--uwb-r) * 2) calc(var(--uwb-r) * 2) 0 0;
		box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
		overscroll-behavior: contain;
	}

	.uwb .uwb-popover .uwb-cal__months {
		grid-template-columns: minmax(0, 1fr);
	}

	.uwb .uwb-popover .uwb-cal__body {
		position: relative;
		display: block;
	}

	/* Arrows next to the month name, not halfway down the side. */
	.uwb .uwb-popover button.uwb-cal__nav {
		position: absolute;
		z-index: 2;
		top: -10px;
		width: 44px;
		height: 44px;
		padding: 0;
	}

	.uwb .uwb-popover button.uwb-cal__prev {
		left: 0;
	}

	.uwb .uwb-popover button.uwb-cal__next {
		right: 0;
	}

	.uwb .uwb-popover .uwb-cal__day {
		height: 46px;
	}

	.uwb .uwb-popover .uwb-cal__num,
	.uwb .uwb-popover button.uwb-cal__num {
		width: 42px;
		height: 42px;
	}

	.uwb .uwb-popover__actions {
		position: sticky;
		bottom: 0;
		margin: 8px -12px 0;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: var(--uwb-surface);
	}

	.uwb .uwb-cal__months {
		grid-template-columns: minmax(0, 1fr);
	}

	.uwb.uwb-gallery {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		aspect-ratio: 4 / 3;
	}

	.uwb .uwb-gallery__item:not(:first-child) {
		display: none;
	}

	.uwb .uwb-viewer__figure {
		max-width: 100vw;
	}

	.uwb button.uwb-viewer__prev,
	.uwb button.uwb-viewer__next {
		top: auto;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uwb *,
	.uwb .uwb-card {
		transition: none !important;
		animation: none !important;
	}
}

/* Keep native controls usable in themes that remove focus outlines. */
.uwb .uwb-toolbar__item:focus-within {
	outline: 2px solid var(--uwb-focus);
	outline-offset: 3px;
}

.uwb .uwb-card__title a:focus-visible {
	outline-offset: 1px;
}


.uwb .uwb-cal__month {
	min-width: 0;
}

.uwb .uwb-cal__days {
	min-height: 240px;
	align-content: start;
}

@media (max-width: 720px) {
	.uwb .uwb-popover .uwb-cal__days {
		min-height: 276px;
	}
}
