section#viewer .view[data-active-view="map"] {
    padding: 0;
    position: relative;

    #map {
        height: 100%;
        background-color: black;
        outline: none;
    }

    #map .loading {
        display: none;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-overlay-color);
        z-index: 999;

        #lottie-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }
    #map.waiting .loading {
        display: block;
    }

    #map .leaflet-bar a {
        line-height: 24px;
    }

    footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background-color: rgba(0, 0, 0, 0.85);
    }

    footer > p {
        display: inline-block;
    }
    footer > p:not(:last-child) {
        margin-right: .4rem;
    }

    .search-container {
        position: absolute;
        z-index: 99999;
        background-color: var(--bg-overlay-color);
        border: solid 1px var(--border-color);
        border-radius: var(--border-radius);
        top: 1.2rem;
        left: 1.2rem;
        width: 420px;;
        overflow: hidden;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);

        .search {
            border-bottom: solid 1px var(--border-color);
            position: relative;
        }

        #search-input {
            border-color: var(--bg-overlay-color);
            background-color: inherit;
            padding: .6rem;
            padding-left: calc(16px + 1.2rem);
            width: 100%;
            border-radius: var(--border-radius) var(--border-radius) 0px 0px;
        }
        label {
            font-size: 0;
            position: absolute;
            left: .6rem;
            top: 50%;
            transform: translateY(-50%);
        }

        .results {
            max-height: 300px;
            overflow-y: auto;
        }    

        .footer {
            display: flex;
            justify-content: space-between;
            padding: .2rem .6rem;
            border-top: solid 1px var(--border-color);
        }
    }
}

.leaflet-control-attribution {
    background-color: rgba(0, 0, 0, 0.85) !important;
}
.leaflet-control-attribution a {
    color: var(--text-second-color) !important;
}


.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    margin-right: 1.2rem !important;
    margin-bottom: 1.5rem !important;
}

.leaflet-bar a {
    background-color: var(--bg-overlay-color) !important;
}
.leaflet-bar a:not(:last-child) {
    border-bottom: 1px solid var(--border-color) !important;
}

.hexbin-container {
    cursor: pointer;
}
.hexbin-container:hover .hexbin-hexagon {
    fill: var(--accent-color);
}