/*!
 * Atlas Cultural v3: interface (painel, filtros, lista, fichas, cards, calendário, legenda e folha do celular).
 * Bureau de Tecnologia · Autoria: Daniel Cambría
 *
 * Porta o CSS da prancheta da Ana (docs/atlas-cultural-v2/prancheta/template.html, l.1-900), tudo sob .bit-atlas.
 * Os pinos e o Leaflet têm CSS próprio em atlas-mapa.css (seletores .ba-*); aqui as classes da interface começam por .u-.
 */

/* ---------- cores: variáveis pareadas com os Global Colors do Elementor ---------- */
.bit-atlas {
  --ba-verde: var(--e-global-color-primary, #134F55);
  --ba-creme: var(--e-global-color-secondary, #F4F0E4);
  --ba-terra: var(--e-global-color-accent, #C87148);
  --ba-teal: var(--e-global-color-96a86ed, #1E999D);
  --ba-ouro: var(--e-global-color-6f8d79f, #CAA53E);
  --ba-cinza: var(--e-global-color-1de5509, #809BA4);

  /* Hex solto: só onde não existe Global Color. */
  --ba-tedx: #E62B1E;       /* vermelho da marca TEDx */
  --ba-povos: #3E7B3A;      /* PROVISÓRIO: bolinha dos eventos em território da Rede Conexão; a Ana ainda não escolheu a cor (verde do selo) */
  --ba-hl: #fff3b0;         /* amarelo do destaque do termo buscado */
  --ba-agua: #AAD3DF;       /* água do mapa (azul do OSM) */
  --ba-texto2: #3c6467;     /* verde acinzentado: texto secundário */
  --ba-mudo: #6b8a8d;       /* verde acinzentado claro: legendas e notas */
  --ba-hover: #ECE6D6;      /* creme um tom abaixo: hover discreto */
  --ba-barra: color-mix(in srgb, var(--ba-creme) 90%, var(--ba-verde));        /* barra de recolher: creme escurecido pelo verde */
  --ba-barra-hover: color-mix(in srgb, var(--ba-creme) 84%, var(--ba-verde));
  --ba-creme2: #F7F3EA;     /* creme um tom acima: calendário e filtros ativos */
  --ba-teal-texto: #156f72; /* teal escurecido: contraste AA em texto pequeno */
  --ba-linha: rgba(19, 79, 85, .18);   /* verde a 18%: divisórias */
  --ba-linha2: rgba(19, 79, 85, .32);  /* verde a 32%: contornos de opção */
  --ba-sutil: rgba(19, 79, 85, .08);   /* verde a 8%: fundos suaves */
  --ba-fonte: Rubik, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --btn-r: 2px;
  --btn-r-solid: 4px;
  --u-pw: 330px;
  --u-lof: calc(var(--u-pw) + 16px + 12px); /* barra de recolher (16 px) + folga */
  --u-sheet-h: 0px;
  --u-nums-h: 60px;
  --ba-header: 0px;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .bit-atlas {
    --ba-linha: color-mix(in srgb, var(--ba-verde) 18%, transparent);
    --ba-linha2: color-mix(in srgb, var(--ba-verde) 32%, transparent);
    --ba-sutil: color-mix(in srgb, var(--ba-verde) 8%, transparent);
  }
}

/* ---------- base ---------- */
.bit-atlas, .bit-atlas *, .bit-atlas *::before, .bit-atlas *::after { box-sizing: border-box; }
.bit-atlas {
  position: relative; display: block; width: 100%;
  height: calc(100vh - var(--ba-header));
  height: calc(100dvh - var(--ba-header));
  min-height: 560px; overflow: hidden;
  background: var(--ba-creme); color: var(--ba-verde); font-family: var(--ba-fonte); font-size: 14px; line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
html.bit-atlas-app .bit-atlas { min-height: 0; }
.bit-atlas [hidden] { display: none !important; }
.bit-atlas .u-stage { position: relative; width: 100%; height: 100%; }
.bit-atlas .u-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bit-atlas .ba-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ba-verde); font-size: 15px; z-index: 20; background: var(--ba-creme); }
.bit-atlas .u-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.bit-atlas .u-ico.sm { width: 12px; height: 12px; }

/* Reset dos botões: o tema e o kit do Elementor pintam button:hover/:focus (rosa, borda). As cores dos botões
   vêm das variáveis --u-bg/--u-fg/--u-bd, que o tema não alcança, e este bloco tem especificidade acima do kit. */
.bit-atlas button, .bit-atlas [type="button"], .bit-atlas [type="search"] {
  -webkit-appearance: none; appearance: none; margin: 0; font: inherit; line-height: inherit; text-transform: none; letter-spacing: normal;
  cursor: pointer; text-align: inherit; border-radius: 0; box-shadow: none; text-decoration: none; min-height: 0; min-width: 0;
}
.bit-atlas.bit-atlas button, .bit-atlas.bit-atlas button:hover, .bit-atlas.bit-atlas button:focus, .bit-atlas.bit-atlas button:active,
.bit-atlas.bit-atlas [type="button"], .bit-atlas.bit-atlas [type="button"]:hover, .bit-atlas.bit-atlas [type="button"]:focus, .bit-atlas.bit-atlas [type="button"]:active {
  background-color: var(--u-bg, transparent); color: var(--u-fg, inherit); border-color: var(--u-bd, transparent); box-shadow: none; text-decoration: none;
}
/* [type="button"] entra para vencer o kit (.elementor-kit-5 button: padding 12px 37px, border 2px), que carrega
   DEPOIS deste arquivo e empatava com .bit-atlas button: os botões + e − tinham 74 px de largura (24/11/2026).
   Os componentes, mais abaixo e com a mesma especificidade, continuam valendo. */
.bit-atlas button, .bit-atlas [type="button"] { border: 1px solid transparent; padding: 0; }
/* O kit do Elementor (.elementor-kit-5 button:hover/:focus) põe border 2px solid no hover e no foco, e vence as
   regras dos componentes: a lista, os chips e os cards ganhavam 2 px e o conteúdo andava sob o mouse (24/11/2026).
   Em hover, foco e clique, cada botão mantém a espessura de repouso, em --u-bw. O padrão é o 1px transparente da
   regra acima; quem declara border: 0 (ou borda num lado só) declara o mesmo em --u-bw. */
.bit-atlas.bit-atlas button:hover, .bit-atlas.bit-atlas button:focus, .bit-atlas.bit-atlas button:active,
.bit-atlas.bit-atlas [type="button"]:hover, .bit-atlas.bit-atlas [type="button"]:focus, .bit-atlas.bit-atlas [type="button"]:active { border-style: solid; border-width: var(--u-bw, 1px); }
.bit-atlas .u-flimpar, .bit-atlas .u-fsecl, .bit-atlas .u-ddclr, .bit-atlas .u-falimpa, .bit-atlas .u-res, .bit-atlas .u-voltar,
.bit-atlas .u-flink, .bit-atlas .u-ddo, .bit-atlas .u-lbtn, .bit-atlas .u-calall, .bit-atlas .u-handle, .bit-atlas .u-ltab.fechada,
.bit-atlas .u-lcorpo .lmais button { --u-bw: 0px; }
.bit-atlas .u-ctl button { --u-bw: 0 0 1px 0; }
.bit-atlas .u-ctl button:last-child { --u-bw: 0px; }
.bit-atlas .u-ptab { --u-bw: 0 1px 0 0; }
.bit-atlas .u-fmini, .bit-atlas .u-ltab.aberta { --u-bw: 0 0 1px 0; }
.bit-atlas .u-qlista { --u-bw: 1px 0 0 0; }
.bit-atlas button:disabled { cursor: default; }
.bit-atlas a { color: inherit; }
.bit-atlas h1, .bit-atlas h2, .bit-atlas h3, .bit-atlas p, .bit-atlas ul { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; }
.bit-atlas :focus { outline: none; }
.bit-atlas :focus-visible { outline: 2px solid var(--ba-teal); outline-offset: 2px; }
/* Sem navegação por teclado (classe ba-tec, atlas-ui.js), nenhum anel: o Chrome acendia o de 3 px depois de cliques
   de mouse no navegador do Daniel (24/11/2026). */
.bit-atlas.bit-atlas:not(.ba-tec) :focus-visible { outline: none; }
/* O campo de busca mostra o foco pela própria borda, para todos: é onde está o cursor de texto. */
.bit-atlas .u-busca:focus-within { outline: none; border-color: var(--ba-teal); box-shadow: 0 0 0 1px var(--ba-teal); }
/* Contêineres que só recebem foco por script (o corpo do painel depois de aplicar filtros, para o leitor de tela) e
   rolagens que o Chrome torna focáveis não são controles: sem anel. Na página real o anel de 3px aparecia como uma
   borda verde em volta do painel (24/11/2026). O anel continua em todo botão, link e campo. */
.bit-atlas .u-pbody:focus, .bit-atlas .u-pbody:focus-visible, .bit-atlas .u-fbody:focus-visible, .bit-atlas .u-fb:focus-visible,
.bit-atlas .u-scroll:focus-visible, .bit-atlas .u-ddl:focus-visible, .bit-atlas .u-panel:focus-visible, .bit-atlas .u-lista:focus-visible { outline: none; }
.bit-atlas .u-scroll, .bit-atlas .u-pbody, .bit-atlas .u-fbody, .bit-atlas .u-fb, .bit-atlas .u-ddl { scrollbar-width: thin; scrollbar-color: rgba(19, 79, 85, .3) transparent; }

/* ---------- mapa e camadas ---------- */
.bit-atlas .u-mapa { position: absolute; inset: 0; z-index: 0; background: var(--ba-agua); }
.bit-atlas .u-mapa .leaflet-container { font-family: var(--ba-fonte); }

/* ---------- painel ---------- */
.bit-atlas .u-panel { position: absolute; z-index: 6; display: flex; flex-direction: column; background: var(--ba-creme); box-shadow: 0 0 24px rgba(0, 0, 0, .25); }
.bit-atlas .u-ph { padding: 18px 18px 14px; border-bottom: 1px solid var(--ba-linha); display: flex; flex-direction: column; gap: 16px; flex: 0 0 auto; }
.bit-atlas .u-tit { display: block; }
.bit-atlas .u-h1 { font-size: 16.5px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .1px; margin: 0 0 3px; white-space: nowrap; color: var(--ba-verde); }
.bit-atlas .u-sub { font-size: 12px; color: var(--ba-texto2); line-height: 1.4; }
.bit-atlas .u-busca { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); color: var(--ba-mudo); font-size: 14px; transition: border-color .15s, box-shadow .15s; cursor: text; }
.bit-atlas .u-busca:hover { border-color: var(--ba-teal); }
/* O kit do Elementor dá borda, fundo, padding e altura aos inputs do site; dentro da busca do Atlas o campo é só texto
   (medido na página real em 24/11/2026: aparecia uma segunda caixa dentro da busca). */
.bit-atlas.bit-atlas .u-busca input.u-q, .bit-atlas.bit-atlas .u-busca input.u-q:focus { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: var(--ba-texto); font: 500 14px var(--ba-fonte); letter-spacing: normal; text-transform: none; }
.bit-atlas .u-busca .u-ico { width: 18px; height: 18px; color: var(--ba-verde); }
/* A caixa é um <label>, e o kit do Elementor dá Poppins 700 aos rótulos: o texto de exemplo saía em negrito e não
   cabia (247 px num campo de 236). Como no campo de busca do cabeçalho do site (24/11/2026): Rubik, 500 no que se
   digita e 300 no texto de exemplo, que ocupa 214 px. */
.bit-atlas.bit-atlas .u-busca { font: 400 14px var(--ba-fonte); letter-spacing: normal; text-transform: none; }
.bit-atlas.bit-atlas .u-busca input.u-q::placeholder { font-weight: 300; color: var(--ba-mudo); opacity: 1; }
.bit-atlas .u-q { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; margin: 0; font: inherit; font-size: 14px; color: var(--ba-verde); box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; cursor: text; }
.bit-atlas .u-q::placeholder { color: var(--ba-mudo); opacity: 1; }
.bit-atlas .u-q::-webkit-search-cancel-button { cursor: pointer; }
.bit-atlas .u-ph-dyn:empty { display: none; }
.bit-atlas .u-pbody { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px 18px; overscroll-behavior: contain; }
.bit-atlas .u-pbody.is-filtros { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bit-atlas .u-panel[data-modo="ficha"] .u-pbody, .bit-atlas .u-panel[data-modo="evento"] .u-pbody { padding: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.bit-atlas .u-pf { flex: 0 0 auto; padding: 12px 18px; border-top: 1px solid var(--ba-linha); }
.bit-atlas .u-cta { display: block; text-align: center; background: var(--ba-verde); color: #fff; font-weight: 700; padding: 11px; border-radius: var(--btn-r-solid); font-size: 14px; text-decoration: none; transition: background-color .15s; }
.bit-atlas .u-cta:hover, .bit-atlas .u-cta:focus { background: #1b6069; color: #fff; text-decoration: none; }
.bit-atlas .u-pf p { font-size: 11px; color: var(--ba-texto2); margin-top: 6px; text-align: center; line-height: 1.35; }
.bit-atlas .u-grab { display: none; }

/* aba para recolher o painel */
.bit-atlas .u-ptab { position: absolute; top: 0; bottom: 0; left: var(--u-pw); z-index: 7; width: 16px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 0; --u-bg: var(--ba-barra); --u-fg: var(--ba-verde); --u-bd: transparent; border: 0; border-right: 1px solid rgba(19, 79, 85, .35); box-shadow: 2px 0 6px rgba(0, 0, 0, .10); transition: background-color .15s; }
.bit-atlas .u-ptab:hover { --u-bg: var(--ba-barra-hover); }
.bit-atlas .u-ptab .u-ico { width: 12px; height: 12px; stroke-width: 2.4; }
/* Barra de recolher (24/11/2026, segunda versão a pedido do Daniel: alça encaixada e discreta, barra um tom mais
   escura). A faixa inteira é clicável; a alça é uma cápsula dentro dela, verde só no hover. Recolhida, o mesmo tom. */
.bit-atlas .u-ptab .u-alca { position: absolute; top: 50%; left: 2px; right: 2px; height: 48px; margin-top: -24px; display: grid; place-items: center; background: color-mix(in srgb, var(--ba-verde) 14%, transparent); color: var(--ba-verde); border-radius: 3px; transition: background-color .15s, color .15s; }
.bit-atlas .u-ptab .u-alca .u-ico { width: 12px; height: 12px; stroke-width: 2.6; }
.bit-atlas .u-ptab:hover .u-alca { background: var(--ba-verde); color: #fff; }
.bit-atlas.ba-tec .u-ptab:focus-visible { outline: none; }
.bit-atlas.ba-tec .u-ptab:focus-visible .u-alca { outline: 2px solid var(--ba-teal); outline-offset: 1px; }
.bit-atlas .u-ptab.fechado { left: 0; width: 28px; }
.bit-atlas .u-ptab.fechado .u-alca { position: static; width: 18px; height: 32px; margin: 0; }
.bit-atlas .u-ptab.fechado > span:not(.u-alca) { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 12px var(--ba-fonte); letter-spacing: .3px; white-space: nowrap; }

/* ---------- filtros de busca ---------- */
.bit-atlas .u-filtros { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--ba-creme); color: var(--ba-verde); }
.bit-atlas .u-filtros.in-panel { border-top: 1px solid var(--ba-linha); }
.bit-atlas .u-fativos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 18px; background: var(--ba-creme2); border-bottom: 1px solid var(--ba-linha); flex: 0 0 auto; }
.bit-atlas .u-fnone { font-size: 11.5px; color: var(--ba-mudo); }
.bit-atlas .u-flimpar, .bit-atlas .u-fsecl, .bit-atlas .u-ddclr { --u-fg: var(--ba-verde); font-size: 12px; text-decoration: underline; padding: 0; border: 0; margin-left: auto; }
.bit-atlas .u-fsecl { margin-left: auto; }
.bit-atlas .u-fbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
/* Nada no painel rola na horizontal (pedido do Daniel, 24/11/2026): os corpos roláveis travam o eixo X. */
.bit-atlas .u-pbody, .bit-atlas .u-scroll, .bit-atlas .u-fb, .bit-atlas .u-ddl, .bit-atlas .u-lista, .bit-atlas .u-ficha { overflow-x: hidden; }
.bit-atlas .u-fsec { padding: 12px 18px; border-bottom: 1px solid rgba(19, 79, 85, .1); display: block; }
.bit-atlas .u-fsec:last-child { border-bottom: 0; }
.bit-atlas .u-fsec > header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.bit-atlas .u-fsec h3 { font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--ba-verde); }
.bit-atlas .u-fsec > header small { font-size: 11.5px; color: var(--ba-mudo); }
.bit-atlas .u-fcols { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bit-atlas .u-fcols + .u-fsub { margin-top: 12px; }
.bit-atlas .u-fsub + .u-fsub, .bit-atlas .u-fcols + .u-fsub { margin-top: 12px; }
.bit-atlas .u-fsl { display: block; font-size: 12px; font-weight: 600; color: var(--ba-texto2); margin-bottom: 8px; }
.bit-atlas .u-fsl em { font-style: normal; font-weight: 400; color: var(--ba-mudo); }
.bit-atlas .u-fvazio { display: block; font-size: 12px; color: var(--ba-mudo); border: 1px dashed rgba(19, 79, 85, .3); padding: 10px 12px; line-height: 1.35; }
.bit-atlas .u-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.bit-atlas .u-opt { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: var(--ba-linha2); display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 12px; line-height: 1.3; border: 1px solid var(--ba-linha2); border-radius: var(--btn-r); text-align: left; }
.bit-atlas .u-opt small { color: var(--ba-mudo); font-size: 11px; }
.bit-atlas .u-opt:hover { --u-bd: var(--ba-verde); }
.bit-atlas .u-opt.on { --u-bg: var(--ba-verde); --u-fg: #fff; --u-bd: var(--ba-verde); }
.bit-atlas .u-opt.on small { color: #cfe3e1; }
.bit-atlas .u-opt.ver { border-style: dashed; --u-fg: var(--ba-teal-texto); }
.bit-atlas .u-opt.off { opacity: .38; cursor: not-allowed; }
.bit-atlas .u-opt.off:hover { --u-bd: var(--ba-linha2); }
.bit-atlas .u-opt .u-ico { opacity: .85; }
.bit-atlas .u-ic { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.bit-atlas .u-fcnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px; background: var(--ba-verde); color: #fff; font-size: 11px; font-weight: 600; border-radius: 9px; letter-spacing: 0; vertical-align: 1px; }
.bit-atlas .u-fsws { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bit-atlas .u-fsw { --u-bg: transparent; --u-fg: var(--ba-verde); --u-bd: rgba(19, 79, 85, .25); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(19, 79, 85, .25); border-radius: var(--btn-r); text-align: left; width: 100%; }
.bit-atlas .u-fsw.on { --u-bd: var(--ba-verde); --u-bg: var(--ba-sutil); }
/* O texto da chave quebra dentro do cartão: em uma linha, "Conheça os cadastrados com talk no TEDxAmazônia" media
   407px num painel de 319px e o corpo dos filtros ganhava rolagem horizontal. O tema dá nowrap aos botões. */
.bit-atlas.bit-atlas .u-fsw { white-space: normal; min-width: 0; }
.bit-atlas .u-fsw > span { flex: 1 1 auto; min-width: 0; }
.bit-atlas .u-fsw b, .bit-atlas .u-fsw small { display: block; white-space: normal; overflow-wrap: anywhere; }
.bit-atlas .u-fsw > i { width: 34px; height: 20px; border-radius: 10px; background: #c8d2d4; position: relative; flex: 0 0 34px; }
.bit-atlas .u-fsw > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.bit-atlas .u-fsw.on > i { background: var(--ba-verde); }
.bit-atlas .u-fsw.on > i::after { left: 17px; }
.bit-atlas .u-fsw b { display: block; font-size: 13px; font-weight: 600; }
.bit-atlas .u-fsw small { font-size: 11.5px; color: var(--ba-mudo); }
.bit-atlas .u-ffoot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--ba-linha); background: var(--ba-creme); }
.bit-atlas .u-fregra { display: none; font-size: 11.5px; color: var(--ba-mudo); max-width: 380px; line-height: 1.35; }
.bit-atlas .u-apply { --u-bg: var(--ba-verde); --u-fg: #fff; --u-bd: var(--ba-verde); width: 100%; text-align: center; padding: 10px; border-radius: var(--btn-r-solid); font-weight: 600; font-size: 14px; border: 1px solid var(--ba-verde); transition: background-color .15s; }
.bit-atlas .u-apply:hover { --u-bg: #1b6069; --u-bd: #1b6069; }
.bit-atlas .u-apply.off { --u-bg: #b9c6c7; --u-bd: #b9c6c7; cursor: default; }
.bit-atlas .u-fhead { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--ba-linha); background: var(--ba-creme); flex: 0 0 auto; }
.bit-atlas .u-fhead h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; font-weight: 700; }
.bit-atlas .u-fhead .u-ico { width: 20px; height: 20px; }
.bit-atlas .u-fclose { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); }
.bit-atlas .u-fclose .u-ico { width: 18px; height: 18px; }

/* ---------- lista de resultados ---------- */
.bit-atlas .u-pvolta { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.bit-atlas .u-pvf { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); font-weight: 600; font-size: 12.5px; transition: background-color .15s; }
.bit-atlas .u-pvf:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-pvf .u-ico { width: 15px; height: 15px; }
.bit-atlas .u-pvf .u-fcnt { margin-left: 2px; }
.bit-atlas .u-pvdica { font-size: 11px; color: var(--ba-mudo); }
.bit-atlas .u-fativa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--ba-linha); }
.bit-atlas .u-fa { --u-bg: var(--ba-verde); --u-fg: #fff; --u-bd: var(--ba-verde); display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); font-weight: 600; font-size: 11.5px; }
.bit-atlas .u-fa:hover { --u-bg: #1b6069; }
.bit-atlas .u-fa .u-ico { opacity: .85; }
.bit-atlas .u-falimpa { --u-fg: var(--ba-verde); margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; font-weight: 600; font-size: 11.5px; }
.bit-atlas .u-falimpa:hover { text-decoration: underline; text-underline-offset: 3px; }
.bit-atlas .u-rescount { font-size: 12px; color: var(--ba-texto2); margin: 4px 0 10px; }
.bit-atlas .u-rescount b { color: var(--ba-verde); font-size: 14px; }
.bit-atlas .u-lista { display: block; }
.bit-atlas .u-res { --u-bg: transparent; --u-fg: var(--ba-verde); display: flex; gap: 10px; padding: 9px 8px; border: 0; border-radius: 8px; align-items: center; width: 100%; text-align: left; }
.bit-atlas .u-res:hover { --u-bg: rgba(19, 79, 85, .06); }
.bit-atlas .u-res.on { --u-bg: rgba(30, 153, 157, .16); }
.bit-atlas .u-res.fx { align-items: flex-start; }
.bit-atlas .u-rt { min-width: 0; flex: 1; }
.bit-atlas .u-rt b { display: block; font-size: 14px; font-weight: 600; }
.bit-atlas .u-rt span { display: block; font-size: 11.5px; color: var(--ba-texto2); }
.bit-atlas .u-rt .np { color: #a0612f; font-size: 11px; }
.bit-atlas .u-rt em, .bit-atlas .u-res em { font-style: normal; background: var(--ba-hl); }
/* Uma linha por campo, com "…"; sob o mouse, a linha que não coube desliza (atlas-ui.js, letreiro). 24/11/2026. */
.bit-atlas .u-res .u-rt > b, .bit-atlas .u-res .u-rt > span, .bit-atlas .u-fmini b, .bit-atlas .u-fmini small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bit-atlas .u-fmini > span { flex: 1 1 auto; min-width: 0; }
.bit-atlas .u-mq, .bit-atlas .u-rt span.u-mq, .bit-atlas .u-fmini span.u-mq { display: inline-block; white-space: nowrap; } /* acima de .u-rt span {display:block} */
/* Durante o letreiro (atlas-ui.js, Web Animations): sem "…" e com as bordas esmaecidas, em vez de corte seco. */
.bit-atlas .is-mq { text-overflow: clip; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 14px), transparent 100%); }
.bit-atlas .u-mq { will-change: transform; }
.bit-atlas .u-av { width: 34px; height: 34px; flex: 0 0 34px; background-size: contain; background-repeat: no-repeat; background-position: center; display: grid; place-items: center; }
.bit-atlas .u-av.tx { width: 40px; flex-basis: 40px; height: 24px; align-self: center; background-color: transparent; }
.bit-atlas .u-av.ponto { background: var(--u-cor, var(--ba-cinza)); border-radius: 50%; }
.bit-atlas .u-av.ponto::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.bit-atlas .u-av.fav { background: var(--ba-terra); color: #fff; border-radius: var(--btn-r-solid); width: 30px; height: 30px; flex-basis: 30px; }
.bit-atlas .u-tbi { background: var(--ba-tedx); color: #fff; font: 700 9px/1 var(--ba-fonte); padding: 2px 3px; border-radius: 2px; font-style: normal; letter-spacing: .2px; vertical-align: middle; }
.bit-atlas .u-povos-ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ba-povos); vertical-align: middle; }
.bit-atlas .u-res.mini { padding: 5px 4px; }
.bit-atlas .u-res.mini .u-av { width: 26px; height: 26px; flex-basis: 26px; }
.bit-atlas .u-res.mini b { font-size: 13px; }
.bit-atlas .u-vazio { color: var(--ba-mudo); font-size: 13px; padding: 20px 6px; text-align: center; }
.bit-atlas .u-mais { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); display: block; width: 100%; margin: 10px 0 4px; padding: 9px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); font-weight: 600; font-size: 13px; text-align: center; }
.bit-atlas .u-mais:hover { --u-bg: var(--ba-hover); }

/* ---------- ficha (artista e evento) ---------- */
.bit-atlas .u-ficha { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #fff; color: var(--ba-verde); position: relative; }
.bit-atlas .u-panel[data-modo="ficha"] .u-ph, .bit-atlas .u-panel[data-modo="evento"] .u-ph { padding: 12px 14px 10px; gap: 8px; }
.bit-atlas .u-panel[data-modo="ficha"] .u-tit, .bit-atlas .u-panel[data-modo="evento"] .u-tit { display: none; }
.bit-atlas .u-compacto { display: flex; flex-direction: column; gap: 8px; }
.bit-atlas .u-voltar { --u-fg: var(--ba-verde); display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; font-size: 13px; padding: 2px 0; border: 0; }
.bit-atlas .u-voltar:hover { text-decoration: underline; }
.bit-atlas .u-pativos { display: flex; flex-wrap: wrap; gap: 4px; }
.bit-atlas .u-pativos span { font-size: 11px; background: var(--ba-sutil); color: var(--ba-verde); padding: 2px 7px; border-radius: var(--btn-r); }
.bit-atlas .u-fh { padding: 18px 20px 8px; position: relative; flex: 0 0 auto; }
.bit-atlas .u-fx { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); transition: background-color .15s; }
.bit-atlas .u-fx:hover { --u-bg: var(--ba-hover); }
/* O tema dá min-width e padding aos botões com especificidade maior: o × virava uma caixa larga com o ícone deslocado. */
.bit-atlas.bit-atlas .u-fx { width: 28px; height: 28px; min-width: 0; min-height: 0; padding: 0; line-height: 1; }
.bit-atlas .u-ftop { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; padding-right: 40px; }
.bit-atlas .u-fnome { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.bit-atlas .u-fic { width: 44px; height: 44px; flex: 0 0 44px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.bit-atlas .u-fic.tx { width: 56px; flex-basis: 56px; height: 30px; background-color: transparent; }
.bit-atlas .u-fic.ponto { background: var(--u-cor, var(--ba-cinza)); border-radius: 50%; }
.bit-atlas .u-fic.fest { background: var(--ba-terra); color: #fff; border-radius: var(--btn-r-solid); display: grid; place-items: center; width: 40px; height: 40px; flex-basis: 40px; }
.bit-atlas .u-fic.fest .u-ico { width: 22px; height: 22px; }
.bit-atlas .u-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bit-atlas .u-tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 14px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--ba-sutil); color: var(--ba-verde); }
.bit-atlas .u-tag i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--u-cor, var(--ba-verde)); }
.bit-atlas .u-tag[style*="--u-cor"] { background: rgba(19, 79, 85, .08); }
@supports (color: color-mix(in srgb, red, blue)) { .bit-atlas .u-tag[style*="--u-cor"] { background: color-mix(in srgb, var(--u-cor) 14%, transparent); } }
.bit-atlas .u-tag.tx { color: var(--ba-tedx); }
.bit-atlas .u-tag.geo { background: var(--ba-sutil); color: var(--ba-verde); }
.bit-atlas .u-tag.soft { background: rgba(30, 153, 157, .12); color: var(--ba-teal-texto); font-weight: 500; }
.bit-atlas .u-tag.am { background: rgba(202, 165, 62, .2); color: #6b5516; font-weight: 500; }
.bit-atlas .u-tag.festa { background: rgba(200, 113, 72, .15); color: #8a4320; }
.bit-atlas .u-tags.comenc { display: grid; grid-template-columns: max-content minmax(0, max-content); align-items: center; gap: 22.4px 6px; padding-bottom: 6px; }
.bit-atlas .u-tags.comenc .u-tag { justify-self: start; }
.bit-atlas .u-tags.comenc .u-tag.geo { white-space: normal; }
.bit-atlas .u-encl { display: block; min-width: 0; line-height: 0; }
.bit-atlas .u-encl img { display: block; width: 100%; height: auto; max-height: 26px; object-fit: contain; object-position: left center; }
.bit-atlas .u-encv { justify-self: start; padding: 0 10px; font: 600 12px var(--ba-fonte); color: var(--ba-verde); text-decoration: none; }
.bit-atlas .u-encl:hover + .u-encv, .bit-atlas .u-encv:hover { text-decoration: underline; text-underline-offset: 2px; }
.bit-atlas .u-fb { flex: 1 1 auto; min-height: 0; padding: 6px 20px 14px; overflow: auto; font-size: 13.5px; line-height: 1.5; color: #22393b; overscroll-behavior: contain; }
.bit-atlas .u-fb p { margin: 0 0 6px; }
.bit-atlas .u-fb h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ba-mudo); margin: 14px 0 6px; }
.bit-atlas .u-ff { flex: 0 0 auto; padding: 12px 20px 16px; border-top: 1px solid rgba(19, 79, 85, .15); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 600; background: #fff; }
.bit-atlas .u-flink { --u-fg: var(--ba-teal-texto); display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ba-teal-texto); cursor: pointer; }
.bit-atlas .u-flink:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--ba-teal-texto); }
.bit-atlas .u-quando { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ba-verde); margin: 10px 0 2px; }
.bit-atlas .u-quando .u-ico { color: var(--ba-terra); }
.bit-atlas .u-fmini { --u-fg: var(--ba-verde); display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border: 0; border-bottom: 1px solid rgba(19, 79, 86, .12); width: 100%; text-align: left; font-size: 12.5px; }
.bit-atlas .u-fmini .u-ico { color: var(--ba-terra); margin-top: 2px; }
.bit-atlas .u-fmini b { display: block; font-weight: 600; }
.bit-atlas .u-fmini small { display: block; color: var(--ba-texto2); font-size: 12px; }
.bit-atlas .u-fmini:hover b { text-decoration: underline; }
.bit-atlas .u-maisn { font-size: 12px; color: var(--ba-texto2); padding: 4px; }
.bit-atlas .u-selo-povos { display: inline-block; margin: 12px 0 2px; line-height: 0; }
.bit-atlas .u-selo-povos img { display: block; width: 220px; max-width: 100%; height: auto; }

/* ---------- cards de números ---------- */
.bit-atlas .u-numswrap { position: absolute; z-index: 4; right: 14px; bottom: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bit-atlas .u-nums { display: grid; grid-template-columns: repeat(5, 100px); gap: 6px; }
.bit-atlas .u-nb { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); position: relative; height: 60px; min-width: 0; padding: 0 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); box-shadow: 0 2px 8px rgba(19, 79, 85, .15); text-align: center; transition: background-color .15s; }
.bit-atlas .u-nb:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-nb.on { --u-bg: var(--ba-verde); --u-fg: #fff; }
.bit-atlas .u-nb b { font-size: 22px; line-height: 1; font-weight: 700; }
.bit-atlas .u-nb span { display: flex; align-items: center; justify-content: center; min-height: 13px; font-size: 10.5px; line-height: 13px; color: var(--ba-texto2); white-space: nowrap; }
.bit-atlas .u-nb.on span { color: #fff; }
.bit-atlas .u-nb img { display: block; height: 18px; width: auto; max-width: 78px; object-fit: contain; }
.bit-atlas .u-nb[data-a="card-tedx"] img { height: 20px; max-width: 56px; }
.bit-atlas .u-nbd { position: absolute; top: 5px; right: 5px; line-height: 0; opacity: .55; }
.bit-atlas .u-nbd .u-ico { width: 10px; height: 10px; }
.bit-atlas .u-nb.on .u-nbd { opacity: .85; }
.bit-atlas .u-nb[aria-expanded="true"] .u-nbd { transform: rotate(180deg); }
.bit-atlas .u-nlista { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); font: 600 12px var(--ba-fonte); transition: background-color .15s; }
.bit-atlas .u-nlista:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-nlista .u-ico { width: 14px; height: 14px; }

/* listas suspensas dos cards */
.bit-atlas .u-ddlayer { position: absolute; z-index: 12; right: 14px; bottom: calc(28px + var(--u-nums-h) + 8px); width: 300px; }
.bit-atlas .u-ddlayer .u-scrim { display: none; }
.bit-atlas .u-dd { display: flex; flex-direction: column; max-height: 380px; background: #fff; color: var(--ba-verde); border: 1px solid var(--ba-verde); border-radius: var(--btn-r-solid); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.bit-atlas .u-ddh { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--ba-linha); }
.bit-atlas .u-ddh b { font-size: 13px; }
.bit-atlas .u-ddh small { font-size: 11.5px; color: var(--ba-mudo); }
.bit-atlas .u-ddl { overflow: auto; padding: 4px 0; overscroll-behavior: contain; }
.bit-atlas .u-ddo { --u-bg: transparent; --u-fg: var(--ba-verde); display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 12px; border: 0; font-size: 13px; text-align: left; }
.bit-atlas .u-ddo:hover { --u-bg: var(--ba-creme); }
.bit-atlas .u-ddo span { flex: 1; }
.bit-atlas .u-ddo small { color: var(--ba-mudo); font-size: 11.5px; }
.bit-atlas .u-ddo.on { font-weight: 600; --u-bg: var(--ba-sutil); }
.bit-atlas .u-ddo.off { opacity: .38; cursor: not-allowed; }
/* Escolha única (um filtro por vez, 24/11/2026): círculo de opção, não caixa de marcar. */
.bit-atlas .u-ddo .chk { width: 14px; height: 14px; flex: 0 0 14px; border: 1.5px solid var(--ba-verde); border-radius: 50%; display: grid; place-items: center; }
.bit-atlas .u-ddo.on .chk::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ba-verde); }
.bit-atlas .u-ddf { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--ba-linha); background: var(--ba-creme); }
.bit-atlas .u-ddclr { margin-left: 0; font-size: 12.5px; }
.bit-atlas .u-ddclr:disabled { opacity: .4; text-decoration: none; }
.bit-atlas .u-ddok { --u-bg: var(--ba-verde); --u-fg: #fff; --u-bd: var(--ba-verde); padding: 6px 16px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r-solid); font-weight: 600; font-size: 12.5px; }

/* ---------- controles do mapa ---------- */
.bit-atlas .u-fab { display: contents; }
.bit-atlas .u-ctl { position: absolute; z-index: 3; left: calc(var(--u-lof) + 0px); top: 14px; display: flex; flex-direction: column; background: var(--ba-creme); border: 1px solid var(--ba-verde); border-radius: var(--btn-r); overflow: hidden; }
.bit-atlas .u-ctl button { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--ba-verde); border-radius: 0; transition: background-color .15s; }
.bit-atlas .u-ctl button:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-ctl button:last-child { border-bottom: 0; }
.bit-atlas .u-ctl .u-ico { width: 18px; height: 18px; }
.bit-atlas .u-ctl .u-loc { display: none; }
.bit-atlas .u-inicio { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); --u-bd: var(--ba-verde); position: absolute; z-index: 3; left: var(--u-lof); top: 96px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); font: 600 12.5px var(--ba-fonte); box-shadow: 0 2px 8px rgba(19, 79, 85, .18); transition: background-color .15s; }
.bit-atlas .u-inicio:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-inicio .u-ico { width: 16px; height: 16px; }
.bit-atlas .u-calbtn { --u-bg: var(--ba-verde); --u-fg: #fff; --u-bd: var(--ba-verde); position: absolute; z-index: 6; right: 14px; top: 14px; height: 60px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ba-verde); border-radius: var(--btn-r-solid); box-shadow: 0 6px 18px rgba(19, 79, 85, .35); transition: background-color .15s; }
.bit-atlas .u-calbtn:hover { --u-bg: #1b6069; --u-bd: #1b6069; }
.bit-atlas .u-calbtn.on, .bit-atlas .u-calbtn.on:hover { --u-bg: var(--ba-terra); --u-bd: var(--ba-terra); }
.bit-atlas .u-calbtn .u-ico { width: 30px; height: 30px; }
.bit-atlas .u-ctxt { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.bit-atlas .u-leg { position: absolute; z-index: 3; left: var(--u-lof); bottom: 14px; display: flex; flex-direction: column; max-height: calc(100% - 40px); background: var(--ba-creme); border: 1px solid var(--ba-verde); border-radius: var(--btn-r); font-size: 11px; overflow: hidden; }
.bit-atlas .u-ltab { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); width: 100%; height: 14px; flex: none; display: grid; place-items: center; border: 0; border-bottom: 1px solid rgba(19, 79, 85, .35); border-radius: 0; transition: background-color .15s; }
.bit-atlas .u-ltab:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-ltab .u-ico { width: 12px; height: 12px; stroke-width: 2.4; }
.bit-atlas .u-ltab.fechada { height: 26px; border-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 9px 0 10px; }
.bit-atlas .u-ltab.fechada span { font: 700 12px var(--ba-fonte); }
.bit-atlas .u-lcorpo { padding: 6px 6px 8px; max-width: 190px; overflow-y: auto; overflow-x: hidden; }
.bit-atlas .u-lcorpo b { display: block; margin-bottom: 4px; font-size: 12px; }
.bit-atlas .u-lcorpo ul { list-style: none; }
.bit-atlas .u-lcorpo li { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.bit-atlas .u-lic { width: 16px; height: 16px; flex: 0 0 16px; display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: center; }
.bit-atlas .u-lic[style*="--u-cor"] { background: var(--u-cor); border-radius: 50%; }
.bit-atlas .u-lic.wide { width: 32px; flex-basis: 32px; height: 18px; background-color: transparent; background-size: contain; }
.bit-atlas .u-lic.fl { background: var(--ba-terra); color: #fff; display: inline-grid; place-items: center; border-radius: 2px; }
.bit-atlas .u-lic.fl .u-ico { width: 11px; height: 11px; }
.bit-atlas .u-lcorpo .lmais button { --u-fg: var(--ba-mudo); padding: 0; border: 0; font-size: 11px; }
.bit-atlas .u-lcorpo .lmais button:hover { color: var(--ba-verde); text-decoration: underline; text-underline-offset: 2px; }
/* Legenda clicável (24/11/2026): o cabeçalho inteiro abre e fecha; cada item filtra o mapa (OU com os cards). */
.bit-atlas .u-ltab.aberta { height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 9px 0 10px; border-bottom: 1px solid rgba(19, 79, 85, .2); }
.bit-atlas .u-ltab.aberta span { font: 700 12px var(--ba-fonte); }
.bit-atlas .u-lcorpo { padding-top: 4px; }
.bit-atlas .u-lbtn { --u-bg: transparent; --u-fg: var(--ba-verde); display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 3px 4px 3px 5px; border: 0; border-radius: 4px; font-size: 11px; text-align: left; line-height: 1.3; transition: background-color .15s, color .15s; }
.bit-atlas.bit-atlas .u-lbtn { white-space: normal; } /* o tema dá nowrap aos botões; "Evento do Calendário Cultural" quebra */
.bit-atlas .u-lbtn .u-ltx { flex: 1 1 auto; min-width: 0; }
.bit-atlas .u-lbtn .u-lchk { flex: none; width: 14px; height: 14px; display: grid; place-items: center; color: var(--ba-teal); opacity: 0; transition: opacity .15s; }
.bit-atlas .u-lbtn .u-lchk .u-ico { width: 12px; height: 12px; stroke-width: 2.6; }
.bit-atlas .u-lbtn:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-lbtn:hover .u-lchk { opacity: .75; }
.bit-atlas .u-lbtn.on { --u-bg: rgba(30, 153, 157, .14); font-weight: 700; }
.bit-atlas .u-lbtn.on:hover { --u-bg: rgba(30, 153, 157, .22); }
.bit-atlas .u-lbtn.on .u-lchk { opacity: 1; }
/* Anel de teclado fino e por dentro: o de 3 px por fora virava uma caixa pesada e cortada pela legenda. */
.bit-atlas .u-lbtn:focus-visible { outline: 2px solid var(--ba-teal); outline-offset: -2px; }
.bit-atlas.ba-tec .u-lbtn:focus-visible .u-lchk { opacity: .75; }
.bit-atlas .u-lcorpo li { margin: 1px 0; }

/* ---------- calendário cultural ---------- */
.bit-atlas .u-calwrap { position: absolute; z-index: 6; right: 14px; top: 84px; width: 290px; }
.bit-atlas .u-cal { background: var(--ba-creme2); border: 1px solid var(--ba-linha); border-radius: var(--btn-r); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 12px 12px 10px; color: var(--ba-verde); }
.bit-atlas .u-calh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bit-atlas .u-calh h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.bit-atlas .u-calx { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: rgba(19, 79, 85, .3); width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(19, 79, 85, .3); border-radius: var(--btn-r); }
.bit-atlas .u-calx:hover { --u-bg: var(--ba-hover); }
.bit-atlas .u-calx .u-ico { width: 14px; height: 14px; }
.bit-atlas .u-cmg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bit-atlas .u-cm { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: var(--ba-linha); position: relative; min-height: 56px; padding: 6px 6px 5px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--ba-linha); border-radius: var(--btn-r); text-align: left; transition: background-color .15s, border-color .15s; }
.bit-atlas .u-cm:hover { --u-bg: var(--ba-creme); --u-bd: var(--ba-verde); }
.bit-atlas .u-cm b { font: 700 11.5px var(--ba-fonte); }
.bit-atlas .u-cm em { position: absolute; top: 5px; right: 6px; font: 600 11px var(--ba-fonte); font-style: normal; color: var(--ba-texto2); }
.bit-atlas .u-cbs { display: flex; flex-wrap: wrap; gap: 2px; }
.bit-atlas .u-cbs i, .bit-atlas .u-bol { width: 6px; height: 6px; border-radius: 50%; background: var(--ba-terra); display: inline-block; }
.bit-atlas .u-cbs i.p, .bit-atlas .u-bol.p { background: var(--ba-povos); }
.bit-atlas .u-cm.hoje { box-shadow: inset 0 0 0 1.5px var(--ba-terra); }
.bit-atlas .u-cm.on { --u-bg: var(--ba-verde); --u-bd: var(--ba-verde); --u-fg: #fff; }
.bit-atlas .u-cm.on b, .bit-atlas .u-cm.on em { color: #fff; }
.bit-atlas .u-cm.on .u-cbs i { background: #fff; }
.bit-atlas .u-cm.on .u-cbs i.p { background: var(--ba-povos); box-shadow: 0 0 0 1px #fff; }
.bit-atlas .u-cm.vazio { cursor: default; opacity: .5; }
.bit-atlas .u-cm.vazio:hover { --u-bg: #fff; --u-bd: var(--ba-linha); }
.bit-atlas .u-call { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; margin-top: 8px; border-top: 1px solid rgba(19, 79, 85, .15); font-size: 10.5px; color: var(--ba-verde); }
.bit-atlas .u-call span { display: inline-flex; align-items: center; gap: 5px; }
.bit-atlas .u-calag { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; background: var(--ba-verde); color: #fff; border-radius: var(--btn-r-solid); font: 600 12.5px var(--ba-fonte); text-decoration: none; transition: background-color .15s; }
.bit-atlas .u-calag:hover, .bit-atlas .u-calag:focus { background: #1b6069; color: #fff; text-decoration: none; }
.bit-atlas .u-calag .u-ico { width: 15px; height: 15px; }
.bit-atlas .u-calag .u-ico:last-child { width: 13px; height: 13px; opacity: .85; }
.bit-atlas .u-calall { --u-fg: var(--ba-verde); display: block; margin: 8px auto 0; padding: 2px; border: 0; font-size: 11.5px; font-weight: 600; text-decoration: underline; }

/* ---------- aviso ---------- */
.bit-atlas .u-sinal { position: absolute; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
/* Sinal até a ficha (Daniel, 25/11/2026, escolhido no Playground; atlas-ui.js, tocarSinal): setas, anéis e borda em ouro,
   com contorno branco fino para não sumir sobre o mapa. */
.bit-atlas .u-seta { position: absolute; width: 22px; height: 22px; color: var(--ba-ouro); }
.bit-atlas .u-seta svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 1.2px #fff); }
.bit-atlas .u-sanel { position: absolute; box-sizing: border-box; border: 3px solid var(--ba-ouro); border-radius: 50%; }
.bit-atlas .u-sborda { position: absolute; background: var(--ba-ouro); border-radius: 3px; box-shadow: 0 0 14px 3px var(--ba-ouro); }
.bit-atlas .u-toast { position: absolute; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 8px); background: var(--ba-verde); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.bit-atlas .u-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal dos filtros no celular ---------- */
.bit-atlas .u-modal { position: absolute; inset: 0; z-index: 13; }
.bit-atlas .u-scrim { position: absolute; inset: 0; background: rgba(19, 79, 85, .25); z-index: 1; }
.bit-atlas .u-mmore { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ba-verde); border-bottom: 0; border-radius: var(--btn-r-solid) var(--btn-r-solid) 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .35); }
.bit-atlas .u-mmore .u-fativos { padding: 8px 16px; background: #fff; }
.bit-atlas .u-mmore .u-fsec { padding: 14px 16px; }
.bit-atlas .u-mmore .u-ffoot { padding: 12px 16px; }

/* ================= desktop (>= 1024px) ================= */
@media (min-width: 1024px) {
  .bit-atlas .u-panel { top: 0; bottom: 0; left: 0; width: var(--u-pw); }
  .bit-atlas .u-panel.is-rec { display: none; }
  .bit-atlas[data-rec="1"] { --u-lof: calc(28px + 10px); } /* faixa recolhida de 28 px (24/11/2026) */
  .bit-atlas .u-ph-dyn { display: none; }
  .bit-atlas .u-panel[data-modo="ficha"] .u-ph-dyn, .bit-atlas .u-panel[data-modo="evento"] .u-ph-dyn { display: block; }
}

/* ================= celular (< 1024px): app com folha ================= */
@media (max-width: 1023.98px) {
  .bit-atlas { min-height: 0; }
  .bit-atlas .u-panel { left: 0; right: 0; bottom: 0; height: var(--u-sheet-h); z-index: 10; border-top: 1px solid var(--ba-verde); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); overflow: hidden; transition: height .3s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
  .bit-atlas.is-drag .u-panel, .bit-atlas.is-drag .u-fab, .bit-atlas.is-drag .u-leg, .bit-atlas.is-drag .u-mapa .leaflet-bottom { transition: none !important; }
  .bit-atlas .u-ptab { display: none; }
  .bit-atlas .u-grab { display: grid; place-items: center; flex: 0 0 22px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
  .bit-atlas .u-grab .u-handle { width: 100%; height: 22px; display: grid; place-items: center; border: 0; touch-action: none; }
  .bit-atlas .u-handle span { display: block; width: 36px; height: 4px; background: rgba(19, 79, 86, .35); }
  .bit-atlas .u-mapa-btn { display: none; --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: rgba(19, 79, 85, .3); align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(19, 79, 85, .3); border-radius: var(--btn-r); font: 600 12.5px var(--ba-fonte); }
  .bit-atlas .u-panel[data-sheet="cheia"] .u-grab { flex-basis: 40px; border-bottom: 1px solid var(--ba-linha); background: var(--ba-creme); }
  .bit-atlas .u-panel[data-sheet="cheia"] .u-handle { display: none; }
  .bit-atlas .u-panel[data-sheet="cheia"] .u-mapa-btn { display: inline-flex; }
  .bit-atlas .u-panel[data-sheet="cheia"] { border-top: 0; box-shadow: none; }
  .bit-atlas .u-panel[data-kind="ficha"] { background: #fff; }
  .bit-atlas .u-ph { padding: 0 14px 12px; gap: 10px; border-bottom: 0; }
  .bit-atlas .u-h1 { font-size: 15px; white-space: normal; margin: 0; }
  .bit-atlas .u-sub { font-size: 11.5px; margin-top: 3px; }
  .bit-atlas .u-panel[data-modo="lista"] .u-tit { display: none; }
  .bit-atlas .u-panel[data-modo="ficha"] .u-ph, .bit-atlas .u-panel[data-modo="evento"] .u-ph { display: none; }
  .bit-atlas .u-busca { height: 40px; }
  .bit-atlas .u-pbody { border-top: 1px solid var(--ba-linha); padding: 0 14px 12px; touch-action: pan-y; }
  .bit-atlas .u-panel[data-modo="ficha"] .u-pbody, .bit-atlas .u-panel[data-modo="evento"] .u-pbody { border-top: 0; }
  .bit-atlas .u-dica { font-size: 12.5px; color: var(--ba-mudo); text-align: center; padding-top: 14px; }
  .bit-atlas .u-panel[data-sheet="fechada"][data-kind="ctrl"] .u-pbody, .bit-atlas .u-panel[data-sheet="fechada"][data-kind="ctrl"] .u-pf, .bit-atlas .u-panel[data-sheet="fechada"][data-kind="ctrl"] .u-ph-dyn { visibility: hidden; }
  .bit-atlas .u-panel[data-sheet="fechada"][data-kind="ficha"] .u-fb, .bit-atlas .u-panel[data-sheet="fechada"][data-kind="ficha"] .u-ff { visibility: hidden; }
  .bit-atlas .u-fh { padding: 6px 16px 6px; }
  .bit-atlas .u-fx { top: 2px; }
  .bit-atlas .u-fnome { font-size: 19px; }
  .bit-atlas .u-chips { display: flex; gap: 6px; }
  .bit-atlas .u-qchip { --u-bg: #fff; --u-fg: var(--ba-verde); --u-bd: var(--ba-linha2); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--ba-linha2); border-radius: var(--btn-r); font: 600 12.5px var(--ba-fonte); white-space: nowrap; }
  .bit-atlas .u-qchip .u-fcnt { margin-left: 2px; }
  .bit-atlas .u-qlista { --u-fg: var(--ba-verde); display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 2px 0; border: 0; border-top: 1px solid var(--ba-linha); font: 600 13px var(--ba-fonte); }
  .bit-atlas .u-qlista small { font-size: 11px; font-weight: 500; color: var(--ba-mudo); background: var(--ba-sutil); padding: 1px 7px; border-radius: 9px; }
  .bit-atlas .u-qlista .u-ico:last-child { margin-left: auto; }
  .bit-atlas .u-ph-dyn { display: flex; flex-direction: column; gap: 10px; }
  .bit-atlas .u-pf { padding: 10px 14px 18px; background: var(--ba-creme); }

  /* cards no topo */
  .bit-atlas .u-numswrap { top: 10px; bottom: auto; left: 12px; right: 12px; z-index: 9; align-items: stretch; }
  .bit-atlas .u-nums { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .bit-atlas .u-nb { height: 46px; padding: 0 3px; gap: 2px; }
  .bit-atlas .u-nb b { font-size: 16px; }
  .bit-atlas .u-nb span { font-size: 8.5px; line-height: 9.5px; white-space: normal; text-align: center; min-height: 9px; }
  .bit-atlas .u-nb img { height: 12px; max-width: 50px; }
  .bit-atlas .u-nb[data-a="card-tedx"] img { height: 14px; max-width: 38px; }
  .bit-atlas .u-nbd { top: 3px; right: 3px; }
  .bit-atlas .u-nbd .u-ico { width: 8px; height: 8px; }
  .bit-atlas .u-nlista { display: none; }
  .bit-atlas .u-ddlayer { position: absolute; inset: 0; right: 0; bottom: 0; width: auto; z-index: 13; }
  .bit-atlas .u-ddlayer .u-scrim { display: block; }
  .bit-atlas .u-dd { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 72%; border-radius: var(--btn-r-solid) var(--btn-r-solid) 0 0; border-bottom: 0; }

  /* botões acompanham a folha */
  .bit-atlas .u-fab { display: flex; flex-direction: column; gap: 8px; position: absolute; z-index: 9; right: 12px; bottom: calc(var(--u-sheet-h) + 28px); transition: bottom .3s cubic-bezier(.2, .8, .2, 1); }
  .bit-atlas .u-fab > * { position: static; }
  .bit-atlas .u-ctl { display: contents; }
  .bit-atlas .u-ctl button, .bit-atlas .u-inicio, .bit-atlas .u-calbtn { --u-bg: var(--ba-creme); --u-fg: var(--ba-verde); width: 40px; height: 40px; padding: 0; justify-content: center; border: 1px solid var(--ba-verde); border-radius: var(--btn-r); box-shadow: none; position: static; display: grid; place-items: center; }
  .bit-atlas .u-calbtn { --u-bg: var(--ba-verde); --u-fg: #fff; }
  .bit-atlas .u-calbtn.on { --u-bg: var(--ba-terra); --u-bd: var(--ba-terra); }
  .bit-atlas .u-inicio { --u-bg: var(--ba-verde); --u-fg: #fff; }
  .bit-atlas .u-ctl button { border-bottom: 1px solid var(--ba-verde); --u-bw: 1px; }
  .bit-atlas .u-ctl button:last-child { --u-bw: 1px 1px 0 1px; }
  .bit-atlas .u-ctl .u-loc { display: grid; }
  .bit-atlas .u-ctl .u-ico, .bit-atlas .u-calbtn .u-ico, .bit-atlas .u-inicio .u-ico { width: 20px; height: 20px; }
  .bit-atlas .u-ctxt, .bit-atlas .u-inicio span { display: none; }
  .bit-atlas .u-leg { left: 12px; bottom: calc(var(--u-sheet-h) + 28px); z-index: 9; transition: bottom .3s cubic-bezier(.2, .8, .2, 1); max-height: 46%; }
  .bit-atlas .u-calwrap { top: calc(var(--u-nums-h) + 20px); left: 10px; right: 10px; width: auto; z-index: 11; }
  .bit-atlas .u-cal { padding: 10px 12px 10px; }
  .bit-atlas .u-toast { bottom: calc(var(--u-sheet-h) + 16px); }
  /* atribuição do OSM sempre visível: sobe junto com a folha */
  .bit-atlas .u-mapa .leaflet-bottom { bottom: var(--u-sheet-h) !important; transition: bottom .3s cubic-bezier(.2, .8, .2, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .bit-atlas .u-panel, .bit-atlas .u-fab, .bit-atlas .u-leg, .bit-atlas .u-mapa .leaflet-bottom, .bit-atlas .u-toast { transition: none !important; }
}
