:root {
    --theme-color: #005CA5;
}

* {
    margin: 0;
    padding: 0;
    --scrollbarBG: var(--scrollbarBG);
    --thumbBG: var(--theme-color);
    --foreground-text: #4d4d4d;
    --background-color: #f9f9f6;
    font-family: Montserrat, sans-serif;
}

@media (prefers-color-scheme: dark) {
    * {
        --foreground-text: #4d4d4d;
        --background-color: #f9f9f6;
    }
}

html, body {
    min-height: 100% !important;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#unsupported {
    height: 100%;
    width: 100%;
    min-height: 100% !important;
    color: #f9f9f6;
    text-align: center;
    font-size: 24px;
    padding-top: 250px;
}

.metadata-marker {
    display: none;
}

.gis-map-layers {
    overflow-y: auto;
}

.gis-map-layers {
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

.gis-map-layers::-webkit-scrollbar {
    width: 6px;
}

.gis-map-layers::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}

.gis-map-layers::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 6px;
    border: 3px solid var(--scrollbarBG);
}

#map {
    height: 100%;
    width: 100%;
}

.gis-dropdown__container {
    display: none;
    padding-top: 50px;
    background: var(--background-color);
}

.gis-map-layers--visible,
.gis-map-types--visible,
.gis-search-layer--visible,
.gis-map-measure--visible,
.gis-help--visible {
    display: block !important;
}

.gis-map-layers--visible.gis-search-layer--visible {
    margin-top: 50px;
}

.gis-dropdown__container ul {
    list-style: none inside none;
}

.gis-dropdown__container > ul > li {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 20px;
}

.gis-dropdown__container > ul > li:not(:last-child) {
    border-bottom: solid 1px var(--scrollbarBG);
}

.gis-search-layer {
    padding-top: 0 !important;
    display: none;
}

/*
LAYERS DROPDOWN
*/

.gis-dropdown__container--layers label {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
}


.gis-dropdown__container--layers li ul {
    flex-basis: 100%;
}

.gis-dropdown__container--layers li.gis-dropdown__expandable-list {
    padding-left: 0;
}

/*
MAP TYPES DROPDOWN
*/

.gis-dropdown__container--map-types ul li,
.gis-dropdown__container--search ul li,
.gis-dropdown__container--measure ul li {
    padding-left: 19px;
}

.gis-dropdown__container--map-types .gis-dropdown__title {
    position: relative;
    overflow: hidden;
}

.gis-dropdown__container--map-types .gis-dropdown__title input[type="radio"] {
    position: absolute;
    top: -500px;
}

.gis-dropdown__container--map-types .gis-dropdown__title input[type="radio"] + span {
    color: #b2b2b2;
}

.gis-dropdown__container--map-types .gis-dropdown__title input[type="radio"]:checked + span {
    color: var(--foreground-text);
}

.gis-dropdown__container--map-types label {
    cursor: pointer;
}

/*
EXPANDABLE LIST
*/
.gis-dropdown__expandable-list ul {
    display: none;
}

.gis-dropdown__expandable-list label {
    justify-content: unset;
}

.gis-dropdown__expandable-indicator img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transition: transform 250ms;
}

.gis-dropdown__expandable-list--expanded ul {
    display: block;
}

.gis-dropdown__expandable-list--expanded .gis-dropdown__expandable-indicator img {
    transform: translateY(-50%) rotate(180deg);
}

.gis-dropdown__checkbox input[type="checkbox"] {
    position: absolute;
    left: -2000px;
}

.gis-dropdown__checkbox span {
    display: none;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
}

.gis-dropdown__checkbox input[type="checkbox"]:checked + span {
    background: transparent url('/assets/icons/tick.svg') no-repeat center;
    display: inline-block;
}

.gis-dropdown__external span {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent url('/assets/icons/layer_ext.svg') no-repeat center;
    background-size: 32px 32px;
    margin-left: 1px;
    display: inline-block;
}


.gis-dropdown__checkbox input[type="checkbox"]:indeterminate + span {
    background: transparent url('/assets/icons/dash.svg') no-repeat center;
    display: inline-block;
}


.gis-dropdown__title,
.gis-help__title {
    line-height: 1.5rem;
    color: var(--foreground-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 18.75rem;
}

.gis-dropdown__title-img {
    margin-left: auto;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
}

.gis-dropdown__title-img img {
    width: 1.5rem;
    height: 1.5rem;
}

/*
GIS TOGGLE BUTTON
 */

.gis-toggle-button {
    position: absolute;
    top: 7px;
    width: 2.25rem;
    height: 2.25rem;
    text-align: center;
    opacity: 1;
    border: none;
    outline: none;
    cursor: pointer;
}

/*
EXPAND ALL LAYERS
*/

.gis-expand-all-layers__expanded {
    display: none;
}

.gis-expand-all-layers input[type="checkbox"] {
    display: none;
}

.gis-expand-all-layers input[type="checkbox"]:checked ~ .gis-expand-all-layers__collapsed {
    display: none;
}

.gis-expand-all-layers input[type="checkbox"]:checked ~ .gis-expand-all-layers__expanded {
    display: inline-block;
}

.gis-toggle-layers:hover {
    background: transparent url('/assets/icons/vrstvy_hover.svg') 0 0 no-repeat padding-box;
}

.gis-toggle-map-type svg {
    transition: transform 250ms;
    transform: rotate(90deg);
    margin-left: 22px;
    margin-top: -2px;
    vertical-align: text-top;
    pointer-events: none;
}

.gis-toggle-map-type svg path {
    fill: #ffffff;
}

.gis-toggle-map-type--open svg {
    transform: rotate(180deg);
}

.gis-set-center:hover {
    background: transparent url('/assets/icons/center_position_1_hover.svg') 0 0 no-repeat padding-box;
}

.gis-set-minus:hover {
    background: transparent url('/assets/icons/minus_hover.svg') 0 0 no-repeat padding-box;
}

.gis-set-plus:hover {
    background: transparent url('/assets/icons/plus_hover.svg') 0 0 no-repeat padding-box;
}

.gis-toggle-help:hover {
    background: transparent url('/assets/icons/help_hover.svg') 0 0 no-repeat padding-box;
}

.gis-help__title {
    padding: 15px 30px 5px 30px;
    font-weight: 500;
}

.gis-dropdown__container--help > ul {
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: solid 1px var(--scrollbarBG);
}

.gis-dropdown__container--help > ul > li,
.gis-dropdown__container--help > ul > li:not(:last-child) {
    display: flex;
    align-items: center;
    padding: 7.5px 30px;
    line-height: 1.375rem;
    font-weight: 300;
    color: var(--foreground-text);
    border-bottom: none;
}

.gis-dropdown__container--help > ul > li svg {
    display: inline-block;
    margin-right: 15px;
}

.gis-dropdown__container--search {
    display: block;
}

.gis-help p {
    display: inline-block;
    padding: 15px 30px 20px 30px;
    line-height: 1.375rem;
    font-weight: 300;
    color: var(--foreground-text);
}

/*
MODAL
*/

#gis-modal-layer {
    left: 0 !important;
    z-index: 50 !important;
}

#gis-modal-picture-layer {
    left: 0 !important;
    z-index: 70 !important;
}

.gis-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.gis-modal__handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px 11px 20px;
    background: var(--theme-color);
    border-radius: 0 0 6px 6px;
}

.gis-modal__handle em {
    font-weight: 500;
    font-style: normal;
    color: #FFFFFF;
}

.gis-modal__type {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.5rem;
    color: var(--foreground-text);
}

.gis-modal-meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.2rem;
    color: var(--foreground-text);
}

.gis-modal--link {
    position: absolute;
    right: 34px;
}

.gis-modal--link img {
    width: 38px;
}

.gis-modal--link-layer {
    position: absolute;
    right: 68px;
}

.gis-modal--link-layer img {
    width: 38px;
}

.gis-modal--link-navigate {
    position: absolute;
    right: 98px;
}

.gis-modal--link-navigate img {
    height: 26px;
}

@media (min-width: 480px) {
    .gis-modal-meta {
        flex-direction: row;
    }
}

.gis-modal-meta > div:first-child {
    --margin-right: 26px;
}

.gis_modal__link_container_list ul {
    list-style: none
}

.gis_modal__link_container_list li {
    display: block;
}

.gis-modal__link,
.gis-modal__link:visited,
.gis-modal__link:active,
.gis-modal__link:hover {
    display: inline-block;
    color: var(--theme-color);
}

@media (min-width: 768px) {
    .gis-modal__link {
        margin-bottom: 0;
    }
}

.gis-modal-picture__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.gis-modal-picture__content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 820px;
    line-height: 1.375rem;
    max-height: 98vh;
    background: var(--background-color);
}

.gis-modal-picture__handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px 11px 20px;
    background: var(--theme-color);
    border-radius: 0 0 6px 6px;
}

.gis-modal-picture__handle em {
    font-weight: 500;
    font-style: normal;
    color: #FFFFFF;
}

.gis-modal-picture__body {
    display: flex;
    padding: 1rem 60px 40px 20px;
}

.gis-modal-picture__icon {
    margin-right: 14px;
}

.gis-modal-picture-meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    color: var(--foreground-text);
}

@media (min-width: 480px) {
    .gis-modal-picture-meta {
        flex-direction: row;
    }
}

.gis-modal-picture-meta > div:first-child {
    margin-right: 26px;
}

.gis-modal-picture__desc {
    display: flex;
    flex-direction: column;
    padding: 1rem 0 0 0;
    border-top: 1px solid #E4E4D8;
}

.gis-modal-picture__desc__text {
    order: 0;
    width: 300px;
    word-wrap: normal;
}

.gis-modal-picture__desc__image {
    order: 1;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .gis-modal-picture__desc {
        display: flex;
        flex-direction: row;
    }
}

.gis-modal-picture__desc > div:last-child {
    flex: 1 0 32%;
}

.gis-modal-picture__desc picture {
    margin-left: 10px;
    margin-top: 40px;
    max-width: 100%;
}

.gis-modal-picture__title {
    display: block;
    margin-bottom: 1rem;
    font-style: normal;
    color: var(--foreground-text);

}

.gis-modal-picture__desc p {
    margin-bottom: 24px;
    color: var(--foreground-text);
    white-space: pre-wrap;
}

.gis-modal-picture__link,
.gis-modal-picture__link:visited,
.gis-modal-picture__link:active,
.gis-modal-picture__link:hover {
    display: inline-block;
    color: var(--theme-color);
}

@media (min-width: 768px) {
    .gis-modal-picture__link {
        margin-bottom: 0;
    }
}

@media screen and (min-width: 601px) and (min-height: 601px) {
    .gis-layer {
        position: absolute;
        cursor: pointer;
        top: 0;
        opacity: 1;
        font-size: 1.125rem;
        font-weight: 400;
    }

    .gis-modal {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 1;
        display: none;
        font-size: 1.125rem;
        font-weight: 400;
    }
}

@media screen and (min-width: 601px) and (max-height: 600px) {
    .gis-layer {
        position: absolute;
        cursor: pointer;
        top: 0;
        opacity: 1;
        font-size: 1.125rem;
        font-weight: 400;
    }

    .gis-modal {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 1;
        display: none;
        font-size: 1rem;
        font-weight: 400;
    }
}

@media screen and (min-width: 401px) and (max-width: 600px) {
    .gis-layer {
        position: absolute;
        cursor: pointer;
        top: 0;
        opacity: 1;
        font-size: 1rem;
        font-weight: 400;
    }

    .gis-modal {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 1;
        display: none;
        font-size: 1rem;
        font-weight: 400;
    }
}

@media screen and (max-width: 400px) {
    .gis-layer {
        position: absolute;
        cursor: pointer;
        top: 0;
        opacity: 1;
        font-size: 0.875rem;
        font-weight: 400;
    }

    .gis-modal {
        position: absolute;
        top: 0;
        left: 0 !important;
        right: 0;
        bottom: 0;
        opacity: 1;
        display: none;
        font-size: 0.875rem;
        font-weight: 400;
    }
}

