/* Moderne Kartenintegration mit Leaflet.js */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.map-overlay h4 {
    margin: 0 0 5px 0;
    color: #2c5aa0;
    font-size: 16px;
}

.map-overlay p {
    margin: 2px 0;
    font-size: 13px;
}

.map-overlay a {
    color: #2c5aa0;
    text-decoration: none;
}

.map-overlay a:hover {
    text-decoration: underline;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.map-controls .btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    margin-right: 8px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-controls .btn:hover {
    background: #fff;
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
        margin: 15px 0;
    }
    
    .map-overlay {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .map-controls {
        bottom: 10px;
        left: 10px;
    }
    
    .map-controls .btn {
        padding: 6px 10px;
        font-size: 11px;
        margin-right: 5px;
    }
}

/* Leaflet Custom Styling */
.leaflet-container {
    font-family: 'Open Sans', sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.leaflet-popup-content h3 {
    margin: 0 0 8px 0;
    color: #2c5aa0;
    font-size: 16px;
    font-weight: 600;
}

.leaflet-popup-content p {
    margin: 4px 0;
    color: #555;
}

.leaflet-popup-content a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

.leaflet-popup-tip {
    background: #fff;
}

/* Loading Animation */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}

.map-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 