﻿/* Map and legend related styles */


#map-container, .map-container, #map {
    height: 100%;
    width: 100%;
}

/* Point filtering */
.pnt-filter-container {
    /*display:none !important;*/
}

/* Map layer groups */

.mgroup-header {
    margin: 8px -20px;
    padding-left: 16px;
    height: 32px;
    line-height: 32px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.mgroup-toggle {
    padding-right: 10px;
    text-decoration: none;
    color: #a8a8a8 !important;
}


/* Map layers */
div.mlayer-container label {
    height: 16px;
}

div.mlayer-container, div.mlayer-container label, div.mlayer-container span {
    font-size: 0.95em;
    text-decoration: none;
    text-indent: 4px;
    margin-bottom: 5px;
    /*display: inline-block;*/
}

    div.mlayer-container label.leg-text {
        display: inline-block;
    }

div.mlayer-container {
    width: 100%;
}

label.leg-label {
    font-weight: normal;
}

a, input[type="button"], ul li {
    outline: none !important;
}

    a.mlayer-toggle:focus,
    a.meth-toggle:focus {
        outline: none !important;
    }

    a.mlayer-toggle:visited, a.mlayer-toggle:hover,
    a.meth-toggle:visited, a.meth-toggle:hover {
        text-decoration: none;
    }

    a.mlayer-toggle, a.meth-toggle {
        display: inline-block;
        border-radius: .5rem;
        width: 12px;
        height: 16px;
        font-size: .8em;
        border: 1px solid #a9a9a9;
        text-align: center;
        text-decoration: none;
        margin: 0 4px 5px -12px;
        padding: 0 4px 0 0;
    }

div.mlayer-container input[type="checkbox"] {
    padding-left: 0px;
}

div.mlayer-container input[type="checkbox"] {
    vertical-align: middle;
    padding: 0;
    margin: 0 4px 0 0;
    width: 16px;
    height: 16px;
}

ul.legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

    ul.legend li {
        padding-left: 8px;
        text-indent: 0px; /* 20px */
    }

label.leg-text {
    height: 100% !important;
    padding-left: 4px;
    text-indent: 0px !important;
}

div.leg-circle {
    width: 10px;
    height: 10px;
    background: red;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    display: inline-block;
    margin-right: 4px;
    border: 1px solid black;
    display: inline-block;
    flex: 0 0 10px;
}

div.leg-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 16px 8px;
    border-color: transparent transparent black transparent;
    padding: 0;
}

div.leg-cross {
    width: 15px;
    height: 14px;
}

div.leg-polyline {
    width: 15px;
    height: 2px;
    padding-left: 0px;
    padding-right: 0px;
    margin-bottom: 4px;
    margin-top: 6px;
    border: 2px solid blue;
    display: inline-block;
    flex: 0 0 15px;
}

div.leg-polyline-thin {
    width: 15px;
    height: 1px;
    padding-left: 0px;
    padding-right: 0px;
    margin-bottom: 4px;
    border: 1px solid blue;
    display: inline-block;
    flex: 0 0 15px;
}

div.leg-polygon, div.leg-square {
    width: 14px;
    height: 14px;
    padding-left: 0px;
    padding-right: 0px;
    border: 2px solid blue;
    display: inline-block;
}

/* Star shape: LL (red) */

div.leg-star, div.leg-star_LL {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    margin-right: 8px;
    margin-bottom: 1.2em;
    border-right: .3em solid transparent;
    border-bottom: .7em solid red;
    border-left: .3em solid transparent;
    /* Controlls the size of the stars. */
    font-size: 9px;
    color: red;
}

    div.leg-star:before, div.leg-star:after,
    div.leg-star_LL:before, div.leg-star_LL:after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        top: .6em;
        left: -1em;
        border-right: 1em solid transparent;
        border-bottom: .7em solid red;
        border-left: 1em solid transparent;
        transform: rotate(-35deg);
    }

    div.leg-star:after, div.leg-star_LL:after {
        transform: rotate(35deg);
    }

/* Star shape: AEL (color: #9a3400) */

div.leg-star_AEL {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    margin-right: 8px;
    margin-bottom: 1.2em;
    border-right: .3em solid transparent;
    border-bottom: .7em solid #9a3400;
    border-left: .3em solid transparent;
    /* Controlls the size of the stars. */
    font-size: 9px;
    color: #9a3400;
}

    div.leg-star_AEL:before, div.leg-star_AEL:after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        top: .6em;
        left: -1em;
        border-right: 1em solid transparent;
        border-bottom: .7em solid #9a3400;
        border-left: 1em solid transparent;
        transform: rotate(-35deg);
    }

    div.leg-star_AEL:after {
        transform: rotate(35deg);
    }

/* Star shape: CL (color: #fc8d59) */

div.leg-star_CL {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    margin-right: 8px;
    margin-bottom: 1.2em;
    border-right: .3em solid transparent;
    border-bottom: .7em solid #fc8d59;
    border-left: .3em solid transparent;
    /* Controlls the size of the stars. */
    font-size: 9px;
    color: #fc8d59;
}

    div.leg-star_CL:before, div.leg-star_CL:after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        top: .6em;
        left: -1em;
        border-right: 1em solid transparent;
        border-bottom: .7em solid #fc8d59;
        border-left: 1em solid transparent;
        transform: rotate(-35deg);
    }

    div.leg-star_CL:after {
        transform: rotate(35deg);
    }

/* Star shape: Awaiting Prioritization (AP) (color: #fef0d9) */

div.leg-star_AP {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    margin-right: 8px;
    margin-bottom: 1.2em;
    border-right: .3em solid transparent;
    border-bottom: .7em solid #fdcc8a;
    border-left: .3em solid transparent;
    /* Controls the size of the stars. */
    font-size: 9px;
    color: #fdcc8a;
}

    div.leg-star_AP:before, div.leg-star_AP:after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        top: .6em;
        left: -1em;
        border-right: 1em solid transparent;
        border-bottom: .7em solid #fdcc8a;
        border-left: 1em solid transparent;
        transform: rotate(-35deg);
    }

    div.leg-star_AP:after {
        transform: rotate(35deg);
    }

/* Star shape: Awaiting Prioritization (AP) (color: #fef0d9) */

div.leg-star_EP {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    margin-right: 8px;
    margin-bottom: 1.2em;
    border-right: .3em solid transparent;
    border-bottom: .7em solid #fef0d9;
    border-left: .3em solid transparent;
    /* Controls the size of the stars. */
    font-size: 9px;
    color: #fef0d9;
}

    div.leg-star_EP:before, div.leg-star_EP:after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        top: .6em;
        left: -1em;
        border-right: 1em solid transparent;
        border-bottom: .7em solid #fef0d9;
        border-left: 1em solid transparent;
        transform: rotate(-35deg);
    }

    div.leg-star_EP:after {
        transform: rotate(35deg);
    }


div.leg-img-container {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: none;
}

div.mlegend-container {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 14px; /* TMR */
}

div.mlayer-container label {
    height: 16px;
    text-indent: 4px;
    text-decoration: none;
}

.leg-text {
    font-size: 0.85em !important;
    vertical-align: top !important;
    margin-bottom: 10px !important;
}

div.leg-container {
    border-radius: 3px;
    border: 1px solid lightgray;
    padding: 2px 4px 2px 12px;
}

/* Label controls */
div.label-container {
    margin-left: 0px;
    margin-top: 8px;
}

div.mlayer-container input[type="checkbox"].label-toggle {
    margin: 0px 8px 2px 6px;
}

p.layer-comment {
    font-size: 0.8em;
    font-style: italic;
    margin: 6px 0px 20px 20px;
}

/* Basemap controls */
#lab-basemap {
    height: 16px;
    text-indent: 4px;
    padding-left: 0px;
    font-style: normal;
}

#sel-basemap {
    max-width: 265px;
    font-size: 14px;
    margin-left: 0px;
    margin-bottom: 8px;
}


/* Map popup content formatting */
ul.popup {
    list-style-type: none;
    padding-left: 0px;
    margin-top: 0;
    margin-bottom: 10px;
}

    ul.popup li {
        margin: 6px 0 6px 0;
    }

        ul.popup li span.key {
            display: inline-block;
            width: 90px;
            text-align: right;
            vertical-align: top;
            font-size: 0.9em;
            font-weight: bold;
        }

        ul.popup li span.value {
            display: inline-block;
            left: 90px;
            width: 160px;
            padding-left: 10px;
            vertical-align: top;
            text-align: left;
            font-size: 0.9em;
        }

/* Map popup */
.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 0px; /* 15px */
    border-radius: 5px;
    border: 1px solid #cccccc;
    bottom: 26px;
    left: -49px;
    min-width: 300px;
}

    .ol-popup:after, .ol-popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .ol-popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 48px;
        margin-left: -10px;
    }

    .ol-popup:before {
        border-top-color: #cccccc;
        border-width: 11px;
        left: 48px;
        margin-left: -11px;
    }

.popup-header {
    background-color: #f2f2f2;
}

    .popup-header h4 {
        margin: 0 0 8px 0;
        padding: 8px 0 0 10px;
    }

.popup-content {
    padding: 10px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
    color: #333;
    opacity: 0.5;
    font-size: 22px;
}

    .ol-popup-closer:after {
        content: "×"; /*"✖";*/
    }

/* Popup navigation */
#popup-nav-container {
    float: right;
    display: flex;
}

.popup-nav {
    height: 18px;
    margin: 4px;
    opacity: 0.6;
}

#popup-nav-container .caption {
    margin: 6px 6px 0 0;
    font-style: italic;
    color: darkgray;
}

/* Tooltips */

.tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 0.7;
    white-space: nowrap;
}

.tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.tooltip-static {
    background-color: #ffcc33;
    color: black;
    border: 1px solid white;
}

    .tooltip-measure:before,
    .tooltip-static:before {
        border-top: 6px solid rgba(0, 0, 0, 0.5);
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        content: "";
        position: absolute;
        bottom: -6px;
        margin-left: -7px;
        left: 50%;
    }

    .tooltip-static:before {
        border-top-color: #ffcc33;
    }

.hidden {
    visibility: hidden;
}

/* Map custom color scheme */
.ol-zoom-in,
.ol-zoom-out,
.ol-zoomslider-thumb,
.ol-scale-line,
div.ol-attribution button {
    transition: background-color 4s ease, color 0.3s ease;
}

.mode-regional .ol-zoom-in,
.mode-regional .ol-zoom-out,
.mode-regional .ol-zoomslider-thumb {
    background-color: var(--regional-mode) !important;
    color: white !important;
}

.mode-regional .ol-scale-line {
    background-color: var(--regional-mode) !important;
}

.mode-regional .ol-scale-line-inner {
    color: white !important;
    border-color: white !important;
}

.mode-regional div.ol-attribution button[title="Attributions"] {
    background-color: var(--regional-mode) !important;
}

.mode-regional .ol-attribution-expand {
    color: white !important;
}

.mode-site .ol-zoom-in,
.mode-site .ol-zoom-out,
.mode-site .ol-zoomslider-thumb {
    background-color: #5f7595 !important;
    color: white !important;
}

.mode-site .ol-scale-line {
    background-color: #5f7595 !important;
}

.mode-site .ol-scale-line-inner {
    color: white !important;
    border-color: white !important;
}

.mode-site div.ol-attribution button[title="Attributions"] {
    background-color: #5f7595 !important;
}

.mode-site .ol-attribution-expand {
    color: white !important;
}