body:has(dialog[open]) {
    overflow: hidden;
}
body:has(dialog[open]) > main {
    scrollbar-gutter: stable;
    overflow: hidden;
}
/* 
 * Background of Searchform
 */
.searchform-small-wrapper {
    width: fit-content;
    margin: 0 auto;
    background-color: var(--beon-fp-search-bg-color);
    /* padding: 7px 8px; */
    border: var(--beon-fp-search-border);
    border-radius: var(--beon-fp-search-border-radius);
}

/* 
 * Generell Stylings of searchform
 */
#searchform.frontpage-searchform {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    /* WARNING Updated code start */
    background: var(--beon-bg-color);
    padding-right: 8px;
    border-radius: var(--beon-border-radius-large);
    /* WARNING Updated code end */
}
#searchform.frontpage-searchform .form-group {
    /* WARNING Updated code start */
    /* border: var(--beon-fp-search-info-border); */
    /* WARNING Updated code end */
    border-radius: var(--beon-fp-search-border-radius);
    color: var(--beon-fp-search-info-text);
    background-color: var(--beon-fp-search-info-bg-color);
    cursor: pointer;
    /* WARNING Updated code start */
    height: 65px;/* FIX Frontpage */
    /* WARNING Updated code end */
    font: var(--beon-fp-search-font);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* WARNING Updated code start */
    min-width: 180px;
    /* WARNING Updated code end */
}
/* WARNING Updated code start */
#searchform.frontpage-searchform .form-group.wrap-regions::after, #searchform.frontpage-searchform .form-group.wrap-guests::before{
    content: '';
    height: 100%;
    border-right: var(--beon-search-info-border);
}
/* WARNING Updated code end */
#searchform.frontpage-searchform .icon-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-right: 10px;
}
#searchform.frontpage-searchform .wrap-guests .icon-wrapper {
    padding-left: 20px;/* FIX Frontpage */
}
#searchform.frontpage-searchform .icon-wrapper img {
    height: 18px;
    max-width: 20px;
    filter: var(--beon-fp-search-info-icon-filter);
}
#searchform.frontpage-searchform .dateInput {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 25px; /* FIX Frontpage */
    background-color: transparent;
    color: var(--beon-fp-search-info-text);
    font: var(--beon-fp-search-font);
}
#searchform.frontpage-searchform #guests {
	width: 100%;
	display: flex;
	align-items: center;
    padding: 10px 25px 10px 50px;
    margin-left: -50px;/* FIX Frontpage */
    z-index: 1;
    background-color: transparent;
    color: var(--beon-fp-search-info-text);
    font: var(--beon-fp-search-font);
}
#searchform.frontpage-searchform .button_btn, #searchform.frontpage-searchform .toggleGuests #calcGuests, #searchform.frontpage-searchform #nights-wrapper #calender_select {
    border: var(--beon-fp-search-button-border);
    border-radius: var(--beon-fp-search-border-radius);
    color: var(--beon-fp-search-button-text);
    background-color: var(--beon-fp-search-button-bg-color);
    cursor: pointer;
    padding: 10px 25px;
    font: var(--beon-fp-search-font);
}
#searchform.frontpage-searchform .button_btn {
    /* WARNING Updated code start */
    height: 50px;
    min-width: 200px;
    font-weight: 700;
    /* WARNING Updated code end */
}
/*
 * Styling of Popups
 */
/* Popup-Buttons & other buttons*/
#searchform.frontpage-searchform .toggleGuests #calcGuests, #searchform.frontpage-searchform #nights-wrapper #calender_select {
    /* WARNING Updated code start */
    height: 50px;
    /* WARNING Updated code end */
}
#searchform.frontpage-searchform .toggleGuests #calcGuests {
	width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
#searchform.frontpage-searchform .button_btn:hover, #searchform.frontpage-searchform .toggleGuests #calcGuests:hover, #searchform.frontpage-searchform #nights-wrapper #calender_select:hover {
    color: var(--beon-fp-search-button-text-hover);
    background-color: var(--beon-fp-search-button-bg-color-hover);
}
#searchform.frontpage-searchform .button_btn img, #searchform.frontpage-searchform .toggleGuests #calcGuests img, #searchform.frontpage-searchform #nights-wrapper #calender_select img {
    height: 12px;
    max-width: 10px;
    left: 0px;
    position: relative;
    transition: left ease-out 0.3s;
  /* WARNING Updated code start */
    filter: var(--beon-icon-filter-white);
    /* WARNING Updated code end */
}
#searchform.frontpage-searchform .button_btn:hover img, #searchform.frontpage-searchform .toggleGuests #calcGuests:hover img, #searchform.frontpage-searchform #nights-wrapper #calender_select:hover img {
    left: 5px;
}
/* Popup-Overlay */
.beon-fp-popup::backdrop {
    background-color: var(--beon-popup-overlay-bg-color);
    backdrop-filter: var(--beon-popup-overlay-backdrop-filter);
}
/* Popup */
.beon-fp-popup {
    background-color: transparent;
    border: none;
    padding: 16px;
}
.beon-fp-popup-main {
    border: var(--beon-popup-border);
    border-radius: var(--beon-popup-border-radius);
    background-color: var(--beon-popup-bg-color);
    padding: 30px;
}
.beon-fp-popup #calendar-popup-close, .beon-fp-popup #guest-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 16px;
    right: calc(-1 * (100% - 16px));
    width: 32px;
    height: 32px;
    padding: 10px;
    cursor: pointer;
    border: var(--beon-popup-close-border);
    border-radius: var(--beon-popup-close-border-radius);
    box-shadow: var(--beon-popup-close-shadow);
    background-color: var(--beon-popup-close-bg-color);
}
.beon-fp-popup #calendar-popup-close img, .beon-fp-popup #guest-popup-close img {
    filter: var(--beon-popup-close-icon-filter);
}
.beon-fp-popup-headline {
    display: flex;
    align-items: center;
    font: var(--beon-popup-headline-font);
    gap: 5px;
    padding-bottom: 15px;
    color:var(--beon-primary-color);
}
.beon-fp-popup-headline img {
    height: 23px;
    filter: var(--beon-popup-headline-icon-filter);
}
hr.beon-fp-hr {
    color: var(--beon-popup-hr);
    background-color: var(--beon-popup-hr);
    height: 1px;
    border: none;
    margin: 0;
}
.beon-fp-adults, .beon-fp-children, .beon-fp-babys, .beon-fp-pets {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 9px;
}
.beon-fp-label {
    color:var(--beon-primary-color);
    font-size: 14px;
    font-weight: 600;
    width: 120px;
}
#searchform.frontpage-searchform .toggleGuests {
    cursor: default;
}
#searchform.frontpage-searchform .toggleGuests label {
	margin: 0;
    display: flex;
    width: 25px;
    align-items: center;
    justify-content: center;
    color: var(--beon-primary-color);
    font-size: 14px;
    font-weight: 600;
}
#searchform.frontpage-searchform .toggleGuests button.inc, #searchform.frontpage-searchform .toggleGuests button.dec {
    background-color: var(--beon-guest-icon-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--beon-guest-icon-border-radius);
    outline: none;
    height: 25px;
    width: 25px;
    padding: 0;
}
#searchform.frontpage-searchform .toggleGuests button:focus-visible{
    outline: 1px solid #F5C350 !important;

}
#searchform.frontpage-searchform .toggleGuests button.inc.disabled, #searchform.frontpage-searchform .toggleGuests button.dec.disabled {
    background-color: var(--beon-guest-icon-bg-color-disabled);
    cursor: not-allowed;
}
#searchform.frontpage-searchform .toggleGuests button.inc img, #searchform.frontpage-searchform .toggleGuests button.dec img{
    filter: var(--beon-guest-icon-filter);
    width: 11px;
    height: 11px;
}
#searchform.frontpage-searchform .toggleGuests button.inc.disabled img, #searchform.frontpage-searchform .toggleGuests button.dec.disabled img{
    filter: var(--beon-guest-icon-filter-disabled);
}
/* Optional display version for pets - if pets_search_switch is true */
#searchform.frontpage-searchform .beon-fp-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}
#searchform.frontpage-searchform .beon-fp-switch input {
    opacity: 0;
    height: 0;
    width: 0;
}
#searchform.frontpage-searchform .beon-fp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--beon-guest-switch-background-color);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: var(--beon-guest-switch-background-border-radius);
}
#searchform.frontpage-searchform .beon-fp-slider:before {
    position: absolute;
    content: "";
    height: 25px;
    width: 25px;
    left: 0px;
    bottom: 0px;
    background-color: var(--beon-guest-switch-color);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: var(--beon-guest-switch-border-radius);
}
#searchform.frontpage-searchform input:checked + .beon-fp-slider {
    background-color: var(--beon-guest-switch-background-color-active);
}
#searchform.frontpage-searchform input:checked + .beon-fp-slider:before {
    background-color: var(--beon-guest-switch-color-active);
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
/* Calendar & Nights Select */
#searchform.frontpage-searchform #calender-wrapper {
    cursor: default;
}
#searchform.frontpage-searchform #nights-wrapper {
	justify-content: space-between;
	display: none;/*will be displayed as flex, as soon as dates are selected*/
    align-items: end;
    gap: 50px;
}
#searchform.frontpage-searchform #nights-wrapper #calender_select, #searchform.frontpage-searchform #nights-wrapper #calcNights {
    width: 50%;
}
#searchform.frontpage-searchform #calcNights {
	display: flex;
    gap: 10px;
	justify-content: space-between;
	align-items: center;
    /* width: -webkit-fill-available; */
}

#searchform.frontpage-searchform .nightselect-wrapper  {
    position: relative;
    cursor: pointer;
}
#searchform.frontpage-searchform .nights_min-wrapper .select2-selection::before {
	content: "Min.";
    align-self: flex-start;
	padding-right: 5px;
	font: var(--beon-cal-nights-mini-text-font);
    color: var(--beon-primary-color);
}
#searchform.frontpage-searchform .nights_max-wrapper .select2-selection::before {
	content: "Max.";
    align-self: flex-start;
	padding-right: 5px;
	font: var(--beon-cal-nights-mini-text-font);
    color: var(--beon-primary-color);
}
#calender-wrapper .select2-dropdown {
    bottom: 60px;
}
#searchform.frontpage-searchform .nightselect-wrapper .select2-container .select2-selection--single {
    flex-direction: column;
}
#searchform.frontpage-searchform .nightselect-wrapper .select2-container .select2-selection--single .select2-selection__rendered {
    /* color: var(--beon-cal-nights-text-color); */
    font: var(--beon-cal-nights-text-font);
}
#searchform.frontpage-searchform .nightselect-wrapper .select2 {
    border: var(--beon-cal-nights-border);
    border-radius: var(--beon-cal-nights-border-radius);
    padding: 5px 15px;
    padding-right: 25px;
	user-select: none;
    min-width: 120px;
}
#searchform.frontpage-searchform .nightselect-wrapper .select2-selection__rendered {
    padding-top: 5px;
    padding-left: 0px;
    color:var(--beon-primary-color);
}
#searchform.frontpage-searchform .nightselect-wrapper .select2-selection__rendered::after {
    content: "";
    background: url(/wp-content/themes/deine-ferien/assets/images/arrow_down.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    width: 10px;
    height: 15px;
    top: 50%;
    transform: translate(0, -50%);
    right: 15px;
    filter:var(--beon-icon-filter-text-color);
}
.select2-container--default .select2-results>.select2-results__options {
    border-radius: 5px;
	background-color: var(--beon-popup-bg-color);
	border: 1px solid var(--beon-border-color);
	min-width: 120px;
	max-height: 200px;
	overflow-y: auto;
    scrollbar-color: var(--beon-border-color) var(--beon-popup-bg-color);
    scrollbar-width: thin;
}
.select2-results__option {
	border-bottom: 1px solid var(--beon-border-color);
	padding: 7px;
    padding-left: 12px;
    text-align: left;
    color: var(--beon-fp-search-info-text);
    font: var(--beon-fp-search-font);
}
#calender-wrapper .select2-results__option {
    color: var(--beon-cal-nights-text-color);
    font: var(--beon-cal-nights-text-font);
}
/* #searchform.frontpage-searchform .select2-results__option {
    color: var(--beon-fp-search-info-text);
	background-color: var(--beon-fp-search-info-bg-color);
	border-top: 1px solid var(--beon-border-color);
    font: var(--beon-fp-search-font);
}
#searchform.frontpage-searchform .select2-results__option:hover, .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color:#FFF;
	background-color: var(--beon-primary-color);
} */
.select2-results__option:hover, .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: var(--beon-fp-search-info-text);
    background-color: var(--beon-primary-color);
}
#calender-wrapper .select2-results__option:hover, #calender-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: var(--beon-cal-nights-hover-text-color);
    background-color: var(--beon-cal-nights-hover-bg-color);
}


/*Select2 ( for the regions) */
#searchform.frontpage-searchform .wrap-regions .select2-container {
	height: 100%;
    width: 100% !important;
    max-width: 300px;/* FIX Frontpage */
}
#searchform.frontpage-searchform .select2-container .select2-dropdown {
    border: var(--beon-fp-search-info-border);
    border-radius: var(--beon-border-radius-small);
    overflow: hidden;
}
#searchform.frontpage-searchform .select2-container--default .select2-selection--single {
	border: none;
	background: transparent;
}

#searchform.frontpage-searchform .select2-container .select2-selection--single {
	height: 100%;
	display: flex;
	align-items: center;
    width: 100%;
    /* justify-content: space-around; */
}

#searchform.frontpage-searchform span.select2-selection__arrow {
	opacity: 0;
}



/*
 * Styling of Regionselect
 */
#searchform.frontpage-searchform .form-group.wrap-regions {
    position: relative;
    padding: 0;
}
#searchform.frontpage-searchform .wrap-regions .icon-wrapper {
    position: absolute;
    left: 25px;
}
#searchform.frontpage-searchform .wrap-regions .select2-selection__rendered {
    line-height: normal;
    color: var(--beon-fp-search-info-text);
    padding-left: 50px;/* FIX Frontpage */
    padding-right: 20px;/* FIX Frontpage */
}
/* WARNING Updated code start */
.komfart_btn{
	display: flex;
	border-radius: var(--beon-listing-img-marker-border-radius);
	box-shadow: var(--beon-listing-img-marker-shadow);
	padding: 5px 12px 5px 4px;
    background: #FFF;
	font: var(--beon-listing-img-marker-font);
	cursor: pointer;
	align-items: center;
	gap: 4px;
    color: var(--beon-primary-color);
    height: 30px;

	& img{
		width: 33px !important;
		height: 25px !important;
	}

    & .komfart_tooltip{
        display: none;
        border-radius: 10px;
        padding: 5px;
        background: #FFF;
        align-items: center;
        color: var(--beon-primary-color);
        position: absolute;
        top: 50px;
        text-align: center;
        width: 160px;
        cursor: default;
        transition: all ease-out 0.3s;

		&:before{
			content: "";
			position: absolute;
			bottom: 100%;
			margin-top: -1px;
			left: 26px;
			border-width: 10px;
			border-style: solid;
			border-color: transparent transparent white transparent;
		}
    }
	
    &:hover .komfart_tooltip{
        display: block;
    }
}

/* WARNING Updated code end */
@media only screen and (max-width: 1200px) {

    .searchform-small-wrapper {
        background-color: var(--beon-fp-search-bg-color-m);
        /* padding: 7px 8px; */
        padding: 0px;
        border: var(--beon-fp-search-border-m);
        border-radius: var(--beon-fp-search-border-radius-m);
    }
    .beon-fp-popup {
        max-width: 90vw;
    }
    .beon-fp-popup-main {
        padding: 20px;
    }
    .toggleGuests {
        min-width: 50vw;
    }
    .beon-fp-popup #calendar-popup-close, .beon-fp-popup #guest-popup-close {
        /* top: -32px; */
        /* right: calc(-1*(100% + 0px)); */
    }
    #searchform.frontpage-searchform {
        flex-wrap: wrap;
        max-width: 320px;
        gap: 10px;
        justify-content: space-between;
        /* WARNING Updated code start */
        padding-right: 0px;
        background-color: transparent;
        border-radius: 0px;
        /* WARNING Updated code end */
    }
    /* WARNING Updated code start */
    #searchform.frontpage-searchform .form-group.wrap-regions::after, #searchform.frontpage-searchform .form-group.wrap-guests::before{
        display: none;
    }
    /* WARNING Updated code end */
    #searchform.frontpage-searchform .dateInput {
        justify-content: left;
    }
    #nights-wrapper {
		flex-wrap: wrap;
        gap: 15px;
	}
    #searchform.frontpage-searchform #nights-wrapper #calender_select, #searchform.frontpage-searchform #nights-wrapper #calcNights {
        width: 100%;
    }
    .select-items  {
        z-index: 1;
    }
    #searchform.frontpage-searchform .form-group:not(.wrap-guests) {
        width: 100%;
        /* WARNING Updated code start */
        height: 45px;
        /* WARNING Updated code end */
    }
    #searchform.frontpage-searchform .wrap-guests, #searchform.frontpage-searchform .button_btn {
        width: calc(50% - 5px);
        min-width: unset;
        /* WARNING Updated code start */
        height: 45px;
        /* WARNING Updated code end */
    }
}
@media only screen and (max-width: 750px){
    .toggleGuests {
        min-width: 80vw;
    }
}
