/* Weichaer Hof Online-Buchung – values from WhStayFilters.vue, StayList.vue and BookingBox.vue (Laravel theme).
   Cards and the booking box reuse weichaer-unterkuenfte's whuk.css (the .whuk wrapper provides the colour variables). */
/* The availability box (.whbu-box) sits outside a .whbu wrapper, so it gets the variables too. */
.whbu, .whbu-box { --whbu-gold-deep: #9C7526; --whbu-gold-icon: #8A6A24; --whbu-forest-soft: #41543F; --whbu-page: #F2EDE3; --whbu-faint: #8D8776; --whbu-fact: #4B483B; }
.whbu *, .whbu *::before, .whbu *::after { box-sizing: border-box; }
.whbu button { font-family: inherit; cursor: pointer; }
.whbu .whbu-icon { flex-shrink: 0; }

/* Layout: a 340px rail beside the card grid from 1081px up */
.whbu-search__layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(36px, 4vw, 72px); }
@media (min-width: 1081px) { .whbu-search__layout { grid-template-columns: 340px minmax(0, 1fr); } }
.whbu-results { min-width: 0; }
.whbu-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: clamp(18px, 2vw, 26px); min-width: 0; }
@media (min-width: 861px) { .whbu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.whbu-item { display: flex; min-width: 0; }
.whbu-item > .whuk-card { flex: 1; min-width: 0; }
.whbu-item[data-state="booked"] .whuk-card { opacity: .72; }
/* whbu.js sets .whbu--refresh when a filter change shows other units: the visible cards fade up once. */
@keyframes whbu-in { from { opacity: 0; translate: 0 8px; } }
.whbu--refresh .whbu-item:not([hidden]) { animation: whbu-in .26s ease-out both; }
.whbu-live { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--whbu-forest-soft); }

/* Filter rail */
/* Buttons in the rail inherit the text's line height (27.2px as Laravel), not the theme's button 1.5. */
.whbu-filters button { line-height: inherit; font-family: inherit; }
.whbu-filters { line-height: 27.2px; display: flex; flex-direction: column; align-self: start; border: 1px solid rgba(38, 36, 26, .16); border-radius: 22px; scrollbar-width: thin; scrollbar-color: rgba(138, 106, 36, .45) transparent; }
/* Sticky and scrolling from 1081px. The scrollbar runs the full height of the padding box, so the 22px corners would cut
   it: 12px transparent borders above and below keep it clear of the curve, and the visible 1px line is a box-shadow
   (1px margin keeps it on the same pixels as the border it replaces). */
@media (min-width: 1081px) {
	.whbu-filters { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; margin: 1px; border-color: transparent; border-width: 12px 0; box-shadow: 0 0 0 1px rgba(38, 36, 26, .16); }
	.whbu-filters .whbu-block--first { padding-top: 12px; }
	.whbu-filters .whbu-foot { padding-bottom: 8px; }
	/* weichaer-hof's notice bar (41px, sticky at the bottom) would cover the end of the rail. */
	body:has(.whhof-notice) .whbu-filters { max-height: calc(100vh - 181px); }
}
.whbu-block { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-bottom: 1px solid rgba(38, 36, 26, .14); }
/* The type radios sit in their own group: same 4px rhythm as the options beside it, as the Laravel filter panel. */
.whbu-block [role="radiogroup"] { display: flex; flex-direction: column; gap: 4px; }
.whbu-block--first { gap: 14px; padding: 24px 24px 22px; }
.whbu-label { font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--whbu-gold-deep); }
.whbu-label--spaced { margin-bottom: 8px; }
.whbu-trigger { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; border: 1px solid rgba(38, 36, 26, .22); border-radius: 12px; background: var(--whuk-card); color: var(--whuk-ink); text-align: left; transition: border-color .2s ease; }
.whbu-trigger:hover { border-color: rgba(156, 117, 38, .8); }
.whbu-trigger > .whbu-icon:first-child { color: var(--whbu-gold-icon); }
.whbu-trigger > .whbu-icon:last-child { color: var(--whuk-muted); transition: transform .3s ease; }
.whbu-trigger[aria-expanded="true"] > .whbu-icon:last-child { transform: rotate(180deg); }
.whbu-trigger__label { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; font-size: 16px; font-weight: 600; color: var(--whuk-ink); }
.whbu-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.whbu-collapse > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .3s; }
.whbu-collapse.is-open { grid-template-rows: 1fr; }
.whbu-collapse.is-open > div { visibility: visible; transition-delay: 0s; }
.whbu-panel { display: flex; flex-direction: column; border: 1px solid rgba(38, 36, 26, .18); border-radius: 14px; background: var(--whuk-card); }
.whbu-calendar { gap: 10px; padding: 14px; }
.whbu-guests { gap: 14px; padding: 16px; }
.whbu-calendar__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.whbu-calendar__month { font-size: 16px; font-weight: 600; color: var(--whuk-forest); }
.whbu-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.whbu-calendar__weekdays span { text-align: center; font-size: 16px; color: var(--whbu-faint); }
.whbu-day { display: inline-flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 16px; font-weight: 400; color: var(--whuk-ink); transition: background-color .15s ease; }
.whbu-day:hover { background: rgba(196, 81, 45, .22); }
.whbu-day.is-today { font-weight: 700; }
.whbu-day.is-range { background: rgba(196, 81, 45, .13); }
.whbu-day.is-range:hover { background: rgba(196, 81, 45, .22); }
.whbu-day.is-past { color: #C8C2B0; pointer-events: none; }
.whbu-day.is-edge { border-radius: 999px; background: var(--whuk-terra); color: #F5EFDF; font-weight: 700; }
.whbu-calendar__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(38, 36, 26, .12); }
.whbu-calendar__hint { font-size: 16px; font-weight: 500; color: var(--whbu-forest-soft); }
.whbu-link { padding: 0; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--whbu-gold-deep); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.whbu-link:hover { color: var(--whuk-terra); }

/* Round +/- and arrow buttons, steppers */
.whbu-round { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex-shrink: 0; border: 1px solid rgba(38, 36, 26, .25); border-radius: 999px; background: transparent; color: var(--whuk-ink); transition: all .2s ease; }
.whbu-round:hover { border-color: var(--whuk-terra); color: var(--whuk-terra); }
.whbu-round:active { transform: scale(.95); }
.whbu-round:disabled { pointer-events: none; opacity: .35; }
.whbu-round--minus, .whbu-round--plus { border-color: rgba(38, 36, 26, .3); }
.whbu-round--minus::before, .whbu-round--plus::before, .whbu-round--plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; }
.whbu-round--minus::before, .whbu-round--plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.whbu-round--plus::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.whbu-stepper { display: inline-flex; align-items: center; gap: 12px; }
.whbu-stepper__value { min-width: 22px; text-align: center; font-size: 16px; font-weight: 700; color: var(--whuk-ink); }
.whbu-stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.whbu-stepper-row--sep { padding-top: 14px; border-top: 1px solid rgba(38, 36, 26, .12); }
.whbu-stepper-row__text, .whbu-guestbox__text { display: flex; flex-direction: column; }
.whbu-stepper-row__title { font-size: 16px; font-weight: 600; color: var(--whuk-ink); }
.whbu-stepper-row__hint { font-size: 16px; color: var(--whbu-faint); }
.whbu-guests__hint { padding-top: 12px; border-top: 1px solid rgba(38, 36, 26, .12); font-size: 16px; line-height: 22px; color: var(--whbu-faint); }

/* Type radios, amenity checkboxes */
.whbu-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 2px; border: 0; background: none; text-align: left; transition: opacity .2s ease; }
@media (hover: hover) { .whbu-option:hover { opacity: .8; } }
.whbu-option__text { font-size: 16px; font-weight: 500; color: var(--whuk-ink); }
.whbu-radio, .whbu-check { width: 20px; height: 20px; flex-shrink: 0; border: 1px solid rgba(38, 36, 26, .35); background: var(--whuk-card); transition: all .2s ease; }
.whbu-radio { border-radius: 999px; }
.whbu-check { border-radius: 6px; }
.whbu-option[aria-checked="true"] .whbu-radio { border-color: var(--whuk-terra); background: var(--whuk-terra); box-shadow: inset 0 0 0 4px var(--whuk-card); }
.whbu-option[aria-pressed="true"] .whbu-check { border-color: var(--whuk-terra); background: var(--whuk-terra); }
.whbu-option:focus-visible, .whbu-trigger:focus-visible, .whbu-round:focus-visible, .whbu-day:focus-visible, .whbu-link:focus-visible { outline: 2px solid var(--whuk-terra); outline-offset: 2px; }
.whbu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.whbu-foot__result { font-size: 16px; font-weight: 600; color: var(--whbu-forest-soft); }
@media (min-width: 1081px) { .whbu-foot__result, .whbu-foot .whbu-link { white-space: nowrap; } }

/* Empty state */
.whbu-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 30px; border: 1px dashed rgba(38, 36, 26, .3); border-radius: 22px; background: var(--whuk-card); text-align: center; }
.whbu-empty__title { font-family: var(--whuk-serif); font-size: 26px; color: var(--whuk-forest); }
.whbu-empty__text { max-width: 440px; font-size: 18px; color: var(--whuk-muted); }
.whbu-empty__reset { margin-top: 6px; padding: 13px 24px; border: 1px solid var(--whuk-forest); border-radius: 12px; background: transparent; font-size: 16px; font-weight: 600; color: var(--whuk-forest); transition: all .2s ease; }
.whbu-empty__reset:hover { background: var(--whuk-forest); color: #F5EFDF; }

/* Live chip on a card */
.whbu-status { align-self: center; padding: 5px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(65, 84, 63, .14); color: var(--whbu-forest-soft); }
.whbu-status--free { background: rgba(65, 84, 63, .14); color: var(--whbu-forest-soft); }
.whbu-status--booked { background: rgba(38, 36, 26, .1); color: var(--whuk-muted); }
.whbu-status--min_stay, .whbu-status--max_stay, .whbu-status--no_arrival { background: rgba(217, 164, 65, .2); color: #7A5A12; }

/* Booking box (the .whuk-book shell comes from whuk.css) */
.whbu-box .whbu-box__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.whbu-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.whbu-field__label { font-size: 16px; font-weight: 600; line-height: 27.2px; color: var(--whuk-ink); }
.whbu-field input { width: 100%; appearance: none; padding: 13px 14px; border: 1px solid rgba(38, 36, 26, .22); border-radius: 12px; background: var(--whbu-page); font: inherit; font-size: 16px; font-weight: 500; color: var(--whuk-ink); outline: none; }
.whbu-field input:focus { border-color: var(--whuk-terra); }
.whbu-box__error { margin: 0; font-size: 16px; color: var(--whuk-terra); }
.whbu-guestbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid rgba(38, 36, 26, .22); border-radius: 12px; background: var(--whbu-page); }
.whbu-box__status { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; background: rgba(65, 84, 63, .12); color: var(--whbu-forest-soft); }
.whbu-box__status--booked { background: rgba(38, 36, 26, .08); color: var(--whuk-text); }
.whbu-box__status--min_stay, .whbu-box__status--max_stay, .whbu-box__status--no_arrival { background: rgba(217, 164, 65, .18); color: #7A5A12; }
.whbu-summary { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--whuk-rule); }
.whbu-summary__row { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; color: var(--whbu-fact); }
.whbu-summary__sum { font-weight: 600; color: var(--whuk-ink); white-space: nowrap; }
.whbu-summary__incl { font-weight: 600; color: var(--whbu-forest-soft); white-space: nowrap; }
.whbu-summary__rule { height: 1px; background: linear-gradient(90deg, #E4BE62, rgba(217, 178, 102, .15)); }
.whbu-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.whbu-summary__total-label { font-size: 16px; font-weight: 600; color: var(--whuk-ink); }
.whbu-summary__from { font-size: 16px; color: var(--whuk-subtle); }
.whbu-summary__total-val { font-family: var(--whuk-serif); font-size: 26px; font-weight: 600; color: var(--whuk-forest); }
.whbu-box .whuk-book__cta { padding: 16px 24px; font-size: 18px; }
.whbu-box .whuk-book__cta.is-disabled { pointer-events: none; opacity: .5; }
.whbu-box__note { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 16px; color: var(--whuk-subtle); }
.whbu-box__note .whbu-icon { flex-shrink: 0; color: var(--whuk-forest); }
/* "Anfrage per E-Mail senden" as Laravel: forest outline, 16px semibold, fills on hover. */
.whbu-box .whbu-box__mail { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border: 1px solid var(--whuk-forest); border-radius: 12px; background: transparent; color: var(--whuk-forest); font-size: 16px; font-weight: 600; text-decoration: none; transition: all .25s; }
.whbu-box .whbu-box__mail:hover, .whbu-box .whbu-box__mail:focus-visible { background: var(--whuk-forest); color: #F2EFE0; }

/* Standalone button */
.whbu-button { display: flex; }
.whbu-button--center { justify-content: center; }
.whbu-button--right { justify-content: flex-end; }
.whbu-btn--outline { border: 1px solid var(--whuk-forest); background: transparent; color: var(--whuk-forest); }
.whbu-btn--outline:hover, .whbu-btn--outline:focus-visible { background: var(--whuk-forest); color: #F5EFDF; }

@media (prefers-reduced-motion: reduce) {
	.whbu-collapse, .whbu-collapse > div, .whbu-round, .whbu-trigger > .whbu-icon:last-child { transition: none; }
	.whbu--refresh .whbu-item:not([hidden]) { animation: none; }
}

/* Hello Elementor paints every button #c36 on :hover/:focus ([type=button]:hover is 0,2,0). Each state restates
   the designed look with a doubled class (0,3,0), so the theme never wins whatever the stylesheet order. */
.whbu-option.whbu-option:is(:hover, :focus, :active) { background: none; color: inherit; }
.whbu-trigger.whbu-trigger:is(:hover, :focus, :active) { background: var(--whuk-card); color: var(--whuk-ink); }
.whbu-link.whbu-link:is(:hover, :focus, :active) { background: none; color: var(--whbu-gold-deep); }
.whbu-link.whbu-link:hover { color: var(--whuk-terra); }
.whbu-round.whbu-round:is(:hover, :focus, :active) { background: transparent; color: var(--whuk-ink); }
.whbu-round.whbu-round:hover { color: var(--whuk-terra); }
.whbu-day.whbu-day:is(:hover, :focus, :active) { background: rgba(196, 81, 45, .22); color: var(--whuk-ink); }
.whbu-day.is-edge.is-edge:is(:hover, :focus, :active) { background: var(--whuk-terra); color: #F5EFDF; }
.whbu-empty__reset.whbu-empty__reset:is(:hover, :focus, :active) { background: var(--whuk-forest); color: #F5EFDF; }
