/* Map Page Styles */
.map-main {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
}

.map-container {
    display: flex;
    height: calc(100vh - 80px);
}

/* Sidebar */
.map-sidebar {
    width: 380px;
    background: white;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h2 {
    color: #2d5a27;
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Stats Cards */
.stats-cards {
    margin-bottom: 25px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #4a7c59;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: #4a7c59;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a27;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Hotspot Form */
.hotspot-form {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.hotspot-form h3 {
    color: #2d5a27;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotspot-form .form-group {
    margin-bottom: 15px;
}

.hotspot-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.hotspot-form input,
.hotspot-form select,
.hotspot-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    font-family: inherit;
}

.hotspot-form textarea {
    resize: vertical;
    min-height: 60px;
}

.hotspot-form .btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a27 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.hotspot-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

/* Filter Section */
.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.filter-section h3 {
    color: #2d5a27;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

.display-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid #ddd;
    position: relative;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: #4a7c59;
    font-size: 12px;
    font-weight: bold;
}

/* Legend */
.legend {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.legend h3 {
    color: #2d5a27;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    gap: 10px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #ccc;
}

.legend-dot.individual {
    background: #6c757d;
}

.legend-dot.hotspot-medium {
    background: #ffc107;
}

.legend-dot.hotspot-high {
    background: #fd7e14;
}

.legend-dot.hotspot-critical {
    background: #dc3545;
}

/* Recent Reports */
.recent-reports h3 {
    color: #2d5a27;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.reports-list {
    max-height: 200px;
    overflow-y: auto;
}

.report-item {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-left: 3px solid #4a7c59;
    font-size: 0.85rem;
}

.report-location {
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 2px;
}

.report-details {
    color: #666;
    font-size: 0.8rem;
}

.report-time {
    color: #999;
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Map Wrapper */
.map-wrapper {
    flex: 1;
    position: relative;
}

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

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.map-btn i {
    color: #4a7c59;
    font-size: 1rem;
}

/* Leaflet Customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.popup-header {
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 8px;
    font-size: 1rem;
}

.popup-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.popup-risk {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}

.popup-risk.medium {
    background: #fff3cd;
    color: #856404;
}

.popup-risk.high {
    background: #f8d7da;
    color: #721c24;
}

.popup-risk.critical {
    background: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

/* Hotspot Circle Styles */
.hotspot-circle {
    fill-opacity: 0.3;
    stroke-width: 2;
    stroke-opacity: 0.8;
}

.hotspot-medium {
    fill: #ffc107;
    stroke: #e0a800;
}

.hotspot-high {
    fill: #fd7e14;
    stroke: #e55a00;
}

.hotspot-critical {
    fill: #dc3545;
    stroke: #c82333;
}

/* Animierte Glow-Effekte für Hotspot-Kreise */
.hotspot-glow-medium {
    filter: drop-shadow(0 0 16px #ffe066) drop-shadow(0 0 32px #ffe066);
    animation: glow-medium 1.5s infinite alternate;
}
@keyframes glow-medium {
    0% { filter: drop-shadow(0 0 8px #ffe066) drop-shadow(0 0 16px #ffe066); }
    100% { filter: drop-shadow(0 0 24px #ffe066) drop-shadow(0 0 48px #ffe066); }
}
.hotspot-glow-high {
    filter: drop-shadow(0 0 16px #fd7e14) drop-shadow(0 0 32px #fd7e14);
    animation: glow-high 1.2s infinite alternate;
}
@keyframes glow-high {
    0% { filter: drop-shadow(0 0 8px #fd7e14) drop-shadow(0 0 16px #fd7e14); }
    100% { filter: drop-shadow(0 0 32px #fd7e14) drop-shadow(0 0 64px #fd7e14); }
}
.hotspot-glow-critical {
    filter: drop-shadow(0 0 20px #dc3545) drop-shadow(0 0 40px #dc3545);
    animation: glow-critical 1s infinite alternate;
}
@keyframes glow-critical {
    0% { filter: drop-shadow(0 0 10px #dc3545) drop-shadow(0 0 20px #dc3545); }
    100% { filter: drop-shadow(0 0 40px #dc3545) drop-shadow(0 0 80px #dc3545); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
        height: auto;
    }
    
    .map-sidebar {
        width: 100%;
        height: auto;
        max-height: 400px;
        order: 2;
    }
    
    .map-wrapper {
        height: 400px;
        order: 1;
    }
    
    .stats-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        margin-bottom: 0;
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .hotspot-form {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .filter-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .display-filters {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .map-container {
        flex-direction: column;
        height: 100vh;
    }
    .map-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 3000;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-100vw);
        transition: transform 0.3s;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    }
    .map-sidebar.open {
        transform: translateX(0);
    }
    .map-wrapper {
        height: 100vh;
        min-height: 60vh;
        order: 1;
    }
    .map-controls {
        position: absolute;
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
        z-index: 1001;
    }
    .map-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .stats-cards {
        grid-template-columns: 1fr;
    }
    .filter-section {
        grid-template-columns: 1fr;
    }
    .display-filters {
        flex-direction: column;
    }
    .sidebar-header h1 {
        font-size: 1.1rem;
    }
}

/* Hamburger-Menü immer sichtbar auf Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block !important;
    }
    .nav-menu {
        display: none;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    min-width: 320px;
    max-width: 95vw;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #dc3545;
}
#modal-hotspot-coords {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .modal-content {
        min-width: 90vw;
        padding: 1rem;
    }
}

/* Pulsierender Marker für Einzelfunde */
.pulse-marker {
    width: 22px;
    height: 22px;
    background: #ff3b3b;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,59,59,0.7);
    animation: pulse 1.2s infinite cubic-bezier(0.66, 0, 0, 1);
    position: relative;
    z-index: 2;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,59,59,0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(255,59,59,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,59,59,0);
    }
}
.custom-marker.pulse {
    z-index: 10;
} 