.banner {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;

    .text-overlay {
        left: 18px;
        top: 55px;
        display: none;

        @include breakpoint(lg) {
            display: block;
        }
    }

    .container {
        position: relative;
    }

    .banner-content {
        color: $white;
        padding: 40px 0;
    }

    .banner-text {
        max-width: 445px;
        margin-bottom: 52px;

        @include breakpoint(lg) {
            margin-bottom: 0;
        }

        h1 {
            color: $white;
            font-weight: 400;
        }
    }

    .banner-filter-form {
        @include breakpoint(lg) {
            display: flex;
            flex-wrap: wrap;
        }

        .select-wrap {
            background: $white !important;
            margin-bottom: 10px;
            // position: relative;
            // z-index: 2;

            @include breakpoint(lg) {
                margin: 0 8px 0 0;
                width: 33.2%;
            }

            @include breakpoint(xl) {
                width: 34%;
            }

            // & ~ .select-wrap {
            // 	z-index: 1;
            // }

            &.select-age {
                width: 113px;

                @include breakpoint(lg) {
                    width: 109px;
                }

                &.custom-select {
                    .nice-select {
                        min-width: 0;

                        .list {
                            min-width: 0;
                        }
                    }
                }
            }
        }

        .submit-wrap {
            position: relative;
            @include breakpointMax(lg) {
                // margin-top: -64px;
                width: calc(100% - 113px - 15px);
                float: right;
                margin-left: 15px;
            }

            @include breakpoint(lg) {
                width: 20%;
            }

            &:hover {
                &:before {
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                }
            }

            &:before {
                content: '';
                position: absolute;
                top: 9px;
                left: 25px;
                right: -9px;
                bottom: -9px;
                border: 1px solid $primary;
                transition: 0.3s ease;
                display: none;

                @include breakpoint(lg) {
                    display: block;
                }
            }

            input[type='submit'] {
                min-width: 0;
                font: italic 600 18px/1.333334 $font-family-secondary;
                width: 100%;
                letter-spacing: 0.11em;
                padding: 15px;
                position: relative;
                display: block;
                margin-top: 0 !important;

                @include breakpoint(lg) {
                    padding: 17.5px;
                }
            }
        }
    }
}

.apac-banner {
    .banner-text {
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);

        h1 {
            line-height: 1;
        }

        p {
            line-height: 1.3;
        }
    }

    .map-input-wrap {
        max-width: 23rem;

        input {
            margin: 2rem 0 0.5rem;
        }

        #map-clear {
            color: $light-yellow;
            cursor: pointer;
            text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
        }
    }

    .apac-banner-filter-form,
    .banner-filter-form {
        margin-top: 2rem;

        .select-wrap.custom-select {
            max-width: 325px;

            ul.list {
                margin-top: -8px;
                padding: 0;
            }
        }

        .submit-wrap button,
        .submit-wrap input[type='submit'] {
            margin-top: 10px;

            &:hover,
            &:active,
            &:focus {
                background-color: $green !important;
                color: $text;
            }

            &:active {
                background-color: $dark-green !important;
                color: $white;

                &::before {
                    border-color: $dark-green !important;
                }
            }
        }
    }
}

.loader::before {
    animation: spin 1s ease-in-out infinite;
    background-size: cover;
    background: url('../../plugins/woocommerce/assets/images/icons/loader.svg')
        center center;
    color: rgba(#000, 0.75);
    content: '';
    display: block;
    font-size: 2em;
    height: 1em;
    left: 50%;
    line-height: 1;
    margin-left: -0.5em;
    margin-top: -0.5em;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 1em;
}

#banner-spinner .loader {
    margin-top: 3rem !important;
    min-height: 3rem !important;
}

#banner-spinner .loader::before {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    left: 0 !important;
    margin-left: 0 !important;
    position: relative !important;
}

.inner-banner {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 389px;
    display: flex;
    align-items: center;

    .text-overlay {
        left: 18px;
        top: 55px;
        display: none;
        font-size: 416px;

        // @include breakpoint(md) {
        // 	font-size: 400px;
        // }

        @include breakpoint(lg) {
            display: block;
        }
    }

    .container {
        position: relative;
    }

    .banner-content {
        color: $white;
        padding: 40px 0;
    }

    .banner-text {
        // max-width: 445px;
        margin-top: 80px;
        h1 {
            color: $white;
            font-weight: 400;
            margin-bottom: 0;
        }
    }

    // Give some extra contrast for readability on ones with background images.
    &[style*='background-image'] {
        .banner-text {
            text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
        }
    }
}

.banner-search {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 369px;
    display: flex;
    padding: 80px 0 40px;

    @include breakpoint(lg) {
        padding: 105px 0 64px;
    }

    .container {
        position: relative;
    }

    .banner-search-content {
        color: $white;

        @include breakpoint(lg) {
            padding-right: 6px;
        }

        h1 {
            margin-bottom: 18px;
            color: $white;

            @include breakpoint(lg) {
                font-size: 53px;
            }

            strong {
                font-weight: 600;
            }
        }

        .result {
            display: block;
        }
    }

    .banner-search-form {
        margin-bottom: 48px;

        @include breakpoint(md) {
            display: flex;
            flex-wrap: wrap;
        }

        input[type='search'] {
            margin-bottom: 16px;
            @include breakpoint(md) {
                margin-bottom: 0;
                width: calc(100% - 30px - 154px);
            }
        }

        .submit-wrap {
            position: relative;
            z-index: 0;

            @include breakpoint(md) {
                width: 154px;
                margin-left: 30px;
            }

            &:hover {
                color: $primary;
                background: transparent;

                &:before {
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                }
            }

            &:before {
                content: '';
                position: absolute;
                right: -6px;
                top: 8px;
                bottom: -8px;
                left: 18px;
                border: 1px solid $primary;
                transition: 0.3s ease;
                z-index: -1;
                display: none;

                @include breakpoint(lg) {
                    display: block;
                }
            }

            input[type='submit'] {
                min-width: 154px;
                letter-spacing: 0.11em;
                padding: 16px;
            }
        }
    }
}

.banner:first-child + .counter-img-optin {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}
