﻿html,
body {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

#navigation {
    display: block;
    position: fixed;
    height: 55px;
    left: 0;
    top: 0;
    right: 0;
    bottom: auto;
}

#map {
    background: #ecf0f1;
    display: block;
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
}

#map-overlay {
    bottom: 0;
    display: block;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 55px;
    z-index: 50;
}

#map-overlay .allow-events {
    pointer-events: all;
}

#map-overlay #tools-right {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: 500px;
    max-width: calc(100% - 32px);
}

#map-overlay #tools-right .popup-card {
    max-height: 100%;
    z-index: 500;
}

#map-overlay #tools-right .popup-card>.card-body {
    overflow-y: auto;
}

/*#map-overlay #legendCard > .card-body > img {
    width: 100%;
}*/

#map-overlay #streetViewCard {
    height: 100%;
    /*height: calc(100vh - 142px);*/
}

#map-overlay #streetViewCard #streetViewCardBody {
    height: 100%;
}

#map-overlay #streetViewCard #streetViewCardBody>iframe {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    border: none;
}

.map-tooltip {
    background-color: #008cba;
    border-radius: 4px;
    color: white;
    display: block;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 0.8203125rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 4px 8px;
    position: relative;
    white-space: nowrap;
}

.map-tooltip.active {
    font-weight: bold;
}

.map-tooltip.arrow::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #008cba;
    bottom: -6px;
    content: "";
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

/* Custom overview map */

.ol-overviewmap.ol-custom-overviewmap.ol-control {
    align-items: flex-end;
    background: none;
    border-radius: 0;
    bottom: 16px;
    display: flex;
    left: auto;
    padding: 0;
    right: 16px;
    top: auto;
    z-index: 250;
}

.ol-overviewmap.ol-custom-overviewmap.ol-control>.ol-overviewmap-map {
    background: #bdc3c7;
    border: 1px solid #0079a1;
    margin: 0 8px 0 0;
    width: 300px;
}

.ol-overviewmap.ol-custom-overviewmap.ol-control>button {
    background-color: #008cba;
    border: 1px solid #0079a1;
    border-radius: 0;
    bottom: auto;
    cursor: pointer;
    font-size: 14px;
    height: 1.5em;
    left: auto;
    line-height: 14px;
    margin: 0;
    position: static;
    right: auto;
    top: auto;
    width: 1.5em;
}

.ol-overviewmap.ol-custom-overviewmap.ol-control>button:hover {
    background: #fff;
    background-color: #006f94;
    border-color: #006687;
}

.ol-overviewmap.ol-custom-overviewmap.ol-control>button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 140, 186, 0.5);
    outline: 0;
}

.ol-overviewmap.ol-custom-overviewmap.ol-control .ol-overviewmap-box {
    border: 2px solid red;
}

.ol-overviewmap.ol-custom-overviewmap.ol-control.ol-collapsed>.ol-overviewmap-map {
    display: none;
}

/* Custom overview map end */

/* Rotate */

div.ol-rotate.ol-control {
    background: none;
    bottom: auto;
    left: 22px;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: auto;
    top: 140px;
}

div.ol-rotate.ol-control>button {
    background: none;
    cursor: pointer;
    height: 28px;
    margin: 0;
    padding: 0;
    pointer-events: all;
    width: 28px;
}

div.ol-rotate.ol-control>button>.acstre-compass {
    background-image: url('../images/compass.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    width: 100%;
}

/* Rotate end */

/* Scale line */

#map-overlay #bottomToolbar {
    bottom: 16px;
    display: flex;
    justify-content: flex-start;
    left: 16px;
    position: absolute;
    right: 16px;
}

#map-overlay #bottomToolbar #scaleLine {
    display: block;
}

#map-overlay #bottomToolbar #scaleLine>.ol-scale-line {
    background: #008cba;
    border-radius: 0;
    padding: 2px;
    position: static;
}

#map-overlay #bottomToolbar #scaleLine>.ol-scale-line>.ol-scale-line-inner {
    height: 21px;
    margin: 0;
}

#map-overlay #bottomToolbar #mousePosition {
    display: block;
    margin: 0 0 0 8px;
    padding: 0;
}

#map-overlay #bottomToolbar #mousePosition.acstre-mouse-position {
    background: #008cba;
    color: white;
    display: block;
    font-size: 12px;
    height: 25px;
    line-height: 20px;
    margin: 0 0 0 8px;
    padding: 1px 2px;
}

#map-overlay #bottomToolbar #mousePosition.acstre-mouse-position:empty {
    display: none;
}

#map-overlay #bottomToolbar #mousePosition.acstre-mouse-position>.acstre-mouse-position-search-button {
    padding: 0 2px 0 2px;
    margin-top: 1px;
    height: 21px;
    line-height: 1px;
}

#map-overlay #bottomToolbar #mousePosition.acstre-mouse-position>.acstre-mouse-position-coords {
    display: inline-block;
    vertical-align: middle;
}

/* Scale line end */

#map-overlay #featureInfoCard #featureInfoAccordion {
    overflow: auto;
    height: calc(100% - 53px);
}

#map-overlay #featureInfoCard #featureInfoAccordion.accordion .card:first-of-type:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

#zoomGroup {
    left: 16px;
    position: absolute;
    top: 16px;
    z-index: 200;
}

#zoomGroup>div {
    background: #bbb;
}

.acstre-info-cursor {
    cursor: help;
}

.acstre-streetview-cursor {
    cursor: crosshair;
}

/* Loader */

div#AcstreLoaderElement.AcstreLoader {
    background-color: #ecf0f1;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9999;
}

div#AcstreLoaderElement.AcstreLoader>.AcstreLoaderLogo {
    background-image: url("../images/logo.png");
    bottom: 10px;
    height: 58px;
    position: absolute;
    right: 10px;
    width: 60px;
    z-index: 9999;
}

div#AcstreLoaderElement.AcstreLoader>.AcstreLoaderImage {
    background-image: url("../images/loader.gif");
    height: 198px;
    left: calc(50% - 99px);
    position: absolute;
    top: calc(50% - 99px);
    width: 198px;
    z-index: 9999;
}

div#AcstreLoaderElement.AcstreLoader>.AcstreLoaderError {
    background-color: #1067A0;
    color: #ecf0f1;
    display: none;
    font-family: tahoma, sans-serif;
    font-size: 16px;
    left: 50%;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    z-index: 9999;
}

@media all and (max-width: 600px) {
    div#AcstreLoaderElement.AcstreLoader>.AcstreLoaderError {
        width: 80%;
    }
}

/* Loader end */

#map-overlay .dropdown-toggle.no-arrow::after {
    content: none;
}

#map-overlay .btn-group>.btn {
    padding: 0;
    height: 36px;
    width: 36px;
    text-align: center;
    line-height: 34px;
}

.tools-xs-nowrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tools-xs-nowrap>.btn-group+.btn-group {
    margin-left: 0;
    margin-top: 8px;
}

@media only screen and (max-height: 450px) {
    div.tools-xs-nowrap {
        flex-direction: row;
    }

    div.tools-xs-nowrap>.btn-group+.btn-group {
        margin-left: 8px;
        margin-top: 0;
    }
}

.form-control-range.acstre-range {
    width: auto;
    display: inline-block;
}

#changePositionCard {
    position: absolute;
    bottom: 49px;
    width: 350px;
    left: 16px;
    margin-right: 0 !important;
}

@media all and (max-width: 450px) {
    #changePositionCard {
        width: auto;
        right: 16px;
    }
}

.ol-box {
    box-sizing: border-box;
    border-radius: 2px;
    border: 2px solid #008cba !important;
    background-color: #008cba40;
}

#exportAsKmlSpinner {
    width: 40px;
    display: none;
}

#exportAsKmlError {
    font-size: 80%;
}

.galleria-theme-azur .galleria-fullscreen,
.galleria-theme-azur .galleria-play {
    border-right: 1px solid #005c7a !important;
}

.galleria-theme-azur .galleria-stage {
    background: none !important;
    border: 1px solid #008cba !important;
}

.galleria-theme-azur .galleria-thumblink.open,
.galleria-theme-azur.notouch .galleria-fullscreen:hover,
.galleria-theme-azur.notouch .galleria-play:hover,
.galleria-theme-azur.notouch .galleria-popout:hover,
.galleria-theme-azur.notouch .galleria-thumblink:hover,
.galleria-theme-azur.touch .galleria-fullscreen:active,
.galleria-theme-azur.touch .galleria-play:active,
.galleria-theme-azur.touch .galleria-popout:active,
.galleria-theme-azur.touch .galleria-thumblink:active {
    background-color: #006687 !important;
}

.galleria-theme-azur .galleria-bar {
    background: none !important;
    background-color: #008cba !important;
}

.galleria-theme-azur .galleria-thumbnails .galleria-image {
    border: 3px double #005c7a !important;
  }