body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: Lato, sans-serif
}

#map {
    width: 100%;
    height: 100%;
    background-color: #010101
}

span.loading {
    display: block;
    text-align: center
}

a:hover {
    opacity: .8
}



.navigationfilter {
    width: 90%;
    height: 30px;
    display: block;
    margin: 10px auto;
    font-color: #666;
    text-transform: uppercase
}

.navigationlist a {
    color: #fff;
    font-size: 18px;
    text-decoration: none
}

.navigationlist a:hover {
    opacity: .8
}

.filtertext {
    width: 80%
}

.map-navigation {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 75%;
    width: 100%;
    width: 130%;
    min-width: 380px
}

.navigationlist {
    list-style: none;
    margin-left: 0;
    padding-left: 15px;
    padding-right: 40px
}

a.nav_capital {
    background-image: url(images/icons/capital.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_castle {
    background-image: url(images/icons/castle.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_city {
    background-image: url(images/icons/city.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_imperialcapital {
    background-image: url(images/icons/capital.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_monolith {
    background-image: url(images/icons/monolith.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_mountain {
    background-image: url(images/icons/mountain.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_oasis {
    background-image: url(images/icons/oasis.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_oldbattlefield {
    background-image: url(images/icons/oldbattlefield.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_other {
    background-image: url(images/icons/other.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_ruin {
    background-image: url(images/icons/ruin.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_site {
    background-image: url(images/icons/site.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_titan {
    background-image: url(images/icons/titan.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_town {
    background-image: url(images/icons/town.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

a.nav_worldtree {
    background-image: url(images/icons/worldtree.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px
}

#attribution a {
    color: #fff;

}

.sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    z-index: 2000;
    background-color: rgba(0, 0, 0, .8)
}

.sidebar.collapsed {
    width: 40px
}

@media (min-width:768px) {
    .sidebar {
        top: 0;
        bottom: 0;
        transition: width .5s
    }
}

@media (min-width:768px) and (max-width:991px) {
    .sidebar {
        width: 370px
    }
}

@media (min-width:992px) and (max-width:1199px) {
    .sidebar {
        width: 400px
    }
}

@media (min-width:1200px) {
    .sidebar {
        width: 480px
    }
}

.sidebar-left {
    left: 0
}

@media (min-width:768px) {
    .sidebar-left {
        left: 0
    }
}

.sidebar-right {
    right: 0
}

@media (min-width:768px) {
    .sidebar-right {
        right: 0
    }
}

.sidebar-tabs {
    top: 0;
    bottom: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, .8)
}

.sidebar-left .sidebar-tabs {
    left: 0
}

.sidebar-right .sidebar-tabs {
    right: 0
}

.sidebar-tabs,
.sidebar-tabs>ul {
    position: absolute;
    width: 40px;
    margin: 0;
    padding: 0;
    list-style-type: none
}

.sidebar-tabs>li,
.sidebar-tabs>ul>li {
    width: 100%;
    margin: 25px 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.2em;
    overflow: hidden;
    transition: all 80ms
}

.sidebar-tabs>li:hover,
.sidebar-tabs>ul>li:hover {
    color: #fff;
    opacity: .5;
    background-color: rgba(0, 0, 0, .8)
}

.sidebar-tabs>li.active,
.sidebar-tabs>ul>li.active {
    color: #fff
}

.sidebar-tabs>li.disabled,
.sidebar-tabs>ul>li.disabled {
    color: rgba(51, 51, 51, .4)
}

.sidebar-tabs>li.disabled:hover,
.sidebar-tabs>ul>li.disabled:hover {
    background: 0 0
}

.sidebar-tabs>li.disabled>a,
.sidebar-tabs>ul>li.disabled>a {
    cursor: default
}

.sidebar-tabs>li>a,
.sidebar-tabs>ul>li>a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    text-align: center
}

.sidebar-tabs>ul+ul {
    bottom: 0
}

.sidebar>.sidebar-content {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .2);
    overflow-x: hidden;
    overflow-y: auto;
    color: #fff
}

.sidebar .sidebar-content a {
    color: #fff;
    text-decoration: underline;
}

.sidebar-left>.sidebar-content {
    left: 40px;
    right: 0;
    padding-left: 10px
}

.sidebar-right>.sidebar-content {
    left: 0;
    right: 40px
}

.sidebar.collapsed>.sidebar-content {
    overflow-y: hidden
}

.sidebar-pane {
    display: none;
    left: 0;
    right: 0;
    box-sizing: border-box;
    padding: 10px 20px
}

.sidebar-pane.active {
    display: block
}

@media (min-width:768px) and (max-width:991px) {
    .sidebar-pane {
        min-width: 300px
    }
}

@media (min-width:992px) and (max-width:1199px) {
    .sidebar-pane {
        min-width: 350px
    }
}

@media (min-width:1200px) {
    .sidebar-pane {
        min-width: 420px
    }
}

.sidebar-header {
    margin: -10px -20px 0;
    height: 40px;
    padding: 10px 20px 0 0;
    color: #fff;
    border-bottom: 2px solid #fff;
    text-transform: uppercase
}

.sidebar-right .sidebar-header {
    padding-left: 40px
}

.sidebar-close {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer
}

.sidebar-left .sidebar-close {
    right: 0
}

.sidebar-right .sidebar-close {
    left: 0
}

.sidebar-left~.sidebar-map {
    margin-left: 40px
}

@media (min-width:768px) {
    .sidebar-left~.sidebar-map {
        margin-left: 0
    }
}

.sidebar {
    box-shadow: 0 1px 5px rgba(0, 0, 0, .65)
}

.sidebar.leaflet-touch {
    box-shadow: none
}

.sidebar-right~.sidebar-map {
    margin-right: 40px
}

@media (min-width:768px) {
    .sidebar-right~.sidebar-map {
        margin-right: 0
    }
}

@media (min-width:768px) {
    .sidebar {
        border-radius: 4px
    }
}

@media (min-width:768px) {
    .sidebar-left~.sidebar-map .leaflet-left {
        transition: left .5s
    }
}

@media (min-width:768px) and (max-width:991px) {
    .sidebar-left~.sidebar-map .leaflet-left {
        left: 315px
    }
}

@media (min-width:992px) and (max-width:1199px) {
    .sidebar-left~.sidebar-map .leaflet-left {
        left: 400px
    }
}

@media (min-width:1200px) {
    .sidebar-left~.sidebar-map .leaflet-left {
        left: 470px
    }
}

@media (min-width:768px) {
    .sidebar-left.collapsed~.sidebar-map .leaflet-left {
        left: 50px
    }
}

@media (min-width:768px) {
    .sidebar-right~.sidebar-map .leaflet-right {
        transition: right .5s
    }
}

@media (min-width:768px) and (max-width:991px) {
    .sidebar-right~.sidebar-map .leaflet-right {
        right: 315px
    }
}

@media (min-width:992px) and (max-width:1199px) {
    .sidebar-right~.sidebar-map .leaflet-right {
        right: 400px
    }
}

@media (min-width:1200px) {
    .sidebar-right~.sidebar-map .leaflet-right {
        right: 470px
    }
}

@media (min-width:768px) {
    .sidebar-right.collapsed~.sidebar-map .leaflet-right {
        right: 50px
    }
}

.sidebar-content li {
    margin-bottom: 10px;
}

.homepane h3 {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #fff
}

.leaflet-bar a:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: none !important
}

.leaflet-bar a,
.leaflet-bar a:hover {
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 18px;
    border-bottom: 1px solid #ccc
}

.leaflet-control-layers {
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 18px
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important
}

.leaflet-ruler {
    height: 44px;
    width: 44px;
    background-color: rgba(0, 0, 0, .7);
    background-image: url(images/ruler/compass-icon-colored.png);
    background-repeat: no-repeat;
    background-position: center
}

.leaflet-ruler:hover {
    border-color: #de0000 !important
}

.leaflet-ruler-clicked {
    height: 44px;
    width: 44px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(images/ruler/compass-icon-colored.png);
    border-color: #de0000 !important
}

.mobile-pathfinder-off-control {
    display: none;
}

.mobile-pathfinder-off-btn {
    min-width: 44px;
    height: 44px;
    line-height: 44px;
    padding: 0;
    text-align: center;
    font-size: 26px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background-color: rgba(150, 0, 0, .9);
}

.mobile-pathfinder-off-btn:hover {
    background-color: rgba(190, 0, 0, .9);
}

#mobile-control-touch-guard {
    display: none;
}

@media (max-width: 1024px) {
    #mobile-control-touch-guard {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 78px;
        height: 100%;
        background: transparent;
        z-index: 700;
        pointer-events: auto;
    }

    .leaflet-top.leaflet-right {
        z-index: 900;
    }

    .leaflet-top.leaflet-right .leaflet-control {
        position: relative;
        z-index: 901;
        touch-action: manipulation;
    }

    .leaflet-control-zoom-in,
    .leaflet-control-zoom-out {
        width: 56px !important;
        height: 56px !important;
        line-height: 56px !important;
        font-size: 24px;
    }

    .leaflet-ruler,
    .leaflet-ruler-clicked {
        width: 56px;
        height: 56px;
        background-size: 28px 28px;
    }

    .mobile-pathfinder-off-control {
        display: block;
        margin-top: 6px;
    }

    .mobile-pathfinder-off-btn {
        min-width: 56px;
        height: 56px;
        line-height: 56px;
        font-size: 32px;
    }
}

.leaflet-control {
    cursor: pointer
}

.result-tooltip {
    background-color: rgba(0, 0, 0, .7);
    border-width: narrow;
    border-color: #de0000;
    font-size: medium;
    color: #fff
}

.moving-tooltip {
    background-color: rgba(0, 0, 0, .7);
    background-clip: padding-box;
    opacity: .5;
    border: dotted;
    border-color: #de0000;
    font-size: medium;
    color: #fff;
    border-width: narrow
}

.plus-length {
    padding-left: 30px
}



.sidebar-submap-list ul {
    margin: 0.75em 0;
    padding: 0 1em;
    list-style: none;
}

.sidebar-submap-list li:before {
    content: "";
    border-color: transparent #fff;
    border-style: solid;
    border-width: 0.35em 0 0.35em 0.45em;
    display: block;
    height: 0;
    width: 0;
    left: -1em;
    top: 1.05em;
    position: relative;
}



.sidebar-submap-list li {
    margin: 5px 5px 15px 5px;
}

.sidebar-submap-list a {
    text-decoration: none;
    margin: 0 0 15px 0px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.leaflet-popup-content {
    text-align: left !important;
    min-width: 128px !important;
    max-width: 200px !important;
}

.marker-popup-title {
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 4px;
}

.marker-popup-link-row {
    text-align: right !important;
    margin-top: 4px;
}

.marker-popup-link {
    font-weight: bold;
    text-decoration: none;
}

.leaflet-popup-content a {
    text-decoration: none;
    font-weight: bold;
}

.leaflet-popup-content img.submapimage {
    max-width: 160px;
    height: auto;
    width: 100%;
}

.coord-copy-notice {
    text-decoration: underline;
}

.marker-list-items {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.marker-list-items li {
    margin: 0 0 8px;
}

.marker-list-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .35);
    background-color: rgba(0, 0, 0, .45);
    color: #fff;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}

.marker-list-btn:hover {
    background-color: rgba(255, 255, 255, .18);
}

.marker-list-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
}

.marker-list-label {
    flex: 1;
}

.marker-list-status {
    margin-top: 8px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}
