/* ============================================================
   MAPA "STRONG PRESENCE ACROSS BRAZIL" v2 (22/11/2026)
   Markup: includes/sections/brazil_v2.php (SVG gerado do mapa.svg original:
   mesmos estados, mesmo oceano, rotulos em <text> Roboto no lugar dos contornos).
   - entrada: oceano, estados por regiao (N > NE > CO > SE > S) e os destinos
     acendendo na mesma ordem; o contador sobe junto;
   - interacao: passar o mouse, focar ou tocar num destino (no mapa ou na lista)
     destaca o ponto e o estado e abre o cartao (foto, tipo de viagem, destaques,
     quando ir); passar no nome da regiao destaca a regiao inteira;
   - no celular o cartao vira uma faixa abaixo do mapa, para nao tampar os destinos;
   - sem JS, com "reduzir movimento" ou na impressao: tudo no estado final.
   ============================================================ */

#brazil.brazil_v2 {
  --bv2-laranja: #E89127;
  --bv2-laranja-texto: #a65a0a;   /* laranja escurecido: contraste de texto no fundo claro */
  --bv2-texto: #303030;
  --bv2-cinza: #7d8a96;
  --bv2-filete: #d6e2ec;
  --bv2-ease: cubic-bezier(0.23, 1, 0.32, 1);
  background: #f0f8ff;
  height: auto;
  min-height: 0;
  padding: 0;
}

.bv2 {
  display: grid;
  grid-template-columns: minmax(300px, 34%) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "cabeca mapa"
    "lista  mapa";
  align-items: start;
}

/* ---- coluna de texto ---- */

.bv2_cabeca { grid-area: cabeca; padding: 6.2vw 3vw 0 10%; }

.brazil_v2 .bv2_cabeca .brazil_title {
  width: auto;
  float: none;
  padding: 0;
}

.brazil_v2 .bv2_cabeca .brazil_title .line { width: 3.2vw; }

.bv2_numeros {
  display: flex;
  gap: 2.6vw;
  margin: 2.4vw 0 0;
  padding: 1.4vw 0 0;
  border-top: 1px solid var(--bv2-filete);
}

.bv2_numeros > div { display: flex; flex-direction: column-reverse; }

.bv2_numeros dd {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--bv2-texto);
  font-variant-numeric: tabular-nums;
}

.bv2_numeros dt {
  margin-top: 0.55em;
  font-size: clamp(11px, 0.78vw, 12.5px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bv2-cinza);
}

.bv2_lista { grid-area: lista; padding: 2.2vw 3vw 5vw 10%; }

.bv2_regiao { border-top: 1px solid var(--bv2-filete); padding: 0.9em 0 0.8em; }
.bv2_regiao:last-child { border-bottom: 1px solid var(--bv2-filete); }

.bv2_regiao_nome {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.35em;
  font-size: clamp(11px, 0.78vw, 12.5px);
  font-weight: 500;
}

.bv2_regiao_nome button {
  font: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bv2-cinza);
  background: none;
  border: 0;
  padding: 0.2em 0;
  cursor: pointer;
  transition: color 160ms ease;
}

.bv2_regiao_nome span { color: #a3afba; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }

.bv2_regiao ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(14px, 1.02vw, 16px);
  line-height: 1.55;
}

.bv2_regiao li { color: var(--bv2-texto); }
.bv2_regiao li:not(:last-child)::after { content: "\00B7"; color: #b5c0ca; margin: 0 0.45em; }

.bv2_regiao li button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.bv2_lista button { -webkit-tap-highlight-color: transparent; }

.bv2_regiao li button.is-ativo,
.bv2_regiao_nome button.is-ativo { color: var(--bv2-laranja-texto); text-decoration-color: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .bv2_regiao li button:hover,
  .bv2_regiao_nome button:hover { color: var(--bv2-laranja-texto); text-decoration-color: currentColor; }
}

.bv2_lista button:focus-visible,
.bv2_pino:focus,
.bv2_pino:focus-visible { outline: none; }
.bv2_lista button:focus-visible { box-shadow: 0 2px 0 var(--bv2-laranja); }

/* ---- mapa ---- */

.bv2_mapa { grid-area: mapa; position: relative; align-self: stretch; overflow: hidden; }   /* o oceano desce ate o fim da secao */

.bv2_svg { display: block; width: 100%; height: auto; overflow: visible; }

.bv2_mar { fill: #c2dbee; }
.bv2_mar_perto { mix-blend-mode: multiply; opacity: 0.5; }

.bv2_uf { fill: #ead2bc; transition: fill 260ms ease; }
.bv2_ilha { stroke: #fff; stroke-width: 1.7; }
.bv2_uf.is-ativo,
.bv2_uf.is-regiao { fill: #e0b98f; }

.bv2_divisas { fill: #fff; pointer-events: none; }

.bv2_pino { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 220ms ease; }
.bv2_alvo { fill: transparent; pointer-events: none; }   /* quem decide o destino e o ponto mais perto (mapa_v2.js) */
.bv2_ponto { fill: var(--bv2-laranja); transform-box: fill-box; transform-origin: center; transition: transform 260ms var(--bv2-ease); }

.bv2_anel {
  fill: none;
  stroke: var(--bv2-laranja);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.6);
  transition: opacity 220ms ease, transform 320ms var(--bv2-ease);
}

.bv2_nome {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs);
  font-weight: 400;
  fill: #4c4b4b;
  transition: fill 200ms ease;
}

/* foco: o destino escolhido fica, o resto recua */
.bv2.tem-foco .bv2_pino:not(.is-ativo):not(.is-regiao) { opacity: 0.3; }

.bv2 .bv2_pino.is-ativo .bv2_ponto,
.bv2 .bv2_pino:focus-visible .bv2_ponto { transform: scale(1.3); }
.bv2 .bv2_pino.is-ativo .bv2_anel,
.bv2 .bv2_pino:focus-visible .bv2_anel { opacity: 1; transform: scale(1); animation: none; }
.bv2_pino.is-ativo .bv2_nome,
.bv2_pino.is-regiao .bv2_nome { fill: #1c1c1c; font-weight: 500; }

/* ---- cartao do destino (computador: flutua junto do ponto) ---- */

.bv2_cartao {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: clamp(228px, 18.4vw, 264px);   /* em tela de notebook o cartao estreita para caber na faixa de oceano */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgb(18 45 74 / 16%), 0 2px 6px rgb(18 45 74 / 8%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.bv2_cartao.is-simples { width: auto; white-space: nowrap; }

.bv2_cartao.is-on {
  opacity: 1;
  visibility: visible;
  transition: none;
  animation: bv2-cartao 260ms var(--bv2-ease) 60ms both;
}

/* fio fino do ponto ate o cartao, quando o cartao abre longe (por exemplo, sobre o oceano) */
.bv2_fio {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 0;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: var(--bv2-laranja);
  transform-origin: 0 50%;
  transform: rotate(var(--a, 0rad));
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.bv2_fio.is-on { opacity: 0.8; transition: none; animation: bv2-fio 240ms var(--bv2-ease) both; }

@keyframes bv2-fio {
  from { opacity: 0.8; transform: rotate(var(--a, 0rad)) scaleX(0); }
  to   { opacity: 0.8; transform: rotate(var(--a, 0rad)) scaleX(1); }
}

@keyframes bv2-cartao {
  from { opacity: 0; transform: translate(var(--bv2-dx, 0px), var(--bv2-dy, 8px)); }
  to   { opacity: 1; transform: none; }
}

.bv2_cartao [hidden] { display: none !important; }

.bv2_foto { margin: 0; aspect-ratio: 2 / 1; background: #dfe8ef; overflow: hidden; }

.bv2_foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}

.bv2_foto img.is-ok { opacity: 1; }

.bv2_txt { padding: 14px 16px 13px; }
.bv2_cartao.is-simples .bv2_txt { padding: 10px 15px 11px; }

.bv2_c_nome { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; color: #1d2b36; }
.bv2_cartao.is-simples .bv2_c_nome { font-size: 15px; }
.bv2_c_meta { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: #66737f; }

.bv2_cartao .bv2_c_tags {
  margin: 11px 0 0;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bv2-laranja-texto);
}

.bv2_cartao .bv2_c_dest { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; color: #3d4852; }

.bv2_c_linhas { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid #e6ecf1; }
.bv2_c_linhas dt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bv2-cinza); }
.bv2_c_linhas dd { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #2b3640; }
.bv2_c_linhas > .bv2_l_temp { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; }
.bv2_c_linhas > .bv2_l_temp dd { margin: 0; }

.bv2_c_credito { display: block; margin-top: 11px; font-size: 10.5px; line-height: 1.3; color: #8a96a1; }

/* janela baixa (notebook): foto mais rasa e menos respiro, para o cartao caber sem tampar destinos */
@media (min-width: 769px) and (max-height: 800px) {
  .bv2_foto { aspect-ratio: 2.5 / 1; }
  .bv2_txt { padding: 11px 15px 11px; }
  .bv2_cartao .bv2_c_tags { margin-top: 8px; }
  .bv2_c_linhas { margin-top: 9px; padding-top: 8px; }
  .bv2_c_credito { margin-top: 8px; }
}

/* dica no canto de baixo, a esquerda do oceano */
.bv2_dica {
  position: absolute;
  left: 2.5%;
  bottom: 3.6vw;
  margin: 0;
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.03em;
  color: var(--bv2-cinza);
}

.bv2_dica_toque { display: none; }

@media (hover: none) {
  .bv2_dica_mouse { display: none; }
  .bv2_dica_toque { display: inline; }
}

/* ---- entrada (so quando o JS assume: classe bv2-js no .bv2) ---- */

.bv2-js .bv2_mar { opacity: 0; transition: opacity 900ms ease; }
.bv2-js.is-visto .bv2_mar { opacity: 1; }
.bv2-js.is-visto .bv2_mar_perto { opacity: 0.5; }

.bv2-js .bv2_uf {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 700ms var(--bv2-ease) calc(var(--i) * 22ms + 150ms),
    transform 700ms var(--bv2-ease) calc(var(--i) * 22ms + 150ms),
    fill 260ms ease;
}
.bv2-js.is-visto .bv2_uf { opacity: 1; transform: none; }

.bv2-js .bv2_divisas { opacity: 0; transition: opacity 600ms ease 600ms; }
.bv2-js.is-visto .bv2_divisas { opacity: 1; }

/* os destinos acendem na ordem das regioes, logo atras dos estados */
.bv2-js .bv2_pino { opacity: 0; transition: opacity 360ms ease calc(var(--o) * 50ms + 800ms); }
.bv2-js.is-visto .bv2_pino { opacity: 1; }
.bv2-js .bv2_ponto { transform: scale(0); transition: transform 520ms cubic-bezier(0.3, 1.25, 0.5, 1) calc(var(--o) * 50ms + 800ms); }
.bv2-js.is-visto .bv2_ponto { transform: scale(1); }
.bv2-js.is-visto .bv2_anel { animation: bv2-chegada 760ms ease-out calc(var(--o) * 50ms + 800ms) 1 both; }

@keyframes bv2-chegada {
  0%   { opacity: 0.55; transform: scale(0.5); }
  100% { opacity: 0;    transform: scale(2.1); }
}

/* depois da entrada: as transicoes de interacao respondem na hora */
.bv2-pronto .bv2_pino { transition: opacity 220ms ease; }
.bv2-pronto .bv2_ponto { transition: transform 260ms var(--bv2-ease); }
.bv2-pronto .bv2_uf { transition: fill 260ms ease; }
.bv2-pronto .bv2_anel { animation: none; }

/* vida de fundo: de tempos em tempos um destino da um "ping" discreto
   (mostra que os pontos respondem; para enquanto houver um destino aberto) */
.bv2-pronto .bv2_pino.is-ping .bv2_anel { animation: bv2-ping 1500ms ease-out 1 both; }

@keyframes bv2-ping {
  0%   { opacity: 0.5; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(2.6); }
}

/* ---- celular: titulo, numeros, mapa num cartao com a ficha embaixo, lista ---- */

@media (max-width: 768px) {
  .bv2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "cabeca" "mapa" "lista";
  }

  .bv2_cabeca { padding: 12vw 10% 0; }
  .brazil_v2 .bv2_cabeca .brazil_title .line { width: 14vw; }

  .bv2_numeros { gap: 9vw; margin-top: 6vw; padding-top: 5vw; }
  .bv2_numeros dd { font-size: 12vw; }
  .bv2_numeros dt { font-size: 3vw; }

  .bv2_mapa {
    align-self: start;
    margin: 7vw 6% 0;
    border-radius: 4vw;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 7px 7vw rgb(0 0 0 / 14%);
  }

  .bv2_svg { overflow: hidden; }
  .bv2_anel { stroke-width: 4; }

  /* a ficha do destino fica abaixo do mapa, dentro do mesmo cartao branco */
  .bv2_cartao,
  .bv2_cartao.is-simples {
    position: static;
    display: none;
    width: auto;
    white-space: normal;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    pointer-events: auto;
  }

  .bv2_cartao.is-on {
    display: grid;
    grid-template-columns: 30vw 1fr;
    column-gap: 4vw;
    align-items: start;
    padding: 4.6vw 5% 5vw;
    animation: bv2-ficha 320ms var(--bv2-ease) both;
  }

  .bv2_cartao.is-on.is-simples { display: block; }

  @keyframes bv2-ficha {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }

  .bv2_txt,
  .bv2_cartao.is-simples .bv2_txt { display: contents; }

  .bv2_foto { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 1; border-radius: 2.4vw; }

  .bv2_c_nome,
  .bv2_cartao.is-simples .bv2_c_nome { grid-column: 2; align-self: end; font-size: 4.7vw; line-height: 1.2; }
  .bv2_c_meta { grid-column: 2; margin-top: 0.8vw; font-size: 3.3vw; }
  .bv2_cartao .bv2_c_tags { grid-column: 2; margin-top: 2.2vw; font-size: 2.75vw; }

  /* destino sem foto com credito: nome, estado e etiquetas ocupam a largura toda */
  .bv2_cartao.sem-foto .bv2_c_nome,
  .bv2_cartao.sem-foto .bv2_c_meta,
  .bv2_cartao.sem-foto .bv2_c_tags { grid-column: 1 / -1; }

  .bv2_cartao .bv2_c_dest { grid-column: 1 / -1; margin-top: 4vw; font-size: 3.7vw; line-height: 1.5; }
  .bv2_c_linhas { grid-column: 1 / -1; margin-top: 3.6vw; padding-top: 3.2vw; }
  .bv2_c_linhas > div,
  .bv2_c_linhas > .bv2_l_temp { display: grid; grid-template-columns: 27vw 1fr; column-gap: 3vw; align-items: baseline; margin-top: 0; }
  .bv2_c_linhas > div + div,
  .bv2_c_linhas > .bv2_l_quando + .bv2_l_temp { margin-top: 1.8vw; }
  .bv2_c_linhas dt { font-size: 2.75vw; }
  .bv2_c_linhas dd,
  .bv2_c_linhas > .bv2_l_temp dd { margin: 0; font-size: 3.5vw; }
  .bv2_fio { display: none; }
  .bv2_c_credito { grid-column: 1 / -1; margin-top: 3.4vw; font-size: 2.7vw; }

  .bv2_dica { position: static; padding: 4.4vw 5% 4.8vw; font-size: 3.1vw; text-align: center; }
  .bv2_cartao.is-on ~ .bv2_dica { display: none; }

  .bv2_lista { padding: 8vw 10% 12vw; }
  .bv2_regiao_nome { font-size: 3vw; }
  .bv2_regiao ul { font-size: 4vw; line-height: 1.7; }
}

/* ---- reduzir movimento e impressao: estado final, sem movimento ---- */

@media print, (prefers-reduced-motion: reduce) {
  .bv2-js .bv2_mar,
  .bv2-js .bv2_uf,
  .bv2-js .bv2_divisas,
  .bv2-js .bv2_pino,
  .bv2-js .bv2_ponto { opacity: 1; transform: none; transition: none; }
  .bv2-js .bv2_mar_perto { opacity: 0.5; }
  .bv2_anel { animation: none !important; }
  .bv2_cartao.is-on,
  .bv2_fio.is-on { animation: none; }
  .bv2_foto img { transition: none; }
}
