/* * {
    padding: 0;
    margin: 0;
    box-sizing: border-box
} bkom */

.map {
    width: 100vw;
    height: 100vh;
}

.pd-checkbox {
    display: none;
}

.pd-checkbox--label {
    line-height: 24px;
    font-weight: bold;
    user-select: none;
}

    .pd-checkbox--label:before {
        content: "";
        width: 24px;
        height: 24px;
        float: left;
        margin-right: 10px;
        background-image: url("./img.png");
        background-position: -167px -107px;
    }

.pd-checkbox:checked + .pd-checkbox--label:before {
    background-position: -92px -107px;
    background-color: #6FAC29;
}

.fixed-panel {
    position: fixed;
    /* top: .5em; bkom */
    right: .5em;
    z-index: 100;
}

.legend {
    width: auto;
    height: auto;
    padding: 10px;
    border-radius: 2px;
    background-color: rgba(255,255,255,.95);
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px #9b9ca1;
}

.legend_last-ride {
    /* height: 275px; bkom*/
    margin-top: 1em;
    overflow: hidden;
    transition: all ease-in-out 200ms;
}

.legend td {
    padding: 5px 0px 0px 5px;
    text-align: left;
}

.last-update {
    margin-bottom: 10px;
    border: 1px dashed #aaa;
    border-radius: 2px;
}

    .last-update div {
        padding: 3px;
    }

.last-update-value {
    font-weight: bold;
    padding-top: 0px;
}

.legend-controls {
    margin-bottom: 10px;
}

.bar {
    width: 50px;
    height: 5px;
    display: block;
    margin-right: 5px;
    margin-left: 0px;
}

.bar_30 {
    background-color: #94b724;
}

.bar_30_60 {
    background-color: #dc8c00;
}

.bar_1_3 {
    background-color: #c35439;
}

.bar_3_12 {
    background-color: #296caf;
}

.bar_not_managed {
    background-color: #777777;
}

.bar_all_street_parts {
    background-color: #ff66cc;
}

.div_description {
    width: 280px;
    display: inline-block;
    font-style: italic;
    padding-top: 5px;
}

#all-street-arts-checkBox {
    margin: 2px 5px 0px 0px;
}

/*toggle legend*/
.legend-toggle-label {
    width: 100%;
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.5em;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/*.legend-toggle-chb:checked ~ .legend_last-ride {
    height: 290px;
}*/

.legend-toggle-chb:not(:checked) ~ .legend_last-ride {
    min-height: 0;
    height: 0;
    margin-top: 0;
}

.legend-toggle-chb {
    display: none;
}

.search_div {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search {
    padding: 0;
    border: 0;
}

input[type="text"].search_textbox {
    padding: 10px;
}

input[type="text"] {
    border: 1px solid #ccc;
    padding: 8px 5px;
}

    input[type="text"]:focus {
        border-color: #aaa;
    }

input:focus,
button {
    outline: none;
}

.search_textbox {
    width: 100%;
}

.search_btn {
    width: 20px;
    height: 100%;
    border: 0;
    background: none;
    position: absolute;
    top: 0;
    right: .5em;
    cursor: pointer;
}

.m-t {
    margin-top: 1em;
}

/*OL*/
.ol-attribution {
    bottom: 1.5em;
}

.ol-control button {
    background-color: rgba(0,60,136,.8);
}

/* responsive  BKOM PUVODNI
@media screen and (max-width: 480px) {
    .fixed-panel {
        width: 100%;
        top: 0;
        left: 0;
    }

    .legend {
        width: 100%;
        border: 0;
    }

    .ol-control {
        display: none;
    }
}

@media screen and (max-width: 640px) and (orientation: landscape) {
    .fixed-panel {
        width: 100%;
        top: 0;
        left: 0;
    }

    .legend {
        width: 50%;
        border: 0;
        margin-left: 50%;
    }

    .ol-control {
        display: none;
    }

    .legend-toggle-chb:checked ~ .legend_last-ride {
        height: 100vh;
    }
}
*/

/* responsive */
@media screen and (max-width: 480px) {
    .fixed-panel {
        width: calc(100% - 1em);
        top: 0;
        left: 0;
    }

    .legend {
        width: 100%;
        border: 0;
    }

    .ol-control {
        display: none;
    }
}

@media screen and (max-width: 640px) and (orientation: landscape) {
    .fixed-panel {
        width: 100%;
        top: 0;
        left: 0;
    }

    .legend {
        width: 50%;
        border: 0;
        margin-left: 50%;
    }

    .ol-control {
        display: none;
    }

    .legend-toggle-chb:checked ~ .legend_last-ride {
        height: 100vh;
    }
}

@media screen and (max-width: 767px) {
    .fixed-panel { top: auto; right: auto; left: 0.5em; bottom: 0.5em; }
    .fixed-panel h2 { margin: 0 0 10px 0; font-size: 20px; }
    .fixed-panel h4 { margin: 0 0 10px 0; font-size: 15px; }
    .fixed-panel .last-update { display: table; padding: 5px; }
}

@media screen and (min-width: 1200px) {
    .map { height: 100%; width: 100%; }
}