.organizations-map-page { --map-header-height: 5.75rem; height: 100dvh; overflow: hidden; background: #f5f5f8; }
.organizations-map-page [hidden] { display: none !important; }
.organizations-map-page .site-menu > li.is-current > .menu-item__row > a { color: var(--color-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.map-explorer { display: grid; grid-template-columns: clamp(19rem, 25vw, 22.5rem) minmax(0,1fr); width: 100%; height: calc(100dvh - var(--map-header-height)); min-height: 0; margin-top: var(--map-header-height); background: #f5f5f8; }
.map-sidebar { position: relative; z-index: 20; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: rgba(255,255,255,.96); border-right: 1px solid rgba(52,42,255,.12); }
.map-sidebar__head { position: relative; padding: 1.6rem 1.5rem 1.15rem; }
.map-sidebar__head .visual-label { margin-bottom: .85rem; font-size: .72rem; }
.map-sidebar__head h1 { max-width: 17rem; font-size: clamp(1.75rem,2.25vw,2.45rem); line-height: .98; letter-spacing: -.04em; }
.map-sidebar__head > p:last-of-type { margin-top: .85rem; color: rgba(23,23,74,.72); font-size: .91rem; line-height: 1.5; }
.map-sheet-close { display: none; }

.map-filter-form { padding: 0 1.5rem 1rem; border-bottom: 1px solid rgba(52,42,255,.1); }
.map-search { display: flex; align-items: center; gap: .65rem; height: 2.85rem; padding: 0 .9rem; background: #f6f6fa; border: 1px solid rgba(52,42,255,.13); border-radius: 1rem; transition: border-color .2s, box-shadow .2s; }
.map-search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(52,42,255,.11); }
.map-search svg { width: 1.1rem; fill: none; stroke: var(--color-primary); stroke-width: 1.8; }
.map-search input { width: 100%; min-width: 0; color: var(--color-text); background: transparent; border: 0; outline: 0; font-size: .9rem; }
.map-filter-groups { display: grid; gap: .4rem; margin-top: .7rem; }
.map-filter { border-bottom: 1px solid rgba(52,42,255,.09); }
.map-filter summary { display: flex; align-items: center; justify-content: space-between; padding: .7rem .1rem; color: var(--color-text); font-weight: 600; font-size: .85rem; cursor: pointer; list-style: none; }
.map-filter summary::-webkit-details-marker { display: none; }
.map-filter summary::after { content: "+"; color: var(--color-primary); font-size: 1.1rem; font-weight: 400; }
.map-filter[open] summary::after { content: "−"; }
.map-filter__options { display: flex; flex-wrap: wrap; gap: .42rem; padding: .15rem 0 .85rem; }
.map-filter__option { position: relative; }
.map-filter__option input { position: absolute; opacity: 0; pointer-events: none; }
.map-filter__option span { display: block; padding: .42rem .64rem; color: rgba(23,23,74,.8); background: #fff; border: 1px solid rgba(52,42,255,.14); border-radius: 999px; font-size: .75rem; line-height: 1; cursor: pointer; transition: .2s ease; }
.map-filter__option input:checked + span { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.map-filter__option input:focus-visible + span { outline: 3px solid rgba(52,42,255,.25); outline-offset: 2px; }
.map-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .85rem; }
.map-filter-actions strong { font-size: .8rem; }
.map-filter-actions button { color: var(--color-primary); background: none; border: 0; font-size: .76rem; font-weight: 600; cursor: pointer; }

.map-results { flex: 1; min-height: 0; overflow-y: auto; padding: .75rem; scrollbar-width: thin; scrollbar-color: rgba(52,42,255,.25) transparent; }
.map-result { width: 100%; padding: .9rem; color: var(--color-text); text-align: left; background: transparent; border: 1px solid transparent; border-radius: 1rem; cursor: pointer; transition: background .2s,border-color .2s,transform .2s; }
.map-result + .map-result { margin-top: .25rem; }
.map-result:hover,.map-result.is-selected { background: rgba(52,42,255,.055); border-color: rgba(52,42,255,.14); }
.map-result:hover { transform: translateX(2px); }
.map-result__top { display: flex; align-items: center; gap: .75rem; }
.map-result__logo { display: grid; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; place-items: center; padding: .35rem; background: #fff; border: 1px solid rgba(52,42,255,.11); border-radius: .75rem; color: var(--color-primary); font-weight: 700; }
.map-result__logo img { width: 100%; height: 100%; object-fit: contain; }
.map-result h2 { font-family: var(--font-body); font-size: .91rem; line-height: 1.2; }
.map-result small { display: block; margin-top: .22rem; color: rgba(23,23,74,.61); font-size: .73rem; }
.map-result__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .65rem; }
.map-result__tags span,.organization-preview li { padding: .28rem .48rem; color: var(--color-primary); background: rgba(52,42,255,.065); border-radius: 999px; font-size: .67rem; font-weight: 500; }
.map-result__demo { color: #746d00 !important; background: rgba(235,221,47,.22) !important; }
.map-empty { padding: 1.5rem; text-align: center; }
.map-empty h2 { font-size: 1.25rem; }
.map-empty p { margin: .5rem 0 1rem; color: rgba(23,23,74,.68); font-size: .86rem; }
.map-empty button { padding: .7rem 1rem; color: #fff; background: var(--color-primary); border: 0; border-radius: 999px; font-weight: 600; cursor: pointer; }

.map-stage { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: #e9e9f0; }
.organizations-map { position: relative; z-index: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.leaflet-container { font-family: var(--font-body); background: #ececf2; }
.leaflet-container .leaflet-tile { max-width: none !important; max-height: none !important; }
.leaflet-control-attribution { font-size: .62rem; }
.leaflet-control-zoom { margin: 1rem 1rem 0 0 !important; border: 0 !important; box-shadow: 0 4px 18px rgba(23,23,74,.12) !important; }
.leaflet-control-zoom a { color: var(--color-primary) !important; border: 0 !important; }
.organization-marker { position: relative; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; background: var(--color-primary); border: 3px solid #fff; border-radius: 50% 50% 50% 15%; box-shadow: 0 5px 14px rgba(23,23,74,.22); transform: rotate(-45deg); }
.organization-marker::after { content: ""; width: .62rem; height: .62rem; background: var(--color-yellow); border-radius: 50%; }
.organization-marker.is-selected { background: var(--color-text); transform: rotate(-45deg) scale(1.12); }
.map-cluster { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; color: #fff; background: var(--color-primary); border: 4px solid rgba(255,255,255,.86); border-radius: 50%; box-shadow: 0 5px 18px rgba(23,23,74,.2); font-weight: 700; }
.map-loading,.map-unavailable { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.map-loading { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: rgba(255,255,255,.9); border-radius: 999px; font-size: .8rem; }
.map-loading span { width: .75rem; height: .75rem; border: 2px solid rgba(52,42,255,.2); border-top-color: var(--color-primary); border-radius: 50%; animation: map-spin .8s linear infinite; }
.map-unavailable { display: grid; gap: .35rem; width: min(25rem,calc(100% - 2rem)); padding: 1.25rem; text-align: center; background: #fff; border: 1px solid var(--border-subtle); border-radius: 1.25rem; }
.map-unavailable span { color: rgba(23,23,74,.68); font-size: .85rem; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-reset-view { position: absolute; z-index: 30; right: 1rem; bottom: 1.1rem; display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; color: var(--color-text); background: rgba(255,255,255,.94); border: 1px solid rgba(52,42,255,.12); border-radius: 999px; box-shadow: 0 4px 16px rgba(23,23,74,.1); font-size: .75rem; font-weight: 600; cursor: pointer; }
.map-reset-view svg,.map-filter-open svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-mobile-toolbar { display: none; }

.organization-preview { position: absolute; z-index: 40; right: 1rem; top: 1rem; width: min(23rem,calc(100% - 2rem)); padding: 1.35rem; background: rgba(255,255,255,.96); border: 1px solid rgba(52,42,255,.13); border-radius: 1.4rem; box-shadow: 0 14px 35px rgba(23,23,74,.12); backdrop-filter: blur(8px); }
.organization-preview__close { position: absolute; top: .75rem; right: .75rem; width: 2rem; height: 2rem; color: var(--color-text); background: #f4f4f8; border: 0; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }
.organization-preview__logo { display: grid; width: 4.5rem; height: 3.2rem; place-items: center; margin-bottom: .85rem; padding: .4rem; background: #fff; border: 1px solid rgba(52,42,255,.1); border-radius: .75rem; color: var(--color-primary); font-weight: 700; }
.organization-preview__logo img { width: 100%; height: 100%; object-fit: contain; }
.organization-preview__type { color: var(--color-primary); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.organization-preview h2 { margin-top: .35rem; padding-right: 2rem; font-size: 1.55rem; line-height: 1.05; }
.organization-preview h2 + p { margin-top: .7rem; color: rgba(23,23,74,.72); font-size: .86rem; line-height: 1.5; }
.organization-preview address { margin-top: .8rem; font-style: normal; font-size: .8rem; font-weight: 600; }
.organization-preview ul { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; list-style: none; }
.organization-preview > a { display: inline-flex; gap: .5rem; margin-top: 1rem; color: var(--color-primary); font-size: .84rem; font-weight: 600; text-decoration: none; }
.organization-preview > a span { transition: transform .2s; }
.organization-preview > a:hover span { transform: translateX(3px); }
.map-sheet-backdrop { position: fixed; z-index: 80; inset: var(--map-header-height) 0 0; background: rgba(23,23,74,.34); }

@media (max-width: 1024px) {
  .organizations-map-page { --map-header-height: 5rem; }
  .map-explorer { grid-template-columns: 20rem minmax(0,1fr); }
  .map-sidebar__head { padding: 1.25rem 1.2rem 1rem; }
  .map-filter-form { padding-inline: 1.2rem; }
  .map-sidebar__head h1 { font-size: 1.8rem; }
}

@media (max-width: 760px) {
  .organizations-map-page { overflow: hidden; }
  .map-explorer { display: block; height: calc(100dvh - var(--map-header-height)); }
  .map-stage { height: 100%; }
  .map-sidebar { position: fixed; z-index: 90; inset: var(--map-header-height) 0 0; width: 100%; transform: translateY(105%); border: 0; border-radius: 1.5rem 1.5rem 0 0; transition: transform .28s ease; }
  .organizations-map-page.is-filter-open .map-sidebar { transform: translateY(0); }
  .map-sidebar__head { padding: 1.4rem 1.25rem 1rem; }
  .map-sidebar__head h1 { max-width: 18rem; }
  .map-sheet-close { position: absolute; display: grid; top: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; place-items: center; color: var(--color-text); background: #f2f2f7; border: 0; border-radius: 50%; font-size: 1.35rem; }
  .map-filter-form { padding-inline: 1.25rem; }
  .map-results { padding: .75rem 1rem 6rem; }
  .map-mobile-toolbar { position: absolute; z-index: 30; right: .75rem; bottom: .75rem; left: .75rem; display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: .3rem; padding: .35rem; background: rgba(255,255,255,.95); border: 1px solid rgba(52,42,255,.12); border-radius: 999px; box-shadow: 0 8px 24px rgba(23,23,74,.14); }
  .map-mobile-toolbar button { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.55rem; color: var(--color-text); background: transparent; border: 0; border-radius: 999px; font-size: .78rem; font-weight: 600; }
  .map-mobile-toolbar button.is-active { color: #fff; background: var(--color-primary); }
  .map-filter-open span { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; color: var(--color-primary); background: var(--color-yellow); border-radius: 50%; font-size: .65rem; }
  .map-reset-view { top: .75rem; right: .75rem; bottom: auto; }
  .organization-preview { position: fixed; z-index: 70; top: auto; right: .5rem; bottom: .5rem; left: .5rem; width: auto; max-height: min(70dvh,31rem); overflow-y: auto; border-radius: 1.5rem; }
  .organization-preview[hidden] { display: none; }
  .map-stage.is-list-view .organizations-map { opacity: .3; }
  .map-stage.is-list-view + * { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .map-sidebar,.map-result,.map-filter__option span,.organization-preview > a span { transition: none; }
  .map-loading span { animation: none; }
}
