/*MAP*/
.map-container {
    padding: 0 0 0 0;
    height: 100%;
    margin-top: -18px;
}
#map {
    width: 100%;
    height: 100%;
}

#map-wrapper {
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    
}

#map-wrapper > .header {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

#map-wrapper > .header + div {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
}

#map-wrapper > .header + div > div:first-of-type {
    -webkit-flex: 7 0 0;
    flex: 7 0 0;
}

#map-wrapper > .header + div > div:last-of-type {
    -webkit-flex: 3 0 0;
    flex: 3 0 0;
}


 /* The side navigation menu */
.sidenav {
    font-size: 12px;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 990;
    top: 52;
    right: 0;
    background-color: rgba(255, 255, 255, 1);
    overflow: auto;
    transition: 0.5s;
    padding-top: 45px;
    padding-left: 5px;

}
.sidenav a:hover{
    text-decoration: none;
}
.sidenav a:active{
    text-decoration: none;
}
.sidenav .closebtn {
    position: absolute;
    top: 0;
    font-size: 36px;
    color: #002B59;
    padding-left: 2px !important;
}
.sidenav a:hover{
    color: #002B59 !important;
}
.sidenav legend{
    font-size: 15px;
    font-weight: bold;
}
.legend-title{
    font-weight: bold;
    padding-bottom: 5px;
}
.legend-group{
    padding-left: 10px;
    padding-right: 10px;
}
.legend-subgroup{
        padding-bottom: 5px;
}
.legend .green{
    background-image: url('../images/icon_green.png');
}
.legend .brown{
    background-image: url('../images/icon_brown.png');
}
.legend .violet{
    background-image: url('../images/icon_violet_large.png');
}
.legend .red{
    background-image: url('../images/icon_red_large.png');
}
.legend .black{
    background-image: url('../images/icon_black.png');
}
.legend .red-yellow{
    background-image: url('../images/icon_red_yellow.png');
}
.legend .red-lightblue{
    background-image: url('../images/icon_red_lightblue.png');
}
.legend .red-darkblue{
    background-image: url('../images/icon_red_darkblue.png');
}
.legend .red-green{
    background-image: url('../images/icon_red_green.png');
}
.legend .violet-yellow{
    background-image: url('../images/icon_violet_yellow.png');
}
.legend .violet-lightblue{
    background-image: url('../images/icon_violet_lightblue.png');
}
.legend .violet-darkblue{
    background-image: url('../images/icon_violet_darkblue.png');
}
.legend .violet-green{
    background-image: url('../images/icon_violet_green.png');
}

.legend .circle_green{
    background-image: url('../images/icon_circle_green.png');
}
.legend .circle_lightgreen{
    background-image: url('../images/icon_circle_lightgreen.png');
}
.legend .circle_orange{
    background-image: url('../images/icon_circle_orange.png');
}
.legend .circle_red{
    background-image: url('../images/icon_circle_red.png');
}

.legend .square_green{
    background-image: url('../images/icon_square_green.png');
}
.legend .square_lightgreen{
    background-image: url('../images/icon_square_lightgreen.png');
}
.legend .square_orange{
    background-image: url('../images/icon_square_orange.png');
}
.legend .square_red{
    background-image: url('../images/icon_square_red.png');
}
.legend .rectangle-category-0{
    background-image: url('../images/r0.png');
}
.legend .rectangle-category-1{
    background-image: url('../images/r1.png');
}
.legend .rectangle-category-2{
    background-image: url('../images/r2.png');
}
.legend .rectangle-category-3{
    background-image: url('../images/r3.png');
}
.legend .rectangle-category-4{
    background-image: url('../images/r4.png');
}
.legend .rectangle-category-5{
    background-image: url('../images/r5.png');
}
.legend .rectangle-category-6{
    background-image: url('../images/r6.png');
}

.legend-subgroup .legend-subitem{
    padding-left: 25px;
    padding-bottom: 7px;
    background-repeat: no-repeat;    
    line-height: 17px;    
}
.legend-subgroup .legend-subitem.legend-subitem-okres{
    padding-left: 30px;
}
.legend-text{
    padding-right: 2px;
}
.search-map-form{
    margin-top: 20px;
}

.filter-group{
    padding-left: 10px;
    padding-right: 10px;
}


/*MAP TOOLS*/
.map-tools {
    position: absolute;
    top: 190px;
    z-index: 900;
}
.map-tools .tool {
    margin-left: 23px;
    margin-bottom: 10px;
}
.map-tools .tool-group {
    margin-left: 5px;
}
.tools {
    position: absolute;
    top: 190px;
    right: 0;
    margin: 5px 8px 5px 5px;
}
.tools .tool {
    margin: 0 0 10px 0;
    z-index: 900;
}
.searchTool{
    position: absolute;
    right: 0;
    margin: 9px 55px 0px 0px; 
    z-index: 900;
}

.tool .btn{
    padding: 8px 13px;
}

.searchTool .form-control{
    padding: 20px 19px;
}

.info-window {
    min-width: 300px;
    max-width: 350px;
}
.info-window.en {
    min-width: 350px;
}
.info-window-group {
    min-width: 160px;
    max-width: 300px;
}
@media (max-width: 768px) {
    .info-window {
        min-width: 250px;
        max-width: 300px;
    }
    .info-window.en {
        min-width: 300px;
        max-width: 300px;
    }
}
.info-window table {
    width: 100%;
}
.info-window table td {
    color: #000000;
}
.info-window a:hover {
    text-decoration: none;
}
.info-window hr {
    margin-bottom: 10px;
    margin-top: 10px;
}
td.info-window-title,
.info-window-title-text,
.info-window em {
    color: #7D7D7D !important;
}
.info-window-pictures {
    font-size: 24px;
    line-height: 24px;
}

.search-map-form input{
    margin-right: 5px !important;
}

#filter-tabs.ui-widget.ui-widget-content{
    border: none;
}
#filter-tabs.ui-widget-content{
    background: rgba(255, 255, 255, 0);
}
#filter-tabs a:hover{
    color: #fff !important;
    background-color: #002B59;
}
.layer-invisible{
    color: #C0C0C0;
}
.legend-group a{
    color: #333;
}
/*uprava UI Tabs*/
#tabs.ui-widget.ui-widget-content {
    border-style: none ;
}
#tabs .ui-widget-header {
    border-style: none ;
    background: none;
}
#tabs .ui-tabs-tab{
    margin-right: 0px;
    margin-top: 0px;
    border-left: 0px;
    border-right: 1px solid #fff;
    border-radius: 0px;
    /*background-color: rgba(119, 101, 87, 0.7);*/
}
#tabs .ui-tabs-active{
    padding-bottom: 0px;
}
#tabs .ui-tabs-active a{
    color: #fff !important;
}
#tabs.ui-widget-content{
    background-color: rgba(255,255,255, 0);
}

#tabs .input-group{
    margin-right: -15px;
    margin-left: -15px;
    margin-bottom: 15px;    
    min-width: 206px;
}
div.car-details .form-group{
    margin-bottom: 5px !important;
}
div.car-details input{
    padding: 5px !important;
}
div.car-details input.changed{
    background-color: #ffc;
}

#metrica {
    display: flex;
    align-items: center;
    gap: 0px; /* Mezera mezi položkami */
}
.metrica-group {
    margin: 15px;
}

#metrica label {
    margin: 0;
    padding: 7px 12px;
}

#metrica input {
    margin: 0;
}
#metrica .ui-state-active {
    border: 1px solid #6BC5F2 !important;
    background:#6BC5F2 !important;
  }
.group-timelength {
    margin-top: 5px;
    font-size: 14px;
    display: flex;
    align-items: center; /* Vertikální zarovnání na střed */
    justify-content: center; /* Horizontální zarovnání na střed */
    gap: 10px; /* Mezera mezi obrázkem a textem */
    color: #002B59;
    font-weight: bold;
}

.group-timelength img {
    height: 24px; /* Nastavte výšku obrázku podle potřeby */
    vertical-align: middle; /* Zajistí, že obrázek bude zarovnán s textem */
}

.group-timelength span {
    font-size: 16px; /* Nastavte velikost textu podle potřeby */
    line-height: 1; /* Zajistí správné vertikální zarovnání textu */
}
div.btn-group #route-reset {
    width: 120px; /* Nastavte požadovanou šířku tlačítka */
}

.waypoint-add-button {
    width: 20px; /* Nastavte šířku tlačítka */
    height: 20px; /* Nastavte výšku tlačítka */
    border-radius: 50%; /* Kulatý tvar */
    padding: 0; /* Odstraňte vnitřní odsazení */
    font-size: 14px; /* Velikost ikony nebo textu */
    line-height: 20px; /* Vertikální zarovnání textu/ikony */
    text-align: center; /* Horizontální zarovnání textu/ikony */
    position: relative; /* Pro přesné umístění */
    left: -10px; /* Posun tlačítka více vlevo */
    margin-top: -15px;
    background-color: #f0f0f0; /* Světle šedé pozadí */
    border: 1px solid #ccc; /* Světle šedý okraj */
    color: #333; /* Barva textu/ikony */
    cursor: pointer; /* Změna kurzoru na ukazatel */
}

.waypoint-add-button:hover {
    background-color: #e0e0e0; /* Tmavší pozadí při najetí myší */
    border-color: #999; /* Tmavší okraj při najetí myší */
}