.cp-map-host { min-width: 0; }
.cp-map-explorer { margin: 12px 0 24px; color: var(--st-text); }
.cp-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.cp-map-kicker { font-size: 10px; font-weight: 750; letter-spacing: 1.25px; color: var(--cp-amethyst-deep, #665184); }
.cp-map-toolbar p { margin: 2px 0 0; font-size: 14px; }
.cp-map-toolbar strong { color: var(--st-ink); }
.cp-map-fit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; min-height: 44px; border: 1px solid #d8d6de; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 650; color: var(--st-ink); }
.cp-map-fit:hover { background: #eee9f6; border-color: #baa9d0; }
.cp-map-fit svg { width: 18px; height: 18px; }
.cp-map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); min-height: 590px; border: 1px solid #d9ddd4; border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 12px 36px #253c3010; }
.cp-map-map-panel { position: relative; min-width: 0; min-height: 590px; isolation: isolate; background: #eaf1f6; }
.cp-map-host .cp-map-surface { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; background: #eaf1f6; font-family: var(--st-sans); }
.cp-map-message { position: absolute; bottom: 36px; left: 16px; right: 16px; z-index: 6; padding: 12px 15px; background: #ffffffed; border: 1px solid #d4dacb; box-shadow: 0 5px 20px #273c3010; border-radius: 12px; font-size: 13px; pointer-events: none; }
.cp-map-message.is-warning { background: #fff8e9f5; border-color: #e5d5b0; color: #6f5625; }
.cp-map-empty { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(300px, calc(100% - 40px)); padding: 23px; text-align: center; border-radius: 16px; background: #fffffff0; border: 1px solid #d8ded2; box-shadow: 0 8px 30px #29412f12; pointer-events: none; }
.cp-map-empty strong { display: block; color: var(--st-ink); font-size: 19px; }
.cp-map-empty span { display: block; margin-top: 8px; font-size: 13px; }
.cp-map-list-panel { display: flex; flex-direction: column; min-width: 0; max-height: 650px; border-left: 1px solid #d9ddd4; }
.cp-map-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 21px 15px; border-bottom: 1px solid #e5e6df; background: #fcfbfe; }
.cp-map-list-heading h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.35; letter-spacing: -.5px; }
.cp-map-clear { padding: 7px 10px; min-height: 44px; flex: none; color: var(--cp-amethyst-deep, #665184); font-size: 12px; font-weight: 650; border-radius: 9px; background: #f0ebf7; }
.cp-map-institution-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bfb7cb #f9f8fa; flex: 1; min-height: 0; }
.cp-map-institution { padding: 18px 20px; border-bottom: 1px solid #e6e7e0; background: white; }
.cp-map-institution:last-child { border-bottom: 0; }
.cp-map-institution.is-selected { background: #f9f6fd; }
.cp-map-institution-top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.cp-map-institution-top > div { min-width: 0; }
.cp-map-institution h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.25px; margin: 0; }
.cp-map-institution h3 a { color: var(--st-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cp-map-institution h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cp-map-place { font-size: 11px; margin: 0 0 4px; color: var(--st-muted); line-height: 1.5; }
.cp-map-monogram { width: 68px; min-width: 68px; height: 68px; background: linear-gradient(135deg, #e6efcb, #ece5f5); color: var(--st-ink); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1.3; padding: 7px; text-align: center; font-weight: 750; overflow-wrap: anywhere; }
.cp-map-thumb { margin: 0; width: 88px; min-width: 88px; height: 76px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e6efcb, #ece5f5); }
.cp-map-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-map-photo-credit { margin: 6px 0 0; font-size: 10px; line-height: 1.45; color: var(--st-muted); }
.cp-map-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; min-height: 0; }
.cp-map-institution-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 0; }
.cp-map-institution-actions > button { min-height: 44px; padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; color: var(--st-green); }
.cp-map-institution-actions > button:first-child { background: #eef2e7; border: 1px solid #e0e6d6; }
.cp-map-institution-actions > button[aria-expanded="true"] { background: #e9e1f3; border-color: #d3c5e2; color: #594174; }
.cp-map-institution-actions > button:hover { background: #e9e1f3; }
.cp-map-institution-actions > button svg { width: 16px; height: 16px; }
.cp-map-unmapped { font-size: 11px; color: var(--st-muted); }
.cp-map-programs { border-top: 1px solid #e4dcec; margin-top: 14px; padding-top: 4px; }
.cp-map-programs ul { list-style: none; padding: 0; margin: 0; }
.cp-map-programs li + li { border-top: 1px solid #e7e3ed; }
.cp-map-programs li a { display: flex; flex-direction: column; padding: 13px 0; text-decoration: none; color: var(--st-text); font-size: 12px; line-height: 1.6; }
.cp-map-programs li a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.cp-map-programs strong { color: var(--st-ink); font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
.cp-map-programs small { font-size: 10px; margin-top: 4px; color: var(--st-muted); }
.cp-map-evidence { font-size: 11px; line-height: 1.6; padding-top: 9px; border-top: 1px solid #e5dfee; margin: 0; color: var(--st-muted); }
.cp-map-evidence a { text-decoration: underline; min-height: 0; }
.cp-map-list-empty { padding: 38px 24px; text-align: center; }
.cp-map-list-empty h3 { font-size: 20px; }
.cp-map-list-empty p { font-size: 14px; }
.cp-map-notes { margin-top: 14px; font-size: 12px; line-height: 1.65; color: var(--st-muted); }
.cp-map-notes > p:first-child { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.cp-map-notes > p:first-child svg { margin-top: 2px; width: 16px; height: 16px; }
.cp-map-notes p { margin: 0 0 7px; }
.cp-map-notes details { margin-top: 5px; }
.cp-map-notes summary { min-height: 44px; cursor: pointer; display: list-item; width: fit-content; padding: 10px 0; font-weight: 600; }
.cp-map-notes a { text-underline-offset: 3px; min-height: 0; }
.cp-map-switch { display: none; }
.cp-map-host .cp-map-surface .leaflet-control-attribution { font: 11px/1.5 var(--st-sans); background: #fffffff0; padding: 4px 6px; max-width: calc(100% - 10px); }
.cp-map-host .cp-map-surface .leaflet-control-attribution a { color: #275040; min-height: 0; }
.cp-map-host .cp-map-surface .leaflet-top, .cp-map-host .cp-map-surface .leaflet-bottom { z-index: 800; }
.cp-map-host .cp-map-surface .leaflet-control-zoom { border: 1px solid #cbd6c6; box-shadow: 0 3px 12px #1d3e3114; border-radius: 12px; overflow: hidden; }
.cp-map-host .cp-map-surface .leaflet-control-zoom a { width: 44px; height: 44px; min-height: 44px; line-height: 43px; color: var(--st-ink); }
.cp-map-host .cp-map-surface .leaflet-control-zoom a:hover { background: #edf2e3; }
.cp-map-surface .cp-map-marker { border: 0; background: transparent; }
.cp-map-marker > span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 3px; border-radius: 50%; background: #284f3d; color: white; border: 3px solid white; box-shadow: 0 3px 11px #263b3340; font: 750 13px/1 var(--st-sans); }
.cp-map-marker:hover > span, .cp-map-marker:focus-visible > span { background: #665184; }
.cp-map-marker.is-selected > span { background: #756198; box-shadow: 0 0 0 5px #c8b6e366, 0 3px 12px #432d6640; }
.cp-map-surface .cp-map-tooltip { border: 1px solid #d5dacc; border-radius: 8px; padding: 7px 10px; font: 600 12px/1.5 var(--st-sans); color: var(--st-ink); background: white; box-shadow: 0 3px 15px #273c3015; }
.cp-map-host .cp-map-surface .cp-map-country-tooltip { border: 0; border-radius: 6px; padding: 3px 7px; font: 550 11px/1.5 var(--st-sans); color: #68776a; background: #ffffffeb; box-shadow: 0 2px 6px #273c300d; }
.cp-map-host .cp-map-surface .cp-map-country-tooltip::before { display: none; }
.cp-map-context-source { font-size: 11px; }
.cp-map-unavailable .cp-map-surface { background: radial-gradient(circle at 30% 30%, #e1ead7, #e9e3f2); }
@media (max-width: 1000px) and (min-width: 801px) {
 .cp-map-layout { grid-template-columns: minmax(0,1fr) 330px; }
 .cp-map-institution { padding: 16px; }
 .cp-map-thumb { width: 68px; min-width: 68px; height: 65px; }
}
@media (max-width: 800px) {
 .cp-map-toolbar { gap: 10px; margin-bottom: 12px; align-items: flex-end; }
 .cp-map-toolbar p { font-size: 12px; }
 .cp-map-toolbar .cp-map-kicker { font-size: 9px; }
 .cp-map-fit { font-size: 12px; padding: 8px 10px; gap: 5px; }
 .cp-map-fit svg { width: 16px; height: 16px; }
 .cp-map-switch { display: flex; gap: 5px; padding: 5px; background: #ebe9ef; border-radius: 12px; margin-bottom: 12px; }
 .cp-map-switch button { flex: 1; display: inline-flex; gap: 7px; justify-content: center; align-items: center; min-height: 44px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 650; }
 .cp-map-switch button[aria-pressed="true"] { background: #fff; color: var(--st-ink); box-shadow: 0 2px 7px #2e244612; }
 .cp-map-switch svg { width: 18px; height: 18px; }
 .cp-map-layout { display: block; min-height: 0; border-radius: 16px; }
 .cp-map-map-panel { min-height: 430px; height: min(60dvh, 550px); }
 .cp-map-list-panel { border-left: 0; max-height: none; }
 .cp-map-institution-list { overflow: visible; }
 .cp-map-explorer[data-map-panel="map"] .cp-map-list-panel { display: none; }
 .cp-map-explorer[data-map-panel="list"] .cp-map-map-panel { display: none; }
 .cp-map-unavailable[data-map-panel="map"] .cp-map-list-panel { display: flex; }
 .cp-map-unavailable[data-map-panel="map"] .cp-map-map-panel { min-height: 180px; height: 180px; }
 .cp-map-institution { padding: 17px; }
 .cp-map-institution h3 { font-size: 17px; }
 .cp-map-place { font-size: 12px; }
 .cp-map-institution-actions > button { font-size: 13px; }
 .cp-map-programs li a { font-size: 13px; }
 .cp-map-programs strong { font-size: 15px; }
 .cp-map-programs small, .cp-map-evidence { font-size: 11px; }
 .cp-map-list-heading { padding: 16px 17px; }
 .cp-map-notes { font-size: 12px; }
 .cp-map-message { left: 10px; right: 10px; padding: 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
 .cp-map-explorer *, .cp-map-explorer *::before, .cp-map-explorer *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
