/* Club map (clubs.php, scripts/bc-clubmap.js) */
.bc-cm { max-width: 1200px; margin: 0 auto; padding: 0 4px 24px; }
.bc-cm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 4px 0 14px; }
.bc-cm-title { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.bc-cm-lead { margin: 4px 0 0; color: var(--bc-muted); font-size: 14px; max-width: 560px; }
.bc-cm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bc-cm-search { position: relative; display: flex; align-items: center; margin: 0; }
.bc-cm-search i { position: absolute; left: 14px; color: var(--bc-faint); font-size: 13px; pointer-events: none; }
.bc-cm-search input {
	width: 260px; max-width: 100%; height: 42px; padding: 0 14px 0 36px; border-radius: 999px; border: 0;
	background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line-strong); font-size: 14px; color: var(--bc-ink);
}
.bc-cm-search input:focus { outline: none; box-shadow: 0 0 0 1px var(--bc-accent), var(--bc-ring); }
.bc-cm-toggle { display: inline-flex; align-items: center; gap: 7px; margin: 0; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line-strong); font-size: 13.5px; font-weight: 600; color: var(--bc-ink-2); cursor: pointer; }
.bc-cm-toggle input { accent-color: #16a34a; width: 16px; height: 16px; margin: 0; }
.bc-cm-toggle b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(22, 163, 74, 0.12); color: #15803d; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

.bc-cm-mapwrap { position: relative; border-radius: var(--bc-r-lg, 22px); overflow: hidden; box-shadow: 0 0 0 1px var(--bc-line), var(--bc-shadow-2); background: linear-gradient(180deg, #f3f6fb, #eef1f7); }
.bc-cm-map.leaflet-container, .bc-pm-map.leaflet-container { background: transparent; }
.bc-cm-map { height: min(72vh, 720px); min-height: 420px; width: 100%; z-index: 0; }
.bc-cm-status {
	position: absolute; left: 12px; bottom: 12px; z-index: 500; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); pointer-events: none;
}
.bc-cm-status.is-empty { color: #be123c; }
.bc-cm-note { margin: 10px 4px 0; font-size: 12px; color: var(--bc-faint); }
.bc-cm-credit { white-space: nowrap; }

/* Clusters: the count of clubs there; green edge when you trained at one of them */
.bc-cm-cluster { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; background: rgba(91, 75, 209, 0.88); color: #fff; font-weight: 700; font-size: 12.5px; box-shadow: 0 0 0 4px rgba(91, 75, 209, 0.22), 0 2px 6px rgba(16, 16, 30, 0.25); }
.bc-cm-cluster.is-mine { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.55), 0 2px 6px rgba(16, 16, 30, 0.25); }
.bc-cm-cluster span { line-height: 1; }

/* Popup */
.bc-cm-popup .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--bc-shadow-3); }
.bc-cm-popup .leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.bc-cm-pop-name { display: block; font-size: 15.5px; font-weight: 750; letter-spacing: -0.01em; color: var(--bc-ink) !important; text-decoration: none; line-height: 1.25; }
.bc-cm-pop-name:hover { text-decoration: underline; }
.bc-cm-pop-sub { margin-top: 2px; font-size: 12.5px; color: var(--bc-muted); }
.bc-cm-pop-sub:empty { display: none; }
.bc-cm-pop-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.bc-cm-pop-act .bc-vs-btn { font-size: 13px; }
.bc-cm-pop-open { font-size: 13px; font-weight: 600; color: var(--bc-accent) !important; text-decoration: none; white-space: nowrap; }

@media (max-width: 600px) {
	.bc-cm-title { font-size: 23px; }
	.bc-cm-tools, .bc-cm-search, .bc-cm-search input { width: 100%; }
	.bc-cm-map { height: 64vh; min-height: 360px; }
}

/* Clubs with a logo: the logo in a round badge */
.bc-cm-logo { border-radius: 50%; background: var(--bc-surface); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(91, 75, 209, 0.55), 0 2px 6px rgba(16, 16, 30, 0.3); overflow: hidden; }
.bc-cm-logo.is-mine { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #16a34a, 0 2px 6px rgba(16, 16, 30, 0.3); }
.bc-cm-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-cm-logo.is-broken { background: #5b4bd1; }
.bc-cm-logo.is-broken img { display: none; }

/* Place names on the plain map */
.bc-cm-label { width: 0 !important; height: 0 !important; }
.bc-cm-label span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translate(-50%, -50%); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; color: var(--bc-muted); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.bc-cm-label.is-big { font-size: 12.5px; color: var(--bc-ink-2); }

/* Open mat map (openmats.php, scripts/bc-openmats.js) */
.bc-om-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.bc-om-day { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line-strong); font-size: 13px; font-weight: 600; color: var(--bc-ink-2); cursor: pointer; }
.bc-om-day:hover { box-shadow: 0 0 0 1px var(--bc-accent); }
.bc-om-day.is-on { background: var(--bc-ink); color: var(--bc-on-ink); box-shadow: none; }
.bc-om-pin { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; background: #0d9488; color: #fff; font-size: 11px; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(16, 16, 30, 0.3); }
.bc-om-cluster { background: rgba(13, 148, 136, 0.9); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.22), 0 2px 6px rgba(16, 16, 30, 0.25); }
.bc-om-logo { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(13, 148, 136, 0.7), 0 2px 6px rgba(16, 16, 30, 0.3); }
.bc-om-times { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-om-times li { display: grid; grid-template-columns: 88px 1fr; column-gap: 8px; font-size: 13px; color: var(--bc-ink-2); padding: 2px 6px; border-radius: 8px; }
.bc-om-times li.is-day { background: rgba(13, 148, 136, 0.1); }
.bc-om-times b { font-weight: 650; color: var(--bc-ink); }
.bc-om-times small { grid-column: 2; font-size: 11.5px; color: var(--bc-muted); }
.bc-om-local { margin-top: 6px; font-size: 11.5px; }
.bc-cm-note a { color: var(--bc-accent); font-weight: 600; text-decoration: none; }
@media (max-width: 600px) {
	.bc-om-days { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px 12px; padding: 2px 4px 4px; scrollbar-width: none; }
	.bc-om-days::-webkit-scrollbar { display: none; }
	.bc-om-day { flex: 0 0 auto; }
}

/* Profile world map (profile_card_worldmap.php, scripts/bc-profilemap.js) */
.bc-pm-map { height: 380px; width: 100%; z-index: 0; }
@media (max-width: 600px) { .bc-pm-map { height: 320px; } }
.bc-pm-wrap { border-radius: 16px; box-shadow: 0 0 0 1px var(--bc-line); }
.bc-pm-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.bc-pm-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--bc-surface-2); box-shadow: 0 0 0 1px var(--bc-line); font-size: 12.5px; font-weight: 600; color: var(--bc-ink-2); cursor: pointer; opacity: 0.55; }
.bc-pm-chip.is-on { opacity: 1; background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line-strong); }
.bc-pm-chip b { font-weight: 700; color: var(--bc-muted); }
.bc-pm-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.bc-pm-dot--home { background: #0b0b10; } .bc-pm-dot--club { background: #16a34a; } .bc-pm-dot--event { background: #ea580c; }
.bc-pm-dot--seminar { background: #2563eb; } .bc-pm-dot--comp { background: #d4a106; } .bc-pm-dot--belt { background: #7a3aa8; }
.bc-pm-pin { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; background: var(--bc-surface); font-size: 12px; box-shadow: 0 0 0 2px currentColor, 0 2px 6px rgba(16, 16, 30, 0.28); }
.bc-pm-pin--home { color: var(--bc-ink); } .bc-pm-pin--club { color: #16a34a; } .bc-pm-pin--event { color: #ea580c; }
.bc-pm-pin--seminar { color: #2563eb; } .bc-pm-pin--comp { color: #d4a106; } .bc-pm-pin--belt { color: #7a3aa8; }
.bc-pm-img--home { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0b0b10, 0 2px 6px rgba(16, 16, 30, 0.3); }
.bc-pm-img--club { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #16a34a, 0 2px 6px rgba(16, 16, 30, 0.3); }
.bc-pm-img--event { border-radius: 9px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ea580c, 0 2px 6px rgba(16, 16, 30, 0.3); }
.bc-pm-cluster { background: rgba(11, 11, 16, 0.82); box-shadow: 0 0 0 4px rgba(11, 11, 16, 0.14), 0 2px 6px rgba(16, 16, 30, 0.25); }
.bc-pm-kind { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bc-muted); }
.bc-pm-lines { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--bc-ink-2); max-height: 180px; overflow: auto; }
.bc-pm-more { margin: 10px 0 0; }
/* Training count on a profile map pin */
.bc-cm-logo.bc-pm-img { overflow: visible; }
.bc-pm-imgwrap { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.bc-pm-imgwrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-pm-img.is-broken .bc-pm-imgwrap { background: #0b0b10; }
.bc-pm-img.is-broken img { display: none; }
.bc-pm-pin { position: relative; }
.bc-pm-badge { position: absolute; top: -9px; right: -14px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; font-style: normal; }
/* Outside the profile columns: the same edges as the connection strip and the hero, not a column card's margins */
.bc-pm.card-style { margin: 0 4px 22px !important; }
/* Edit links per line on the owner's map */
.bc-pm-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bc-pm-edit { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: var(--bc-accent) !important; text-decoration: none; }
.bc-pm-edit i { font-size: 10px; }
.bc-pm-edit:hover span { text-decoration: underline; }
/* Your own map while it is nearly empty: what fills it (profile_card_worldmap.php) */
.bc-pm-nudge { margin: 12px 0 0; font-size: 13px; color: var(--bc-muted); line-height: 1.5; }
.bc-pm-nudge a { color: var(--bc-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
