/* Gemeinsame Filter-Panel-Styles */
.filter-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

.filter-panel.open {
    max-height: 78vh;
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.filter-host {
    position: relative;
    z-index: 20;
}

.filter-host .filter-panel {
    position: relative;
    z-index: 30;
}

@media (min-width: 769px) {
    .filter-panel.open {
        max-height: 960px;
    }
}

@media (max-width: 768px) {
    .filter-host .filter-panel.open {
        max-height: none;
        overflow: visible;
    }
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.filter-toggle-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.filter-toggle-btn .chevron {
    transition: transform 0.25s;
    display: inline-block;
}

.filter-toggle-btn.active .chevron {
    transform: rotate(180deg);
}

.filter-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0284c7;
    display: none;
}

.filter-active-dot.visible {
    display: inline-block;
}

/* Titelzeile für Stadt + Dachverband */
.mosque-title-bar {
    max-width: 1200px;
    margin: 24px auto 20px;
    padding: 0 24px;
}

.mosque-title-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 20px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
}

.mosque-title-name {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.mosque-title-dv {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 4px 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mosque-title-bar {
        margin-top: 16px;
        padding: 0 12px;
    }

    .mosque-title-inner {
        padding: 10px 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .mosque-title-dv {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}
