* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
    width: 100%;
    height: 100%;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #667eea;
    color: white;
}

.info-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 250px;
}

.info-panel h3 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 1.3em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    color: #333;
    font-weight: bold;
}

.legend {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.legend h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.95em;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 30px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

.legend-text {
    font-size: 0.85em;
    color: #666;
}

.privacy-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 350px;
    font-size: 0.85em;
}

.privacy-notice h4 {
    margin: 0 0 8px 0;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 5px;
}

.privacy-notice p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-country {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.popup-visits {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.popup-label {
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .info-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .privacy-notice {
        display: none;
    }

    .legend {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
}
