/* BRIDGE Cultural Map: scoped additions using the existing site's palette and typography. */
:root { --bcm-red:#d90416; --bcm-ink:#1a202c; --bcm-muted:#536171; --bcm-paper:#fff; --bcm-bg:#f6f7fb; --bcm-line:#dde2e8; --bcm-soft:#fff0f1; --bcm-shade:rgb(15 23 42 / .48); --bcm-font:ui-sans-serif,system-ui,sans-serif; }
.bcm { color:var(--bcm-ink); font-family:var(--bcm-font); background:var(--bcm-bg); padding:44px 0 56px; }
.bcm *, .bcm *::before, .bcm *::after { box-sizing:border-box; }
.bcm [hidden] { display:none !important; }
.bcm-container { max-width:1440px; margin:auto; padding:0 32px; }
.bcm-heading { display:flex; justify-content:space-between; gap:24px; align-items:center; margin-bottom:28px; }
.bcm h1 { font-size:clamp(1.9rem,3.2vw,2.75rem); line-height:1.15; font-weight:750; letter-spacing:-.035em; margin:0 0 12px; min-width:0; overflow-wrap:break-word; }
.bcm-heading p { margin:0; color:var(--bcm-muted); font-size:17px; line-height:1.6; }
.bcm-skip { color:var(--bcm-red); font-weight:650; text-decoration:underline; text-underline-offset:4px; white-space:nowrap; }
.bcm-filters { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) auto; gap:16px; align-items:end; padding:20px; border:1px solid var(--bcm-line); background:var(--bcm-paper); border-radius:12px; }
.bcm-filters label { display:block; font-size:13px; font-weight:650; margin-bottom:8px; }
.bcm-filters input,.bcm-filters select { width:100%; min-height:44px; border:1px solid var(--bcm-line); border-radius:7px; background:var(--bcm-paper); color:var(--bcm-ink); padding:10px 12px; font:inherit; font-size:14px; }
.bcm-reset { min-height:44px; padding:10px 12px; border:0; border-radius:7px; color:var(--bcm-red); font-size:14px; font-weight:650; cursor:pointer; }
.bcm-toolbar { display:flex; justify-content:space-between; gap:16px; padding:18px 0 14px; color:var(--bcm-muted); font-size:13px; }
.bcm-toolbar p { margin:0; }
#bcm-count { color:var(--bcm-ink); font-weight:650; }
.bcm-workspace { display:grid; grid-template-columns:minmax(280px,350px) minmax(0,1fr); gap:20px; }
.bcm-directory { max-height:680px; overflow:auto; scrollbar-gutter:stable; padding:0 6px 3px 0; }
.bcm-list { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.bcm-card { display:flex; gap:14px; padding:15px; min-width:0; border:1px solid var(--bcm-line); background:var(--bcm-paper); border-radius:10px; text-decoration:none; color:var(--bcm-ink); transition:border-color .15s,box-shadow .15s; }
.bcm-card:hover,.bcm-card[aria-current="true"] { border-color:var(--bcm-red); box-shadow:0 2px 8px rgb(26 32 44 / .05); }
.bcm-card > img { width:88px; height:90px; flex-shrink:0; object-fit:cover; border-radius:6px; margin-top:3px; }
.bcm-card > div { min-width:0; }
.bcm-id { display:block; font-size:11px; color:var(--bcm-muted); margin:0 0 6px; }
.bcm-card h3 { font-size:15px; line-height:1.4; font-weight:700; margin:0 0 6px; overflow-wrap:break-word; }
.bcm-card p { font-size:12px; line-height:1.5; margin:0 0 5px; color:var(--bcm-muted); }
.bcm-location { font-size:11px; line-height:1.4; color:var(--bcm-muted); }
.bcm-map-panel { position:relative; min-width:0; min-height:680px; border:1px solid var(--bcm-line); border-radius:12px; overflow:clip; background:var(--bcm-paper); }
.bcm-map { height:680px; width:100%; z-index:0; }
.bcm-map-status { position:absolute; bottom:44px; left:16px; right:16px; padding:10px 14px; background:var(--bcm-paper); border:1px solid var(--bcm-line); border-radius:8px; font-size:13px; z-index:500; }
.bcm-fit { position:absolute; top:12px; right:12px; z-index:500; background:var(--bcm-paper); color:var(--bcm-ink); border:1px solid var(--bcm-line); border-radius:7px; padding:10px 14px; font-size:12px; font-weight:650; cursor:pointer; box-shadow:0 1px 5px rgb(26 32 44 / .12); }
.bcm-pin { background:transparent; border:0; }
.bcm-pin span { display:grid; place-content:center; width:29px; height:29px; border:3px solid var(--bcm-paper); border-radius:50% 50% 50% 4px; transform:rotate(-45deg); background:var(--bcm-red); box-shadow:0 2px 7px rgb(26 32 44 / .35); }
.bcm-pin span::after { content:''; width:7px; height:7px; background:var(--bcm-paper); border-radius:50%; }
.bcm-pin-area span { background:var(--bcm-muted); border-radius:50%; transform:none; }
.bcm-cluster { background:transparent; }
.bcm-cluster span { display:grid; place-content:center; height:40px; border:3px solid var(--bcm-paper); border-radius:50%; background:var(--bcm-red); color:var(--bcm-paper); font-size:13px; font-weight:700; box-shadow:0 2px 7px rgb(26 32 44 / .25); }
.bcm-popup { max-width:240px; font:14px/1.5 var(--bcm-font); }
.bcm-popup img { display:block; width:220px; height:125px; object-fit:cover; border-radius:5px; margin-bottom:10px; }
.bcm-popup strong { display:block; font-weight:700; }
.bcm-popup p { margin:7px 0; color:var(--bcm-muted); }
.bcm-popup button,.bcm-action { border:0; border-radius:7px; background:var(--bcm-red); color:var(--bcm-paper); padding:10px 15px; font:600 14px/1.4 var(--bcm-font); cursor:pointer; display:inline-block; text-decoration:none; }
.bcm-popup button:hover,.bcm-action:hover { filter:brightness(.92); }
.bcm-dialog { width:min(900px,calc(100% - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:0; border:0; border-radius:14px; background:var(--bcm-paper); color:var(--bcm-ink); box-shadow:0 24px 80px var(--bcm-shade); overflow:auto; }
.bcm-dialog::backdrop { background:var(--bcm-shade); }
.bcm-dialog-bar { display:flex; justify-content:space-between; align-items:center; padding:14px 26px; border-bottom:1px solid var(--bcm-line); position:sticky; top:0; background:var(--bcm-paper); z-index:2; font-size:13px; color:var(--bcm-muted); }
.bcm-close { min-height:42px; padding:7px 13px; border:1px solid var(--bcm-line); border-radius:7px; color:var(--bcm-ink); font-size:14px; cursor:pointer; }
.bcm-close span { font-size:22px; margin-left:7px; vertical-align:middle; }
.bcm-detail-body { padding:30px 36px 40px; }
.bcm-detail-body h2 { font-size:clamp(1.7rem,3vw,2.25rem); font-weight:750; line-height:1.2; margin:0 0 14px; overflow-wrap:break-word; }
.bcm-detail-body h3,.bcm-prose-section h2 { font-size:19px; font-weight:700; line-height:1.4; margin:26px 0 10px; }
.bcm-detail-body p,.bcm-prose-section p { font-size:15px; line-height:1.8; white-space:pre-line; margin:0 0 12px; }
.bcm-detail-location,.bcm-single-location { color:var(--bcm-muted); font-size:14px; }
.bcm-lead { font-size:17px !important; line-height:1.75; margin:20px 0 !important; }
.bcm-tags { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0; }
.bcm-tags span { display:inline-block; padding:5px 9px; border-radius:5px; background:var(--bcm-bg); color:var(--bcm-muted); font-size:12px; }
.bcm-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0; }
.bcm-gallery figure { margin:0; min-width:0; }
.bcm-gallery figure:first-child { grid-column:1/-1; }
.bcm-gallery img { width:100%; height:230px; object-fit:cover; display:block; border-radius:8px; }
.bcm-gallery figure:first-child img { height:auto; max-height:460px; object-fit:contain; background:var(--bcm-bg); }
.bcm-gallery figcaption { font-size:12px; line-height:1.5; padding-top:6px; color:var(--bcm-muted); }
.bcm-detail-body a:not(.bcm-action),.bcm-reading a:not(.bcm-action) { color:var(--bcm-red); text-decoration:underline; text-underline-offset:3px; }
.bcm-reading { max-width:900px; margin:auto; padding:0 28px; }
.bcm-back { display:inline-block; margin-bottom:28px; font-size:14px; }
.bcm-empty { padding:24px 14px; line-height:1.7; color:var(--bcm-muted); }
.bcm-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:clip; clip-path:inset(50%); white-space:nowrap; border:0; }
.bcm :focus-visible { outline:3px solid var(--bcm-red); outline-offset:3px; }
@media (max-width:900px) { .bcm-container{padding:0 20px}.bcm-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.bcm-search{grid-column:1/-1}.bcm-workspace{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}.bcm-heading{align-items:flex-start;flex-direction:column;gap:12px}.bcm-card>img{width:64px;height:75px}.bcm-fit{max-width:160px} }
@media (max-width:640px) { .bcm{padding:28px 0 36px}.bcm-container{padding:0 16px}.bcm-heading p{font-size:15px}.bcm-filters{padding:14px;gap:12px}.bcm-filters select{font-size:13px;padding:10px 6px}.bcm-reset{grid-column:1/-1;text-align:left;padding-left:0;min-height:30px}.bcm-workspace{display:flex;flex-direction:column}.bcm-map-panel{order:-1;min-height:360px}.bcm-map{height:360px}.bcm-directory{max-height:520px;padding:0 3px 0 0}.bcm-toolbar{flex-direction:column;gap:6px}.bcm-location-note{font-size:12px}.bcm-card>img{width:86px;height:84px}.bcm-card h3{font-size:16px}.bcm-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.bcm-dialog-bar{padding:10px 16px}.bcm-detail-body{padding:24px 20px 32px}.bcm-gallery{gap:10px}.bcm-gallery img{height:145px}.bcm-reading{padding:0 20px} }
@media (prefers-reduced-motion:reduce) { .bcm * { transition:none !important;scroll-behavior:auto !important; } }
.bcm-places { margin:0 0 16px; padding-left:1.2em; font-size:15px; line-height:1.8; }
.bcm-places li { margin:4px 0; }
.bcm-gov-tip { font:600 12px/1.3 var(--bcm-font); color:var(--bcm-ink); padding:4px 8px; }
