.labels-list {
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
}
.labels-list.sub {
    position: relative;
    z-index: 3;
}

.labels-list li:not(:last-of-type){
    margin-right: 20px;
}

.archive-school .labels-list li:not(:last-of-type) {
    margin-right: 10px;
}

.label-icon {
    width: 58px;
    height: 58px;
    border-radius: 100%;
    background-color: var(--color-white);
    box-shadow: 0 0 20px 0 rgba(154,174,191,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.5, 0.25, 0.5, 2);
    cursor: pointer;
    margin-bottom: 10px;
}

.label-icon:hover {
    transform: scale3d(1.25, 1.25, 1.25);
}

.archive-school .label-icon {
    width: 25px;
    height: 25px;
    box-shadow: 0 0 10px 0 rgba(154,174,191,0.15);
}

.label-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    object-position: center;
    font-size: 8px;
}

.label-icon span {
    position: absolute;
    top: calc(100% + 6px);
    padding: 5px 10px;
    background-color: var(--color-white);
    border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(154,174,191,0.15);
    transition:
        opacity 0.2s ease-in-out,
        transform 0.3s cubic-bezier(0.5, 0.25, 0.5, 1.5)
    ;
    transform-origin: 50% 0;
    z-index: 2;

    --marginLeft: 0;
    --marginRight: 0;
    margin-left: var(--marginLeft);
    margin-right: var(--marginRight);
}

.label-icon:not(:hover) span {
    transform: scale3d(0, 0, 0);
    opacity: 0;
}

.label-icon span:after {
    display: block;
    content: '';
    width: 0px;
    height: 0px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-white);
    position: absolute;
    bottom: calc(100% - 1px);
    left: calc(50% - 6px);

    margin-left: calc(var(--marginLeft) * -0.5);
    margin-right: calc(var(--marginRight) * -0.5);
}

[name="label-legenda"] {
    display: none;
}

.labels-legenda-link {
    margin-left: -25px;
    margin-top: -25px;
}

.archive-school .labels-legenda-link {
    margin-left: -12px;
    margin-top: -12px;
}

.labels-legenda-link label {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-secondary);
    font-size: 22px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.5, 0.25, 0.5, 2);
}

.labels-legenda-link label:hover {
    transform: scale3d(1.5, 1.5, 1.5);
}

.archive-school .labels-legenda-link label {
    width: 20px;
    height: 20px;
    font-size: 16px;
}

.label-legenda {
    position: fixed;
    background-color: var(--color-overlay);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.label-legenda-inner {
    transition: transform 0.4s cubic-bezier(0.5, 0.25, 0.5, 2);
    transform-origin: 50% 50%;
}

.label-legenda-inner.busy {
    cursor: wait;
}

.label-legenda-inner.busy:after {
    content: '';
    display: block;
    background-color: rgba(255, 255, 255, 0.75);
    position: absolute;
    border-radius: 40px;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

input:not(:checked) + .label-legenda {
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
}

input:not(:checked) + .label-legenda .label-legenda-inner {
    transition: transform 1s ease-in-out;
    transform: scale3d(0.8, 0.8, 0.8);
}

.label-legenda-inner {
    background-color: var(--color-white);
    border-radius: 40px;
    box-shadow: 0 2px 40px 0 rgba(154,174,191,0.1);
    padding: 30px;
}

.label-legenda-main {
    overflow: auto;
    max-height: calc(100vh - 300px);
    padding: 20px;
}

.label-legenda-content {
    column-count: 2;
    column-gap: 30px;
}

.label-legenda-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.label-legenda-header div {
    display: flex;
    align-items: center;
}

.label-legenda-header h4 {
    margin: 0;
}

.label-legenda-header div i {
    color: var(--color-secondary);
    font-size: 20px;
    margin-right: 20px;
}

label[for="label-legenda-close"] {
    font-size: 20px;
    width: 20px;
    height: 20px;
    padding: 10px;
    margin: -10px 0 0 0;
    cursor: pointer;
    color: var(--color-grey);
    display: flex;
    align-items: center;
    justify-content: center;
}
label[for="label-legenda-close"] i {
    display: block;
    transition: transform 0.4s cubic-bezier(0.5, 0.25, 0.5, 2);
}

label[for="label-legenda-close"]:hover i {
    transform: scale3d(1.5, 1.5, 1.5);
}

.label-legenda-content-item {
    display: block;
    padding: 20px 0;
    font-size: 12px;
    line-height: 16px;
    min-height: 80px;
    box-sizing: content-box;
    break-inside: avoid;
}

.label-inner {
    display: flex;
}

.label-legenda-content-item:not(:last-of-type){
    box-shadow: 0 1px 0 var(--color-secondary);
}

.label-legenda-content-item .label-icon {
    margin-right: 20px;
}

.label-legenda-content-item:not(.active){
    color: var(--color-secondary);
}
.label-legenda-content-item:not(.active) img{
    opacity: 0.5;
}

.label-legenda-heading:not(:first-of-type) {
    margin-top: 50px;
}

.label-legenda-heading {
    font-weight: bold;
    font-size: 13px;
}

.label-legenda-showall {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.label-legenda-showall a {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.5, 0.25, 0.5, 2);
}

.label-legenda-showall a:hover {
    transform: scale(1.1);
}


