.interactive-map-container {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.interactive-map {
    width: 100%;
    height: 100%;
}

/* Кнопки управления картой */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-control-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

/* Попап для маркера */
.marker-popup {
    min-width: 250px;
}

.marker-popup-header {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.marker-popup-description {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.marker-popup-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.marker-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.marker-popup-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.marker-popup-btn-delete {
    background: #dc3232;
    color: white;
}

.marker-popup-btn-delete:hover {
    background: #b32d2e;
}

/* Форма добавления маркера */
.marker-form {
    padding: 15px;
}

.marker-form-group {
    margin-bottom: 12px;
}

.marker-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.marker-form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.marker-form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    box-sizing: border-box;
}

.marker-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.marker-form-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-form-btn-save {
    background: #2271b1;
    color: white;
}

.marker-form-btn-save:hover {
    background: #135e96;
}

.marker-form-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.marker-form-btn-cancel:hover {
    background: #ddd;
}

/* Кастомные маркеры */
.custom-marker {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #2271b1;
    position: relative;
    transform: rotate(-45deg);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    background: #135e96;
}

.custom-marker::after {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Уведомления */
.map-notification {
    position: absolute;
    top: 70px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.map-notification.error {
    background: #dc3232;
    color: white;
}

.map-notification.success {
    background: #46b450;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .interactive-map-container {
        height: 400px !important;
    }
    
    .map-controls {
        top: 5px;
        right: 5px;
    }
    
    .map-control-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .marker-popup {
        min-width: 200px;
    }
}

/* MapLibre GL controls customization */
.maplibregl-ctrl-group {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.maplibregl-ctrl-group button {
    width: 30px;
    height: 30px;
}

.maplibregl-popup-content {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maplibregl-popup-close-button {
    font-size: 20px;
    padding: 5px;
}
