/* ==========================================================
   SAF Brasil: diretório público (/avaliadores)
   Topo claro com a busca, lista com rolagem própria à esquerda e mapa grande à direita (Leaflet +
   OpenStreetMap). No celular, Lista e Mapa se alternam. Tiles em cinza claro para o azul da marca
   aparecer; cartões retos, sem sombra, branco sobre o cinza de apoio.
   ========================================================== */
:root { --dir-nav: 64px; --dir-gutter: 1rem; --dir-panel: 440px; }
@media (min-width: 992px) { :root { --dir-gutter: max(1.5rem, calc((100vw - 960px) / 2 + .75rem)); } }
@media (min-width: 1200px) { :root { --dir-gutter: max(1.5rem, calc((100vw - 1140px) / 2 + .75rem)); } }
@media (min-width: 1400px) { :root { --dir-gutter: max(1.5rem, calc((100vw - 1320px) / 2 + .75rem)); } }

/* ---------- Topo ---------- */
.dir-hero { background: #fff; padding: calc(var(--dir-nav) + 2.4rem) 0 1.6rem; border-bottom: 1px solid var(--saf-hairline-soft); }
.dir-hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem 3rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.dir-hero__title { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.015em; margin: .45rem 0 .6rem; }
.dir-hero__lead { color: var(--saf-muted); font-size: 1.05rem; max-width: 40rem; margin: 0; }
.dir-stats { display: flex; gap: 0; margin: 0; }
.dir-stats > div { display: flex; flex-direction: column-reverse; padding: 0 1.6rem; border-left: 1px solid var(--saf-hairline-soft); }
.dir-stats > div:first-child { padding-left: 0; border-left: 0; }
.dir-stats dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--saf-muted); margin-top: .35rem; }
.dir-stats dd { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 2.2rem; line-height: 1; margin: 0; color: var(--saf-ink); }

.dir-hero__search { display: flex; gap: .75rem; align-items: stretch; }
.dir-search { flex: 1; display: flex; align-items: stretch; min-width: 0; min-height: 58px; background: #fff; border: 1px solid var(--saf-hairline); transition: border-color .15s; }
.dir-search:hover { border-color: var(--saf-stone); }
.dir-search:focus-within { border-color: var(--saf-ink); box-shadow: 0 0 0 1px var(--saf-ink); }
.dir-search__field { flex: 1 1 0; display: flex; align-items: center; gap: .65rem; min-width: 0; margin: 0; padding: 0 1.1rem; cursor: text; }
.dir-search__field--q { flex-grow: 1.8; }
.dir-search__field + .dir-search__field { border-left: 1px solid var(--saf-hairline-soft); }
.dir-search__field i { color: var(--saf-muted); font-size: 1rem; }
.dir-search__field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: .95rem 0; font-size: 1rem; color: var(--saf-ink); }
.dir-search__field input::placeholder { color: var(--saf-stone); }
.dir-search__field input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.dir-search__field--uf { flex: 0 0 104px; padding: 0; }
.dir-search__field--uf .form-select { height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background-color: transparent; padding-left: 1.1rem; cursor: pointer; }
.dir-search__submit { margin: 6px; padding-left: 1.8rem; padding-right: 1.8rem; }
.dir-locate { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; padding-left: 1.3rem; padding-right: 1.3rem; }
.dir-locate i { font-size: 1.05rem; }
/* Esperando o navegador: botão parado, texto trocado e o brilho do esqueleto passando (sem ícone girando) */
.dir-locate.is-loading { pointer-events: none; background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .9) 50%, transparent 100%); background-size: 200% 100%; background-repeat: no-repeat; animation: dir-shine 1.2s infinite linear; }
@keyframes dir-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.dir-status { margin: .9rem 0 0; font-size: .9rem; color: var(--saf-charcoal); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dir-status[hidden] { display: none; }
.dir-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--saf-accent); flex-shrink: 0; }
.dir-status.is-warn::before { background: var(--saf-warning); }
.dir-status a, .dir-status button { color: var(--saf-ink); font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 991.98px) {
    .dir-hero { padding: calc(var(--dir-nav) + 2rem) 0 1.5rem; }
    .dir-hero__top { margin-bottom: 1.4rem; }
    .dir-hero__search { flex-direction: column; }
    .dir-search { flex-direction: column; }
    .dir-search__field + .dir-search__field { border-left: 0; border-top: 1px solid var(--saf-hairline-soft); }
    .dir-search__field--uf { flex-basis: auto; min-height: 50px; }
    .dir-search__submit { margin: 0 6px 6px; }
    .dir-locate { justify-content: center; min-height: 48px; }
}
@media (max-width: 575.98px) {
    .dir-stats { width: 100%; }
    .dir-stats > div { flex: 1; padding: 0 1rem; }
    .dir-stats dd { font-size: 1.9rem; }
}

/* ---------- Explorador: lista + mapa ---------- */
/* Ocupa o resto da primeira tela abaixo do topo (--dir-top vem do JS), para o Brasil inteiro aparecer ao entrar */
.dir-explorer { display: grid; grid-template-columns: calc(var(--dir-gutter) + var(--dir-panel)) minmax(0, 1fr); height: calc(100vh - var(--dir-top, var(--dir-nav))); height: calc(100svh - var(--dir-top, var(--dir-nav))); min-height: 540px; max-height: 1080px; background: var(--saf-cloud); border-bottom: 1px solid var(--saf-hairline-soft); }
.dir-explorer__panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--saf-hairline-soft); }
.dir-toolbar { display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem 1.25rem 1rem var(--dir-gutter); }
.dir-toolbar__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; font-size: .9rem; }
.dir-toolbar__meta strong { font-weight: 600; }
.dir-sort { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--saf-charcoal); }
.dir-sort[hidden] { display: none; }
.dir-sort button { border: 0; background: none; padding: 0 0 0 .3rem; color: var(--saf-ink); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }

.dir-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.dir-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .95rem; border: 1px solid var(--saf-hairline); border-radius: var(--saf-pill); background: #fff; color: var(--saf-ink); font-size: .86rem; font-weight: 500; line-height: 1.3; transition: background-color .15s, border-color .15s, color .15s; }
.dir-pill:hover { border-color: var(--saf-ink); }
.dir-pill span { min-width: 1.5rem; padding: .05rem .42rem; border-radius: var(--saf-pill); background: var(--saf-cloud); font-size: .72rem; font-weight: 700; text-align: center; }
.dir-pill i { font-size: .9rem; }
.dir-pill[aria-checked="true"] { background: var(--saf-ink); border-color: var(--saf-ink); color: #fff; }
.dir-pill[aria-checked="true"] span { background: var(--saf-accent); color: #fff; }

.dir-view { display: none; }

.dir-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 0 1.25rem 1.5rem var(--dir-gutter); scrollbar-width: thin; scrollbar-color: var(--saf-hairline) transparent; }

/* Cartão compacto */
.dir-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .95rem; align-items: start; padding: 1rem 1.05rem; background: #fff; cursor: pointer; transition: box-shadow .15s; flex-shrink: 0; }
.dir-card[hidden] { display: none; }
.dir-card:hover, .dir-card.is-hover { box-shadow: inset 3px 0 0 var(--saf-accent); }
.dir-card.is-active { box-shadow: inset 0 0 0 1px var(--saf-ink), inset 4px 0 0 var(--saf-accent); }
.dir-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--saf-cloud); }
.dir-card__avatar--initials { display: grid; place-items: center; background: var(--saf-accent); color: #fff; font-weight: 600; font-size: 1.02rem; }
.dir-card__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--saf-ink); color: var(--saf-accent-light); font-size: 1.35rem; }
.dir-card__body { min-width: 0; }
.dir-card__eyebrow { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--saf-muted); margin-bottom: .1rem; }
.dir-card__name { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.dir-card__name button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; white-space: nowrap; }
.dir-card__name button:hover { text-decoration: underline; text-underline-offset: .18em; }
.dir-card__role { margin: .1rem 0 0; color: var(--saf-muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-card__meta { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin: .45rem 0 0; font-size: .8rem; color: var(--saf-charcoal); }
.dir-card__meta i { color: var(--saf-muted); margin-right: .1rem; }
.dir-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.dir-card__side .btn { white-space: nowrap; }
.dir-distance { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: .98rem; line-height: 1.1; color: var(--saf-ink); white-space: nowrap; }
.dir-distance[hidden] { display: none; }
.dir-distance.skeleton { width: 54px; height: 1.05rem; color: transparent; }

.dir-empty { text-align: center; padding: 3rem 1.5rem; background: #fff; }
.dir-empty[hidden] { display: none; }
.dir-empty__icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--saf-cloud); font-size: 1.6rem; }
.dir-empty h3 { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 1.35rem; margin-bottom: .5rem; }
.dir-empty p { color: var(--saf-muted); max-width: 22rem; margin: 0 auto 1.1rem; font-size: .92rem; }

/* ---------- Mapa ---------- */
.dir-explorer__map { position: relative; min-width: 0; background: #ededed; }
.dir-map { position: absolute; inset: 0; background: #efefef; }
.dir-map.leaflet-container { font-family: var(--saf-font); font-size: .9rem; color: var(--saf-ink); }
/* Tiles claros e sem cor: o azul da marca é a única cor do mapa */
.dir-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.07) contrast(.9); }
/* O Leaflet soma as bordas dos tiles (plus-lighter) para esconder frestas em zoom fracionado; aqui o zoom é sempre
   inteiro e, em tela retina, essa soma é que desenha linhas claras entre os tiles */
.dir-map.leaflet-container img.leaflet-tile { mix-blend-mode: normal; }
.dir-map.is-picking, .dir-map.is-picking .leaflet-interactive { cursor: crosshair; }

.dir-map__skeleton { position: absolute; inset: 0; z-index: 800; pointer-events: none; transition: opacity .45s ease; }
.dir-map__skeleton-fill { position: absolute; inset: 0; }
.dir-map__skeleton-pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #dedede; border: 3px solid #f7f7f7; }
.dir-map__skeleton-pin:nth-child(2) { left: 58%; top: 34%; }
.dir-map__skeleton-pin:nth-child(3) { left: 66%; top: 52%; width: 34px; height: 34px; }
.dir-map__skeleton-pin:nth-child(4) { left: 49%; top: 61%; }
.dir-map__skeleton-pin:nth-child(5) { left: 61%; top: 74%; }
.dir-map__skeleton.is-done { opacity: 0; }
.dir-map__fallback { position: absolute; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 2rem; background: var(--saf-cloud); color: var(--saf-muted); }
.dir-map__fallback[hidden] { display: none; }
.dir-map__fallback i { font-size: 2rem; color: var(--saf-ink); }
.dir-map__fallback strong { color: var(--saf-ink); font-size: 1.05rem; }

/* Marcadores: círculo azul com borda branca; instituição em quadrado; você em preto */
.dir-marker { background: none; border: 0; }
.dir-marker span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--saf-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .2); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.dir-marker--org span { border-radius: 0; display: grid; place-items: center; color: #fff; font-size: 11px; line-height: 1; border-width: 2px; }
.dir-marker.is-hover span { transform: scale(1.3); }
.dir-marker.is-active span { transform: scale(1.5); background: var(--saf-accent-deep); box-shadow: 0 0 0 1px rgba(17, 17, 17, .25), 0 0 0 6px rgba(0, 105, 255, .22); }
.dir-marker--me span { background: var(--saf-ink); box-shadow: 0 0 0 1px rgba(17, 17, 17, .3); animation: dir-me 2s infinite; }
@keyframes dir-me { 0% { box-shadow: 0 0 0 0 rgba(17, 17, 17, .45); } 70% { box-shadow: 0 0 0 14px rgba(17, 17, 17, 0); } 100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0); } }
.dir-cluster { background: none; border: 0; }
.dir-cluster span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--saf-accent); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .18), 0 0 0 6px rgba(0, 105, 255, .16); font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: .95rem; transition: transform .18s ease; }
.dir-cluster:hover span, .dir-cluster.is-hover span { transform: scale(1.12); }
.dir-cluster.is-active span { background: var(--saf-accent-deep); }

/* Balão, dica e controles no padrão da marca: retos, linha fina, sem sombra */
.dir-map .leaflet-popup-content-wrapper { border-radius: 0; box-shadow: none; border: 1px solid var(--saf-hairline); padding: 0; }
.dir-map .leaflet-popup-content { margin: 0; line-height: 1.45; }
.dir-map .leaflet-popup-tip { box-shadow: none; border: 1px solid var(--saf-hairline); }
.dir-map .leaflet-popup-tip-container { margin-top: -1px; }
.dir-map a.leaflet-popup-close-button { top: 8px; right: 8px; width: 26px; height: 26px; font: 400 20px/24px var(--saf-font); color: var(--saf-ink); background: var(--saf-cloud); }
.dir-map a.leaflet-popup-close-button:hover { color: var(--saf-ink); background: var(--saf-hairline-soft); }
.dir-map .leaflet-popup-content a.btn-saf, .dir-map .leaflet-popup-content a.btn-saf:hover { color: #fff; }
.dir-map .leaflet-popup-content .btn-soft, .dir-map .leaflet-popup-content .btn-soft:hover { color: var(--saf-ink); }
.dir-pop { padding: 1.1rem 1.1rem 1rem; }
.dir-pop__head { display: flex; align-items: center; gap: .8rem; padding-right: 1.6rem; margin-bottom: .8rem; }
.dir-pop__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--saf-cloud); }
.dir-pop__avatar--initials { display: grid; place-items: center; background: var(--saf-accent); color: #fff; font-weight: 600; font-size: 1.05rem; }
.dir-pop__icon { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; background: var(--saf-ink); color: var(--saf-accent-light); font-size: 1.4rem; }
.dir-pop__eyebrow { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--saf-muted); }
.dir-pop__name { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.dir-pop__role { display: block; color: var(--saf-muted); font-size: .82rem; margin-top: .1rem; }
.dir-pop__meta { list-style: none; padding: .7rem 0 0; margin: 0 0 .9rem; border-top: 1px solid var(--saf-hairline-soft); display: grid; gap: .3rem; font-size: .82rem; }
.dir-pop__meta i { color: var(--saf-muted); margin-right: .3rem; }
.dir-pop__meta span { color: var(--saf-muted); }
.dir-pop__meta strong { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; }
.dir-pop .btn { width: 100%; }

.dir-map .leaflet-tooltip.dir-tip { background: var(--saf-ink); color: #fff; border: 0; border-radius: 0; box-shadow: none; padding: .32rem .6rem; font-size: .8rem; font-weight: 500; }
.dir-map .leaflet-tooltip-top.dir-tip::before { border-top-color: var(--saf-ink); }
.dir-map .leaflet-bar { border: 1px solid var(--saf-hairline); border-radius: 0; box-shadow: none; }
.dir-map .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; color: var(--saf-ink); border-radius: 0 !important; border-bottom-color: var(--saf-hairline-soft); font-weight: 400; }
.dir-map .leaflet-bar a:hover { background: var(--saf-cloud); color: var(--saf-ink); }
.dir-map .leaflet-control-attribution { background: rgba(255, 255, 255, .86); font-size: .68rem; padding: .1rem .45rem; }
.dir-map .leaflet-control-attribution a { color: var(--saf-ink); }
.dir-map .leaflet-top.leaflet-left, .dir-map .leaflet-top.leaflet-right { top: 6px; }
.dir-map .leaflet-left { left: 6px; }
.dir-map .leaflet-right { right: 6px; }

/* "Marcar onde estou" e o aviso enquanto escolhe o ponto */
.dir-pick { display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 1rem; border: 1px solid var(--saf-hairline); background: #fff; color: var(--saf-ink); font: 500 .86rem var(--saf-font); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.dir-pick:hover { border-color: var(--saf-ink); }
.dir-pick.is-on { background: var(--saf-ink); border-color: var(--saf-ink); color: #fff; }
.dir-pick-hint { position: absolute; z-index: 1000; top: 62px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; padding: .55rem .65rem .55rem 1rem; background: var(--saf-ink); color: #fff; font-size: .86rem; white-space: nowrap; }
.dir-pick-hint[hidden] { display: none; }
.dir-pick-hint button { border: 0; background: rgba(255, 255, 255, .14); color: #fff; padding: .25rem .65rem; font-size: .8rem; }

/* ---------- Instituições ---------- */
.dir-orgs { padding: 5rem 0 5.5rem; background: #fff; }
.dir-orgs__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-bottom: 1.8rem; }
.dir-orgs__title { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.04; letter-spacing: -.01em; margin: .5rem 0 .7rem; }
.dir-orgs__lead { color: var(--saf-muted); max-width: 34rem; margin: 0; }
.dir-orgs__types { display: flex; flex-wrap: wrap; gap: .4rem; }
.dir-orgs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 6px; }
.dir-orgs__empty { color: var(--saf-muted); padding: 2rem 0; margin: 0; }
.dir-orgs__empty[hidden] { display: none; }

.dir-org { display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.35rem; background: var(--saf-cloud); transition: box-shadow .15s, background-color .15s; animation: fadeUp .4s ease both; }
.dir-org[hidden] { display: none; }
.dir-org:hover, .dir-org.is-hover { background: #fff; box-shadow: inset 0 0 0 1px var(--saf-ink); }
.dir-org__top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.dir-org__icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--saf-accent); color: #fff; font-size: 1.25rem; flex-shrink: 0; }
.dir-org__type { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--saf-muted); }
.dir-org__top .dir-distance { margin-left: auto; }
.dir-org__name { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 1.3rem; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .55rem; }
.dir-org__desc { color: var(--saf-muted); font-size: .9rem; margin: 0 0 1.2rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dir-org__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; margin: auto 0 1.1rem; padding-top: 1rem; border-top: 1px solid var(--saf-hairline-soft); }
.dir-org__facts dt { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--saf-muted); margin-bottom: .15rem; }
.dir-org__facts dd { margin: 0; font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 1.5rem; line-height: 1.05; }
.dir-org__facts dd.dir-org__place { font-family: var(--saf-font); font-style: normal; font-weight: 500; font-size: .95rem; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-org__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Celular e tablet: Lista ou Mapa ---------- */
@media (max-width: 991.98px) {
    .dir-explorer { display: block; height: auto; min-height: 0; max-height: none; }
    .dir-explorer__panel { border-right: 0; }
    /* Barra fixa enxuta: pílulas numa linha (rolam de lado se faltar espaço), contagem e Lista/Mapa embaixo */
    .dir-toolbar { position: sticky; top: var(--dir-nav); z-index: 1010; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem .75rem; padding: .75rem var(--dir-gutter); background: var(--saf-cloud); border-bottom: 1px solid var(--saf-hairline-soft); }
    .dir-pills { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--dir-gutter) * -1); padding: 0 var(--dir-gutter); }
    .dir-pills::-webkit-scrollbar { display: none; }
    .dir-pill { flex-shrink: 0; padding: .36rem .8rem; font-size: .84rem; }
    .dir-toolbar__meta { font-size: .84rem; gap: .2rem .6rem; }
    .dir-view { display: inline-grid; grid-template-columns: auto auto; gap: 2px; padding: 2px; background: #fff; border: 1px solid var(--saf-hairline); }
    .dir-view button { border: 0; background: transparent; padding: .38rem .75rem; font-size: .86rem; font-weight: 500; color: var(--saf-ink); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
    .dir-view button[aria-pressed="true"] { background: var(--saf-ink); color: #fff; }
    .dir-list { overflow: visible; padding: .9rem var(--dir-gutter) 2rem; }
    .dir-explorer__map { display: none; height: calc(100svh - var(--dir-nav) - var(--dir-toolbar, 150px)); min-height: 380px; }
    .dir-explorer.is-map .dir-list { display: none; }
    .dir-explorer.is-map .dir-explorer__map { display: block; }
    .dir-pick-hint { top: 56px; white-space: normal; width: max-content; max-width: calc(100% - 24px); }
    .dir-orgs { padding: 3.5rem 0 4rem; }
}
@media (max-width: 575.98px) {
    .dir-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: .75rem; padding: .9rem; }
    .dir-card__avatar, .dir-card__icon { width: 44px; height: 44px; }
    .dir-card__icon { font-size: 1.15rem; }
    .dir-toolbar__meta { font-size: .84rem; }
}
