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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
}

.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

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

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

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 250px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.controls.collapsed {
    min-width: auto;
    padding: 8px;
    overflow: hidden;
}

.collapse-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 1;
}

.collapse-button:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.controls.collapsed .collapse-button {
    position: relative;
    top: 0;
    right: 0;
    margin: 0;
}

.controls h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #2c3e50;
}

.stats {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.stats div {
    margin-bottom: 5px;
}

.filters {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

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

.filter-group h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.type-filter {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.type-filter input[type="checkbox"] {
    margin-right: 8px;
}

.color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid #ccc;
}

.legend {
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 10px;  
}

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

.popup-content {
    min-width: 300px;
    max-width: 400px;
}

.popup-topline {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 10px 12px;
    margin: -10px -10px 15px -10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-headline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.popup-name {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 12px;
}

.popup-plaetze {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 15px;
}

.popup-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.popup-info-label {
    font-weight: 600;
    color: #6c757d;
}

.popup-info-value {
    color: #212529;
}

.popup-sources {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 20px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #856404;
}

.popup-sources strong {
    font-weight: 600;
}

.popup-links {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

.popup-content .link-button {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px 4px 2px 0;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.popup-content .link-button:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

.popup-content .link-button.secondary {
    background-color: #95a5a6;
}

.popup-content .link-button.secondary:hover {
    background-color: #7f8c8d;
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

.popup-data-entry {
    border-top: 1px solid #dee2e6;
    padding-top: 12px;
    margin-top: 12px;
    text-align: center;
}

.data-entry-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    width: 100%;
}

.data-entry-button:hover {
    background-color: #229954;
}

.create-parking-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.create-parking-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    min-width: 200px;
}

.create-parking-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.create-parking-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Mobile responsive für create button */
@media (max-width: 768px) {
    .create-parking-container {
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
    }
    
    .create-parking-button {
        width: 100%;
        min-width: auto;
        padding: 14px 24px;
        font-size: 1rem;
    }
}