.map {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 25%);
    background-color: var(--mainComponentColor);
    width: 65%;
    height: 80%;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    transition-duration: 300ms;
}

.map--active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.map__close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    cursor: pointer;
    z-index: 10000;
    background-color: var(--mainComponentColor);
    padding: 5px 10px;
    border-radius: 10px;
    color: var(--mainColor);
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.map__close-button img {
    width: 20px;
    margin-right: 5px;
    pointer-events: none;
}

.map__zoom-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--mainComponentColor);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.map__zoom-in,
.map__zoom-out {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
    width: 35px;
    font-size: 25px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 5px;
}

.map__zoom-controls img {
    pointer-events: none;
}

.leaflet-control-zoom {
    opacity: 0;
}

.osm {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.map__selected-location {
    display: flex;
    flex-direction: column;
    align-items: end;
    position: absolute;
    bottom: 35px;
    right: 15px;
    border: none;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
    border-radius: 10px;
    color: var(--mainColor);
    font-size: 15px;
    line-height: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--mainComponentColor);
    min-width: 200px;
}

.map__selected-location .name {
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    text-align: left;
}

.map__selected-location .coordinates {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    font-size: 13px;
    color: var(--secondTextColor);
}

.map__selected-location .select-location-btn {
    background-color: var(--mainColor);
    color: var(--mainComponentColor);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 0;
    margin-top: 15px;
    display: none;
}

.map__selected-location .title {
    font-size: 15px;
    font-weight: 500;
}

.map__selected-location--active {
    animation: none;
    background-color: var(--mainComponentColor);
}

.map__selected-location--active .select-location-btn {
    display: block;
}

.map__selected-location--active .title {
    display: none;
}

.map__selected-location--active .coordinates {
    margin-top: 5px;
}

.map__layer-switcher {
    position: absolute;
    bottom: 35px;
    left: 15px;
    z-index: 9999;
    background-color: var(--mainComponentColor);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

@keyframes rotateAndScale {
    0% {
        transform: rotate(0deg) scale(1);
    }
    33% {
        transform: rotate(-3deg) scale(1.2);
    }
    66% {
        transform: rotate(3deg) scale(1.2);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

.marker-animated {
    animation: rotateAndScale 750ms;
    transform-origin: bottom;
}

.leaflet-div-icon {
    border: none !important;
    background-color: transparent !important;
}