/* Site-specific overrides for the map (wwwroot/js/style.css is shared with the standalone page).
   Must be loaded after /js/style.css. */

body {
    margin-bottom: 60px;
}

svg#map {
    position: static;
}

.lefttop {
    top: 80px;
    left: 80px;
}

.righttop {
    top: 80px;
    right: calc(80px + var(--sidebar-width, 0px));
}

.ztree {
    text-align: left;
}

/* Keep the embedded map in the space left below the navigation. */
body.map-page {
    height: 100vh;
    height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-page > header {
    flex: 0 0 auto;
    position: relative;
    z-index: 1100;
}

.map-page > header .navbar {
    margin-bottom: 0 !important;
}

.map-page > .container {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.map-page > .container > main {
    padding-bottom: 0 !important;
}

.map-page svg#map {
    position: absolute;
    inset: 0;
}

.map-page .lefttop {
    top: 15px;
    left: 20px;
}

.map-page .righttop {
    top: 15px;
    right: calc(20px + var(--sidebar-width, 0px));
}

.map-page #siteNavigation .nav-link {
    white-space: nowrap;
}

.map-page #siteNavigation {
    min-width: 0;
}

@media (max-width: 1399.98px) {
    .map-page #siteNavigation {
        max-height: 45vh;
        overflow-y: auto;
    }
}

@media (min-width: 1400px) {
    .map-page #siteNavigation {
        flex-wrap: wrap;
    }

    .map-page #siteNavigation > .navbar-nav {
        flex-wrap: wrap;
    }
}
