/* ============================================================
   BMABA Club Finder - Public Directory
   bmaba.org.uk/club-finder
   ============================================================ */

.bmabaf-wrap {
    --bmabaf-primary:  #1E3A5F;
    --bmabaf-green:    #059669;
    --bmabaf-red:      #DC2626;
    --bmabaf-gold:     #D97706;
    --bmabaf-border:   #E5E7EB;
    --bmabaf-surface:  #F9FAFB;
    --bmabaf-text:     #111827;
    --bmabaf-muted:    #6B7280;
    --bmabaf-radius:   12px;
    --bmabaf-shadow:   0 4px 16px rgba(0,0,0,.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bmabaf-text);
    max-width: 100%;
    position: relative;
}
.bmabaf-wrap *, .bmabaf-wrap *::before, .bmabaf-wrap *::after { box-sizing: border-box; }

/* ── Page header ─────────────────────────────────────────── */
.bmabaf-header {
    background: linear-gradient(135deg, var(--bmabaf-primary) 0%, #2C5282 100%);
    padding: 36px 0 28px;
    margin-bottom: 0;
}
.bmabaf-header__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.bmabaf-header__text { flex: 1; min-width: 280px; }
.bmabaf-header__title { font-size: 1.75rem; font-weight: 900; color: #FFFFFF; margin: 0 0 10px; letter-spacing: -.03em; }
.bmabaf-header__desc { font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0; }
.bmabaf-header__desc strong { color: #FFFFFF; }
.bmabaf-header__badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 4px; }
.bmabaf-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 9999px; font-size: .75rem; font-weight: 700;
}
.bmabaf-badge--blue  { background: rgba(37,99,235,.2); color: #93C5FD; border: 1px solid rgba(37,99,235,.3); }
.bmabaf-badge--green { background: rgba(5,150,105,.2); color: #6EE7B7; border: 1px solid rgba(5,150,105,.3); }
.bmabaf-badge--gold  { background: rgba(217,119,6,.2); color: #FCD34D; border: 1px solid rgba(217,119,6,.3); }

/* ── Toolbar ─────────────────────────────────────────────── */
.bmabaf-toolbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--bmabaf-border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.bmabaf-toolbar__inner {
    max-width: 1200px; margin: 0 auto; padding: 10px 28px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bmabaf-search-wrap {
    position: relative; flex: 1; min-width: 200px;
}
.bmabaf-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--bmabaf-muted); pointer-events: none; }
.bmabaf-search-input {
    width: 100%; padding: 9px 12px 9px 32px;
    border: 1.5px solid var(--bmabaf-border); border-radius: 9999px;
    font-size: .9rem; font-family: inherit; outline: none;
    transition: border-color .15s;
}
.bmabaf-search-input:focus { border-color: var(--bmabaf-primary); }

.bmabaf-select {
    padding: 9px 28px 9px 12px; border: 1.5px solid var(--bmabaf-border);
    border-radius: 9999px; font-size: .875rem; font-family: inherit;
    outline: none; cursor: pointer; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    transition: border-color .15s; min-width: 160px;
}
.bmabaf-select:focus { border-color: var(--bmabaf-primary); }

.bmabaf-view-toggle { display: flex; gap: 0; border: 1.5px solid var(--bmabaf-border); border-radius: 9999px; overflow: hidden; }
.bmabaf-view-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; font-size: .8125rem; font-weight: 600;
    font-family: inherit; border: none; cursor: pointer;
    background: #FFFFFF; color: var(--bmabaf-muted); transition: all .15s;
}
.bmabaf-view-btn svg { width: 14px; height: 14px; }
.bmabaf-view-btn:hover { background: var(--bmabaf-surface); }
.bmabaf-view-btn--active { background: var(--bmabaf-primary); color: #FFFFFF; }
.bmabaf-view-btn--active:hover { background: var(--bmabaf-primary); filter: brightness(.9); }

.bmabaf-count { font-size: .8125rem; color: var(--bmabaf-muted); white-space: nowrap; margin-left: auto; }

/* ── Body ────────────────────────────────────────────────── */
.bmabaf-body { position: relative; }
.bmabaf-map { background: #E8EFF5; width: 100%; display: block; }
.bmabaf-map-loading {
    position: absolute; inset: 0; background: rgba(255,255,255,.88);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 100; backdrop-filter: blur(4px);
}
.bmabaf-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--bmabaf-border); border-top-color: var(--bmabaf-primary);
    border-radius: 50%; animation: bmabaf-spin .7s linear infinite; margin-bottom: 10px;
}
@keyframes bmabaf-spin { to { transform: rotate(360deg); } }

/* Ghost pin notice */
.bmabaf-ghost-notice {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: #FFFBEB; border-top: 1px solid #FDE68A;
    font-size: .8125rem; color: #92400E; line-height: 1.5;
    max-width: 1200px; margin: 0 auto;
}
.bmabaf-ghost-notice svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── List cards ──────────────────────────────────────────── */
.bmabaf-list-pane { max-width: 1200px; margin: 0 auto; padding: 24px 28px; }
.bmabaf-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.bmabaf-card {
    background: #FFFFFF; border: 1px solid var(--bmabaf-border);
    border-radius: var(--bmabaf-radius); overflow: hidden;
    cursor: pointer; transition: box-shadow .15s, border-color .15s;
}
.bmabaf-card:hover { box-shadow: var(--bmabaf-shadow); border-color: #CBD5E1; }

.bmabaf-card__cover {
    height: 140px; background: #E5E7EB;
    background-size: cover; background-position: center;
    position: relative;
}
.bmabaf-card__cover-placeholder {
    height: 140px; background: linear-gradient(135deg, var(--bmabaf-primary) 0%, #2C5282 100%);
    display: flex; align-items: center; justify-content: center;
}
.bmabaf-card__cover-placeholder svg { width: 40px; height: 40px; color: rgba(255,255,255,.3); }

.bmabaf-card__logo {
    position: absolute; bottom: -20px; left: 16px;
    width: 44px !important; height: 44px !important;
    min-width: 44px !important; max-width: 44px !important;
    border-radius: 10px;
    background: #FFFFFF; border: 2px solid var(--bmabaf-border);
    object-fit: cover !important; box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: block !important;
}

.bmabaf-card__body { padding: 28px 16px 14px; }
.bmabaf-card__name { font-size: 1rem; font-weight: 800; color: var(--bmabaf-text); margin: 0 0 4px; letter-spacing: -.01em; }
.bmabaf-card__city { font-size: .8125rem; color: var(--bmabaf-muted); margin: 0 0 10px; display: flex; align-items: center; gap: 4px; }
.bmabaf-card__city svg { width: 12px; height: 12px; }
.bmabaf-card__styles { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.bmabaf-card__style-tag {
    padding: 2px 8px; border-radius: 9999px; font-size: .6875rem; font-weight: 600;
    background: var(--bmabaf-surface); border: 1px solid var(--bmabaf-border); color: var(--bmabaf-text);
}
.bmabaf-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.bmabaf-card__badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 9999px; font-size: .625rem; font-weight: 700;
    background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0;
}
.bmabaf-card__footer { display: flex; gap: 8px; }
.bmabaf-card__btn {
    flex: 1; padding: 8px 10px; border-radius: 9999px; font-size: .8125rem;
    font-weight: 600; font-family: inherit; cursor: pointer; border: none;
    text-align: center; text-decoration: none; display: flex; align-items: center;
    justify-content: center; transition: all .15s;
}
.bmabaf-card__btn--primary { background: var(--bmabaf-primary); color: #FFFFFF; }
.bmabaf-card__btn--primary:hover { filter: brightness(.9); color: #FFFFFF; text-decoration: none; }
.bmabaf-card__btn--outline {
    background: transparent; border: 1.5px solid var(--bmabaf-primary); color: var(--bmabaf-primary);
}
.bmabaf-card__btn--outline:hover { background: var(--bmabaf-primary); color: #FFFFFF; text-decoration: none; }

.bmabaf-no-results { text-align: center; padding: 60px 20px; }
.bmabaf-no-results svg { width: 48px; height: 48px; color: #D1D5DB; margin: 0 auto 14px; display: block; }
.bmabaf-no-results p { font-size: 1rem; color: var(--bmabaf-muted); margin: 0 0 16px; }
.bmabaf-no-results button { padding: 9px 20px; border-radius: 9999px; border: 1.5px solid var(--bmabaf-border); background: #FFFFFF; cursor: pointer; font-family: inherit; font-size: .875rem; }

/* ── Map pin styles ───────────────────────────────────────── */
.bmabaf-pin-outer { cursor: pointer; }
.bmabaf-pin-img {
    display: block !important; width: 40px !important; height: 40px !important;
    border-radius: 50% !important; border: 3px solid var(--bmabaf-primary) !important;
    object-fit: cover !important; box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
}
.bmabaf-pin-tip {
    width: 0; height: 0; margin: 0 auto;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 7px solid var(--bmabaf-primary);
}
.bmabaf-ghost-pin-inner {
    width: 28px; height: 28px; border-radius: 50%;
    background: #9CA3AF; border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,.2); opacity: .65;
}

/* Cluster */
.marker-cluster div { background: var(--bmabaf-primary); color: #FFF; font-weight: 700; border-radius: 50%; }

/* ── Detail panel ─────────────────────────────────────────── */
.bmabaf-detail-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 440px; max-width: 95vw; background: #FFFFFF;
    z-index: 500; transform: translateX(110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    overflow-y: auto;
}
.bmabaf-detail-panel.is-open { transform: translateX(0); }
.bmabaf-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 499; display: none; }
.bmabaf-overlay.is-open { display: block; }

.bmabaf-detail-close {
    /* Absolute so it overlays the cover/header without pushing content down */
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35) !important; background: rgba(0,0,0,.35) !important;
    display: flex !important; align-items: center; justify-content: center;
    color: #FFFFFF !important; cursor: pointer;
}
    cursor: pointer; z-index: 10;
}
.bmabaf-detail-close svg { width: 16px !important; height: 16px !important; display: block; }

/* Detail content */
.bmabaf-detail-cover {
    height: 180px; background-size: cover; background-position: center;
    background-color: #E5E7EB; position: relative;
}
.bmabaf-detail-cover--placeholder {
    background: linear-gradient(135deg, var(--bmabaf-primary) 0%, #2C5282 100%);
    display: flex; align-items: center; justify-content: center;
}
.bmabaf-detail-cover--placeholder svg { width: 56px; height: 56px; color: rgba(255,255,255,.25); }

.bmabaf-detail-logo {
    position: absolute; bottom: -24px; left: 20px;
    width: 52px !important; height: 52px !important;
    min-width: 52px !important; max-width: 52px !important;
    border-radius: 12px;
    background: #FFFFFF; border: 2px solid var(--bmabaf-border);
    object-fit: cover !important; box-shadow: var(--bmabaf-shadow);
    display: block !important;
}
.bmabaf-detail-body { padding: 36px 22px 28px; }
.bmabaf-detail-name { font-size: 1.25rem; font-weight: 900; color: var(--bmabaf-text); margin: 0 0 6px; letter-spacing: -.02em; }
.bmabaf-detail-city { font-size: .875rem; color: var(--bmabaf-muted); margin: 0 0 16px; }
.bmabaf-detail-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.bmabaf-detail-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 9999px; font-size: .875rem;
    font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
    transition: all .15s; border: none;
}
.bmabaf-detail-btn svg { width: 15px; height: 15px; }
.bmabaf-detail-btn--primary { background: var(--bmabaf-primary); color: #FFFFFF; }
.bmabaf-detail-btn--primary:hover { filter: brightness(.9); color: #FFFFFF; text-decoration: none; }
.bmabaf-detail-btn--outline { border: 1.5px solid var(--bmabaf-primary); color: var(--bmabaf-primary); background: transparent; }
.bmabaf-detail-btn--outline:hover { background: var(--bmabaf-primary); color: #FFFFFF; text-decoration: none; }
.bmabaf-detail-btn--green { background: var(--bmabaf-green); color: #FFFFFF; }
.bmabaf-detail-btn--green:hover { filter: brightness(.9); color: #FFFFFF; text-decoration: none; }

.bmabaf-detail-section { margin-bottom: 20px; }
.bmabaf-detail-section-title { font-size: .75rem; font-weight: 700; color: var(--bmabaf-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.bmabaf-detail-text { font-size: .9375rem; line-height: 1.65; color: #374151; margin: 0; }
.bmabaf-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.bmabaf-detail-tag {
    padding: 3px 10px; border-radius: 9999px; font-size: .75rem; font-weight: 600;
    background: var(--bmabaf-surface); border: 1px solid var(--bmabaf-border); color: var(--bmabaf-text);
}
.bmabaf-detail-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 9999px; font-size: .75rem; font-weight: 600;
    background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0;
}
.bmabaf-detail-badge svg { width: 11px; height: 11px; }

.bmabaf-detail-pins { display: flex; flex-direction: column; gap: 10px; }
.bmabaf-detail-pin-card {
    background: var(--bmabaf-surface); border: 1px solid var(--bmabaf-border);
    border-radius: var(--bmabaf-radius); padding: 12px 14px;
}
.bmabaf-detail-pin-label { font-size: .9rem; font-weight: 700; color: var(--bmabaf-text); margin: 0 0 4px; }
.bmabaf-detail-pin-meta { font-size: .8125rem; color: var(--bmabaf-muted); display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bmabaf-detail-pin-meta svg { width: 12px; height: 12px; vertical-align: middle; }

.bmabaf-detail-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.bmabaf-detail-social-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 9999px;
    border: 1.5px solid var(--bmabaf-border); background: #FFFFFF;
    font-size: .8125rem; font-weight: 600; color: var(--bmabaf-text);
    text-decoration: none; transition: border-color .15s;
}
.bmabaf-detail-social-link:hover { border-color: var(--bmabaf-primary); color: var(--bmabaf-primary); text-decoration: none; }

.bmabaf-detail-disclaimer {
    padding: 10px 14px; background: #FFFBEB; border: 1px solid #FDE68A;
    border-radius: 8px; font-size: .75rem; color: #92400E; line-height: 1.5;
    margin-top: 20px;
}

/* ── Enquiry modal ───────────────────────────────────────── */
.bmabaf-enquiry-modal {
    position: fixed; inset: 0; z-index: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
    display: none;
}
.bmabaf-enquiry-modal.is-open { display: flex; }
.bmabaf-enquiry-modal__inner {
    background: #FFFFFF; border-radius: 20px;
    width: 100%; max-width: 500px; max-height: 92vh;
    overflow-y: auto; padding: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    position: relative;
    animation: bmabaf-modal-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bmabaf-modal-in { from { opacity:0; transform: scale(.92); } to { opacity:1; transform: none; } }
.bmabaf-enquiry-modal .bmabaf-detail-close { position: absolute; top: 14px; right: 14px; float: none; margin: 0; }

.bmabaf-enquiry-title { font-size: 1.125rem; font-weight: 800; margin: 0 0 4px; }
.bmabaf-enquiry-sub   { font-size: .875rem; color: var(--bmabaf-muted); margin: 0 0 20px; }

.bmabaf-enq-field { margin-bottom: 14px; }
.bmabaf-enq-field label { display: block; font-size: .8125rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.bmabaf-opt { font-weight: 400; color: var(--bmabaf-muted); }
.bmabaf-enq-input {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--bmabaf-border);
    border-radius: 10px; font-size: .9375rem; font-family: inherit; outline: none;
    transition: border-color .15s;
}
.bmabaf-enq-input:focus { border-color: var(--bmabaf-primary); }
.bmabaf-enq-textarea { min-height: 100px; resize: vertical; }
.bmabaf-enq-privacy {
    display: flex; align-items: flex-start; gap: 7px;
    padding: 9px 12px; background: #EFF6FF; border: 1px solid #BFDBFE;
    border-radius: 8px; font-size: .8125rem; color: #1D4ED8; margin-bottom: 14px;
}
.bmabaf-enq-privacy svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.bmabaf-enq-error { padding: 9px 12px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; font-size: .875rem; color: var(--bmabaf-red); margin-bottom: 12px; }
.bmabaf-enq-submit {
    width: 100%; padding: 12px; background: var(--bmabaf-primary); color: #FFFFFF;
    border: none; border-radius: 9999px; font-size: .9375rem; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: filter .15s;
}
.bmabaf-enq-submit:hover { filter: brightness(.9); }

.bmabaf-enq-success { text-align: center; padding: 20px 0; }
.bmabaf-enq-success svg { width: 56px; height: 56px; color: var(--bmabaf-green); margin: 0 auto 14px; display: block; }
.bmabaf-enq-success h3 { font-size: 1.125rem; font-weight: 800; margin: 0 0 10px; }
.bmabaf-enq-success p  { font-size: .9375rem; color: var(--bmabaf-muted); margin: 0 0 20px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .bmabaf-cards-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
    .bmabaf-header__inner, .bmabaf-toolbar__inner, .bmabaf-list-pane { padding-left: 16px; padding-right: 16px; }
    .bmabaf-cards-grid { grid-template-columns: 1fr; }
    .bmabaf-detail-panel { width: 100vw; }
    .bmabaf-header__title { font-size: 1.375rem; }
}

/* ── Anonymous / auto-created instructor pins ────────────── */

.bmabaf-anon-pin {
    width: 32px; height: 32px; border-radius: 50%;
    background: #6B7280; border: 2px solid #9CA3AF;
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,.2);
    opacity: .75;
}
.bmabaf-anon-pin svg { width: 16px; height: 16px; }
.bmabaf-anon-tip {
    width: 0; height: 0; margin: 0 auto;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 6px solid #6B7280;
    opacity: .75;
}
.bmabaf-pin-outer--anon:hover .bmabaf-anon-pin { opacity: 1; }

/* Anonymous detail panel */
.bmabaf-detail-anon-header {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
    padding: 52px 22px 28px;  /* top padding clears the absolute close button */
    display: flex; align-items: center; gap: 16px;
}
.bmabaf-detail-anon-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF; flex-shrink: 0;
}
.bmabaf-detail-anon-icon svg { width: 24px; height: 24px; }
.bmabaf-detail-anon-header .bmabaf-detail-name { color: #FFFFFF; margin: 0; }

.bmabaf-anon-notice {
    display: flex; align-items: flex-start; gap: 10px;
    background: #FFFBEB; border: 1px solid #FDE68A;
    border-radius: 10px; padding: 14px 16px;
    font-size: .875rem; color: #92400E; line-height: 1.6;
    margin-bottom: 20px;
}
.bmabaf-anon-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.bmabaf-anon-notice strong { display: block; margin-bottom: 4px; }

/* ── Instructor CTA ──────────────────────────────────────── */
.bmabaf-wrap .bmabaf-instructor-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%) !important;
    padding: 36px 0;
}
.bmabaf-instructor-cta__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.bmabaf-instructor-cta__icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center; color: #FFFFFF;
}
.bmabaf-instructor-cta__icon svg { width: 24px; height: 24px; }
.bmabaf-instructor-cta__text { flex: 1; min-width: 240px; }
.bmabaf-instructor-cta__title {
    font-size: 1.125rem; font-weight: 800; color: #FFFFFF;
    margin: 0 0 6px; letter-spacing: -.02em;
}
.bmabaf-instructor-cta__desc {
    font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0;
}
.bmabaf-instructor-cta__actions {
    display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.bmabaf-instructor-cta__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 9999px; font-size: .875rem;
    font-weight: 700; font-family: inherit; text-decoration: none;
    white-space: nowrap; transition: all .15s; cursor: pointer; border: none;
    justify-content: center;
}
.bmabaf-instructor-cta__btn svg { width: 14px; height: 14px; }
.bmabaf-instructor-cta__btn--primary {
    background: #FFFFFF; color: #1E3A5F;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.bmabaf-instructor-cta__btn--primary:hover {
    background: rgba(255,255,255,.92); color: #1E3A5F;
    text-decoration: none; transform: translateY(-1px);
}
.bmabaf-instructor-cta__btn--ghost {
    background: transparent; border: 1.5px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.8); font-size: .8125rem; font-weight: 600;
}
.bmabaf-instructor-cta__btn--ghost:hover {
    border-color: rgba(255,255,255,.6); color: #FFFFFF; text-decoration: none;
}
@media (max-width: 640px) {
    .bmabaf-instructor-cta__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 16px; }
    .bmabaf-instructor-cta__actions { width: 100%; }
    .bmabaf-instructor-cta__btn { width: 100%; }
}

/* ── Safeguarding bar ────────────────────────────────────── */
/* Scoped under .bmabaf-wrap with !important to beat Outgrid/UiCore div overrides */
.bmabaf-wrap .bmabaf-sg-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 9px 28px !important;
    background: #DC2626 !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: .8125rem !important;
    line-height: 1.3 !important;
    box-sizing: border-box;
    transition: background .15s;
    user-select: none;
}
.bmabaf-wrap .bmabaf-sg-bar:hover { background: #B91C1C !important; }
.bmabaf-wrap .bmabaf-sg-bar:focus-visible { outline: 2px solid #FEF2F2; outline-offset: -2px; }
.bmabaf-wrap .bmabaf-sg-bar svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    flex-shrink: 0 !important;
    display: block !important;
    opacity: .85;
}
.bmabaf-wrap .bmabaf-sg-bar__link {
    margin-left: auto !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    color: #FEF2F2 !important;
    text-decoration: underline !important;
}

/* ── Safeguarding modal ──────────────────────────────────── */
.bmabaf-sg-modal {
    position: fixed; inset: 0; z-index: 700;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.bmabaf-sg-modal.is-open { display: flex; }
.bmabaf-sg-modal__inner {
    background: #FFFFFF; border-radius: 20px;
    width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    padding: 28px; position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: bmabaf-modal-in .3s cubic-bezier(.34,1.56,.64,1);
}
.bmabaf-sg-modal .bmabaf-detail-close { position: absolute; top: 14px; right: 14px; float: none; margin: 0; }
.bmabaf-sg-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.bmabaf-sg-icon { width: 32px; height: 32px; flex-shrink: 0; color: #1E3A5F; }
.bmabaf-sg-header h2 { font-size: 1.125rem; font-weight: 800; margin: 0; color: #111827; }
.bmabaf-sg-notice {
    background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px;
    padding: 14px 16px; font-size: .875rem; color: #7F1D1D; line-height: 1.6;
    margin-bottom: 16px;
}
.bmabaf-sg-notice strong { display: block; margin-bottom: 4px; font-size: .9375rem; }
.bmabaf-sg-body p { font-size: .9rem; color: #374151; line-height: 1.65; margin: 0 0 12px; }
.bmabaf-sg-list {
    padding: 0 0 0 20px; margin: 0 0 16px;
    font-size: .875rem; color: #374151; line-height: 1.7;
}
.bmabaf-sg-list li { margin-bottom: 6px; }
.bmabaf-sg-rule {
    background: #FFFBEB; border-left: 4px solid #F59E0B;
    padding: 12px 16px; border-radius: 0 10px 10px 0;
    font-size: .875rem; color: #92400E; line-height: 1.6; margin-bottom: 16px;
}
.bmabaf-sg-close-btn {
    width: 100%; padding: 12px; background: #1E3A5F; color: #FFFFFF;
    border: none; border-radius: 9999px; font-size: .9375rem; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: filter .15s; margin-top: 8px;
}
.bmabaf-sg-close-btn:hover { filter: brightness(.9); }

/* ── Ghost pin (non-opted-in) -- same ? style as anon, slightly dimmer ── */
.bmabaf-pin-outer--ghost {
    display: flex; flex-direction: column; align-items: center;
}
.bmabaf-ghost-dot {
    /* Reuse the anon pin look */
    width: 32px; height: 32px; border-radius: 50%;
    background: #9CA3AF;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF; font-size: 14px; font-weight: 800; line-height: 1;
}
.bmabaf-ghost-tip {
    width: 0; height: 0; margin: 0 auto;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #9CA3AF;
}

/* ── Non-listed label in detail header ───────────────────── */
.bmabaf-detail-anon-label {
    font-size: .6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #9CA3AF; margin-bottom: 3px;
}
.bmabaf-cc-pin {
    width: 48px !important; height: 48px !important; border-radius: 50%;
    background: #FFFFFF; border: 3px solid #D97706;
    box-shadow: 0 0 0 2px rgba(217,119,6,.3), 0 4px 12px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden; /* contain the image - MUST be hidden not visible */
    flex-shrink: 0;
}
.bmabaf-cc-pin__img {
    width: 48px !important; height: 48px !important;
    min-width: 48px !important; max-width: 48px !important;
    min-height: 48px !important; max-height: 48px !important;
    border-radius: 50% !important; object-fit: cover !important;
    display: block !important; flex-shrink: 0 !important;
}
.bmabaf-cc-pin__initial {
    font-size: 18px; font-weight: 800; color: #D97706;
}
.bmabaf-cc-crown-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.bmabaf-cc-pin__crown {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    font-size: 14px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
    pointer-events: none;
}
.bmabaf-cc-tip {
    width: 0; height: 0; margin: 0 auto;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-top: 8px solid #D97706;
}
.bmabaf-pin-img {
    width: 40px; height: 40px; border-radius: 50%; border: 3px solid #1E3A5F;
    object-fit: cover; display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.bmabaf-pin-initial {
    width: 40px; height: 40px; border-radius: 50%; background: #1E3A5F;
    border: 3px solid #2C5282; display: flex; align-items: center; justify-content: center;
    color: #FFF; font-weight: 800; font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ── Club Colours card treatment ─────────────────────────── */
.bmabaf-card--cc {
    border-color: #FCD34D;
    box-shadow: 0 0 0 1px rgba(217,119,6,.2), 0 4px 16px rgba(217,119,6,.15);
}
.bmabaf-card--cc:hover { border-color: #F59E0B; }
.bmabaf-card__cover--cc { border-bottom: 2px solid #D97706; }
.bmabaf-card__cover-placeholder--cc {
    background: linear-gradient(135deg, #78350F, #D97706);
}
.bmabaf-card__cc-crown {
    position: absolute; top: 8px; right: 10px;
    font-size: 20px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.bmabaf-card__badge--cc {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #78350F; border-color: #F59E0B;
    font-size: .6875rem; font-weight: 800;
}
.bmabaf-card__badge--bmaba {
    background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0;
    font-size: .6875rem; font-weight: 700;
}

/* ── Club Colours detail panel ───────────────────────────── */
.bmabaf-detail-cover--cc { border-bottom: 3px solid #D97706; }
.bmabaf-detail-cc-crown {
    position: absolute; top: 12px; right: 14px;
    font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.bmabaf-detail-cc-badge {
    display: flex; align-items: flex-start; gap: 10px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #F59E0B; border-radius: 10px;
    padding: 12px 16px; font-size: .875rem; color: #78350F;
    line-height: 1.5; margin-bottom: 16px;
}
.bmabaf-cc-badge-crown { font-size: 1.25rem; flex-shrink: 0; line-height: 1.2; }

/* ── Fix: Outgrid resets strong to display:block inside headings ──────── */
/* This causes the town name to appear on its own line in the sidebar */
.bmabaf-detail-anon-header h2 strong,
.bmabaf-detail-name strong { display: inline !important; }

/* ── Anon header text container -- keeps label + heading together ───────── */
.bmabaf-detail-anon-header__text { display: flex; flex-direction: column; gap: 3px; }

/* ── Ghost pin: same ? icon as anon, just grey ───────────────────────── */
/* Override any old ghost-dot/ghost-tip styles */
.bmabaf-anon-pin--ghost {
    background: #9CA3AF !important;
    border-color: rgba(255,255,255,.9) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
}
.bmabaf-anon-pin--ghost svg { stroke: #FFFFFF !important; }
.bmabaf-pin-tip--ghost { border-top-color: #9CA3AF !important; }

/* ── Red disclaimer ──────────────────────────────────────────────────── */
.bmabaf-detail-disclaimer--red {
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    color: #7F1D1D !important;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .8125rem;
    line-height: 1.5;
    margin-top: 20px;
}

/* ── Sticky panel header ─────────────────────────────────────────────── */
/* Keeps the club name visible while scrolling through long listings */
.bmabaf-detail-cover,
.bmabaf-detail-anon-header {
    position: sticky;
    top: 0;
    z-index: 5;
}
