#searchform.frontpage-searchform {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
}
#searchform.frontpage-searchform .form-group {
    border: var(--beon-fp-search-info-border);
    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;
    height: 45px;/* FIX Frontpage */
    font: var(--beon-fp-search-font);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 150px;
}
#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 */
}
#searchform.frontpage-searchform #guests {
	width: 100%;
	display: flex;
	align-items: center;
    padding: 10px 25px 10px 50px;
    margin-left: -50px;/* FIX Frontpage */
    z-index: 1;
}
#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 40px;
    font: var(--beon-fp-search-font-medium);
}
#searchform.frontpage-searchform .button_btn {
    height: 45px;
}
#searchform.frontpage-searchform .toggleGuests #calcGuests, #searchform.frontpage-searchform #nights-wrapper #calender_select {
    height: 45px;
}
#searchform.frontpage-searchform .toggleGuests #calcGuests {
	width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 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;
}
#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;
}
#beon-fp-popup-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: var(--beon-popup-overlay-bg-color);
    backdrop-filter: var(--beon-popup-overlay-backdrop-filter);
    z-index: 3;
    top: 0;
    left: 0;
}
.beon-fp-popup {
    position: fixed;
    border: var(--beon-popup-border);
    border-radius: var(--beon-popup-border-radius);
    background-color: var(--beon-popup-bg-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    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: -42px;
    right: calc(-1 * (100% + 10px));
    width: 32px;
    height: 32px;
    padding: 10px;
    z-index: 2;
    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;
    margin-top: -32px;
    font: var(--beon-popup-headline-font);
    gap: 5px;
    padding-bottom: 15px;
}
.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 {
    width: 120px;
}
#searchform.frontpage-searchform .toggleGuests {
    display: none;
    cursor: default;
}
#searchform.frontpage-searchform .toggleGuests label {
	margin: 0;
    display: flex;
    width: 25px;
    align-items: center;
    justify-content: center;
}
#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: 30px;
    width: 30px;
    padding: 0;
    border-color: transparent;
}
#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: 13px;
    height: 13px;
}
#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: 56px;
    height: 30px;
}
#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: 30px;
    width: 30px;
    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 {
	display: none;
    cursor: default;
}
#searchform.frontpage-searchform #litepicker-wrapper {
    margin-top: -37px;
}
#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;
	justify-content: space-between;
	align-items: center;
    /* width: -webkit-fill-available; */
}
#searchform.frontpage-searchform .nightselect-wrapper select {
	display: none;/*hide original SELECT element:*/
}
#searchform.frontpage-searchform .nightselect-wrapper  {
    position: relative;
    cursor: pointer;
}
#searchform.frontpage-searchform .nights_min-wrapper .select-selected::before {
	content: "Min.";
	padding-right: 5px;
	font: var(--beon-cal-nights-mini-text-font);
}
#searchform.frontpage-searchform .nights_max-wrapper .select-selected::before {
	content: "Max.";
	padding-right: 5px;
	font: var(--beon-cal-nights-mini-text-font);
}
#searchform.frontpage-searchform .select-selected {
	flex-direction: column;
	display: flex;
    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 .select-selected::after {
    content: "";
    background: url(/wp-content/themes/schwedenhaus/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;
}
#searchform.frontpage-searchform .select-items {
	position: absolute;
	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;
}
#searchform.frontpage-searchform .select-items div {
	user-select: none;
	border-bottom: 1px solid var(--beon-border-color);
	padding: 7px;
    padding-left: 12px;
    text-align: left;
}
#searchform.frontpage-searchform .select-items div:hover {
	background-color: var(--beon-cal-nights-hover-bg-color);
	color: var(--beon-cal-nights-hover-text-color);
}
#searchform.frontpage-searchform .select-hide {
	display: none;
}


/*Select2 ( for the regions) */
#searchform.frontpage-searchform .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-fp-search-border-radius);
    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 .select2-container .select2-selection--single:focus {
	outline: none;
}

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

#searchform.frontpage-searchform .select2-container--default .select2-results>.select2-results__options {
	max-height: 400px;
    scrollbar-color: var(--beon-border-color) var(--beon-popup-bg-color);
    scrollbar-width: thin;
}

#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: var(--beon-fp-search-info-text);
	background-color: var(--beon-primary-color);
}

#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 */
}


@media only screen and (max-width: 1200px) {
    .beon-fp-popup {
        max-width: 90vw;
        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: 300px;
        gap: 10px;
        justify-content: space-between;
    }
    #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%;
    }
    #searchform.frontpage-searchform .wrap-guests, #searchform.frontpage-searchform .button_btn {
        width: calc(50% - 5px);
        min-width: unset;
    }
}
@media only screen and (max-width:768px){
    #searchform.frontpage-searchform{
       margin: unset;
    }
}
@media only screen and (max-width: 750px){
    .toggleGuests {
        min-width: 80vw;
    }
}

@media only screen and (max-width:480px){
    #searchform.frontpage-searchform{
        max-width: 100%;
    }
}