/* Google Map
----------------------------------------------------------------------------- */
@media all {
    .tx-ti-dios-institutions .tx-ti-dios-institution-map-content .ce-element {
        margin-bottom: 0;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map {
        position: relative;
        padding-bottom: 100%;
        height: 0;
        overflow: hidden;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map img {
        display: initial;
    }
}

/* Google Map Infobox
----------------------------------------------------------------------------- */
@media all {
    .gm-style .gm-style-iw-c {
        background: rgb(110,34,114) !important;
        padding: 0;
    }

    .gm-style .gm-style-iw-d {
        overflow: auto !important;
    }

    .gm-style .gm-style-iw-t::after {
        background: rgb(110,34,114) !important;
    }

    .gm-style .gm-ui-hover-effect::before {
        content: 'x';
        pointer-events: none;
        display: block;
        width: 14px;
        height: 14px;
        margin: 8px;
        color: rgb(255,255,255);
    }

    .gm-style .gm-ui-hover-effect img {
        display: none !important;
    }

    .tx-ti-dios-institution-map-infobox {
        color: rgb(255,255,255);
    }
}

/* Institution Filter
----------------------------------------------------------------------------- */
@media all {
    .tx-ti-dios-institutions .tx-ti-dios-institution-filter {
        margin-bottom: 2em;
    }

    .tx-ti-dios-institutions .btn::before {
        content: '';
    }

    .tx-ti-dios-institutions .btn-primary {
        color: rgb(255,255,255);
        background-color: rgb(90,37,114);
        border: none;
        cursor: pointer;
    }

    .tx-ti-dios-institutions .btn-primary:hover {
        color: rgb(90,37,114);
        background-color: rgb(255,255,255);
    }
}

/* Filter input fields icons
----------------------------------------------------------------------------- */
@media all {
    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-input,
    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-dropdown {
        position: relative;
        background: rgb(255,255,255);
    }

    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-input::before,
    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-dropdown::before {
        background: none no-repeat center #FFF;
        bottom: 0;
        content: "";
        height: 9px;
        margin: auto;
        position: absolute;
        right: 0.625em;
        top: 0;
        width: 9px;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-input::before {
        background-image: url(../Images/gfx-arrow-right.png);
    }

    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-dropdown::before {
        background-image: url(../Images/gfx-arrow-down.png);
    }

    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-input input:not([type="radio"]):not([type="checkbox"]),
    .tx-ti-dios-institutions .tx-ti-dios-institutions-filter-dropdown input:not([type="radio"]):not([type="checkbox"]) {
        background-color: transparent;
    }
}

/* Institution List
----------------------------------------------------------------------------- */
@media all {
    .ce-frame-inverted .tx-ti-dios-institution-list a:not(.btn) {
        color: rgb(90,37,114);
        text-decoration: none;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-list-item:hover a:not(.btn) {
        color: rgb(255,255,255);
    }

    .tx-ti-dios-institution-list-item .ce-header a::before {
        content: '\f0a9';
        display: inline-block;
        font-family: FontAwesome;
        font-weight: normal;
        font-style: normal;
        margin-right: 0.25em;
        text-decoration: none;
    }

    .tx-ti-dios-institution-list-item .ce-type-textmedia {
        margin-left: 1.75em
    }

    .tx-ti-dios-institution-list-item .ce-bodytext {
        font-weight: bold;
    }

    .ui-autocomplete.ui-front {
        max-height: 400px;
        overflow-y: auto;   /* prevent horizontal scrollbar */
        overflow-x: hidden; /* add padding to account for vertical scrollbar */
        z-index: 1000 !important;
        /*max-width: 439px;*/

        height: auto;
        left: 0;
        max-height: 20em;
        position: absolute;
        /*right: 0;*/
        top: 100%;
    }

    .ui-menu .ui-menu-item-wrapper {
        padding: 3px 0.8em 3px .4em !important;
    }
}

/* Maps/List Tabs
----------------------------------------------------------------------------- */
@media all {
    .tx-ti-dios-institutions .rc-tab-headings {
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 1;
    }

    .tx-ti-dios-institutions .rc-tab-headings li {
        float: left;
        margin: 0;
    }

    .tx-ti-dios-institutions .rc-tab-headings button {
        color: inherit;
        border: 1px solid currentColor;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
        border-right-width: 0;
        padding: 0.625rem;
        background: none;
        opacity: 0.5;
        -webkit-appearance: none;
    }

    .tx-ti-dios-institutions .rc-tab-headings li {
        background: rgb(70,38,114);
        color: rgb(255,255,255);
        width: 50%;
    }

    .tx-ti-dios-institutions .rc-tab-headings button,
    .tx-ti-dios-institutions .ce-frame-inverted .rc-tab-headings li.rc-open button,
    .tx-ti-dios-institutions .rc-tab-headings li.rc-open + li button,
    .tx-ti-dios-institutions .rc-tab-headings li:last-child button {
        border: none;
    }

    .tx-ti-dios-institutions .rc-tab-headings button {
        width: 100%;
        opacity: 1;
        padding: 1.3em 0 1.3em 0;
        cursor: pointer;
    }

    .tx-ti-dios-institutions .rc-tab-headings .fa {
        margin-right: 0.5em;
    }

    .tx-ti-dios-institutions .rc-open,
    .tx-ti-dios-institutions .rc-tab-headings .rc-open {
        background: rgb(255,255,255);
        color: rgb(70,38,114);
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-tab-listview,
    .tx-ti-dios-institutions .tx-ti-dios-institution-tab-mapview {
        padding: 0;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-tab-listview .tx-ti-dios-institution-list-item {
        padding: 1.25rem;
        color: rgb(0,0,0);
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-tab-listview .tx-ti-dios-institution-list-item:hover {
        background-color: rgb(90,37,114);
        color: rgb(255,255,255);
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-tab-listview .tx-ti-dios-institution-list-item:hover .btn-primary {
        color: rgb(90,37,114);
        background-color: rgb(255,255,255);
    }

    .tx-ti-dios-institutions .rc-tab-panel {
        border: 0;
        margin-top: 0 !important;
    }
}

/* Maps Infobox
----------------------------------------------------------------------------- */
@media all {
    .tx-ti-dios-institution-map-infobox {
        margin: 1.5rem;
    }

    .tx-ti-dios-institution-map-infobox .ce-header a:not(.btn) {
        text-decoration: none;
    }

/*    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map .gm-style-iw {
        width: 400px !important;
        top: 15px !important;
        left: 110px !important;
        background-color: rgb(110,34,114);
    }*/

    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map .iw-wrapper {
        max-width: 90%;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map .iw-close-button img {
        display: none;
    }

    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map .iw-close-button::before {
        content: '\f00d';
        display: inline-block;
        font-family: FontAwesome;
        font-weight: normal;
        font-style: normal;
        margin-right: 0.25em;
        text-decoration: none;
        color: rgb(255,255,255);
    }
}

/* Google Map > 72.5em
----------------------------------------------------------------------------- */
@media (min-width: 72.5em) {
    .tx-ti-dios-institutions .tx-ti-dios-institution-google-map {
        padding-bottom: 75%;
    }
}

/*Overlay for Opt-In*/
.tx-ti-dios-institution-map-content .ce-bodytext{
    position: relative;
}
.ce-media-overlay-click-for-map {
    color: rgb(0,0,0);
    background-color: rgba(255,255,255,0.75);    
    text-shadow: 0 0 3px rgba(255,255,255,0.75);
    /*          color: rgb(255,255,255);
                background-color: rgba(0,0,0,0.75);
                text-shadow: 0 0 3px rgba(0,0,0,0.5);*/
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.ce-media-overlay-click-for-map p {
    max-width: 100%; /* IE11 */
}
.tx-ti-dios-institution-map-content .ce-media-overlay-btn {    
    border: 2px solid transparent !important;
}
.tx-ti-dios-institution-map-content .ce-media-overlay-btn:hover {    
    border: 2px solid currentColor !important;
}
.tx-ti-dios-institution-map-content .ce-media-overlay-poster {
    transition: 4s opacity ease-in;
    background-image: url("../Images/map-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}
.ce-media-overlay-privacy-policy:not(.btn){
    color: rgb(90,37,114);
}