form#searchform {
    background-color: var(--box-background);
    max-width: 1000px;
    margin: 0;
}

form#searchform input[type="submit"] {
    width: 100px;
}

:root {
	--form-background: var(--box-background);
}
#loader.load-more {
    width: 100%;
}
.search-dropdown-wrapper {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.search-dropdown-wrapper #dropdown_search_units {
    width:180px;
}

.search-dropdown-wrapper #dropdown_search_units .select2-container {
    width: 100% !important;
}

.search-dropdown-wrapper #dropdown_search_units .select2-container .select2-selection--single {
    height: 70px;
    border-radius: 5px;
    background-color: var(--box-background);
    line-height: 70px;
}
.search-dropdown-wrapper #dropdown_search_units .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--beon-primary-text-color);
}
.overview ul {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.overview ul img {
    display: inline-block;
    width: 20px;
    position: relative;
    top: 0px;
}
.overview ul li {
    position: relative;
    background: white;
    z-index: 11;
}
.overview ul li:first-child {
    padding-right: 20px;
}
.overview ul li:last-child {
    padding-left: 20px;
}
.overview ul li:nth-child(2) {
    padding-left: 20px;
    padding-right: 20px;
}

.overview {
    padding-bottom: 15px;
}
.overview ul::after {
    content: "";
    width: 100%;
    height: 1px;
    background: var(--border-color);
    position: absolute;
}

#show_allfilter, #show_allfilter:hover {
    outline: none;
    color: inherit;
}
#show_allfilter span.icon-wrapper {
    left: 18px;
}
#show_allfilter {
    position: relative;
    align-items: center;
    display: flex;
    text-align: center;
    cursor: pointer;
    padding: 0 30px;
    background: var(--box-background);
    border-radius: 5px;
    gap: 5px;
}
.show_allfilter__title {
    display: none;
}
.overview ul {
    list-style-type: none;
    padding: 0;
    margin-top: 40px;

}
.hide-filter {
    display: none;
}
.main-search .activeoptions-wrapper {
	display: flex;
	align-items: center;
    margin-top: 20px;
}

.main-search .activeoptions-wrapper .activeoptions-label {
	margin-right: 25px;
}

.activeoptions {
	display: flex;
	flex-wrap: wrap;
}

.activeoptions .parameter-wrapper {
	padding: 7px 5px 7px 10px;
	background-color: var(--box-background);
	margin-right: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
	display: flex;
    align-items: center;
    border-radius: 10px;
}

.activeoptions .parameter-wrapper a, .close-popup {
	width: 20px;
	height: 20px;
	margin-left: 5px;
	background: url(/wp-content/plugins/beon-voffice/assets/images/xmark-solid.svg);
	background-repeat: no-repeat;
    background-size: contain;
}

span#select2-order-container::after {
	content: "";
	background: url(/wp-content/plugins/beon-voffice/assets/images/chevron-down-solid.svg);
	width: 20px;
	height: 20px;
	position: absolute;
	top: 50%;
    transform: translate(0, -50%);
    right: 0;
}

/*checkbox*/
.wrap-filter {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}
.main-search .checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: white;
	border: 1px solid var(--border-color);
	cursor: pointer;
}

.main-search input[type="checkbox"] {
	color: white;
	padding-left: 10px;
	padding-right: 10px;
	border: none;
	margin-bottom: 5px;
	height: 38px;
	border: none;
	margin-bottom: 5px;
	position: absolute;
	opacity: 0;
	width: 100%;
	left: 0;
}
.sort-wrapper .select2-container .select2-selection--single .select2-selection__rendered, #show_allfilter {
    font-size: var(--font-size-medium);
}
#dropdown_search_units .select2-container .select2-selection--single .select2-selection__rendered {
    position: relative;
    padding-left: 30px;
    padding-right: 0;
}
#dropdown_search_units .select2-container .select2-selection--single .select2-selection__rendered:before {
    content: "";
    background: url(../images/magnifying-glass-solid.svg);
    background-repeat: no-repeat;
    background-size: contain;
    /* filter: var(--beon-search-name-search-icon-filter); */
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translate(-50%, -50%);
}
.activeoptions-wrapper {
    font-size: var(--font-size-small);
}

.main-search .property-wrapper label {
	cursor: pointer;
    padding-top: 0;
    font-size: var(--font-size-medium);
    color: var(--beon-primary-text-color);
}

.checkbox-wrapper {
	cursor: pointer;
	padding-left: 35px;
	padding-right: 24px;
	display: flex;
	position: relative;
    margin: 8px 0;
}
.checkbox-wrapper span::before {
	content: ' ';
}
.checkbox-wrapper input:checked~.checkmark {
	content: url(/wp-content/plugins/beon-voffice/assets/images/check-solid.svg);
}
#calender-wrapper {
    bottom: auto;
    top: 69px;
    z-index: 22;
}
.toggleGuests {
    bottom: auto;
    top: 47px;
}
.form-tooltip:after {
    display: none;
}

#childrenAges-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.map-button {
    align-items: center;
    display: flex;
    cursor: pointer;
    padding: 0 45px 0 0;
    gap: 15px;
    background: none;
}
/* Dialog */
#map-wrapper {
    width: min(1200px, 95vw);
    height: 85vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

/* Overlay */
#map-wrapper::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

/* Popup Content */
.beon-search-popup-headline {
    display: flex;
    align-items: center;
    font: var(--beon-popup-headline-font);
    gap: 5px;
    padding-bottom: 15px;
}
.beon-search-popup-headline img {
    height: 23px;
    filter: var(--beon-popup-headline-icon-filter);
}

#map-wrapper .beon-search-popup-main {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: var(--beon-popup-border-radius);
    overflow: hidden;
    padding: 30px;
}

/* Close Button */
#map-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;
    z-index: 2;
    border: var(--beon-popup-close-border);
    border-radius: var(--beon-popup-close-border-radius);
    box-shadow: var(--beon-popup-close-shadow) !important;
    background-color: var(--beon-popup-close-bg-color);
}

/* Map */
#map-wrapper .map-container {
    width: 100%;
    height: calc(100% - 50px);
}

#map-wrapper #map {
    width: 100%;
    height: 100%;
}

/* Kein Scrollen im Hintergrund */
body:has(#map-wrapper[open]) {
    overflow: hidden;
}

@media only screen and (max-width: 1200px) {
    form#searchform {
        width: 100%;
        max-width: 500px;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        place-items: center;
        margin-bottom: 10px;
    }
    
    form#searchform .wrap-range {
        grid-column: 1 / -1;
        height: 60px;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-around;
    }

    form#searchform .wrap-range #range {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

    .form-group:not(.wrap-guests)::after {
        content: none;
    }

    form#searchform input[type="submit"] {
        grid-column: 1 / -1;
        height: 50px;
        width: 100%;
        border-radius: 0 0 5px 5px;
        padding-top: 10px;
    }

    .search-dropdown-wrapper .form-group.wrap-regions,
    .search-dropdown-wrapper .wrap-guests.form-group {
        height: 60px;
    }

    #guests {
        height: 100%;
    }

    .search-dropdown-wrapper {
        display: block;
        gap: 10px;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .search-dropdown-wrapper #dropdown_search_units {
        width: calc(50% - 5px);
        height: 50px;
        display: inline-flex;
        vertical-align: top;
        margin-left: 5px;
    }

    .search-dropdown-wrapper #show_allfilter {
        display: inline-flex;
        vertical-align: top;
        width: calc(50% - 5px);
        height: 50px;
        justify-content: center;
    }

    .search-dropdown-wrapper #dropdown_search_units .select2-container .select2-selection--single {
        height: 50px;
    }

    .search-dropdown-wrapper #show_allfilter .show_allfilter__title {
        display: inline;
    }

    #show_allfilter span.icon-wrapper {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        padding-right: 10px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1160px) {
    /* .form-group {
        min-width: 160px;
        padding-left: 0;
    }

    #range .form-group .icon-wrapper {
        opacity: 0;
    } */
}

@media only screen and (max-width: 991px){
    .overview ul {
        flex-wrap: wrap;
    }
    .overview ul li:nth-child(2) {
        order: 2;
    }
    .overview ul li:first-child {
        padding-right: 0px;
    }
    .overview ul li:last-child {
        padding-left: 0px;
    }
    .overview ul li:nth-child(2) {
        padding-left: 0px;
        padding-right: 0px;
        width: 100%;
    }

    .overview ul::after {
        display: none;
    }
    .main-search .activeoptions-wrapper {
        flex-wrap: wrap;
    }
    .main-search .activeoptions-wrapper .activeoptions-label {
        width: 100%;
    }
    .main-search .property-wrapper label {
        font-size: var(--font-size-small);
    }

    .form-group.form-group:not(.wrap-guests) {
        border: none;
        margin-bottom: 0;
    }

    .form-group {
        min-height: auto;
    }

    .wrap-filter {
        grid-template-rows: repeat(6, auto);
    }
}

@media only screen and (max-width: 767px){
    #map-wrapper {
        width: 96vw;
        height: 96dvh;
        max-width: none;
        max-height: none;
        margin: auto;
    }

    #map-wrapper .beon-search-popup-main {
        border-radius: 0;
    }

    .wrap-filter {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
    }
}


@media only screen and (max-width: 500px){
    form#searchform {
        grid-template-columns: 1fr;
        place-items: baseline;
    }

    form#searchform > * {
        grid-column: auto;
        width: 100%;
    }

    form#searchform .wrap-range #range {
        flex-direction: column;
    }

    .form-group{
        text-align: left;
        padding-left: 48px;
        height: 50px;
    }

    form#searchform #guests,
    form#searchform .select2-container .select2-selection--single {
        justify-content: start;
    }

    form#searchform .select2-container .select2-selection--single .select2-selection__rendered {
        padding-left: 0;
    }

    .search-dropdown-wrapper .till-date-wrapper,
    .search-dropdown-wrapper .from-date-wrapper {
        line-height: 50px;
    }

    .search-dropdown-wrapper .form-group.wrap-regions, 
    .search-dropdown-wrapper .wrap-guests.form-group {
        height: 50px;
    }

    form#searchform .wrap-range {
        height: auto;
    }

    form#searchform input[type="submit"] {
        margin-top: 10px;
    }
}