﻿#map {
    width: 100%;
    height: calc(100vh - 56px);
    top: 0;
    left: 0;
    position: absolute;
    z-index: 0;
}

.page-map {
    position: relative;
}

.ol-layerswitcher .panel-container {
    background-color: var(--bs-body-bg) !important;
}

    .ol-layerswitcher .panel-container .panel .ol-layer-group ul .layerswitcher-opacity {
        display: none;
    }

.ol-layerswitcher .layerswitcher-opacity {
    border: 1px solid var(--bs-primary-border-subtle);
}

    .ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor {
        background: rgba(var(--bs-primary-rgb), 0.5);
    }

.search-overlay {
    position: fixed;
    z-index: 1000;
}

.search-container {
    position: relative;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1050;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

    #searchResults .dropdown-item {
        cursor: pointer;
        white-space: normal;
        color: inherit;
    }

        #searchResults .dropdown-item:hover {
            background-color: var(--bs-primary-bg-subtle);
            color: var(--bs-primary-text);
        }


.bottom-left-panel {
    position: absolute;
    left: 1em;
    bottom: 1em;
}

.top-right-panel {
    position: absolute;
    right: 3em;
    top: 3em;
}

.bottom-right-panel {
    position: absolute;
    right: 1em;
    bottom: 4em;
}

#site-buttons-panel {
    pointer-events: auto !important;
}

.ol-popup.station-popup {
    background-color: var(--bs-tertiary-bg);
}

#ui-shield {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Above everything */
    cursor: move;
}

    .ol-popup.station-popup .ol-popup-content {
        font-size: 1rem;
        user-select: text;
    }

        .ol-popup.station-popup .ol-popup-content table img {
            max-width: 16em;
        }

        .ol-popup.station-popup .ol-popup-content .border {
            padding: 1rem;
        }

            .ol-popup.station-popup .ol-popup-content .border h5 {
                margin-bottom: 0;
            }
