﻿:root {
    --xhr-select-box-color: #B4B4B4;
    --xhr-selected-box-color: #000;
}

/* .filter-bar {
    background: #F5F5F5;
    padding: 13px 0;

    .filter-bar__container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 1rem;

        @media screen and (max-width: 992px) {
            & {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
            }
        }
    }

    .filter-bar__label {
        display: flex;
        width: 100%;
        font-size: 1.25rem;
        margin-bottom: 0.25rem;

        @media screen and (max-width: 992px) {
            & {
                font-size: 1rem;
            }
        }
    }

    .sect-id-search {
        position: relative;

        @media screen and (min-width: 992px) {
            & {
                margin: 0 0 0 44px;

                &::before {
                    content: '';
                    width: 1px;
                    height: 100%;
                    max-height: 4.625rem;
                    background-color: rgba(0, 0, 0, 0.5);
                    position: absolute;
                    left: -30px;
                    bottom: 0;
                }
            }
        }

        @media screen and (max-width: 992px) {
            & {
                margin: 0;
                border-top: 1px solid rgba(0, 0, 0, 0.5);
                padding-top: 5px;
            }
        }

        @media screen and (min-width: 992px) {
            #searchIDErrorMsg {
                position: absolute;
                width: 100%;
                left: 4px;
                top: 45px;
            }
        }
    }

    .sect-id-search {
        @media screen and (max-width: 992px) {
            & {
                max-width: inherit;

            }
        }
    }

    .id-search__left {
        width: 90%;

        @media screen and (min-width: 992px) {
            & {
                position: relative;
            }
        }

        @media screen and (max-width: 992px) {
           &{
            width: 100%;

           }
        }
    }

    .id-search__right {
        width: auto;
    }

    .id-search-container {
        gap: 1rem;

        @media screen and (max-width: 992px) {
            & {
                width: 100%;
            justify-content: space-between;
            }
        }
    }

    .id-search-input {
        padding: 10px;
        border-radius: 10px;
        border: 1px solid var(--xhr-select-box-color);
        width: 100%;

        &#searchID {
            padding: 10px;
        }

        &::placeholder {
            padding-left: 6px;
            color: var(--xhr-select-box-color);
        }
    }

    .id-search-btn {
        padding: 5px 0;
        background: none;

        &:hover {
            background: none;

        }
    }

    .filter-bar__item--dropdown {
        width: 26.70454545454545%;
    }

    .filter-bar__item--school {
        width: 45.52556818181818%;
    }

    .filter-bar__item--search-id {
        width: calc(27.76988636363637% - 76px);

        @media screen and (max-width: 992px) {
            & {
            max-width: auto;

            }
        }
    }

    .filter-bar__item {
        @media screen and (max-width: 992px) {
            & {
                width: 100%;
            display: flex;
            flex-wrap: wrap;
            }
        }
    }
} */

.filter-bar {
    background: #f5f5f5;
    padding: 13px 0;
}

.filter-bar .filter-bar__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-bar .filter-bar__label {
    display: flex;
    width: 100%;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    min-height: 1.875rem;
}

.filter-bar .sect-id-search {
    position: relative;
}

.filter-bar .id-search__left {
    width: 90%;
}

.filter-bar .id-search__right {
    width: auto;
}

.filter-bar .id-search-container {
    gap: 1rem;
}

.filter-bar .id-search-input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--xhr-select-box-color);
    width: 100%;
}

.filter-bar .id-search-input#searchID {
    padding: 10px;
}

.filter-bar .id-search-input::placeholder {
    color: var(--xhr-select-box-color);
}

.filter-bar .id-search-btn {
    padding: 5px 0;
    background: none;
}

.filter-bar .id-search-btn:hover {
    background: none;
}

.filter-bar .filter-bar__item--dropdown {
    width: 26.70454545454545%;
}

.filter-bar .filter-bar__item--school {
    width: 45.52556818181818%;
}

.filter-bar .filter-bar__item--search-id {
    width: calc(27.76988636363637% - 76px);
}

.filter-bar__blk {
    gap: 1rem;
}

@media screen and (max-width: 992px) {
    .filter-bar .filter-bar__container {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .filter-bar .filter-bar__label {
        font-size: 1rem;
    }

    .filter-bar .sect-id-search {
        margin: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.5);
        padding-top: 5px;
        max-width: inherit;
    }

    .filter-bar .id-search__left {
        width: 100%;
    }

    .filter-bar .id-search-container {
        width: 100%;
        justify-content: space-between;
    }

    .filter-bar .filter-bar__item--search-id {
        max-width: auto;
    }

    .filter-bar .filter-bar__item {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 992px) {
    .filter-bar .sect-id-search {
        margin: 0 0 0 44px;
    }

    .filter-bar .sect-id-search::before {
        content: "";
        width: 1px;
        height: 100%;
        max-height: 4.625rem;
        background-color: rgba(0, 0, 0, 0.5);
        position: absolute;
        left: -30px;
        bottom: 0;
    }

    #searchIDErrorMsg {
        position: absolute;
        width: 100%;
        left: 4px;
        top: 45px;
    }

    .filter-bar .id-search__left {
        position: relative;
    }
}


.filter-bar__blk {
    gap: 1rem;
}

/* .input-box {
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--xhr-select-box-color);
    color: var(--xhr-select-box-color);

    @media screen and (min-width: 992px) {
        & {
            max-width: 641px;
        }
    }
} */

.input-box {
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--xhr-select-box-color);
    color: var(--xhr-select-box-color);
}

@media screen and (min-width: 992px) {
    .input-box {
        max-width: 641px;
    }
}


.input-box::placeholder {
    color: var(--xhr-select-box-color);
}

/* .is-mobile {
    #school-list {
        display: none !important;
    }
} */

.is-mobile #school-list {
    /* display: none !important; */
}

#school-list-mobile.active {
    display: block;
}

/* #school-list,
#school-list-mobile {
    position: absolute;
    width: 100%;
    top: 107%;
    left: 0;
    z-index: 99;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 6px 0px;
    background: var(--xbh-white-color);
    display: none;

    & ul {
        margin-bottom: 0;
        list-style: none;
        max-height: 200px;
        background-color: var(--xbh-white-color);
        overflow: auto;
        padding: 0;
        border-radius: 10px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;

        &.only-one {
            li {
                border-bottom: 0;
            }
        }

        & li {
            border-bottom: 1px solid #00000080;

            &:last-child {
                border-bottom: 0;
            }

            &.no-match {
                padding: 10px 1rem;
            }

            & a {
                display: block;
                width: 100%;
                font-size: 1rem;
                color: #000000;
                text-transform: uppercase;
                padding: 10px 1rem;

                &:hover {
                    text-decoration: none;
                    background-color: var(--xbh-hoverblue-color);
                }
            }
        }
    }
} */

#school-list,
#school-list-mobile {
    position: absolute;
    width: 100%;
    top: 107%;
    left: 0;
    z-index: 99;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 6px 0px;
    background: var(--xbh-white-color);
    display: none;
}

:is(#school-list, #school-list-mobile) ul {
    margin-bottom: 0;
    list-style: none;
    max-height: 200px;
    background-color: var(--xbh-white-color);
    overflow: auto;
    padding: 0;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

:is(#school-list, #school-list-mobile) ul.only-one li {
    border-bottom: 0;
}

:is(#school-list, #school-list-mobile) ul li {
    border-bottom: 1px solid #00000080;
}

:is(#school-list, #school-list-mobile) ul li:last-child {
    border-bottom: 0;
}

:is(#school-list, #school-list-mobile) ul li.no-match {
    padding: 10px 1rem;
}

:is(#school-list, #school-list-mobile) ul li a {
    display: block;
    width: 100%;
    font-size: 1rem;
    color: #000000;
    text-transform: uppercase;
    padding: 10px 1rem;
}

:is(#school-list, #school-list-mobile) ul li a:hover {
    text-decoration: none;
    background-color: var(--xbh-hoverblue-color);
}


/* #school-list-mobile {
    top: 144px;
    margin: 0 20px;
    width: calc(100% - 40px);
    border-radius: 10px;
    max-height: 80vh;

    & li {
        & a {
            color: var(--xbh-black-color);
        }
    }
} */

#school-list-mobile {
    top: 144px;
    margin: 0 20px;
    width: calc(100% - 40px);
    border-radius: 10px;
    max-height: 80vh;
}

#school-list-mobile li a {
    color: var(--xbh-black-color);
}

/* .selectFilters--category {
    position: relative;
    width: 100%;
    border: 1px solid var(--xhr-select-box-color);
    border-radius: 10px;
    padding: 10px;
    color: var(--xhr-select-box-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: var(--xbh-white-color) url('data:image/svg+xml,<svg width="24" height="17" viewBox="0 0 24 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0H0L12.7059 17L24 0Z" fill="%23B4B4B4"/></svg>') 97% 15px no-repeat;

    &::-ms-expand {
        display: none;
    }

    &::after {
        content: '\25BC';
        position: absolute;
        top: 0;
        right: 0;
        padding: 0 1em;
        background: #2b2e2e;
        cursor: pointer;
        pointer-events: none;
        transition: .25s all ease;
    }

    @media screen and (min-width: 992px) {
        max-width: 376px;
    }
} */

.selectFilters--category {
    position: relative;
    width: 100%;
    border: 1px solid var(--xhr-select-box-color);
    border-radius: 10px;
    padding: 10px;
    /*color: var(--xhr-select-box-color);*/
    color: var(--xhr-selected-box-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: var(--xbh-white-color) url('data:image/svg+xml,<svg width="24" height="17" viewBox="0 0 24 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0H0L12.7059 17L24 0Z" fill="%23B4B4B4"/></svg>') 97% 15px no-repeat;
}

.selectFilters--category::-ms-expand {
    display: none;
}

.selectFilters--category::after {
    content: "\25BC";
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1em;
    background: #2b2e2e;
    cursor: pointer;
    pointer-events: none;
    transition: 0.25s all ease;
}

@media screen and (min-width: 992px) {
    .selectFilters--category {
        max-width: 376px;
    }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.search-box {
    background: var(--xbh-white-color);
    padding: 50px 20px 20px;
    border-radius: 8px;
    width: 100vw;
    height: 100vh;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-box input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.search-results li {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.close-overlay {
    position: absolute;
    top: -10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 48px;
    cursor: pointer;
    color: #333;
}


@media screen and (max-width: 500px) {
:is(#school-list, #school-list-mobile) ul li a {
    font-size: 0.85rem;
    line-height: 1.2;
}
}