/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#map {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Общие стили для попапов */
.maplibregl-popup-content {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для попапа страны */
.country-popup {
    min-width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.country-popup h3 {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.popup-info {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-info:last-child {
    border-bottom: none;
    padding-bottom: 12px;
}

.popup-info .label {
    font-weight: 500;
    opacity: 0.9;
    font-size: 13px;
}

.popup-info .value {
    font-weight: 600;
    font-size: 14px;
}

/* Стили для попапа города */
.city-popup-content {
    min-width: 200px;
    background: white;
}

.city-popup-content h3 {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: white;
    padding: 10px 16px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.city-popup-content .popup-info {
    border-bottom: 1px solid #eee;
    color: #333;
}

.city-popup-content .popup-info .label {
    color: #666;
}

.city-popup-content .popup-info .value {
    color: #FF6B6B;
    font-weight: bold;
}

.popup-note {
    padding: 8px 16px 12px;
    text-align: center;
    color: #F39C12;
    font-size: 12px;
    font-weight: 500;
    background: #FFF8E7;
}

/* Стили для крупных городов */
.city-popup.large .city-popup-content h3 {
    background: linear-gradient(135deg, #F39C12, #E67E22);
}

/* Стили для кнопки закрытия */
.maplibregl-popup-close-button {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    right: 8px;
    top: 8px;
    transition: all 0.2s;
}

.maplibregl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    transform: scale(1.1);
}

/* Стили для указателя попапа */
.maplibregl-popup-tip {
    border-top-color: white;
}

.country-popup + .maplibregl-popup-tip {
    border-top-color: #764ba2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .country-popup {
        min-width: 200px;
    }

    .city-popup-content {
        min-width: 180px;
    }

    .popup-info {
        padding: 6px 12px;
    }
}
