body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#map {
    height: 100vh;
    width: 100vw;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input,
.modal-content select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-content button {
    padding: 10px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #333;
}

/* Стили для кнопки входа */
#loginBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#loginBtn:hover {
    background: #333;
}

/* Дополнительные стили к предыдущим */

.hidden {
    display: none !important;
}

.admin-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-indicator button {
    background: #fff;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.error-message {
    color: #ff0000;
    margin-top: 10px;
    padding: 10px;
    background: #ffeeee;
    border-radius: 4px;
}

/* Стили для попапов Leaflet */
.custom-popup .leaflet-popup-content {
    min-width: 200px;
}

.point-info {
    padding: 10px;
}

.point-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.point-info p {
    margin: 5px 0;
    color: #666;
}

.point-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.type-pilot { background-color: #ff0000; }
.type-important { background-color: #0000ff; }
.type-camp { background-color: #00ff00; color: #000; }

.edit-button {
    background: #000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.edit-button:hover {
    background: #333;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    animation: fadeIn 0.3s;
}

/* Контекстное меню */
.context-menu {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 200px;
}

.context-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: #f0f0f0;
}

/* Увеличиваем область клика на карте */
.leaflet-clickable {
    cursor: pointer;
}

/* Стили для тултипов */
.leaflet-tooltip {
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Детальный попап */
.detailed-popup {
    font-family: Arial, sans-serif;
}

.detailed-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.detailed-popup p {
    margin: 5px 0;
    color: #666;
}

/* Улучшаем отображение на мобильных */
@media (max-width: 768px) {
    .leaflet-popup-content {
        max-width: 250px !important;
    }
    
    .context-menu {
        min-width: 150px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20px;
    }
    
    .admin-indicator {
        flex-direction: column;
        text-align: center;
    }
}