/* Исправления для отображения карты Leaflet */
.leaflet-map-picker {
    min-height: 400px !important;
    width: 100% !important;
}

/* Улучшение отображения тайлов */
.leaflet-tile {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.leaflet-tile-loaded {
    opacity: 1;
}

/* Исправление для контейнера карты */
.leaflet-container {
    background: #f8f9fa !important;
}

/* Улучшение отображения контролов */
.leaflet-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control a {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
}

.leaflet-control a:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Исправление для маркера */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Улучшение отображения при загрузке */
.leaflet-map-picker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.leaflet-map-picker .leaflet-container {
    position: relative;
    z-index: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .leaflet-map-picker {
        min-height: 300px !important;
    }

    .leaflet-control {
        font-size: 12px !important;
    }

    .leaflet-control a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
    }
}


