/* ── Compact breadcrumb ───────────────────────────────── */
.page-header {
    max-width: 1200px;
    margin: 10px auto 8px;
    padding: 0 24px;
}

.topbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    border: 1px solid #c7eafe;
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.10);
}

.page-header .topbar .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #7dd3fc;
    background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
    color: #075985;
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.25;
    font-weight: 600;
}

.page-header .topbar .topbar-link:hover,
.page-header .topbar .topbar-link:visited,
.page-header .topbar .topbar-link:active,
.page-header .topbar .topbar-link:focus {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #bae6fd 0%, #a5f3fc 100%);
    color: #0c4a6e;
}

.topbar-main {
    white-space: nowrap;
    color: inherit;
}

.topbar-keyword {
    color: #0b7394;
    font-weight: 500;
}

.topbar-sep {
    color: #0b7394;
    font-size: 0.8rem;
    line-height: 1;
}

/* ── Keyword cloud ────────────────────────────────────── */
.cloud .cloud-panel {
    border: 1px solid #c7eafe;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
}

.cloud-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #7dd3fc;
    background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
    color: #075985;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
}

.cloud-link:hover {
    border-color: #06b6d4;
    background: linear-gradient(135deg, #bae6fd 0%, #a5f3fc 100%);
    color: #0c4a6e;
}

/* ── Mosque title bar ─────────────────────────────────── */
.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.20);
}

.mosque-title-name {
    margin: 0;
    font-size: clamp(1.2rem, 2.0vw, 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;
}

/* ── Contact rows ─────────────────────────────────────── */
.contact-compact {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.contact-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.contact-row strong {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.contact-row span,
.contact-row a {
    font-size: 0.94rem;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

/* ── Social media ─────────────────────────────────────── */
.social-icon-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.88rem;
}

.social-icon-btn svg {
    width: 16px;
    height: 16px;
}

.social-icon-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.social-icon-btn--fb {
    color: #1877f2;
    border-color: #bfdbfe;
}

.social-icon-btn--fb:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.social-icon-btn--ig {
    color: #e1306c;
    border-color: #fbcfe8;
}

.social-icon-btn--ig:hover {
    background: #fdf2f8;
    border-color: #f9a8d4;
}

.social-icon-btn--yt {
    color: #ff0000;
    border-color: #fecaca;
}

.social-icon-btn--yt:hover {
    background: #fff1f2;
    border-color: #fca5a5;
}

/* ── Equipment chips ──────────────────────────────────── */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.equipment-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 0.93rem;
    line-height: 1.2;
    font-weight: 600;
    color: #334155;
}

.equipment-chip.on {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.equipment-chip.off {
    border-color: #d1d5db;
    background: #f8fafc;
    color: #64748b;
}

.equipment-check {
    width: 16px;
    height: 16px;
    accent-color: #16a34a;
    pointer-events: none;
}

.equipment-icon-wrap {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .08);
    color: currentColor;
}

.equipment-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.equipment-icon-book-lg {
    width: 15px;
    height: 15px;
}

.equipment-icon-book-sm {
    width: 12px;
    height: 12px;
}

.equipment-icon-fallback {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ── Misc ─────────────────────────────────────────────── */
.section-compact {
    margin-top: 18px;
}

.detail-action-panel {
    border: 1px solid #cbd5e1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 14px;
}

.detail-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.detail-action-links .detail-action-link + .detail-action-link::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 1em;
    background: #cbd5e1;
    margin: 0 10px;
    vertical-align: middle;
}

.detail-action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    padding: 2px 0;
}

.detail-action-link::before {
    content: '›';
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
}

.detail-action-link--update {
    color: #1d6fa8;
}

.detail-action-link--update:hover {
    color: #0c4a6e;
}

.detail-action-link--add {
    color: #166534;
}

.detail-action-link--add:hover {
    color: #14532d;
}

.detail-action-link--report {
    color: #b91c1c;
}

.detail-action-link--report:hover {
    color: #7f1d1d;
}

.muted {
    color: #64748b;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
    .page-header {
        padding: 0 16px;
        margin: 6px auto 6px;
    }

    .page-header .topbar {
        display: flex;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .page-header .topbar .topbar-link,
    .topbar-sep {
        flex: 0 0 auto;
    }

    .page-header .topbar .topbar-link {
        padding: 2px 6px;
    }

    .page-header .topbar .topbar-main {
        white-space: nowrap;
    }

    .mosque-title-bar {
        padding: 0 16px;
    }

    .social-icon-grid {
        grid-template-columns: 1fr;
    }

    .social-row {
        grid-template-columns: 1fr;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cloud-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .detail-action-links {
        flex-direction: column;
        gap: 4px;
    }

    .detail-action-links .detail-action-link + .detail-action-link::before {
        display: none;
    }
}
