#maps-legenda .head .tytuly .t,
#maps-legenda .items-trasy .tytul {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.5;
    text-transform: uppercase;
}
#mapa-lokalizacja-item {
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    font-family: Montserrat, sans-serif;
}
#maps-legenda {
    position: relative;
    margin: -1px 0 0;
    height: auto;
    width: 100%;
    background: #fff;
    border-radius: 0;
    padding: 0;
    display: grid;
}
#maps-legenda .items-iko {
    gap: 10px;
}
#maps-legenda .items-iko .item-iko {
    display: flex;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    border: 1px solid var(--kmapa-1);
    color: var(--kmapa-1);
}
#maps-legenda .dodatkowe-ustawienia,
#maps-legenda .head {
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.14);
    position: relative;
}
#maps-legenda .items-iko .item-iko i {
    margin: auto;
    font-size: 20px;
}
#maps-legenda .items-iko .item-iko.on {
    background: var(--kmapa-1);
    color: var(--kmapa-2);
}
#maps-legenda .head {
    display: grid;
    grid-template-columns: 320px 1fr 75px;
    grid-gap: 60px;
    padding: 30px 40px 10px;
    z-index: 2;
}
#maps-legenda .head .tytuly {
    display: flex;
    justify-content: space-between;
}
#maps-legenda .items-trasy .items-grid .item,
#maps-legenda .items-wykaz,
#maps-legenda .legenda .items-grid .item {
    display: flex;
    justify-content: flex-start;
}
#maps-legenda .head .tytuly .t {
    white-space: pre-line;
}
#maps-legenda .items-wykaz {
    margin: 30px 0 0;
}
#maps-legenda .dodatkowe-ustawienia {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 40px 20px;
    z-index: 1;
    margin: -25px 0 0;
    gap: 30px;
}
#maps-legenda .phead {
    display: grid;
    gap: 5px;
}
#maps-legenda .items-trasy {
    flex: 1;
}
#maps-legenda .items-trasy .items-grid {
    display: flex;
    flex-flow: row nowrap;
    column-gap: 20px;
    margin: 10px 0 0;
}
#maps-legenda .items-trasy .items-grid .item .check {
    font-size: 20px;
    margin: auto 3px auto 0;
    color: #c8c8c8;
}
#maps-legenda .items-trasy .items-grid .item .check .on,
#maps-legenda .items-trasy .items-grid .item.on .check .off,
#maps-legenda .ustawienia .items .item-typ .toggle .iko .fa-toggle-off,
#maps-legenda .ustawienia .items .item-typ .toggle.on .iko .fa-toggle-on,
#maps-legenda.off .head .ukryj .left {
    display: none;
}
#maps-legenda .items-trasy .items-grid .item .check .off,
#maps-legenda .items-trasy .items-grid .item.on .check .on,
#maps-legenda .ustawienia .items .item-typ .toggle.on .iko .fa-toggle-off,
#maps-legenda.off .head .ukryj .right {
    display: block;
}
#maps-legenda .items-trasy .items-grid .item .t {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    color: #5a5a5a;
    margin: auto 0;
}
#maps-legenda .items-rodzaj {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    transform: translateY(-25%);
    flex-wrap: nowrap;
}
#maps-legenda input {
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0;
    height: 40px;
    padding: 0 10px;
}

#maps-legenda .button {
    background: #008cff;
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: space-between;
}

#maps-legenda .button span {
    display: block;
    margin: auto;
}
#maps-legenda .ustawienia {
    margin: 0;
    width: 130px;
    padding: 0;
}
#maps-legenda .ustawienia .items {
    justify-content: center;
}
#maps-legenda .ustawienia .items .item-typ {
    margin: auto;
    color: #5a5a5a;
}
#maps-legenda .ustawienia .items .item-typ .podpis {
    text-transform: uppercase;
    font-size: 10px;
    text-align: center;
    margin-bottom: 10px;
}
#maps-legenda .ustawienia .items .item-typ .p {
    color: #5a5a5a;
    font-size: 10px;
    margin: auto 0;
    cursor: pointer;
}
#maps-legenda .ustawienia .items .item-typ .toggle {
    display: flex;
    justify-content: center;
    gap: 5px;
}
#maps-legenda .ustawienia .items .item-typ .toggle .iko {
    font-size: 25px;
    cursor: pointer;
}
#maps-legenda .ustawienia .items .item-typ .toggle .iko .fa-toggle-on {
    display: block;
    color: var(--kmapa-1);
}
#maps-legenda .ustawienia .items .item-typ .toggle .p1,
#maps-legenda .ustawienia .items .item-typ .toggle.on .p2 {
    color: inherit;
}
#maps-legenda .ustawienia .items .item-typ .toggle .p2,
#maps-legenda .ustawienia .items .item-typ .toggle.on .p1 {
    color: var(--kmapa-1);
}
#maps-legenda .legenda .items-grid {
    grid-template-columns: 1fr;
    grid-gap: 5px;
    margin: 10px 0 0;
}
#maps-legenda .legenda .items-grid .item .linia {
    position: relative;
    width: 30px;
    margin-right: 10px;
}
#maps-legenda .legenda .items-grid .item .linia:before {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    height: 2px;
    width: 100%;
    border-top: 2px solid #000;
}
#maps-legenda .legenda .items-grid .item .linia.linia500:before {
    border-color: #999;
    opacity: 0.8;
}
#maps-legenda .legenda .items-grid .item .linia.linia1000:before {
    border-color: #aaa;
    opacity: 0.7;
}
#maps-legenda .legenda .items-grid .item .linia.linia1500:before {
    border-color: #bbb;
    opacity: 0.6;
}
#maps-legenda .legenda .items-grid .item .linia.linia2000:before {
    border-color: #ccc;
    opacity: 0.4;
}
#maps-legenda .legenda .items-grid .item .t {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 400;
    color: #5a5a5a;
    margin: auto 0;
}
#maps-legenda.off {
    height: 80px;
    width: 110px;
    padding: 0 20px;
}
#maps-legenda.off .head .tytul {
    width: 0;
    overflow: hidden;
}
#mapagoogle {
    width: 100%;
    height: 800px;
}
@media (width < 1024px) {
    #maps-legenda .head {
        gap: 20px;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    #maps-legenda .items-iko .item-iko {
        width: 35px;
    }
    #maps-legenda .head .tytuly {
        display: grid;
    }
    #maps-legenda .items-wykaz {
        margin-top: 5px;
    }
    #maps-legenda .items-rodzaj {
        transform: none;
        margin-block: 5px;
    }
    #maps-legenda .dodatkowe-ustawienia {
        display: grid;
        padding: 10px;
        margin-top: 0;
    }
    #maps-legenda .legenda .items-grid {
        display: flex;
    }
    #maps-legenda .ustawienia {
        width: auto;
    }
    #maps-legenda .ustawienia .items .item-typ {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    #maps-legenda .ustawienia .items .item-typ .podpis {
        margin-bottom: 0;
    }
    #maps-legenda .items-trasy .items-grid {
        flex-wrap: wrap;
    }
}
