/* Component styles only. The existing branch cards stay below the map. */
.branch-map{margin-bottom:52px;min-width:0}
.branch-map [hidden]{display:none!important}
.branch-map-heading{margin-bottom:24px}
.branch-map-heading h2{font:700 clamp(1.8rem,3.5vw,2.8rem)/1.1 var(--serif);margin:0 0 12px;letter-spacing:-.02em}
.branch-map-heading p{color:var(--muted);margin:0;font-size:15px}
.branch-map-shell{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 14px 36px rgba(9,45,77,.06);overflow:hidden;min-width:0}
.branch-map-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.branch-map-select-field{flex:1 1 280px;max-width:470px;min-width:0}
.branch-map-select-field label{display:block;font-size:12px;font-weight:750;color:var(--blue-dark);margin-bottom:7px}
.branch-map-select-field select{font:inherit;font-size:14px;color:var(--ink);width:100%;min-width:0;height:46px;padding:0 36px 0 12px;background:#fff;border:1px solid #a9becd;border-radius:4px;text-overflow:ellipsis}
.branch-map-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.branch-map-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:46px;min-height:46px;padding:8px 12px;border:1px solid #a9becd;border-radius:4px;background:#fff;color:var(--blue-dark);font:700 14px/1.2 var(--sans);cursor:pointer}
.branch-map-control:hover:not(:disabled){background:var(--sky);border-color:var(--blue)}
.branch-map-control:disabled{opacity:.45;cursor:default}
.branch-map-control[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.branch-map-controls .branch-map-icon-control{font-size:22px;padding:8px}
.branch-map-zoom{font-size:12px;font-weight:650;color:var(--muted);min-width:40px;text-align:center}
.branch-map-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-width:0}
.branch-map-viewport{position:relative;height:510px;overflow:hidden;min-width:0;background:#f4f8fb;touch-action:pan-y}
.branch-map-viewport.is-panning{touch-action:none;cursor:grab}
.branch-map-viewport.is-dragging,.branch-map-viewport.is-dragging .branch-map-region{cursor:grabbing}
#branch-map-svg{display:block;width:100%;height:100%;overflow:hidden}
.branch-map-region{cursor:pointer}
.branch-map-region path{transition:fill .16s,stroke .16s;pointer-events:visiblePainted}
.branch-map-region:hover path{fill:#4e91c7}
.branch-map-region.is-selected path{fill:var(--blue);stroke:var(--blue-deep);stroke-width:2}
.branch-map-region:focus{outline:none}
.branch-map-region:focus-visible path{fill:#f7b731;stroke:var(--blue-deep);stroke-width:3.5}
.branch-map-tooltip{position:absolute;z-index:2;max-width:min(290px,calc(100% - 24px));padding:12px 16px;border-radius:8px;background:var(--blue-deep);color:#fff;box-shadow:0 8px 22px rgba(7,44,80,.22);font-size:13px;line-height:1.4;pointer-events:none;overflow-wrap:anywhere}
.branch-map-tooltip strong{display:block;font-weight:750}
.branch-map-tooltip span{display:block;font-size:11px;color:#d7e9f5;margin-top:5px}
.branch-map-details{min-width:0;border-left:1px solid var(--line);padding:30px 24px;display:flex;flex-direction:column;justify-content:center}
.branch-map-details h3{font:700 1.8rem/1.15 var(--serif);margin:8px 0 16px;overflow-wrap:anywhere}
.branch-map-details p{font-size:14px;color:var(--muted);margin:0 0 20px;overflow-wrap:anywhere}
.branch-map-details .branch-map-members{font-size:13px}
.branch-map-open{background:var(--blue);color:#fff;min-height:46px;text-align:center;white-space:normal}
.branch-map-open:hover{background:var(--blue-dark)}
.branch-map-fit{margin-top:12px;white-space:normal;text-align:center;width:100%}
.branch-map-footer{padding:16px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.branch-map-footer p{margin:0 0 9px}
.branch-map-footer p:last-child{margin-bottom:0}
.branch-map-footer a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.branch-map-source{font-size:11px}
.branch-map-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.branch-map-body{grid-template-columns:1fr}.branch-map-viewport{height:clamp(290px,60vw,500px)}.branch-map-details{border-left:0;border-top:1px solid var(--line);padding:24px}.branch-map-details h3{font-size:1.6rem}.branch-map-details .branch-map-open,.branch-map-fit{max-width:360px}.branch-map-details p{margin-bottom:16px}}
@media(max-width:640px){.branch-map-toolbar{padding:16px;gap:14px}.branch-map-select-field{flex-basis:100%;max-width:none}.branch-map-select-field select{font-size:16px}.branch-map-controls{gap:6px}.branch-map-control{font-size:12px;padding:8px}.branch-map-controls .branch-map-icon-control{font-size:22px}.branch-map-zoom{min-width:32px;font-size:11px}.branch-map-viewport{height:300px}.branch-map-details{padding:20px 16px}.branch-map-footer{padding:16px}.branch-map-open,.branch-map-fit{width:100%;max-width:none!important}.branch-map{margin-bottom:36px}.branch-map-sea{font-size:19px}}
@media(prefers-reduced-motion:reduce){.branch-map-region path{transition:none}}
