﻿
.canvas-expand{
    height:100% !important;
}

.container-map {
    width: 100%;
    padding-right: 0.1rem;
    padding-left: 0.1rem;
    margin-right: auto;
    margin-left: auto;
    height: 100vh;
    /* overflow: hidden; */
    padding-top: 60px;      

}

.ol-mouse-position
{
    bottom:0.5em;
    top:unset;
    padding:10px;
    border-radius:10px;
    
}

.ol-control {
    border-width: 4px;
    border-style: solid;
    border-color: rgba(0,0,0,0.2);
    padding: 0;
    background-color: unset;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.3);
}

    .ol-control button {
        background-color: rgb(0, 0, 0, 0.1);
        color: rgba(255,255,255,0.5);
        border-radius: 5px;
    }

        .ol-control button:hover {
            background-color: rgb(38, 132, 255);
            color: rgba(255,255,255,1);
        }

.map {
    /*height: 100vh;*/
    /*border: 1px solid red;*/
    display: block;
}

.ol-control button {
    height: 4em;
    width: 4em;
}

.ctrl-switcher {
    top: 11em;
    position: absolute;
    left: 0.5em;
}

.ctrl-identify {
    top: 2em;
    position: absolute;
    right: 0.4em;
    left:unset;
}

.ctrl-measure {
    top: 7em;
    position: absolute;
    right: 5em;
    left: unset;
}

.ctrl-print {
    top: 12em;
    position: absolute;
    right: 5em;
    left: unset;
}

.ctrl-legend {
    top: 17em;
    position: absolute;
    right: 0.4em;
    left: unset;
}

.ctrl-map-coordinate {
    top: 22em;
    position: absolute;
    right: 5em;
    left: unset;
}

.ol-zoom .ol-zoom-in {
    border-radius: 5px 5px 0 0;
}
.ol-zoom .ol-zoom-out {
    border-radius: 0 0 5px 5px;
}


.ol-overviewmap
{
    bottom:unset;
    top:17em;
}

.map-identity {
    font-family: serif;
    font-style: italic;
    text-transform: initial;
}

.map-legend {
    background: #fff;
    position: absolute;
    right: 20px;
    bottom: 20px;    
    border-radius: 5px;
    padding: 4px 10px 4px 10px;
    border-style: double;
}

.map-legend-body ul li span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-left: -20px;
}

.map-legend ul {
    list-style: none;
}

.layer-group {
    padding: 10px 10px;
}

.layer-group span{
    font-weight:bold;
}

.map-swicher-layer
{
    padding:10px 10px;
}

.ctrl-base-map {
    bottom: 31px;
    position: absolute;
    top: unset;
    left: unset;
    width: 100%;
    /*border:1px solid grey;*/
    pointer-events: none !important;

    
}



    .ctrl-base-map div.base-layer, .ctrl-base-map div.map-item {
        width: 150px;
        height: 160px;
        display: inline;
        float: left;
        text-align: center;
        vertical-align: bottom;
       
        pointer-events: auto;
        
    }

div.map-item div {
    border-radius: 5px;
    border: 1px solid red;
    height: 140px;
    background-color: rgba(0,0,0,.4);
    border: 1px solid #8e8c84;
    color: #fff;
}


.ctrl-base-map div.map-item div:hover {
    background-color: rgba(0,60,136,.7);
    border: 1px solid #72706a;
}

.map-item div 
{
    text-align: center;
    overflow: hidden;
}

.map-item div img {
    display: block;
    margin: auto;
    margin-top:10px;
}
    
.layer-offer {
    display: none;
}

.layer-container {    
    display:inline-block;
}

.ctrl-base-map .layer-container:hover .layer-offer 
{
    display: block;
    animation-name: expand;
    animation-duration: 1s;
}

.ctrl-base-map .layer-container:hover .map-item {
    display: block;
    animation-name: expand;
    animation-duration: 1s;
}

.ctrl-base-map .layer-container:hover .base-layer .map-item 
{
    animation-name:none !important;
}

    @keyframes expand {
        from {
            opacity: 0;
            height: 0;
        }

        to {
            opacity: 1;
            height: 160px;
        }
    }

    .active {
    border-radius: 5px;
    background-color: rgb(248, 245, 240);
}



.layer-switcher {
    position: absolute;
    top: 5px;
    right: 5px;
    text-align: left;
    background-color: #007bff8f;
}

    .layer-switcher .panel {
        margin-bottom: 0;
        color: #fff;
        display: none;
        width: 150px;
        border-radius: 0.25rem;
    }

        .layer-switcher .panel p {
            font-size: 20px;
            font-weight: bold;
            padding-left: 10px;
            padding-top: 10px;
            margin-bottom: 0;
        }

    .layer-switcher input.opacity {
        padding-top: 2px;
        padding-bottom: 12px;
    }

    .layer-switcher button {
        float: right;
        width: 38px;
        height: 38px;
        background-image: url('../img/layers.png');
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        margin: 5px;
    }

    .layer-switcher.shown .panel {
        display: block;
        margin-bottom: 0px;
    }

    .layer-switcher button:focus,
    .layer-switcher button:hover {
        background-color: white;
    }

    .layer-switcher ul {
        padding-left: 1em;
        list-style: none;
        padding-left: 0;
    }

    .layer-switcher li.group {
        padding-top: 5px;
    }

        .layer-switcher li.group ul {
            padding-left: 5px;
        }

        .layer-switcher li.group > label {
            font-weight: bold;
            width: 100%;
            background-color: #00c;
        }

    .layer-switcher li label {
        padding-left: 5px;
    }
/* OVERRIDE DEFAULT INPUT RANGE */
input[type=range]::-moz-focusring {
    outline: 1px solid white;
    outline-offset: -1px;
}

input[type=range]::-ms-track {
    width: 150px;
    height: 5px;
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;
    /*remove default tick marks*/
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #777;
    border-radius: 10px;
}

input[type=range]::-ms-fill-upper {
    background: #ddd;
    border-radius: 10px;
}

input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: goldenrod;
}

input[type=range]:focus::-ms-fill-lower {
    background: #888;
}

input[type=range]:focus::-ms-fill-upper {
    background: #ccc;
}

/*

TOGGLE

*/
.toggle-switch {
    position: relative;
    display: block;
    width: 140px;
    height: 30px;
    padding: 3px;
    margin: 0 10px 10px 0;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
    border-radius: 18px;
    box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.toggle-switch-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.toggle-switch-label {
    position: relative;
    display: block;
    height: inherit;
    font-size: 16px;
    text-transform: uppercase;
    background: #007bff;
    color: #fff;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
}

    .toggle-switch-label:before, .toggle-switch-label:after {
        position: absolute;
        top: 50%;
        margin-top: -.5em;
        line-height: 1;
        -webkit-transition: inherit;
        -moz-transition: inherit;
        -o-transition: inherit;
        transition: inherit;
    }

    .toggle-switch-label:before {
        content: attr(data-off);
        right: 11px;
        text-shadow: 0 1px rgba(255, 255, 255, 0.5);
    }

    .toggle-switch-label:after {
        content: attr(data-on);
        left: 11px;
        color: #FFFFFF;
        text-shadow: 0 1px rgba(0, 0, 0, 0.2);
        opacity: 0;
    }

.toggle-switch-input:checked ~ .toggle-switch-label {
    background: #009933;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}

    .toggle-switch-input:checked ~ .toggle-switch-label:before {
        opacity: 0;
    }

    .toggle-switch-input:checked ~ .toggle-switch-label:after {
        opacity: 1;
    }

.toggle-switch-input:disabled ~ .toggle-switch-handle {
    background: transparent;
}

.toggle-switch-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
    background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
    border-radius: 100%;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

    .toggle-switch-handle:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -6px 0 0 -6px;
        width: 12px;
        height: 12px;
        background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
        background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
        border-radius: 6px;
        box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
    }

.toggle-switch-input:checked ~ .toggle-switch-handle {
    left: 108px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}
/* Transition
    ========================== */
.toggle-switch-label, .toggle-switch-handle {
    transition: All 0.3s ease;
    -webkit-transition: All 0.3s ease;
    -moz-transition: All 0.3s ease;
    -o-transition: All 0.3s ease;
}


.identity{
    cursor:pointer;
}

.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;
    }


.doc-file {
    margin: 10px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--bs-teal);
    color: var(--bs-success-text-emphasis);
    background-color: var(--bs-success-bg-subtle);
    user-select: none;
    cursor:pointer;
    
    overflow: hidden;
    
    transition: max-height 0.5s, overflow 0s;
}

.doc-file i{
    margin-left:10px;
}

    .doc-file ul {
        display: none;
        max-height: 0;

        margin-top: 10px;
        overflow: auto;
        transition: max-height 0.5s, overflow 0.5s 0.5s;
    }

        

        .doc-file ul.show {
            display: block;
            max-height: 50em;
        }

.doc-file li {        
    color: var(--bs-blue);
}