@import url('/css/plugins/easy-autocomplete.min.css');

.mr_search {
    position: relative;
    margin-left: 0.5em;
    width: 50%;
    max-width: 17em;
    font-size: clamp(1rem, 1.3vw, 3rem);
}

body#homepage #banner .homepage-hero-search {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    z-index: 5;
    pointer-events: none;
}

body#homepage #banner .homepage-hero-search .mr_search {
    width: min(92vw, 760px);
    max-width: none;
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 2rem);
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

body#homepage #banner .homepage-hero-search #mr_search {
    width: 100%;
    height: 3.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #060808;
    padding: 0.75rem 3.25rem 0.75rem 1rem;
    outline: none;
}

body#homepage #banner .homepage-hero-search #mr_search::placeholder {
    color: rgba(6, 8, 8, 0.65);
}

body#homepage #banner .homepage-hero-search button#mr_search_submit {
    right: 0.75rem;
}

#mr_search_form {
    display: flex;
    width: 100%;
}

#mr_search {}

.mr-search-toggle {
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    width: 2em;
    height: 2em;
    position: absolute;
    left: 0;
    background: transparent;
    border: 0;
    font-size: 1em;
    outline: none !important;
}

.mr-search-toggle:before {
    content: '\f002';
    transition: .3s all ease;
    -webkit-transform: scale(1) rotate(0deg);
    transform: scale(1) rotate(0deg);
    font-family: "FontAwesome";
    font-weight: 900;
    color: #060808;
}

.mr-search-toggle:before {
    font-size: 1em;
    width: auto;
    height: auto;
    text-align: center;
    position: relative;
    line-height: 2.1;
}

.mr-search-toggle:before,
.mr-search-toggle:after {
    top: auto;
    left: auto;
    display: block;
}

.mr-search-toggle:after {
    content: '\f00d';
    transition: .3s all ease;
    -webkit-transform: scale(0) rotate(-90deg);
    transform: scale(0) rotate(-90deg);
    font-family: "FontAwesome";
    font-weight: 900;
    color: #dda063;
}

.mr-search-toggle,
.mr-search-toggle:before,
.mr-search-toggle:after {
    text-align: center;
    width: 1.6em;
    height: 2em;
}

input#mr-search-input {
    border: 0;
    border-radius: 0;
    border-bottom: 3px solid #379cd6;
    font-size: 1em;
    padding-left: calc(1.5em + .75rem);
    background: #ededed;
}

.search-cover {
    position: absolute;
    right: 0;
    height: 60px;
    width: 60px;
    cursor: pointer;
    display: block;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    z-index: 9999999999;
    display: none;
}

.search_results_section h3 a {
    color: var(--mr-color-primary);
    text-decoration: none;
    margin-right: 1rem;
}

.search_results_section h3 {
    border-bottom: 3px solid var(--mr-color-primary);
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    font-size: 1.75rem;
    text-transform: unset;
    color: rgb(0 0 0);
    font-weight: 900;
    text-transform: uppercase;
}

.search_result_img {
    /* width: 7.4em; */
    /* height: 100%; */
    overflow: hidden;
    position: relative;
    margin-right: 1rem;
}

.search_result_img img {
    width: 7.4em;
    height: 4.5em;
    object-fit: cover;
    object-position: center center;
}



.search_result_img img[src*="png"] {
    object-fit: contain;
}

.search_results_section_showall {
    display: flex;
    align-items: center;
}

.search_results_section_showall::before,
.search_results_section_showall::after {
    content: '';
    display: block;
    height: 1px;
    background: #bebdbd;
    flex-grow: 1;
}


.search_results_section_showall span {
    cursor: pointer;
    background: #dedede;
    padding: 0 2em;
    color: #000000;
    font-family: var(--mr-font-main);
    border-radius: 2em;
}

.search_results_section a:nth-of-type(n + 4) {
    display: none;
}

.search_heading>h1 {
    margin-bottom: .2rem !important;
}

.search_subheading {
    margin-bottom: 2rem;
}

.search_results_section {
    margin-bottom: 3rem;
}

button#mr_search_submit {
    position: absolute;
    right: 0;
    background: transparent;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--mr-color-primary);
    padding: 0 0.6rem;
    font-size: 1.2rem;
}

.input_line {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: .2rem;
    background: red;
    width: 0%;
    display: block;
    transition: 0.6s all ease;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 0 0.5rem red;
}

.input_line.active {
    width: 100%;
}

button#mr_search_submit:hover {
    color: var(--mr-color-accent);
    /* text-shadow: 0 0 1rem red; */
}

.search_result_link:hover h2 {
    color: var(--mr-color-accent);
}

.search_results_section_showall:hover span {
    background: var(--mr-color-accent);
}

.autocomplete_img img {
    max-width: 6rem;
    width: 6rem;
    min-width: 6rem;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.autocomplete_img {
    margin-right: 0.5rem;
    max-width: 6rem;
    width: 6rem;
}

.autocomplete_wrapper {
    display: flex !important;
}

.autocomplete_details {
    width: 100%;
}

@media (max-width: 767px) {
    body#homepage #banner .homepage-hero-search .mr_search {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        isolation: auto;
    }

    body#homepage #banner .homepage-hero-search #mr_search {
        width: 100%;
        height: 3.25rem;
        margin: 0;
        font-size: 1.1rem;
        padding: 0.75rem 3.25rem 0.75rem 1rem;
        border-width: 0;
        border-color: transparent;
    }

    body#homepage #banner .homepage-hero-search .search-cover {
        display: none !important;
    }

    body#homepage #banner .homepage-hero-search .mr_search #mr_search_submit {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translate(0, -50%);
        height: auto;
        width: auto;
        z-index: 2;
    }

    .mr_search {
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 58px;
        display: block;
        -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        /* align-self: center; */
        z-index: 18;
        font-size: 1em;
        isolation: isolate;
    }

    .mr_search #mr_search_submit {
        position: fixed;
        right: 0.4rem;
        top: 1.7rem;
        background: rgba(0, 0, 0, 0);
        border: 0;
        font-size: 1.4em;
        -webkit-transition: .2s all ease;
        -o-transition: .2s all ease;
        transition: .2s all ease;
        -webkit-transform: translate(0, -50%);
        padding-top: 0.1em;
        outline: none;
        font-size: 1.5rem;
        z-index: 999999999;
        display: block;
        height: 58px;
    }

    #mr_search_form {
        display: block;
        /* width: calc(100% - 54px); */
    }

    #mr_search {
        width: calc(100% - 4px);
        height: 54px;
        margin: 2px;
        /* background: white; */
        font-size: 1.5rem;
        padding: 0.5rem;
        left: 0;
        right: 0;
        position: relative;
        border-radius: 0;
        color: black;
        border-width: 2px;
        border-color: #a7a7a7;
    }

    .search-cover {
        display: block;
        opacity: 0;
        margin: 0;
        border: 0;
        width: 50px;
    }

    .searching .search-cover {
        display: none;
    }

    .header_extra {
        display: block;
        position: fixed;
        right: 0;
        height: 58px;
        padding: 0;
        z-index: 999999999;
        /* background: white; */
        width: 0;
        transition: .2s width ease;
    }

    .searching .header_extra {
        display: block;
        position: fixed;
        right: 0;
        height: 58px;
        padding: 0;
        width: calc(100% - 60px);
        transition: .2s width ease;
    }

    .searching .mr_search {
        width: 100%;
        /* background: white; */
        max-width: none;
    }

    .searching .mr-upper-toggle {
        z-index: -1;
        display: none;
    }

    .input_line {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin: 0px 4px;
    }

    .input_line.active {
        width: calc(100% - 4px);
    }

    #eac-container-mr_search {
        max-height: 500px;
        overflow: auto;
    }

    .easy-autocomplete-container ul li.fade-in {
        background: white;
        margin: 0;
    }

    span.autocomplete_url,
    .autocomplete_pagetitle,
    .autocomplete_description {
        color: black !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        font-size: 1rem !important;
    }

    .autocomplete_pagetitle {
        font-size: 1.1em !important;
        padding: 0 !important;
        line-height: 1;
        margin-bottom: 0.4rem !important;
    }

    .autocomplete_img {
        width: 100px;
        min-width: 30px;
        flex-grow: 1;
        min-height: 70px;
        max-height: 85px !important;
    }

    .easy-autocomplete-container ul li.selected {
        outline: 0;
        background: whitesmoke;
        box-shadow: none;
    }

    span.autocomplete_url {
        color: grey !important;
        font-style: italic;
        font-size: 0.7em !important;
        margin-bottom: .2rem;
    }
}
/* ----------------------- */
/* Slideshow custom styles */
/* ----------------------- */

.mr_swiper1 {
    height: 100%;
}


.swiper-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(70, 70, 70);
}
.swiper-slide img {
    width: 100%;
    height: 100%;
}
.swiper-slide .slideshow_caption h2 {
    opacity: 0;
    transform: translate(0px, 2em);
    transition: 1s transform .5s ease, 1s opacity .5s ease;
}

.swiper-slide.swiper-slide-active .slideshow_caption h2 {
    opacity: 1;
    transform: translate(0px, 0px);
    transition: 1s transform .5s ease, 1s opacity .5s ease;
}
.slideshow_caption span {
    display: block;
    position: absolute;
    min-height: 2em;
    line-height: 2em;
    font-size: 0.8em;
    /* width: 100vw; */
    white-space: normal;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0000006e;
    line-height: 1.2;
    text-align: left;
    padding: 0.4em;
}

.slideshow_caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mr-color-accent-tint);
    vertical-align: middle;
    white-space: normal;
    position: absolute;
    inset: 0;
    height: 100%;
}

.slideshow_caption h2 {
    border-bottom: none;
    color: var(--mr-color-light);
    text-shadow: 0 0 10px black, 0 0 10px black, 0 0 10px black;
    font-size: 3.5vw;
    line-height: 1;
    transition: 1s transform .5s ease, 1s opacity .5s ease;
    margin-top: 0;
    text-align: center;
}

.slideshow_caption h3 {
    border-bottom: none;
    color: var(--mr-color-accent-shade);
    text-shadow: 0 0 10px black, 0 0 10px black, 0 0 10px black;
    font-size: 2vw;
    line-height: 1;
    opacity: 0;
    text-align: center;
}

.swiper-slide.swiper-slide-active .slideshow_caption h3 {
    opacity: 1;
    transition: .5s opacity 1.5s ease;
}
