/*html, body {
    height: 100%;
    width: 100%;
}

#main-wrap {
    height: 100%;
    width: 100%;
}*/

#main_container {
    height: 100%;
    position: absolute;
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

.overlay-active .map-overlay-background {
    background: #000000;
    content: "";
    cursor: pointer;
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    opacity: 0.3;
    z-index: 1100;
}

.overlay-active .map-overlay {
    bottom: 50%;
    height: 510px;
    left: 0;
    position: absolute;
    margin: auto;
    right: 0;
    top: 50%;
    width: 450px;
    z-index: 1200;
}

.map-overlay-close {
    box-sizing: border-box;
    line-height: 15px;
    width: 100%;
    height: 30px;
    background: #326cb1;
    color: #ffffff;
    padding: 10px;
}

.map-overlay-close-button:after {
    content: "\2716";
    cursor: pointer;
    display: inline-block;
    float: right;
}

.map-ui-container {
    background-color: #326cb1;
    border-radius: 2px;
    /* cursor: pointer; */
    height: 50px;
    /* position: relative; */
    margin-top: 8px;
    width: 50px;
}

.map-ui-menu-types {
}

#map-ui-logo {
    background: url(/_img/map/trm-logo.png) no-repeat;
    border-radius: 4px;
    display: block;
    height: 50px;
    left: 15px;
    position: absolute;
    text-indent: -9999px;
    top: 15px;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
    width: 50px;
}

#map-ui-search {
    /* height: 30px; */
    justify-content: space-between;
    left: 85px;
    position: absolute;
    top: 25px;
}

.map-ui-search-form {
    display: flex;
    justify-content: space-between;
    height: 32px;
    width: 400px;
}

.map-ui-search-input {
    border: 0 none;
    box-sizing: border-box;
    color: #252525;
    font-size: 15px;
    height: 32px;
    padding: 6px 15px 6px;
    width: 300px;
}

.map-ui-search-active .map-ui-search-input {
    padding-right: 35px;
}

.map-ui-search-suggestions .map-ui-search-form .map-ui-search-input {
    background-image: linear-gradient(#ffffff, #e8e8e8);
}

.map-ui-search-button {
    background: #ea7225;
    border: 0 none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    height: 32px;
    text-transform: uppercase;
    width: 90px;
}

.ac_results {
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 4px;
    margin-top: 0;
    width: 300px;
}

.ac_results:before,
.ac_results:after {
    content: "";
    height: 10px;
    display: block;
}

.ac_results ul {
    border: 0 none;
    box-sizing: border-box;
    border-radius: 4px !important;
    margin-right: 100px;
    padding: 10px;
    width: 100%;
}

#map-ui-search .map-ui-search-input,
#map-ui-search .map-ui-search-button {
    border-radius: 4px;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
}

#map-ui-search .map-ui-search-clear {
    color: black;
    display: none;
    font-size: 20px;
    height: 20px;
    left: 270px;
    position: absolute;
    text-decoration: none;
    top: 5px;
    width: 20px;
}

#map-ui-search .map-ui-search-active .map-ui-search-clear {
    display: block;
}

#map-ui-search .map-ui-search-clear:after {
    content: "\2716";
    display: block;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
}

.map-ui-autocomplete-wrapper {
    background: #ffffff;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden;
    position: absolute;
    top: 32px;
    left: 0;
    width: 300px;
    z-index: 20;
}

.map-ui-autocomplete-wrapper .ui-autocomplete {
    padding: 20px;
}

.map-ui-autocomplete-wrapper .ui-autocomplete .ui-menu-item {
    cursor: pointer;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
}

.map-ui-autocomplete-wrapper .ui-autocomplete .ui-menu-item:hover:before {
    background: #00000010;
    content: "";
    display: block;
    height: 100%;
    left: -20px;
    position: absolute;
    top: -2px;
    width: calc(100% + 40px);
}

.map-ui-autocomplete-wrapper .ui-autocomplete .ui-menu-item-more {
    color: #999;
    display: block;
    font-size: 13px;
    padding: 2px 0;
}

.map-ui-search-results {
    border-radius: 4px;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: calc(100vh - 115px) !important;
    position: absolute;
    top: 45px;
    left: 0;
    width: 300px;
    transition: 0.5s opacity, 0.5s transform;
    transition-delay: 0.25s;
}

.map-ui-search-suggestions .map-ui-search-results {
    transform: scale(0.9);
    transform-origin: 50% 0;
    opacity: 0.8;
}
.map-ui-search-wrapper {
    margin-right: 20px;
}

.map_seek_result {
}

.map_seek_result a {
    background: none;
    text-decoration: none;
}

.map_seek_result a:hover {
    background-color: transparent;
}

.map_seek_result.selected_result a {
    background: url("https://s-trojmiasto.pl/_img/mapa/pointer-sprite.png") right -24px no-repeat;
}

.map_seek_result a:hover .street {
    color: #3f6392;
    text-decoration: underline;
}

.map_seek_result a:hover .city {
    color: #666666;
}

.map_seek_result .map-search-result-item {
    background-position: 0 0;
    background-repeat: no-repeat;
    padding-left: 40px;
}

#map-ui-zoom {
    display: flex;
    height: 68px;
    justify-content: space-between;
    right: 15px;
    position: absolute;
    flex-direction: column;
    bottom: 25px;
    width: 30px;
}

.map-ui-zoom-button {
    background: #326cb1;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    height: 30px;
    position: relative;
    width: 30px;
}

.map-ui-zoom-in:after,
.map-ui-zoom-out:after {
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 18px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    width: 30px;
}

.map-ui-zoom-in:after {
    content: "+";
}

.map-ui-zoom-out:after {
    content: "-";
}

.map-ui-zoom-slider {
    background: #dcdcdc;
    box-shadow: 0 0 4px #555;
    cursor: pointer;
    height: 8px;
    outline: 1px solid #fff;
    position: absolute;
    left: 6px;
    width: 16px;
}

.map-zoom-0 .map-ui-zoom-slider {
    top: 243px;
}
.map-zoom-1 .map-ui-zoom-slider {
    top: 220px;
}
.map-zoom-2 .map-ui-zoom-slider {
    top: 197px;
}
.map-zoom-3 .map-ui-zoom-slider {
    top: 174px;
}
.map-zoom-4 .map-ui-zoom-slider {
    top: 151px;
}
.map-zoom-5 .map-ui-zoom-slider {
    top: 128px;
}
.map-zoom-6 .map-ui-zoom-slider {
    top: 104px;
}
.map-zoom-7 .map-ui-zoom-slider {
    top: 81px;
}
.map-zoom-8 .map-ui-zoom-slider {
    top: 58px;
}
.map-zoom-9 .map-ui-zoom-slider {
    top: 36px;
}

.map-ui-zoom-bar {
    background: #fff;
    box-shadow: 0 0 4px #777;
    height: 230px;
    margin: 0 auto;
    width: 6px;
}

.map-ui-zoom-bar-step {
    border-bottom: 1px solid #bababa;
    height: 22px;
    margin: 0 auto;
    width: 4px;
}

.map-ui-type-simple {
    bottom: 25px;
    border: 2px solid #ffffff;
    height: 68px;
    overflow: hidden;
    box-sizing: border-box;
    position: absolute;
    right: 55px;
    width: 68px;
}

#map-ui-type {
    /* font-size: 13px; */
    /* height: 1px; */
    /* position: absolute; */
    /* right: 10px; */
    /* top: 10px; */
    /* width: 1px; */
}

.map-ui-type-underlay {
    background: transparent;
    display: none;
    height: 100px;
    position: absolute;
    right: 0;
    top: 10px;
    width: 280px;
}

#map-ui-type:hover .map-ui-type-underlay {
    display: block;
}

.map-ui-type-streets {
    background: #ffffff;
    border-radius: 2px;
    /* cursor: pointer; */
    height: 35px;
    /* line-height: 35px; */
    /* position: absolute; */
    /* right: 0; */
    /* text-indent: 30px; */
    /* top: 120px; */
    /* width: 100px; */
}

.map-ui-type-streets .ui-menu-switch {
    left: 9px;
    top: 9px;
    right: auto;
}

.map-ui-type-item {
    background-repeat: no-repeat;
    background-position: 0 0;
    border-radius: 2px;
    cursor: pointer;
    /* height: 100px; */
    margin-top: 10px;
    right: 0;
    top: 10px;
    width: 100px;
    -webkit-transition: right 0.5s;
    -moz-transition: right 0.5s;
    -ms-transition: right 0.5s;
    -o-transition: right 0.5s;
    transition: right 0.5s;
}

.map-ui-type-item:before {
    bottom: 0;
    color: #ffffff;
    box-sizing: border-box;
    display: block;
    font-size: 14px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    text-shadow: 0 0 2px #000000, 0 0 2px #000000, 0 0 1px #000000;
}

.map-ui-type-sub {
    border: 1px solid #ffffff;
    border-radius: 2px 0 0 2px;
    color: #ffffff;
    font-size: 14px;
    height: 25px;
    line-height: 22px;
    margin-top: 2px;
    overflow: hidden;
    text-align: center;
    -webkit-transition: width 0.3s, left 0.3s;
    -moz-transition: width 0.3s, left 0.3s;
    -ms-transition: width 0.3s, left 0.3s;
    -o-transition: width 0.3s, left 0.3s;
    transition: width 0.3s, left 0.3s;
    width: 100px;
}

/*.map-ui-type-sub.map-type-ortho2016 {top: 3px;}
            .map-ui-type-sub.map-type-ortho2014 { top: 27px; }
            .map-ui-type-sub.map-type-ortho2011 { top: 51px; }
            .map-ui-type-sub.map-type-ortho2008 { top: 75px; }*/

/* type 2016
            [data-type="ortho2016"] .map-ui-type-sub.map-type-ortho2016 { color: #0066cc;}
            [data-type="ortho2016"] .map-ui-type-sub.map-type-ortho2014, [data-type="ortho2016"] .map-ui-type-sub.map-type-ortho2011, [data-type="ortho2016"] .map-ui-type-sub.map-type-ortho2008 { background: #FFFFFF; }
            */
/* type 2014
            [data-type="ortho2014"] .map-ui-type-sub.map-type-ortho2014 { color: #0066cc;}
            [data-type="ortho2014"] .map-ui-type-sub.map-type-ortho2016, [data-type="ortho2014"] .map-ui-type-sub.map-type-ortho2011, [data-type="ortho2014"] .map-ui-type-sub.map-type-ortho2008 { background: #FFFFFF; }
            */
/* type 2011
            [data-type="ortho2011"] .map-ui-type-sub.map-type-ortho2011 { color: #0066cc;}
            [data-type="ortho2011"] .map-ui-type-sub.map-type-ortho2016, [data-type="ortho2011"] .map-ui-type-sub.map-type-ortho2014, [data-type="ortho2011"] .map-ui-type-sub.map-type-ortho2008 { background: #FFFFFF; }
            */
/* type 2011
            [data-type="ortho2008"] .map-ui-type-sub.map-type-ortho2008 { color: #0066cc;}
            [data-type="ortho2008"] .map-ui-type-sub.map-type-ortho2016, [data-type="ortho2008"] .map-ui-type-sub.map-type-ortho2014, [data-type="ortho2008"] .map-ui-type-sub.map-type-ortho2011 { background: #FFFFFF; }
            */
.map-ui-type-item.map-type-basic {
    background-image: url(/_img/map/bg-type-basic.png);
    z-index: 1;
}

.map-ui-type-item.map-type-basic:before {
    content: "Mapa";
}

.map-ui-type-item.map-type-ortho {
    background-image: url(/_img/map/bg-type-ortho.png);
    z-index: 3;
}
.map-ui-type-item.map-type-ortho:before {
    content: "Lotnicza";
}

.map-ui-type-item.map-type-history {
    background-image: url(/_img/map/bg-type-history.png);
    z-index: 2;
}

.map-ui-type-item.map-type-history:before {
    content: "Historia";
}

/* ortho selected menu */
[data-type="basic"] .map-type-basic:before {
    border: 2px solid #ffffff;
}
/*
    [data-type="basic"] .map-type-ortho { z-index: 3; }
    [data-type="basic"] [data-type="basic"] { z-index: 2; }
    [data-type="basic"] [data-type="history"] { z-index: 1; }
    [data-type="basic"]:hover .map-type-ortho { right: 0; }
    [data-type="basic"]:hover [data-type="basic"] { right: 155px; }
    [data-type="basic"]:hover [data-type="history"] { right: 280px; }
    */

/* basic selected menu 
    [data-type="ortho2016"] .map-type-ortho, [data-type="ortho2014"] .map-type-ortho, [data-type="ortho2011"] .map-type-ortho, [data-type="ortho2008"] .map-type-ortho { z-index: 2; }
    [data-type="ortho2016"] [data-type="basic"], [data-type="ortho2014"] [data-type="basic"], [data-type="ortho2011"] [data-type="basic"], [data-type="ortho2008"] [data-type="basic"] { z-index: 3; }
    [data-type="ortho2016"] [data-type="history"].map-type-ortho2014 [data-type="history"], [data-type="ortho2011"] [data-type="history"], [data-type="ortho2008"] [data-type="history"] { z-index: 1; }
    [data-type="ortho2016"]:hover .map-type-ortho, [data-type="ortho2014"]:hover .map-type-ortho, [data-type="ortho2011"]:hover .map-type-ortho, [data-type="ortho2008"]:hover .map-type-ortho { right: 125px; }
    [data-type="ortho2016"]:hover [data-type="basic"], [data-type="ortho2014"]:hover [data-type="basic"], [data-type="ortho2011"]:hover [data-type="basic"], [data-type="ortho2008"]:hover [data-type="basic"] { right: 0; }
    [data-type="ortho2016"]:hover [data-type="history"], [data-type="ortho2014"]:hover [data-type="history"], [data-type="ortho2011"]:hover [data-type="history"], [data-type="ortho2008"]:hover [data-type="history"] { right: 280px; }*/

/*[data-type="ortho2016"] .map-ui-type-sub, 
    [data-type="ortho2014"] .map-ui-type-sub, 
    [data-type="ortho2011"] .map-ui-type-sub, 
    [data-type="ortho2008"] .map-ui-type-sub { width: 0; left: 0; }
    [data-type="ortho2016"]:hover .map-ui-type-sub, 
    [data-type="ortho2014"]:hover .map-ui-type-sub, 
    [data-type="ortho2011"]:hover .map-ui-type-sub, 
    [data-type="ortho2008"]:hover .map-ui-type-sub { width: 40px; left: -40px; }*/
[data-type="ortho2016"] .map-ui-type-sub.map-type-ortho2016,
[data-type="ortho2014"] .map-ui-type-sub.map-type-ortho2014,
[data-type="ortho2011"] .map-ui-type-sub.map-type-ortho2011,
[data-type="ortho2008"] .map-ui-type-sub.map-type-ortho2008 {
    background: #ffffff;
    color: #326cb1;
}

[data-type="ortho2016"] .map-type-ortho:before,
[data-type="ortho2014"] .map-type-ortho:before,
[data-type="ortho2011"] .map-type-ortho:before,
[data-type="ortho2008"] .map-type-ortho:before {
    border: 2px solid #ffffff;
}

/* History selected menu */
[data-type="history"] .map-type-history:before {
    border: 2px solid #ffffff;
}
/*
    [data-type="history"] .map-type-ortho { z-index: 2; }
    [data-type="history"] [data-type="basic"] { z-index: 3; }
    [data-type="history"] [data-type="history"] { z-index: 1; }
    [data-type="history"]:hover .map-type-ortho { right: 125px; }
    [data-type="history"]:hover [data-type="basic"] { right: 0; }
    [data-type="history"]:hover [data-type="history"] { right: 280px; }*/

[data-type="basic"].map-ui-type-simple .map-type-basic {
    display: none;
}
[data-type="ortho2016"].map-ui-type-simple .map-type-ortho,
[data-type="ortho2014"].map-ui-type-simple .map-type-ortho,
[data-type="ortho2011"].map-ui-type-simple .map-type-ortho,
[data-type="ortho2008"].map-ui-type-simple .map-type-ortho {
    display: none;
}
.map-ui-type-simple .map-ui-type-item::before {
    content: "";
}

.map-ui-type-simple .map-ui-type-item {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.map-scale {
    border-left: 1px solid white;
    border-right: 1px solid white;
    border-top: 1px solid white;
    bottom: 20px;
    left: 10px;
    position: absolute;
    height: 5px;
    width: 90px;
}

.map-scale:after {
    content: "";
    color: #000000;
    position: absolute;
    top: 8px;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 1);
}

.map-scale.map-zoom-0 {
    width: 90px;
}
.map-scale.map-zoom-0:after {
    content: "2km";
}
.map-scale.map-zoom-1 {
    width: 90px;
}
.map-scale.map-zoom-1:after {
    content: "1km";
}
.map-scale.map-zoom-2 {
    width: 90px;
}
.map-scale.map-zoom-2:after {
    content: "500m";
}
.map-scale.map-zoom-3 {
    width: 72px;
}
.map-scale.map-zoom-3:after {
    content: "200m";
}
.map-scale.map-zoom-4 {
    width: 72px;
}
.map-scale.map-zoom-4:after {
    content: "100m";
}
.map-scale.map-zoom-5 {
    width: 72px;
}
.map-scale.map-zoom-5:after {
    content: "50m";
}
.map-scale.map-zoom-6 {
    width: 72px;
}
.map-scale.map-zoom-6:after {
    content: "25m";
}
.map-scale.map-zoom-7 {
    width: 116px;
}
.map-scale.map-zoom-7:after {
    content: "20m";
}
.map-scale.map-zoom-8 {
    width: 116px;
}
.map-scale.map-zoom-8:after {
    content: "10m";
}
.map-scale.map-zoom-9 {
    width: 116px;
}
.map-scale.map-zoom-9:after {
    content: "5m";
}

#map-ui-menu {
    height: 1px;
    position: absolute;
    right: 15px;
    top: 15px;
    height: 1px;
}

.map-ui-menu-cat {
    /* background: #FFFFFF; */
    /* border-radius: 2px; */
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
    /* height: 100px; */
    margin-top: 8px;
    /* position: relative; */
    /* width: 100px; */
}

.map-ui-menu-cat:nth-child(1) {
    margin-top: 0;
}

.map-ui-menu-cat:after {
    cursor: pointer;
}

.map-ui-container:after,
.map-menu-investitions:after {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
    height: 100%;
    text-align: center;
    width: 100%;
}

.map-ui-menu-types:after {
    background-image: url(/_img/map/menu/menu-ico-types.png);
    content: "";
}

.map-ui-menu-roads:after {
    background-image: url(/_img/map/menu/menu-ico-roads.png);
    content: "";
}

.map-menu-objects:after {
    background-image: url(/_img/map/menu/menu-ico-marker.png);
    content: "";
}

.map-menu-investitions:after {
    background-image: url(/_img/map/menu/menu-ico-inv.png);
    content: "";
    text-indent: 14px;
}

.map-ui-submenu {
    display: none;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.15);
    background: #326cb1;
    border-radius: 4px;
    padding: 35px 10px 10px 10px;
    position: absolute;
    right: 60px;
    top: 0;
    width: 330px;
}

.map-ui-menu-types .map-ui-submenu {
    width: 100px;
}

.map-ui-submenu::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #326cb1;
    margin-left: 2px;
    position: absolute;
    top: 10px;
    right: -10px;
}

.map-ui-menu-roads .map-ui-submenu::after {
    top: 75px;
}

.map-menu-objects .map-ui-submenu::after {
    top: 130px;
}

.map-menu-investitions .map-ui-submenu::after {
    top: 185px;
}

.map-ui-submenu-list {
}

.map-ui-submenu-title {
    color: #ffffff;
    content: "";
    display: block;
    font-size: 15px;
    left: 10px;
    position: absolute;
    top: 10px;
    z-index: 100;
}

.map-ui-submenu-close {
    cursor: pointer;
    position: absolute;
    right: 9px;
    top: 5px;
}

.map-ui-submenu-close:after {
    color: #ffffff;
    content: "+";
    display: block;
    font-size: 28px;
    transform: rotate(45deg);
    transform-origin: center center;
}

.map-ui-submenu-item,
.map-ui-type-streets {
    background: #326cb1;
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    height: 40px;
    margin-top: 3px;
    position: relative;
}

.map-ui-submenu-item[data-state="checked"],
.map-ui-type-streets[data-state="checked"] {
    background: #ffffff;
    color: #326cb1;
}

.map-ui-type-streets.map-ui-force {
    background: #ffffff;
    color: #326cb1;
}

.ui-subitem-label {
    display: inline-block;
    font-family: Arial;
    font-size: 15px;
    line-height: 35px;
    text-indent: 5px;
}

.ui-subitem-icons {
    display: inline-block;
    float: right;
    padding: 8px 8px 0 0;
}

.ui-subitem-icons img {
    max-height: 30px;
}

.map-ui-menu-roads .ui-subitem-icon {
    background-repeat: no-repeat;
    height: 25px;
    width: 36px;
    display: block;
    margin-top: 2px;
}

.map-ui-menu-roads .ui-subitem-icon[data-layer="bikes"] {
    background-image: url(/_img/map/menu/road-bike-ico.png);
}

.map-ui-menu-roads .map-ui-type-streets .ui-subitem-icon {
    background-image: url(/_img/map/menu/road-car-ico.png);
}

.map-ui-menu-roads [data-state="checked"] .ui-subitem-icon {
    background-position: 100% 0;
}

.ui-menu-switch {
    background: url(/_img/map/checkbox.png) no-repeat;
    bottom: 10px;
    cursor: pointer;
    height: 15px;
    left: 10px;
    position: absolute;
    width: 15px;
}
.ui-menu-switch:after {
    content: "";
}

.ui-menu-switch.checked:after {
    background: url(/_img/map/tick.png) no-repeat 0% 100%;
    display: block;
    height: 100%;
    width: 100%;
}
.ui-menu-switch.undetermined:after {
    background: url(/_img/map/tick.png) no-repeat 100% 100%;
    display: block;
    height: 100%;
    width: 100%;
}

.map-ui-submenu-item .ui-menu-switch {
    left: auto;
    right: 10px;
    display: none;
}

.ps__rail-y {
    box-sizing: border-box;
    margin: 10px 5px 10px 0;
    height: 100%;
    opacity: 1;
    transition: none;
    width: 6px;
    z-index: 30;
}

.map-ui-search-results .ps__rail-y {
    z-index: 2;
}

.ps .ps__rail-y:hover {
    background: none;
}

.ps__rail-y .ps__thumb-y {
    border-radius: 0;
    transition: none;
}

.ps__rail-y .ps__thumb-y,
.ps__rail-y:hover .ps__thumb-y {
    width: 6px;
}
