.leaflet-sidebar {
    position: absolute;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    z-index: 2000;
}
.leaflet-sidebar.left {
    left: -500px;
    transition: left 0.5s, width 0.5s;
    padding-right: 0;
}
.leaflet-sidebar.left.visible {
    left: 0;
}
.leaflet-sidebar.right {
    right: -500px;
    transition: right 0.5s, width 0.5s;
    padding-left: 0;
}
.leaflet-sidebar.right.visible {
    right: 0;
}
.leaflet-sidebar > .leaflet-control {
    height: 100%;
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /*padding: 8px 24px;*/
    font-size: 1.1em;
    background: white;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.leaflet-touch .leaflet-sidebar > .leaflet-control {
    box-shadow: none;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}
@media (max-width: 767px) {
    .leaflet-sidebar {
        width: 100%;
        padding: 0;
    }
    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 100%;
    }
    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 100%;
    }
    .leaflet-sidebar.left {
        left: -100%;
    }
    .leaflet-sidebar.left.visible {
        left: 0;
    }
    .leaflet-sidebar.right {
        right: -100%;
    }
    .leaflet-sidebar.right.visible {
        right: 0;
    }
    .leaflet-sidebar > .leaflet-control {
        box-shadow: none;
        -webkit-border-radius: 0;
        border-radius: 0;
    }
    .leaflet-touch .leaflet-sidebar > .leaflet-control {
        border: 0;
    }

     .leaflet-sidebar .close {

        right: 0px;
        top: 5px;

      }
}
@media (min-width: 768px) and (max-width: 991px) {
    .leaflet-sidebar {
        width: 305px;
    }
    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 305px;
    }
    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 305px;
    }

     .leaflet-sidebar .close {

        right: -20px;
        top: 15px;

      }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .leaflet-sidebar {
        width: 390px;
    }
    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 390px;
    }
    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 390px;
    }
    .leaflet-sidebar .close {

        right: -25px;
        top: 20px;

    }
}
@media (min-width: 1200px) {
    .leaflet-sidebar {
        width: 460px;
    }
    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 460px;
    }
    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 460px;
    }

    .leaflet-sidebar .close {
        right: -25px;
        top: 20px;
    }

}

.leaflet-sidebar .close {
    position: absolute;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b6b, #e63946);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}


.leaflet-sidebar .close:hover {
    background: linear-gradient(135deg, #ff8787, #f0545e);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaflet-left {
    transition: left 0.5s;
}

.leaflet-right {
    transition: right 0.5s;
}
