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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
}

.instructions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
}

.instructions p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.info-panel {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.info-panel h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #333;
    padding-right: 32px;
}

#info-content {
    font-size: 14px;
    line-height: 1.6;
}

.info-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #333;
    font-size: 15px;
}

.coordinates {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.no-data {
    color: #999;
    font-style: italic;
}

/* Custom marker styles */
.marker {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCAzMiA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTYgNDhDMTYgNDggMzIgMjggMzIgMTZDMzIgNy4xNjM0NCAyNC44MzY2IDAgMTYgMEM3LjE2MzQ0IDAgMCA3LjE2MzQ0IDAgMTZDMCAyOCAxNiA0OCAxNiA0OFoiIGZpbGw9IiNFQTQ0MzUiLz4KICA8Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSI4IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
    background-size: contain;
    width: 32px;
    height: 48px;
    cursor: pointer;
}

/* Scrollbar styles */
.info-panel::-webkit-scrollbar {
    width: 8px;
}

.info-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading state */
.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Landslide controls */
.landslide-controls {
    position: absolute;
    top: 80px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 400px;
}

.landslide-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 45px;
}

.landslide-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.landslide-btn:active {
    transform: translateY(0);
}

.landslide-btn.active {
    background: #0d652d;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.landslide-btn.active:hover {
    background: #0a4d22;
}

.landslide-btn.load-all-btn {
    background: #34a853;
    flex-basis: calc(50% - 4px);
}

.landslide-btn.load-all-btn:hover {
    background: #2d8e47;
}

.landslide-btn.clear-btn {
    background: #ea4335;
    flex-basis: calc(50% - 4px);
}

.landslide-btn.clear-btn:hover {
    background: #d33b2c;
}

/* GitHub link */
.github-link {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    color: #333;
    transition: all 0.2s ease;
    text-decoration: none;
}

.github-link:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #000;
}

.github-link svg {
    display: block;
}
