/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

:root{
    h1,h2,h3,h4,h5,h6,p {
        margin-block-start:0rem;
        margin-block-end:0rem;
    }
}
h2.subtitle-suche{
    padding-bottom: 15px !important;
}

form select,
form select:focus {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
    padding: 25px;

}

#searchform button {
    box-shadow: none;
}

#range {
    cursor: pointer;
}

span.icon-wrapper {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translate(0px, -50%);
}

#range .icon-wrapper {
    position: static;
    transform: none;
    height: 20px;
    width: 20px;

}

span.icon-wrapper img {
    width: 20px;
    height: 20px;
}

.form-group {
    position: relative;
    min-width: 180px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 0px;
}

.form-group.btn {
    height: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 1;
    bottom: 0;
    border: 1px solid var(--button-color);
    border-bottom-right-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0;
}

form#searchform button[type="submit"] {
    background: var(--button-color);
    color: var(--form-background);
    font-size: var(--beon-medium-font-size);
    cursor: pointer;
    height: 100%;
    padding: 1rem 2rem;
    right: 0;
    border: 0;
    width: 240px;
    line-height: 0;
    height: 57px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.beon-left-align{
    text-align: left;
}


form#searchform button[type="submit"]:hover {
    background: var(--beon-button-hover-color);
}

form#searchform {
    text-align: center;
    background: var(--beon-form-background);
    display: flex;
    height: 75px;
    min-height: 75px;
    margin: 0 auto;
    border-radius: 130px;
    position: relative;
    width: max-content;
    justify-content: space-between;
    align-items: center;
    color: var(--beon-text-color);
    font-size: var(--font-size-medium);
    box-shadow: 0px 3px 6px #00000029;
    border: 1px solid #EFEFEF;
    font-size: var(--beon-medium-font-size);
    z-index: 1;
}

form:after {
    display: none !important;
}

.form-group:not(.wrap-guests)::after {
    content: '';
    position: absolute;
    right: 0px;
    background: #EBEBEB;
    width: 1px;
    height: 44px;
    top: 50%;
    transform: translate(0, -50%);
}


.toggleGuests.form-tooltip:after {
    border-color: var(--button-color) transparent transparent transparent;
}

form#searchform .form-group button[type="submit"] {
    background: var(--button-color);
    color: #fff;
    cursor: pointer;
    outline: none;
    border: none;
    height: 100%;
    padding: 1rem 2rem;
}

.frontpage-submit-image {
    cursor: pointer;
    height: 14px !important;
    width: 14px !important;
    margin-left: 10px;
}

.form-group.guest_input.guest_input1 {
    margin-left: 25px;
}

.form-group input::placeholder {
    color: #333;
}

.form-group input[type="text"]::placeholder {
    color: var(--beon-text-color);
}

.form-group input:-moz-placeholder {
    /* Firefox 18- */
    color: var(--beon-text-color) !important;
    opacity: 1 !important;
}

.form-group input::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--beon-text-color) !important;
    opacity: 1 !important;
}

.icon-wrapper svg {
    width: 16px !important;
    display: inline-block;
}

.advance-search-form .form-group {
    display: inline-block;
    margin-bottom: 0;
    padding: 0;
}

.toggleGuests {
    display: none;
    position: fixed;
    background-color: var(--beon-form-background);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    padding: 2rem;
    border: 1px solid var(--beon-popup-border-color);
    border-radius: var(--beon-border-radius);
}

.toggleGuests>div {
    display: flex;
    padding: 10px 0px 10px 0px;
    align-items: center;
    justify-content: space-between;
    font-family: var(--beon-font-family);
    color: var(--beon-text-color);
    font-size: var(--beon-medium-font-size);
    font-weight: 400;
    gap: 100px;
}

.toggleGuests {
    .numberadjust-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100px;
    }
}

.toggleGuests h4 {
    border-bottom: 1px solid var(--beon-divider-color);
    margin: 0px;
    color: var(--beon-text-color);
    text-align: left;
    margin-bottom: 20px;
    font-weight: var(--beon-font-bolder);
}

.toggleGuests label span {
    padding-right: 5px;
}

form .toggleGuests #calcGuests {
    width: 100%;
    cursor: pointer;
    text-align: center;
    color: var(--link-color);
    display: flex;
    justify-content: center;
    font-weight: var(--beon-regular);
    align-items: center;
    gap: 10px;
}

#calcGuests img {
    width: 15px;
    height: 15px;
}

#nights {
    visibility: hidden;
    display: none;
}

.toggleGuests button,
.toggleGuests button:hover,
.toggleGuests button:focus {
    padding: 0;
    height: auto;
    display: flex;
    border: none;
    outline: none;
    background: none;
    background-color: transparent;
    cursor: pointer;
}

.toggleGuests button img {
    width: 30px;
    height: 30px;
}

.toggleGuests label {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggleGuests label p {
    margin: 0;
    padding-left: 3px;
}

.countbutton-wrapper {
    padding-right: 30px;
    margin-left: 15px;
    display: flex;
}

.guest-footer {
    background: var(--button-color);
    color: var(--link-color);
    padding: 5px;
    border-radius: var(--beon-btn-border-radius);
    margin-top: 20px;
    height: 50px;
}

#guests {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--form-background);
    background: transparent;
    cursor: pointer;
    margin: 0px 50px;
    min-width: max-content;
}

#calender-wrapper {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    z-index: 222 !important;
    background-color: var(--beon-form-background);
    border: 1px solid var(--beon-popup-border-color);
    bottom: auto;
    border-radius: var(--beon-border-radius);
}

#calender_select {
    background-color: var(--button-color);
    color: var(--link-color);
    border: none;
    outline: none;
    width: 100%;
    cursor: pointer;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: var(--beon-regular);
}

#calender_select img {
    height: 15px;
    width: 15px;
}

div#nights-wrapper {
    background-color: var(--form-background);
    display: flex;
    justify-content: space-between;
    display: none;
    gap: 10px;
    padding-top: 20px;
    align-items: center;
}

.nights_min-wrapper.nightselect-wrapper,
.nights_max-wrapper.nightselect-wrapper {
    position: relative;
    min-width: 120px;
}


.select-selected:after {
    content: "";
    background: url(/wp-content/themes/ilovesylt/assets/images/Chevron-Oben-Unten.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    width: 10px;
    height: 15px;
    top: 50%;
    transform: translate(0, -50%);
    right: 15px;
    z-index: 11111;
}


form #nights_min,
form #nights_max {
    border: none;
}

.night-label {
    padding: 12px;
    display: flex;
    align-items: center;
}

.night-label h5 {
    margin: 0px;
}

#calcNights {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    width: -webkit-fill-available;
}


/*Select2*/
form .select2-container {
    height: 100%;
    width: 100% !important;
}

.select2-container .select2-choice {
    padding: 5px 10px;
    height: 72px;
    width: 132px;
    font-size: 1.2em;
    background-color: grey;
}

.select2-container--default .select2-selection--single {
    border: none;
    background: transparent;
}

.select2-container .select2-selection--single {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    outline: none;
}

.select2-container .select2-selection--single:focus {
    outline: none;
}

span.select2-selection__arrow {
    opacity: 0;
}

.select2-results__option,
.select2-results__option:hover {
    display: flex;
    align-items: center;
    color: inherit;
    background-color: var(--form-background);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-medium);
}

.select2-results__option:hover {
    color: var(--link-color) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--button-color);
    color: white;
    font-size: var(--font-size-medium);
    font-weight: 400;
}


span#select2-nights_min-container::before {
    content: "Mindestens ";
}

span#select2-nights_max-container::before {
    content: "Maximal ";
}

.nightselect-wrapper select {
    display: none;
    /*hide original SELECT element:*/
}

.wrap-regions .select2-selection__rendered {
    max-width: 150px;
}

.select-selected {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    border-radius: var(--beon-btn-border-radius);
    border: 1px solid var(--beon-text-color);
    padding: 5px 10px;
    font-size: 15px;
    color: var(--beon-text-color);
    padding-left: 20px;
}

.nights_min-wrapper .select-selected::before {
    content: "Mindestens";
    padding-right: 5px;
    font-size: 11px;
    line-height: 14px;
}

.nights_max-wrapper .select-selected::before {
    content: "Maximal";
    padding-right: 5px;
    font-size: 11px;
    line-height: 14px;
}
/*style the items (options), including the selected item:*/
.select-items div,
.select-selected {
    color: inherit;
    cursor: pointer;
    user-select: none;
}

.select-items div {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
    text-align: left;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: var(--form-background);
    top: 43px;
    left: 0;
    min-width: 150px;
    right: 0;
    z-index: 99;
    max-height: 300px;
    overflow-y: scroll;
}

.select-hide {
    display: none;
}

.select-items div:hover {
    background-color: var(--button-color);
    color: var(--form-background);
}

#dark-bg-overlay {
    display: none;
    position: fixed;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
}

#calender-close,
#guests-close,
#filter-close,
#map-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    height: 28px !important;
    object-fit: contain;
    padding: 0.3rem;
    cursor: pointer;
}

#calender-close img,
#guests-close img,
#filter-close img,
#map-close img{
    width: 28px !important;
    height: 28px !important;
    object-fit: cover;
}
#map-close {
    z-index: 11;
}

form#searchform #range .till-date-wrapper:empty {
    display: none;
}

form#searchform #range .till-date-wrapper:before {
    content: "-";
    padding-right: 5px;
    padding-left: 5px;
}

form#searchform #range .till-date-wrapper {
    padding: 0px;
}

.form-group.dateInput div {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--beon-text-color);
    padding: 0px 40px;
}

.form-group.dateInput {
    min-width: 250px;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#form-submit-btn{
    width: inherit;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    height: 30px;
    width: 55px;
    /* margin-right: 10px; */
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pet-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    width: 55px;
    background-color: white;
    border-radius: 28px;
    border:1px solid #DBD1C3;
    transition: 0.4s;
}

.pet-slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 28px;
    background-color: var(--beon-accent-color);
    border: 1px solid #DBD1C3;
    top: 0px;
    left: 0px;
    transition: 0.4s;
}

input:checked + .pet-slider {
    background-color: #DBD1C3; 
}

input:checked + .pet-slider:before {
    transform: translateX(24px); 
    background-color: #957A4A;
}

.toggle-label {
    color: var(--beon-text-color);
    vertical-align: middle;
}

@media only screen and (max-width: 1024px) {
    form#searchform {
        height: auto;
    }
    .toggleGuests>div{
        gap: 10px;
    }
    .form-group:not(.wrap-guests)::after {
        display: none;
    }
    #nights-wrapper {
        flex-wrap: wrap;
    }
    #guests{
        margin:0px 35px;
    }
    #calender-wrapper {
        position: fixed;
        z-index: 22 !important;
        left: 50%;
        height: max-content;
        top: 50% !important;
        transform: translate(-50%, -50%);
        background: var(--beon-form-background);
    }

    .select-items {
        top: 43px;
    }

    .night-label {
        display: none;
    }

    .form-tooltip:after {
        display: none;
    }
    .toggleGuests {
        width: 60vw;
    }
}

@media only screen and (max-width: 767px) {
   
    .toggleGuests>div{
        gap: 5px;
    }
    .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: var(--button-color);
        color: white;
        font-size: 15px !important;
        font-weight: 400;
    }
    .guest-container {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
    .form-group {
        max-width: 100%;
        padding-left: 0px;
    }
    .toggleGuests {
        width: 90vw;
    }
    .wrap-range,
    .wrap-region,
    .wrap-guests,
    form select,
    form .select2-container {
        min-height: 50px;
    }

    #calender_select {
        margin: 0px;
    }

    #calender-wrapper {
        width: 90vw;
        padding: 1rem;
    }

    form#searchform {
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
        margin: 0px;
       min-width: 320px;
        width: 100%;
        border-radius: 0px;
        background: transparent;
        border: 0;
        max-width: 1000px;
        padding: 0px;
        box-shadow: none;
        font-size: var(--beon-regular-font-size);
    }

    form#searchform button[type="submit"] {
        height: 50px;
        margin-right: 0px !important;
        width: 100%;
        font-size: var(--beon-regular-font-size);
    }

    .frontpage-submit-image {
        height: 14px !important;
        width: 14px !important;
    }

    .wrap-range,
    .wrap-guests,
    .wrap-regions {
        background-color: var(--beon-form-background);
        margin-bottom: 15px;
        border-radius: var(--beon-btn-border-radius);
        width: 100%;
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--beon-divider-color);
    }

    .form-group.dateInput {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
    }

    form#searchform #range .till-date-wrapper {
        justify-content: flex-start;
    }

    .form-group.dateInput div {
        padding: 0px;
        width: 98%;
        margin-left: -50px;
    }

    #range {
        cursor: pointer;
        width: 100%;
    }

    .select2-container .select2-selection--single .select2-selection__rendered {
        padding-left: 0px;
    }

    #range .icon-wrapper {
        margin-left: 20px;
    }
    .litepicker .container__months .month-item{
        padding: 0px !important;
    }
}

