/*>--------------- { DeleteBtn } ---------------<*/
.delMap {
    padding: var(--tightSpaceLyt);
    width: 80px;
    font-size: .8rem;
    font-weight: bold;
    color: var(--white);
    background-color: var(--red);
    transition: background-color .3s ease;
}

    .delMap:hover {
        background-color: var(--redHvr);
    }



/*>--------------- { DeleteBtn } ---------------<*/
/*.leaflet-map-pane {
    pointer-events: none;
}*/



/*>--------------- { Control Container } ---------------<*/
.leaflet-left .leaflet-control,
.leaflet-right .leaflet-control {
    margin: unset;
}

.leaflet-content {
    position: absolute;
    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-areas:
        "side top"
        "side bottom";
    height: 100%;
    box-sizing: border-box;
    z-index: 800;
}

    .leaflet-content.leaflet-right {
        direction: rtl;
    }

        .leaflet-content.leaflet-right > * {
            direction: ltr;
        }

.leaflet-top {
    grid-area: top;
    align-self: start;
}

.leaflet-bottom {
    grid-area: bottom;
    align-self: end;
}

.leaflet-side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    height: inherit;
}

    .leaflet-side:has(> .leaflet-sidebar) {
        width: 100%;
        gap: var(--spaceLyt);
        --borderControls: 2px solid rgba(0, 0, 0, .2);
        --borderContents: 1px solid #ccc;
        --widthSidebar: 35px;
    }

@media (min-width: 700px) {
    .leaflet-content {
        padding: var(--spaceLyt);   
    }
    .leaflet-content:not(:has(> .leaflet-side:empty)) {
        gap: var(--spaceLyt);
    }

    .leaflet-side:has(> .leaflet-sidebar):not(:has(.collapsed)) {
        width: 40svw;
        max-width: 550px;
    }
}

@media (max-width: 699px) {
    .leaflet-content:has(.leaflet-sidebar):not(:has(.collapsed)) {
        width: 100%;
        grid-template-columns: 1fr 0fr;
    }
}

/*>---------- [ Search Btn (TODO) ] ----------<*/
.leaflet-control-search {
    border: var(--borderControls);
    background-color: var(--white);
}

    .leaflet-control-search .search-input {
        display: block;
        float: left;
        background: var(--white);
        border: 1px solid #666;
        border-radius: 2px;
        width: 100%;
        height: 22px;
        padding: 0 20px 0 2px;
        margin: 4px 0 4px 4px
    }

    .leaflet-control-search.search-load .search-input {
        background: url('../images/loader.gif') no-repeat center right #fff
    }

    .leaflet-control-search.search-load .search-cancel {
        visibility: hidden
    }

    .leaflet-control-search .search-cancel {
        display: block;
        width: 22px;
        height: 22px;
        position: absolute;
        right: 28px;
        margin: 6px 0;
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Im0xMiAxMy40bDIuOSAyLjlxLjI3NS4yNzUuNy4yNzV0LjctLjI3NXQuMjc1LS43dC0uMjc1LS43TDEzLjQgMTJsMi45LTIuOXEuMjc1LS4yNzUuMjc1LS43dC0uMjc1LS43dC0uNy0uMjc1dC0uNy4yNzVMMTIgMTAuNkw5LjEgNy43cS0uMjc1LS4yNzUtLjctLjI3NXQtLjcuMjc1dC0uMjc1Ljd0LjI3NS43bDIuOSAyLjlsLTIuOSAyLjlxLS4yNzUuMjc1LS4yNzUuN3QuMjc1Ljd0LjcuMjc1dC43LS4yNzV6bTAgOC42cS0yLjA3NSAwLTMuOS0uNzg4dC0zLjE3NS0yLjEzN1QyLjc4OCAxNS45VDIgMTJ0Ljc4OC0zLjl0Mi4xMzctMy4xNzVUOC4xIDIuNzg4VDEyIDJ0My45Ljc4OHQzLjE3NSAyLjEzN1QyMS4yMTMgOC4xVDIyIDEydC0uNzg4IDMuOXQtMi4xMzcgMy4xNzV0LTMuMTc1IDIuMTM4VDEyIDIyIi8+PC9zdmc+) no-repeat 0 -46px;
        text-decoration: none;
        opacity: .8
    }

        .leaflet-control-search .search-cancel:hover {
            opacity: 1
        }

        .leaflet-control-search .search-cancel span {
            display: none;
            font-size: 18px;
            line-height: 20px;
            color: #ccc;
            font-weight: 700
        }

        .leaflet-control-search .search-cancel:hover span {
            color: #aaa
        }

    .leaflet-control-search .search-button {
        float: left;
        width: var(--widthSidebar);
        aspect-ratio: 1 / 1;
        background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik05LjUgMTZxLTIuNzI1IDAtNC42MTItMS44ODhUMyA5LjV0MS44ODgtNC42MTJUOS41IDN0NC42MTMgMS44ODhUMTYgOS41cTAgMS4xLS4zNSAyLjA3NVQxNC43IDEzLjNsNS42IDUuNnEuMjc1LjI3NS4yNzUuN3QtLjI3NS43dC0uNy4yNzV0LS43LS4yNzVsLTUuNi01LjZxLS43NS42LTEuNzI1Ljk1VDkuNSAxNm0wLTJxMS44NzUgMCAzLjE4OC0xLjMxMlQxNCA5LjV0LTEuMzEyLTMuMTg3VDkuNSA1VDYuMzEzIDYuMzEzVDUgOS41dDEuMzEzIDMuMTg4VDkuNSAxNCIvPjwvc3ZnPg==) no-repeat center #fff;
    }

        .leaflet-control-search .search-button:hover {
            background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSIjOTM5MzkzIiBkPSJNOS41IDE2cS0yLjcyNSAwLTQuNjEyLTEuODg4VDMgOS41dDEuODg4LTQuNjEyVDkuNSAzdDQuNjEzIDEuODg4VDE2IDkuNXEwIDEuMS0uMzUgMi4wNzVUMTQuNyAxMy4zbDUuNiA1LjZxLjI3NS4yNzUuMjc1Ljd0LS4yNzUuN3QtLjcuMjc1dC0uNy0uMjc1bC01LjYtNS42cS0uNzUuNi0xLjcyNS45NVQ5LjUgMTZtMC0ycTEuODc1IDAgMy4xODgtMS4zMTJUMTQgOS41dC0xLjMxMi0zLjE4N1Q5LjUgNVQ2LjMxMyA2LjMxM1Q1IDkuNXQxLjMxMyAzLjE4OFQ5LjUgMTQiLz48L3N2Zz4=) no-repeat center #fafafa
        }

    .leaflet-control-search .search-tooltip {
        position: absolute;
        top: 100%;
        left: 0;
        float: left;
        list-style: none;
        padding-left: 0;
        min-width: 120px;
        max-height: 122px;
        box-shadow: 1px 1px 6px rgba(0,0,0,.4);
        background-color: rgba(0,0,0,.25);
        z-index: 2000;
        overflow-y: auto;
        overflow-x: hidden;
        cursor: pointer
    }

    .leaflet-control-search .search-tip {
        margin: 2px;
        padding: 2px 4px;
        display: block;
        color: #000;
        background: #eee;
        border-radius: .25em;
        text-decoration: none;
        white-space: nowrap;
        vertical-align: center;
    }

    .leaflet-control-search .search-button:hover {
        background-color: #f4f4f4
    }

    .leaflet-control-search .search-tip-select, .leaflet-control-search .search-tip:hover {
        background-color: #fff
    }

    .leaflet-control-search .search-alert {
        cursor: pointer;
        clear: both;
        font-size: .75em;
        margin-bottom: 5px;
        padding: 0 .25em;
        color: #e00;
        font-weight: 700;
        border-radius: .25em
    }

/*>---------- [ SideBar ] ----------<*/
.leaflet-sidebar {
    flex: 1;
    display: flex;
}

.leaflet-sidebar-sideleft {
    flex-direction: row;
}

.leaflet-sidebar-sideright {
    flex-direction: row-reverse;
}

    .leaflet-sidebar-sideright > .leaflet-sidebar-content,
    .leaflet-sidebar-sideleft > .leaflet-sidebar-tabs {
        border: var(--borderControls);
        border-right: 0;
    }

    .leaflet-sidebar-sideleft > .leaflet-sidebar-content,
    .leaflet-sidebar-sideright > .leaflet-sidebar-tabs {
        border: var(--borderControls);
        border-left: 0;
    }


.leaflet-sidebar-tabs {
    width: var(--widthSidebar);
    height: inherit;
    color: var(--black);
    background-color: var(--white);
    overflow: hidden;
    z-index: 1500;
}

    .leaflet-sidebar-tabs > nav:last-child {
        bottom: 0;
    }

    .leaflet-sidebar-tabs > nav {
        display: flex;
        flex-direction: column;
    }

        .leaflet-sidebar-tabs > nav > a {
            display: flex;
            background: none;
            color: var(--grey);
            transition: all .3s ease;
        }

            .leaflet-sidebar-tabs > nav > a::before {
                content: "";
                width: 100%;
                aspect-ratio: 1 / 1;
                transition: background-color .3s ease;
                background-color: currentColor;
                -webkit-mask-image: var(--mask-url);
                mask-image: var(--mask-url);
                -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
                -webkit-mask-position: center;
                mask-position: center;
                -webkit-mask-size: 75%;
                mask-size: 75%;
            }

            .leaflet-sidebar-tabs > nav > a:hover {
                color: var(--white);
                background-color: var(--grey);
            }

            .leaflet-sidebar-tabs > nav > a.active {
                color: var(--white);
                background-color: var(--black);
            }

            .leaflet-sidebar-tabs > nav > a.disabled {
                color: var(--red);
                cursor: default;
            }

                .leaflet-sidebar-tabs > nav > a.disabled:hover {
                    background-color: var(--redHvr);
                }


.leaflet-sidebar-content {
    flex: 1;
    position: relative;
    height: inherit;
    background-color: var(--white);
    overflow: hidden;
    z-index: 1100;
}

.sidebar-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: var(--spaceLyt);
    box-sizing: border-box;
    padding: var(--spaceLyt);
    --prevPadding: calc(var(--spaceLyt) * -1);
}

    .leaflet-sidebar-content.collapsed,
    .sidebar-panel:not(.active) {
        display: none;
    }

.sidebar-panel-header {
    display: flex;
    flex-direction: row;
    padding-inline: var(--spaceLyt);
    height: var(--widthSidebar);
    color: var(--white);
    background-color: var(--black);
    margin-top: var(--prevPadding);
    margin-inline: var(--prevPadding);
}

    .sidebar-panel-header > input {
        flex: 1;
        font-size: 1.3rem;
        font-weight: bold;
        border: none;
        background: none;
        color: var(--white);
        height: 85%;
        align-self: center;
    }

    .sidebar-panel-header > button {
        height: 100%;
        aspect-ratio: 1 / 1;
        background-color: var(--white);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: contain;
        mask-size: contain;
    }

.sidebar-panel > *:not(.sidebar-panel-content) {
    flex-shrink: 0;
}

.sidebar-panel-content {
    overflow-y: auto;
    overflow-x: hidden;
}



/*>--------------- { Info Panel } ---------------<*/
.panel-info > textarea {
    flex: 1;
    padding: var(--tightSpaceLyt);
    resize: none;
}

.panel-info > .sidebar-panel-content {
    flex: 4;
    word-wrap: break-word;
    text-align: justify;
    font-size: .9rem;
}

.panel-info .sidebar-panel-content > * {
    margin-bottom: .5rem;
}

.panel-info .sidebar-panel-content *:last-child {
    margin-bottom: 0;
}

.panel-info .sidebar-panel-content h1 {
    font-size: 1.8rem;
}

.panel-info .sidebar-panel-content blockquote {
    background-color: var(--greyHvr);
    padding-left: .5rem;
    border: 1px solid var(--grey);
    border-left: var(--spaceLyt) solid var(--grey);
    border-radius: var(--tightSpaceLyt);
    margin: .2rem;
}

.panel-info .sidebar-panel-content > blockquote {
    margin-bottom: .5rem;
}

.panel-info .sidebar-panel-content ol,
.panel-info .sidebar-panel-content ul {
    margin-left: 1.2rem;
}

.panel-info .sidebar-panel-content code {
    background-color: var(--greyHvr);
    padding: var(--tightSpaceLyt);
    border-radius: var(--tightSpaceLyt);
}

.panel-info .sidebar-panel-content table {
    border-spacing: 1rem .6rem;
}

.panel-info .sidebar-panel-content hr {
    margin-block: .7rem;
}



/*>--------------- { Marker Panel } ---------------<*/
.panel-markers-editor {
    display: grid;
    grid-template-columns: 3fr 4fr 4fr;
    grid-template-rows: .6fr 2fr 2fr;
    grid-template-areas:
        "icon name          name"
        "icon colorMarker   colorIcon"
        "icon translateIcon scaleIcon";
    width: 100%;
    align-items: center;
    font-size: .9rem;
    text-align: center;
    gap: var(--spaceLyt);
}

    .panel-markers-editor > figure {
        grid-area: icon;
        border: var(--borderContents);
        background-color: var(--white);
        font-weight: bold;
    }

    .panel-markers-editor > #nameMarker {
        grid-area: name;
        box-sizing: border-box;
        height: 100%;
    }

    .panel-markers-editor > span:has(#colorMarker) {
        grid-area: colorMarker;
    }

    .panel-markers-editor > span:has(#colorIcon) {
        grid-area: colorIcon;
    }

    .panel-markers-editor > span:has(#translateIcon) {
        grid-area: translateIcon;
    }

    .panel-markers-editor > span:has(#scaleIcon) {
        grid-area: scaleIcon;
    }

    .panel-markers-editor > span input[type=color] {
        width: 40%;
    }

    .panel-markers-editor > span input[type=text] {
        width: 65%;
    }



.panel-markers-dropdown {
    position: absolute;
    margin-inline: var(--prevPadding);
    width: 100%;
    border: var(--borderContents);
    border-radius: var(--tightSpaceLyt);
    background-color: var(--white);
    overflow: hidden;
    z-index: 1200;
}

    .panel-markers-dropdown > input[type="text"] {
        padding: var(--tightSpaceLyt);
        border: none;
        border-bottom: var(--borderContents);
        color: var(--black);
        box-sizing: border-box;
        width: 100%;
    }

    .panel-markers-dropdown > span {
        display: grid;
        text-align: center;
        grid-template-columns: repeat(auto-fill, minmax(3.45rem, 1fr));
        grid-auto-rows: max-content;
        gap: var(--spaceLyt);
        padding: var(--spaceLyt);
        font-size: .85rem;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-y: auto;
        overflow-x: hidden;
        height: 25svh;
    }

        .panel-markers-dropdown > span figure:hover {
            outline: 2px solid var(--whiteHvr);
        }



.panel-markers-btnEntry {
    display: flex;
    position: relative;
    width: 100%;
    height: var(--widthSidebar);
    background: none;
    border: 2px dashed var(--grey);
    color: var(--grey);
    align-self: center;
    transition: all .3s ease;
}

    .panel-markers-btnEntry::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        transition: background-color .3s ease;
        background-color: currentColor;
        --mask-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21q-.425 0-.712-.288T11 20v-7H4q-.425 0-.712-.288T3 12t.288-.712T4 11h7V4q0-.425.288-.712T12 3t.713.288T13 4v7h7q.425 0 .713.288T21 12t-.288.713T20 13h-7v7q0 .425-.288.713T12 21'/%3E%3C/svg%3E");
        -webkit-mask-image: var(--mask-url);
        mask-image: var(--mask-url);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: contain;
        mask-size: contain;
    }

    .panel-markers-btnEntry:hover {
        color: var(--blue);
        border-color: var(--blue);
    }

    .panel-markers-btnEntry > iconify-icon {
        align-self: center;
        transition: border-color .3s ease;
    }

    .panel-markers-btnEntry:hover > iconify-icon {
        border-color: var(--blue);
    }


/*>---------- [ Marker Entry ] ----------<*/
.panel-markers .sidebar-panel-content {
    display: flex;
    flex-direction: column;
    gap: var(--spaceLyt);
}

.markerEntry {
    width: 100%;
    height: calc(2 * var(--widthSidebar));
    display: flex;
    animation: fade-in .3s ease forwards;
    font-size: 1.1rem;
}

    .markerEntry > input[type="checkbox"] {
        margin-inline: var(--spaceLyt);
        width: 18px;
    }

    .markerEntry > figure {
        display: flex;
        flex: 1;
        border: 2px solid transparent;
        padding-block: var(--tightSpaceLyt);
        transition: border-color .3s ease;
        box-sizing: border-box;
    }

        .markerEntry > figure:hover {
            border-color: var(--blueHvr);
        }

    .markerEntry.active > figure {
        border-color: var(--blue);
    }

    .markerEntry > figure > figcaption {
        align-content: center;
    }

    .markerEntry > button {
        padding-inline: var(--spaceLyt);
        margin-inline: var(--spaceLyt);
        transition: background-color .3s ease;
        background-color: var(--red);
        --mask-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zm3-4q.425 0 .713-.288T11 16V9q0-.425-.288-.712T10 8t-.712.288T9 9v7q0 .425.288.713T10 17m4 0q.425 0 .713-.288T15 16V9q0-.425-.288-.712T14 8t-.712.288T13 9v7q0 .425.288.713T14 17'/%3E%3C/svg%3E");
        -webkit-mask-image: var(--mask-url);
        mask-image: var(--mask-url);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: 130%;
        mask-size: 130%;
    }

        .markerEntry > button:hover {
            background-color: var(--redHvr);
        }
