.mapOptionsBox.sp-map-optionsbox {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    padding: 8px 12px;
    min-width: 170px;
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #1e293b;
    z-index: 900;
    pointer-events: auto !important;
    transition: all 0.2s ease;
}

.mapOptionsBox.sp-map-optionsbox.sp-collapsed {
    padding: 6px 12px;
}

.mapOptionsBox.sp-map-optionsbox.sp-collapsed .sp-optionsbox-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sp-optionsbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.sp-optionsbox-header:hover .sp-optionsbox-title {
    color: #0284c7;
}

.sp-optionsbox-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    white-space: nowrap;
}

.sp-optionsbox-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    padding: 2px 4px;
    border-radius: 4px;
}

.sp-optionsbox-toggle:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.sp-optionsbox-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(45vh, 260px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.sp-optionsbox-row {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.sp-optionsbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    user-select: none;
    width: 100%;
}

.sp-optionsbox-label:hover {
    color: #0f172a;
}

.sp-optionsbox-checkbox {
    cursor: pointer;
    accent-color: #0284c7;
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sp-optionsbox-btn {
    width: 100%;
    text-align: left;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Tablet & Mobile Optimierung */
@media (max-width: 1024px) {
    .mapOptionsBox.sp-map-optionsbox {
        min-width: 150px;
        max-width: calc(100vw - 32px);
    }
    .sp-optionsbox-row {
        padding: 5px 0;
    }
    .sp-optionsbox-checkbox {
        width: 18px;
        height: 18px;
    }
    .sp-optionsbox-label {
        font-size: 13px;
    }
}
