/* BEGIN pt-cards-v70.css */
/* THE MAPPP PT V279 — transplantação visual dos cards V70; ações nativas preservadas. */
@media(max-width:850px){
 #mxSide{width:min(86vw,365px)!important;background:rgba(2,12,28,.97)!important;gap:6px!important;padding:16px 12px!important;overflow-y:auto!important}
 #mxSide .mxs-it{position:relative!important;overflow:hidden!important;width:100%!important;min-height:88px!important;flex:none!important;display:flex!important;align-items:flex-end!important;border-radius:4px!important;padding:11px 13px!important;border:1px solid rgba(127,168,219,.3)!important;background:linear-gradient(90deg,rgba(0,9,28,.95),rgba(0,18,46,.23)),var(--mx-pt-card-img) center/cover no-repeat!important;box-shadow:0 6px 14px #0005!important;opacity:1!important;color:white!important}
 #mxSide .mxs-it::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,8,27,.90),transparent 82%);pointer-events:none}
 #mxSide .mxs-it svg{display:none!important}
 #mxSide .mxs-it span{position:relative!important;z-index:1!important;font:800 14px/1.2 Manrope,'Open Sans',sans-serif!important;letter-spacing:.05em;text-transform:uppercase;text-shadow:0 2px 5px #000}
 #mxSide .mxs-it.cur{border-color:#5eaeff!important;box-shadow:inset 0 -3px #368aff,0 6px 14px #0005!important}
 #mxSide .mxs-it.soon{opacity:.55!important}
 #mxSide .mxs-it[data-mode="presencas"]{--mx-pt-card-img:url('menu/explorar.webp')}
 #mxSide .mxs-it[data-mode="tribos"]{--mx-pt-card-img:url('menu/comunidade.webp')}
 #mxSide .mxs-it[data-mode="tempo"]{--mx-pt-card-img:url('menu/tempo.webp')}
 #mxSide .mxs-it[data-mode="rota"]{--mx-pt-card-img:url('menu/meumapa.webp')}
 #mxSide .mxs-it[data-mode="historia"]{--mx-pt-card-img:url('menu/historia.webp')}
 #mxSide .mxs-it[data-mode="backtime"]{--mx-pt-card-img:url('menu/estatisticas.webp')}
 #mxSide .mxs-it[data-mode="testa"]{--mx-pt-card-img:url('cards-v70/testa.webp')}
}
/* Apenas EXPLORAR: esconder bandeiras, estandartes e cubos no mapa, não nas fichas nem na Comunidade. */
html[data-mxmode="presencas"] #pinLayer .est-pin,
html[data-mxmode="presencas"] #pinLayer .map-cube-marker,
html[data-mxmode="presencas"] #pinLayer .map-cube3d,
html[data-mxmode="presencas"] #pinLayer .pin-anchor:has(.est-pin),
html[data-mxmode="presencas"] #pinLayer .pin-anchor:has(.map-cube-marker),
html[data-mxmode="presencas"] #pinLayer .pin-anchor:has(.map-cube3d),
html[data-mxmode="presencas"] #pinLayer .pin-anchor:has(.f5-cv){display:none!important}

/* V314: voltar a mostrar bandeiras/cubos no Explorar PT */
html[data-mxmode="presencas"] #pinLayer .map-cube-marker,
html[data-mxmode="presencas"] #pinLayer .pin-anchor,
html[data-mxmode="presencas"] #pinLayer .flag-pin{display:block !important; visibility:visible !important;}

/* END pt-cards-v70.css */

/* BEGIN pt-world-cards.css */
/* THE MAPPP PT — sistema de separadores e cards importado da versão WORLD (desktop).
   Coluna vertical de cards: intro | separadores | mapa. A gaveta antiga (.mx-drawer) fica oculta e só serve de motor de modos. */
@media(min-width:851px){
 :root{--vm-w-closed:136px;--vm-w-open:440px;--vm-grow:2.35;--vm-act:1.15}
 body .app{grid-template-columns:minmax(270px,32%) var(--vm-w-closed) minmax(0,1fr)}
 body .site-header::before{width:calc(max(270px,32%) + var(--vm-w-closed))}
 body .site-header::after{left:calc(max(270px,32%) + var(--vm-w-closed))}
 body .vm-rail{position:relative;grid-column:2;grid-row:1;min-width:0;z-index:22;background:#000715;overflow:visible}
 body .map-panel{grid-column:3;grid-row:1}
 body .map-panel .mx-drawer{display:none!important}
 body .vm-rail .tw-modes{position:absolute;right:0;top:0;display:flex!important;flex-direction:column!important;align-items:stretch!important;width:var(--vm-w-closed)!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden;background:#000715!important;box-shadow:2px 0 18px rgba(0,0,0,.35)!important;transition:width .3s cubic-bezier(.2,.7,.2,1);font-family:"Manrope",Arial,sans-serif;z-index:2}
 body .vm-rail .tw-modes.vm-open{width:min(var(--vm-w-open),calc(32vw + var(--vm-w-closed)))!important}
 body .intro{transition:filter .3s ease,transform .32s ease}
 body.vm-menu-open .intro{filter:brightness(.20) blur(5.5px);transform:translateX(-90px)}
 body .vm-rail .tw-modes button{position:relative;display:block!important;flex:1 1 0!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;border-bottom:1px solid #000715!important;border-radius:0!important;background:#0a1b2a!important;color:#fff!important;text-align:left;overflow:hidden;font-size:inherit!important;letter-spacing:0!important;text-transform:none!important;cursor:pointer;transition:flex-grow .3s cubic-bezier(.2,.7,.2,1)}
 body .vm-rail .tw-modes button.active:not(.vm-preview){flex-grow:var(--vm-grow)!important}
 body .vm-rail .tw-modes:has(.vm-preview) button.active{flex-grow:1!important}
 body .vm-rail .tw-modes button.vm-preview{flex-grow:var(--vm-grow)!important}
 body .vm-rail .tw-modes button.active::after{content:"";position:absolute;top:0;bottom:0;right:0;width:3px;background:#2d8cff;z-index:5;pointer-events:none}
 body .vm-rail .tw-modes button:focus-visible{outline:2px solid #6aa2ff;outline-offset:-2px}
 .vm-bg{position:absolute;left:0;right:0;top:50%;height:var(--vm-unit,90px);transform:translateY(-50%);background-size:cover;background-repeat:no-repeat;background-position:var(--vm-pc,85% 50%);transition:filter .2s,height .3s cubic-bezier(.2,.7,.2,1),background-position .3s cubic-bezier(.2,.7,.2,1)}
 .tw-modes.vm-open .vm-bg{background-position:var(--vm-po,100% 50%)}
 .tw-modes button.active .vm-bg{height:calc(var(--vm-unit,90px)*var(--vm-act))}
 .tw-modes.vm-open button.active .vm-bg{height:100%}
 .tw-modes:has(.vm-preview) button.active:not(.vm-preview) .vm-bg{height:var(--vm-unit,90px)}
 .tw-modes button.vm-preview .vm-bg{height:100%;background-position:var(--vm-po,100% 50%)}
 .vm-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,7,21,.9) 0,rgba(0,7,21,.5) 40%,rgba(0,7,21,0) 75%);opacity:1;z-index:1;pointer-events:none;transition:opacity .25s}
 .tw-modes.vm-open .vm-bg::after{height:calc(var(--vm-unit,90px)*var(--vm-act))}
 .vm-bg .vm-base{position:absolute;inset:0;background-size:cover;background-repeat:no-repeat;background-position:var(--vm-pc,85% 50%);transition:filter .2s,background-position .3s cubic-bezier(.2,.7,.2,1)}
 .tw-modes.vm-open .vm-bg .vm-base,.tw-modes button.vm-preview .vm-bg .vm-base{background-position:var(--vm-po,100% 50%)}
 .vm-noimg .vm-bg{background-image:linear-gradient(135deg,var(--vm-c1,#10253d),var(--vm-c2,#0a1b2a))}
 .vm-tx{position:absolute;left:22px;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;opacity:0;transition:opacity .2s;white-space:nowrap;pointer-events:none}
 .tw-modes.vm-open .vm-tx{opacity:1;transition-delay:.1s}
 .vm-tx b{font:700 20px "Manrope",Arial,sans-serif;letter-spacing:-.01em;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.65)}
 .vm-tx small{font:500 13px "Manrope",Arial,sans-serif;color:#d3deea;margin-top:3px;text-shadow:0 1px 8px rgba(0,0,0,.65)}

 /* recortes (menu-cut) + fundo suave, como no world */
 body .tw-modes button.vm-cut .vm-bg{background:linear-gradient(90deg,#040b15 0%,#081321 100%)!important;overflow:hidden!important}
 body .tw-modes button.vm-cut .vm-bg::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:var(--vm-orig);background-size:410% 100%;background-position:0% 50%;background-repeat:no-repeat;opacity:.74;filter:blur(1.5px) brightness(.91) saturate(.86);transition:opacity .25s,filter .25s}
 body .tw-modes button.vm-cut .vm-bg .vm-base{z-index:2!important;opacity:1;background-image:var(--vm-cut)!important;background-size:cover!important;background-position:100% 100%!important;filter:none!important}
 body .tw-modes button.vm-cut .vm-bg::after{z-index:3!important;background:linear-gradient(90deg,rgba(1,7,19,.73),rgba(1,7,19,.18) 45%,transparent 70%)!important}
 body .vm-rail .tw-modes:not(.vm-open) button.vm-cut.active .vm-bg::before,
 body .vm-rail .tw-modes.vm-open:not(:has(button.vm-preview)) button.vm-cut.active .vm-bg::before,
 body .vm-rail .tw-modes.vm-open button.vm-cut.vm-preview .vm-bg::before{background-image:var(--vm-orig)!important;background-size:cover!important;background-position:var(--vm-po,100% 50%)!important;opacity:1!important;filter:none!important}
 body .vm-rail .tw-modes:not(.vm-open) button.vm-cut.active .vm-bg .vm-base,
 body .vm-rail .tw-modes.vm-open:not(:has(button.vm-preview)) button.vm-cut.active .vm-bg .vm-base,
 body .vm-rail .tw-modes.vm-open button.vm-cut.vm-preview .vm-bg .vm-base{opacity:0!important;visibility:hidden!important}
 body .vm-rail .tw-modes.vm-open:has(button.vm-preview) button.vm-cut.active:not(.vm-preview) .vm-bg .vm-base{opacity:1!important;visibility:visible!important}
 body .vm-rail .tw-modes.vm-open:has(button.vm-preview) button.active:not(.vm-preview){flex-grow:1!important}
 body .vm-rail .tw-modes.vm-open:not(:has(button.vm-preview)) button.active{flex-grow:var(--vm-grow)!important}

 /* legendas */
 body .vm-rail .tw-modes button[data-m] .vm-tx{position:absolute!important;z-index:12!important;isolation:isolate;pointer-events:none!important;visibility:visible!important}
 body .vm-rail .tw-modes.vm-open button[data-m] .vm-tx{opacity:1!important;left:20px!important;right:42%!important;top:0!important;bottom:0!important;display:flex!important;justify-content:center!important;white-space:normal!important}
 body .vm-rail .tw-modes.vm-open button[data-m] .vm-tx b{font-size:clamp(15px,1.6vw,20px)!important;line-height:1.16!important}
 body .vm-rail .tw-modes.vm-open button[data-m] .vm-tx small{font-size:12px!important;line-height:1.35!important;white-space:normal!important;color:#e3edf5!important}
 body .vm-rail .tw-modes:not(.vm-open) button[data-m] .vm-tx{opacity:1!important;left:8px!important;right:6px!important;top:auto!important;bottom:6px!important;display:block!important}
 body .vm-rail .tw-modes:not(.vm-open) button[data-m] .vm-tx b{display:block!important;max-width:120px;font-size:11px!important;line-height:1.15!important;white-space:normal!important}
 body .vm-rail .tw-modes:not(.vm-open) button[data-m] .vm-tx small{display:none!important}
}
@media(max-width:850px){.vm-rail{display:none!important}}

/* V292 — TESTA-TE: sinalética à direita, sem ampliar à altura do card.
   Aplica-se ao modo selecionado e ao preview por hover. */
@media(min-width:851px){
 body .vm-rail .tw-modes button[data-m="testa"] .vm-bg{
   background:#071526!important;
   overflow:hidden!important;
 }
 body .vm-rail .tw-modes button[data-m="testa"] .vm-bg .vm-base{
   background-image:url("menu/testa.webp")!important;
   background-color:#071526!important;
   background-repeat:no-repeat!important;
   background-size:min(84%, 335px) auto!important;
   background-position:right center!important;
   opacity:1!important;
   visibility:visible!important;
 }
 body .vm-rail .tw-modes button[data-m="testa"] .vm-bg::after{
   background:linear-gradient(90deg,#061225 0%,rgba(6,18,37,.97) 23%,rgba(6,18,37,.40) 52%,transparent 76%)!important;
   height:100%!important;
 }
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="testa"] .vm-bg .vm-base{
   background-size:310px auto!important;
   background-position:calc(50% + 18px) center!important;
 }
}

/* V295 — Geometria uniforme: qualquer card ocupa a área total, fechado,
   selecionado ou expandido (por hover). Evita faixas vazias e recortes inconsistentes. */
@media (min-width:851px){
 body .vm-rail .tw-modes button[data-m] .vm-bg,
 body .vm-rail .tw-modes.vm-open button[data-m] .vm-bg,
 body .vm-rail .tw-modes button[data-m].active .vm-bg,
 body .vm-rail .tw-modes button[data-m].vm-preview .vm-bg,
 body .vm-rail .tw-modes.vm-open button[data-m].active .vm-bg{
   position:absolute!important;inset:0!important;width:100%!important;
   height:100%!important;min-height:100%!important;transform:none!important;
   background-position:center center!important;overflow:hidden!important;
 }
 body .vm-rail .tw-modes button[data-m] .vm-bg .vm-base,
 body .vm-rail .tw-modes button.vm-cut .vm-bg .vm-base,
 body .vm-rail .tw-modes:not(.vm-open) button.vm-cut.active .vm-bg .vm-base,
 body .vm-rail .tw-modes.vm-open:not(:has(.vm-preview)) button.vm-cut.active .vm-bg .vm-base,
 body .vm-rail .tw-modes.vm-open button.vm-cut.vm-preview .vm-bg .vm-base,
 body .vm-rail .tw-modes.vm-open:has(.vm-preview) button.vm-cut.active:not(.vm-preview) .vm-bg .vm-base,
 body .vm-rail .tw-modes button[data-m="testa"] .vm-bg .vm-base,
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="testa"] .vm-bg .vm-base{
   position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
   background-size:cover!important;
   background-position:center center!important;
   background-repeat:no-repeat!important;
   opacity:1!important;visibility:visible!important;
   filter:none!important;
 }
 /* A imagem de cada modo vem da sua imagem original, não do PNG recortado.
    Assim todos usam a mesma regra de preenchimento de superfície. */
 body .vm-rail .tw-modes button.vm-cut .vm-bg .vm-base{
   background-image:var(--vm-orig)!important;
 }
 body .vm-rail .tw-modes button.vm-cut .vm-bg::before{
   display:none!important;content:none!important;
 }
 body .vm-rail .tw-modes button[data-m] .vm-bg::after,
 body .vm-rail .tw-modes button.vm-cut .vm-bg::after,
 body .vm-rail .tw-modes button[data-m="testa"] .vm-bg::after{
   position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
   background:linear-gradient(90deg,rgba(1,7,19,.88) 0%,rgba(1,7,19,.48) 39%,rgba(1,7,19,.07) 78%)!important;
   opacity:1!important;pointer-events:none!important;
 }
 body .vm-rail .tw-modes:not(.vm-open) button[data-m] .vm-bg::after{
   background:linear-gradient(0deg,rgba(1,7,19,.78),rgba(1,7,19,.04) 78%)!important;
 }
 body .vm-rail .tw-modes button[data-m="testa"] .vm-bg .vm-base{
   background-image:url('menu/testa.webp')!important;
   background-position:center center!important;
 }
 body .vm-rail .tw-modes button[data-m] .vm-tx{z-index:12!important}
}

/* V298: Tempo segue exatamente a geometria e crescimento dos restantes cards. */
@media (min-width:851px){
 body .vm-rail .tw-modes button[data-m="tempo"]{display:block!important;position:relative!important;min-height:0!important;overflow:hidden!important;flex:1 1 0!important}
 body .vm-rail .tw-modes button[data-m="tempo"].active:not(.vm-preview),
 body .vm-rail .tw-modes.vm-open:not(:has(.vm-preview)) button[data-m="tempo"].active,
 body .vm-rail .tw-modes button[data-m="tempo"].vm-preview{flex-grow:var(--vm-grow)!important}
 body .vm-rail .tw-modes.vm-open:has(.vm-preview) button[data-m="tempo"].active:not(.vm-preview){flex-grow:1!important}
 body .vm-rail .tw-modes button[data-m="tempo"] .vm-bg,
 body .vm-rail .tw-modes button[data-m="tempo"] .vm-bg .vm-base{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:100%!important;transform:none!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;opacity:1!important;visibility:visible!important}
 body .vm-rail .tw-modes button[data-m="tempo"] .vm-bg .vm-base{background-image:url('menu/tempo.webp')!important}
 body .vm-rail .tw-modes button[data-m="tempo"] .vm-bg::before{display:none!important}
}

/* V299 — enquadramento consistente dos cards Testa-te e Explorar */
@media(min-width:851px){
  body .vm-rail .tw-modes button[data-m="presencas"] .vm-bg,
  body .vm-rail .tw-modes button[data-m="presencas"] .vm-bg .vm-base{background-position:right 34%!important}
  body .vm-rail .tw-modes button[data-m="testa"] .vm-bg::before{
    content:""!important;display:block!important;position:absolute!important;inset:0!important;
    z-index:3!important;pointer-events:none!important;opacity:1!important;
    background:radial-gradient(ellipse 48% 78% at 77% 52%,rgba(23,121,214,.35),transparent 95%),
      linear-gradient(125deg,rgba(8,37,76,.35),rgba(8,80,146,.14) 68%,rgba(4,22,47,.25))!important;
    mix-blend-mode:screen;
  }
}
@media(max-width:850px){
 #mxSide .mxs-it[data-mode="testa"]::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 78% 40%,rgba(20,117,209,.28),transparent 76%);mix-blend-mode:screen}
 #mxSide .mxs-it[data-mode="presencas"]{background-position:right center!important}
}

/* V312 — no rail vertical fechado, conservar a nuvem no enquadramento
   do card Tempo. A versão horizontal e o hover mantêm o layout anterior. */
@media(min-width:851px){
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="tempo"].active .vm-bg,
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="tempo"].active .vm-bg .vm-base{
   background-position:100% center!important;
 }
}


/* V354 — Testa-te e Tempo: trazer os elementos principais para o lado visível
   dos cards fechados. O recorte à direita da imagem faz as placas e nuvens
   deslocarem-se para a esquerda dentro de cada card. */
@media (min-width:851px){
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="testa"] .vm-bg,
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="testa"] .vm-bg .vm-base,
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="tempo"] .vm-bg,
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="tempo"] .vm-bg .vm-base{
  background-position:100% center!important;
 }
 body .vm-rail .tw-modes.vm-open button[data-m="testa"] .vm-bg .vm-base,
 body .vm-rail .tw-modes.vm-open button[data-m="tempo"] .vm-bg .vm-base{
  background-position:88% center!important;
 }
}

/* V361 — enquadramento exclusivo dos cards em destaque.
   Comunidade: deslocar a imagem para a direita (82%).
   Tempo: deslocar a imagem para a esquerda (112%).
   Não altera os cards recolhidos nem os restantes separadores. */
@media (min-width:851px){
 body .vm-rail .tw-modes button[data-m="tribos"].active .vm-bg,
 body .vm-rail .tw-modes button[data-m="tribos"].active .vm-bg .vm-base,
 body .vm-rail .tw-modes button[data-m="tribos"].vm-preview .vm-bg,
 body .vm-rail .tw-modes button[data-m="tribos"].vm-preview .vm-bg .vm-base{
   background-position:82% center!important;
 }
 body .vm-rail .tw-modes button[data-m="tempo"].active .vm-bg,
 body .vm-rail .tw-modes button[data-m="tempo"].active .vm-bg .vm-base,
 body .vm-rail .tw-modes button[data-m="tempo"].vm-preview .vm-bg,
 body .vm-rail .tw-modes button[data-m="tempo"].vm-preview .vm-bg .vm-base{
   background-position:112% center!important;
 }
}


/* V363 — enquadramento real das imagens panorâmicas nos cards
   verticalmente expandidos de Tempo e Comunidade (desktop).
   Os cortes V361 falhavam porque, com vm-cut, a camada visível é ::before,
   enquanto .vm-base está oculta. Ajustar todas as camadas efetivamente usadas.
   O estado recolhido mantém o enquadramento V354. */
@media (min-width:851px){
  body .vm-rail .tw-modes button[data-m="tribos"].active,
  body .vm-rail .tw-modes button[data-m="tribos"].vm-preview,
  body .vm-rail .tw-modes button[data-m="tempo"].active,
  body .vm-rail .tw-modes button[data-m="tempo"].vm-preview{
    --vm-po:76% 50%;
  }
  body .vm-rail .tw-modes button[data-m="tribos"].active .vm-bg,
  body .vm-rail .tw-modes button[data-m="tribos"].active .vm-bg .vm-base,
  body .vm-rail .tw-modes button[data-m="tribos"].vm-preview .vm-bg,
  body .vm-rail .tw-modes button[data-m="tribos"].vm-preview .vm-bg .vm-base,
  body .vm-rail .tw-modes button[data-m="tempo"].active .vm-bg,
  body .vm-rail .tw-modes button[data-m="tempo"].active .vm-bg .vm-base,
  body .vm-rail .tw-modes button[data-m="tempo"].vm-preview .vm-bg,
  body .vm-rail .tw-modes button[data-m="tempo"].vm-preview .vm-bg .vm-base{
    background-position:76% 50%!important;
  }
  body .vm-rail .tw-modes button[data-m="tribos"].active.vm-cut .vm-bg::before,
  body .vm-rail .tw-modes button[data-m="tribos"].vm-preview.vm-cut .vm-bg::before,
  body .vm-rail .tw-modes button[data-m="tempo"].active.vm-cut .vm-bg::before,
  body .vm-rail .tw-modes button[data-m="tempo"].vm-preview.vm-cut .vm-bg::before{
    background-position:76% 50%!important;
  }
}

/* V364 — plano de imagem independente, visível apenas no destaque vertical.
   Evita as regras concorrentes de .vm-bg, .vm-base e ::before.
   As fotografias originais são usadas diretamente, sem frames da referência. */
@media (min-width:851px){
 body .vm-rail .tw-modes button[data-m] .vm-bg .vm-focus-img{
   display:none!important;position:absolute!important;inset:0!important;
   width:100%!important;height:100%!important;object-fit:cover!important;
   pointer-events:none!important;user-select:none!important;z-index:6!important;
   opacity:1!important;visibility:visible!important;transform:none!important;
 }
 body .vm-rail .tw-modes button[data-m="tribos"].active .vm-bg .vm-focus-img,
 body .vm-rail .tw-modes button[data-m="tribos"].vm-preview .vm-bg .vm-focus-img,
 body .vm-rail .tw-modes button[data-m="tempo"].active .vm-bg .vm-focus-img,
 body .vm-rail .tw-modes button[data-m="tempo"].vm-preview .vm-bg .vm-focus-img{display:block!important;}
 body .vm-rail .tw-modes button[data-m="tribos"] .vm-bg .vm-focus-img{object-position:71% center!important;}
 body .vm-rail .tw-modes button[data-m="tempo"] .vm-bg .vm-focus-img{object-position:76% center!important;}
 /* O gradiente mantém a legibilidade do texto do card, sem ocultar o ponto focal. */
 body .vm-rail .tw-modes button[data-m="tribos"] .vm-bg::after,
 body .vm-rail .tw-modes button[data-m="tempo"] .vm-bg::after{z-index:7!important;}
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="tribos"].active .vm-bg::after,
 body .vm-rail .tw-modes:not(.vm-open) button[data-m="tempo"].active .vm-bg::after{
    background:linear-gradient(0deg,rgba(1,7,19,.8),transparent 65%)!important;
 }
 body .vm-rail .tw-modes.vm-open button[data-m="tribos"] .vm-bg::after,
 body .vm-rail .tw-modes.vm-open button[data-m="tempo"] .vm-bg::after{
    background:linear-gradient(90deg,rgba(1,7,19,.80),rgba(1,7,19,.13) 55%,transparent 82%)!important;
 }
}

/* END pt-world-cards.css */

/* BEGIN pt-explore-left.css */
/* THE MAPPP PT — coluna esquerda do Explorar no sistema do WORLD: concelho em relevo 3D, bandeira nos reclamados, bloco do reclamante e CTA. */
#mx-explore-ui{display:none}
@media(min-width:851px){
 html[data-mxmode="presencas"] body:not(.back-in-time) #mx-explore-ui{display:flex;flex-direction:column;gap:6px;margin-top:6px;min-width:0;font-family:"Manrope","Segoe UI",Arial,sans-serif}
 html[data-mxmode="presencas"] body:not(.back-in-time) .intro{padding-top:28px;padding-bottom:20px}
 html[data-mxmode="presencas"] body:not(.back-in-time) .intro-present h1{font-size:clamp(30px,3.4vw,50px);margin-bottom:14px}
 html[data-mxmode="presencas"] body:not(.back-in-time) .intro-present .intro-rule{margin:0 0 12px}
 #mx-explore-country{flex:none;display:flex;justify-content:flex-end;text-align:right;color:#eaf6ff;font:800 clamp(19px,2.2vw,30px)/1.12 "Manrope",Arial,sans-serif;letter-spacing:-.025em;min-height:34px}
 #mx-explore-country[hidden]{display:none}
 #mx-explore-country.is-hint{font:600 12px/1.4 "Manrope",sans-serif;color:#8aa3bd;letter-spacing:.02em}
 #mx-explore-focus{flex:none;position:relative;display:flex;align-items:center;justify-content:center;height:clamp(170px,32vh,330px);overflow:hidden;isolation:isolate}
 #mx-explore-focus::before{content:"";position:absolute;inset:10% -6%;background:radial-gradient(ellipse at 50% 50%,rgba(72,186,255,.52),rgba(31,141,255,.24) 29%,rgba(10,119,255,.08) 48%,transparent 70%);filter:blur(9px);pointer-events:none}
 #mx-explore-focus svg{display:block;width:100%;height:100%;max-height:94%;overflow:visible;filter:drop-shadow(0 1px 1px rgba(0,0,0,1)) drop-shadow(0 4px 6px rgba(0,0,0,.85)) drop-shadow(0 0 12px rgba(56,177,255,.22));position:relative;z-index:1}
 #mx-explore-focus svg .mx-top{stroke:#73afff;stroke-opacity:.8;stroke-width:.38;vector-effect:non-scaling-stroke}
 #mx-explore-focus:has(.mx-flagpin){overflow:visible}
 #mx-explore-focus .mx-flagpin{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;z-index:3;pointer-events:none;overflow:visible;filter:drop-shadow(0 4px 6px rgba(0,10,28,.5))}
 #mx-explore-focus .mx-flagpin>.f5{position:absolute;left:0;top:0;width:0;height:0}
 #mx-explore-focus .mx-flagpin .f5-cv{position:absolute;left:-6px;top:-68px;display:block;width:46px;height:72px;max-width:none}
 #mx-explore-ui .mx-explore-owner{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:11px 13px;background:linear-gradient(120deg,rgba(18,43,67,.85),rgba(7,23,43,.95));border:1px solid rgba(88,154,210,.24);box-shadow:inset 0 1px 0 rgba(200,231,255,.08)}
 #mx-explore-ui .mx-explore-owner[hidden]{display:none}
 #mx-explore-ui .mx-owner-meta{display:flex;flex-direction:column;gap:5px;min-width:0}
 #mx-explore-ui .mx-owner-label{font:750 10px/1.15 "Manrope",sans-serif;letter-spacing:.1em;color:#99bfdf;text-transform:uppercase}
 #mx-explore-ui .mx-owner-name{font:800 clamp(14px,1.2vw,18px)/1.18 "Manrope",sans-serif;color:#fff;overflow-wrap:anywhere}
 #mx-explore-ui .mx-owner-logo{max-width:62px;max-height:55px;object-fit:contain}
 #mx-explore-ui .mx-owner-logo[hidden]{display:none}
 #mx-explore-cta{flex:none;position:relative;padding:13px 14px;background:radial-gradient(ellipse at 8% -18%,rgba(11,133,255,.31),transparent 54%),linear-gradient(125deg,#0b2342,#061427);border:1px solid rgba(59,144,233,.34);box-shadow:inset 0 1px 0 rgba(119,202,255,.14),0 0 16px rgba(4,82,170,.12);--mx-country-fill:#1a7de0}
 #mx-explore-cta::before{content:"";position:absolute;left:14px;right:14px;top:0;height:1px;background:linear-gradient(90deg,transparent,#2b9cff,transparent);pointer-events:none}
 #mx-explore-cta.is-claimed{background:radial-gradient(ellipse at 8% -18%,color-mix(in srgb,var(--mx-country-fill) 40%,transparent),transparent 54%),linear-gradient(125deg,color-mix(in srgb,var(--mx-country-fill) 22%,#0b2342),#071423);border-color:color-mix(in srgb,var(--mx-country-fill) 52%,rgba(89,170,255,.35))}
 #mx-explore-claim{appearance:none;display:flex;align-items:center;justify-content:center;width:100%;padding:0;border:0;background:none;color:#fff;font:800 11px/1.3 "Manrope",sans-serif;letter-spacing:.1em;cursor:pointer;text-transform:uppercase;text-shadow:0 0 12px rgba(30,146,255,.32)}
 #mx-explore-claim:disabled{cursor:default;opacity:.58}
 #mx-explore-claim:hover:not(:disabled){opacity:.9}
}

/* Tempo (desktop): com o tooltip da localidade aberto na coluna esquerda, ele aparece logo abaixo do título;
   os cards "mais quente / mais frio" e a legenda descem para depois dele. */
@media(min-width:851px){
 .mx-intro-tempo:has(>.mx-tip.inpanel.show){display:flex!important;flex-direction:column}
 .mx-intro-tempo:has(>.mx-tip.inpanel.show)>*{order:5}
 .mx-intro-tempo:has(>.mx-tip.inpanel.show)>.mx-dayrow{order:0;margin-bottom:-34px}
 .mx-intro-tempo:has(>.mx-tip.inpanel.show)>.mx-tip.inpanel{order:1;margin:4px 0 20px}
 .mx-intro-tempo:has(>.mx-tip.inpanel.show)>.mx-cards{order:2}
 .mx-intro-tempo:has(>.mx-tip.inpanel.show)>.mx-legend{order:3}
}

/* END pt-explore-left.css */

/* BEGIN pt-omit.css */
/* THE MAPPP PT — funcionalidades OMITIDAS da versão visível (nada foi apagado). Ver LEIA-ME_FUNCIONALIDADES_OMITIDAS.txt */
#visitasBtn,#shopBtn,#shop3dModal,
.mx-drawer .mx-dw[data-mode="backtime"],
#mxSide .mxs-it[data-mode="backtime"],
.vm-rail .tw-modes button[data-m="backtime"],
#backtimeToggle,.bit-badge{display:none!important}

/* END pt-omit.css */

/* BEGIN mx-rain-v286.css */
/* THE MAPPP V321 · chuva integrada no layout da página */
#mxRainCanvas{position:absolute;inset:0;z-index:24;pointer-events:none;display:none}
body.mx-rain-on #mxRainCanvas{display:block}
#mxRainUI{position:absolute;z-index:88;right:64px;bottom:16px;display:none;width:286px;max-width:calc(100% - 86px);box-sizing:border-box;background:rgba(6,18,31,.96);border:1px solid rgba(255,255,255,.12);border-radius:0;box-shadow:0 10px 24px rgba(0,0,0,.38);color:#f0f6ff;padding:12px 12px 11px;font-family:Manrope,'Open Sans',Arial,sans-serif;pointer-events:auto;backdrop-filter:none;-webkit-backdrop-filter:none}
body.mx-tempo #mxRainUI:not(.mx-rain-closed){display:block}
#mxRainUI button{font-family:inherit;cursor:pointer;border-radius:0}
#mxRainUI .mx-rain-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0 0 8px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.08)}
#mxRainUI .mx-rain-title{font:800 14px/1 Manrope,'Open Sans',Arial,sans-serif;letter-spacing:.12em;color:#eef6ff}
#mxRainUI .mx-rain-time-wrap{padding:2px 0 8px;text-align:center;display:flex;flex-direction:column;gap:2px}
#mxRainUI .mx-rain-time-label{font-size:10px;letter-spacing:.13em;font-weight:800;color:#83bde1}
#mxRainUI #mxRainTime{display:block;min-width:0;font-size:24px;font-weight:800;line-height:1.2;color:#fff;white-space:normal;text-align:center;font-variant-numeric:tabular-nums;text-transform:capitalize;letter-spacing:-.02em}
#mxRainUI .mx-rain-track{display:flex;align-items:center;gap:6px;margin:4px 0 2px}
#mxRainUI #mxRainBack,#mxRainUI #mxRainForward,#mxRainUI #mxRainPlay{display:grid;place-items:center;flex:0 0 38px;min-width:38px;height:36px;padding:0 2px;background:#0d2237;border:1px solid rgba(255,255,255,.12);color:#daebf8;font-size:11px;font-weight:700}
#mxRainUI #mxRainPlay{font-size:16px}
#mxRainUI #mxRainRange{flex:1;min-width:35px;height:22px;touch-action:none;pointer-events:auto;user-select:none;-webkit-user-select:none;cursor:ew-resize}
#mxRainUI .mx-rain-scale{display:flex;justify-content:space-between;margin:4px 0 10px;font-size:10px;color:#9ec5e0}
#mxRainUI .mx-rain-legend-title{font-size:10px;font-weight:800;color:#abc9e4;letter-spacing:.045em;margin-top:6px}
#mxRainUI .mx-rain-legend{display:flex;align-items:center;gap:8px;font-size:11px;margin-top:6px;color:#d0deed}
#mxRainUI .mx-rain-grad{height:11px;flex:1;min-width:20px;background:linear-gradient(90deg,#e8e036,#f2892f,#d94155,#a449dc,#e3bdfb)}
#mxRainUI #mxRainStatus{display:block;margin-top:10px;min-height:15px;font-size:10px;line-height:1.4;color:#9dc1de;text-align:left}
#mxRainUI .mx-rain-close{width:28px;height:28px;display:grid;place-items:center;background:#071523;color:#e6f4ff;border:1px solid rgba(255,255,255,.12);font-size:20px;line-height:1;padding:0}
#mxRainUI .mx-rain-close:hover{background:#14324d;color:#fff}
#mxRainUI.mx-rain-closed{display:none!important}

#mxRainDock{display:grid;place-items:center}
#mxRainDock svg{width:18px;height:18px;display:block}
#mxRainDock[aria-pressed="true"],body.mx-rain-on #mxRainDock{background:#173759;border-color:#6e97d6;color:#fff}
.back-in-time #mxRainDock{background:rgba(20,15,8,.76);border-color:rgba(232,204,147,.15);color:#e5d2a9}
.back-in-time #mxRainDock[aria-pressed="true"]{background:#34291a;border-color:rgba(232,204,147,.28)}

/* esconder por completo o crédito técnico do relevo */
.mx-credit{display:none!important}

/* reposicionamento do selo IPMA em mobile */
@media(max-width:700px){
  body.mx-tempo .mx-ipma{display:flex;left:10px;right:auto;bottom:10px;z-index:20;gap:6px;padding:4px 8px;font-size:10px;box-shadow:0 3px 10px rgba(0,0,0,.22)}
  body.mx-tempo .mx-ipma img{height:16px;padding:3px 5px}
  body.mx-tempo .mx-ipma .txtlogo{font-size:10px;padding:1px 4px}
  #mxRainUI{right:54px;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:min(254px,calc(100vw - 66px));max-width:calc(100vw - 66px);padding:10px}
  #mxRainUI #mxRainTime{font-size:22px}
  #mxRainUI #mxRainBack,#mxRainUI #mxRainForward,#mxRainUI #mxRainPlay{flex-basis:34px;min-width:34px;height:34px}
}
@media(min-width:701px){
  body.mx-tempo .mx-ipma{right:82px;left:auto;bottom:24px}
}

/* Somente o separador Tempo apresenta o botão da chuva. */
body:not(.mx-tempo) #mxRainDock{display:none!important}

#mxRainUI .mx-rain-title{display:inline-flex;align-items:center;gap:7px}
#mxRainUI .mx-rain-title-icon{width:18px;height:18px;display:block;color:#9fd8ff;flex:none}
/* END mx-rain-v286.css */

/* BEGIN mx-v306-launch.css */
/* V306 - onboarding, ranking do Testa-te e identidade dos pontos */
.mx-v306-coin{width:17px;height:17px;display:inline-block;vertical-align:-3px;flex:none;filter:drop-shadow(0 0 3px rgba(65,224,123,.28))}
.hdr-btn .hb-pt{display:inline-flex;align-items:center;gap:5px;color:#80ecac!important}
.mx-v306-ranks{max-width:430px;margin:16px 0 20px;border:1px solid rgba(92,149,188,.24);background:linear-gradient(145deg,rgba(9,31,51,.92),rgba(5,18,33,.88));border-radius:10px;padding:15px;box-sizing:border-box}
.mx-v306-ranks h3{margin:0;font:750 14px/1.4 Manrope,'Open Sans',Arial,sans-serif;color:#ecf6ff;letter-spacing:.015em}
.mx-v306-ranks .rv-desc{margin:3px 0 12px;color:#94aabf;font:12px/1.5 Manrope,'Open Sans',Arial,sans-serif}
.mx-v306-ranks .rv-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;background:#071c2d;border-radius:7px}
.mx-v306-ranks .rv-tabs button{padding:9px 6px;cursor:pointer;border:0;border-radius:5px;background:transparent;color:#91aabe;font:700 12px Manrope,Arial,sans-serif}
.mx-v306-ranks .rv-tabs button.active{background:#1c4665;color:white;box-shadow:0 1px 5px #0004}
.mx-v306-ranks ol{list-style:none;margin:10px 0 0;padding:0}
.mx-v306-ranks li{display:flex;align-items:center;gap:9px;padding:9px 3px;border-bottom:1px solid rgba(170,215,255,.09);font:12px Manrope,Arial,sans-serif;color:#d3e6f7}
.mx-v306-ranks li:last-child{border-bottom:0}
.mx-v306-ranks .rv-rank{width:25px;color:#8fabbe;font-weight:800;font-variant-numeric:tabular-nums}
.mx-v306-ranks .rv-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-v306-ranks .rv-name small{display:block;color:#7f9cb5;font-size:10px;margin-top:2px}
.mx-v306-ranks .rv-score{display:flex;align-items:center;gap:3px;color:#80edac;font-weight:800;font-variant-numeric:tabular-nums}
.mx-v306-ranks .rv-empty{padding:14px 4px;color:#99b0c3;font:12px/1.5 Manrope,Arial,sans-serif}
.mx-v306-ranks .rv-foot{font:10px/1.5 Manrope,Arial,sans-serif;color:#7895ae;margin:8px 0 0}
body.mx-testa .mx-v306-ranks{display:block!important}
@media(max-width:850px){body.mx-testa .mx-v306-ranks{margin-top:12px;margin-bottom:18px;padding:12px;max-width:100%}}
.mx-v306-welcome{position:fixed;inset:0;z-index:99998;background:rgba(1,9,19,.78);display:grid;place-items:center;padding:20px;box-sizing:border-box;backdrop-filter:blur(5px)}
.mx-v306-welcome .rv-wcard{position:relative;width:min(100%,420px);padding:30px 26px 25px;box-sizing:border-box;background:linear-gradient(155deg,#12334e,#071a30 73%);border:1px solid rgba(113,193,247,.32);border-radius:14px;box-shadow:0 20px 65px rgba(0,0,0,.55);color:#e9f7ff;font-family:Manrope,'Open Sans',Arial,sans-serif}
.mx-v306-welcome .rv-close{position:absolute;right:12px;top:10px;cursor:pointer;background:transparent;color:#b6cee0;font-size:26px;border:0;line-height:1}
.mx-v306-welcome .rv-brand{font-size:11px;font-weight:900;letter-spacing:.2em;color:#60e8a2}
.mx-v306-welcome h2{font:750 25px/1.25 Manrope,Arial,sans-serif;letter-spacing:-.04em;margin:13px 0}
.mx-v306-welcome p{font:13px/1.65 Manrope,Arial,sans-serif;color:#bcd0e4;margin:0 0 22px}
.mx-v306-welcome .rv-cta{cursor:pointer;width:100%;padding:13px;border:0;border-radius:7px;background:#2481c1;color:white;font:800 13px Manrope,Arial,sans-serif}

/* V307 — apresentação institucional com logótipo oficial */
.mx-v306-welcome{overflow-y:auto;overscroll-behavior:contain;padding:22px 14px}
.mx-v306-welcome .rv-wcard{width:min(100%,590px);max-height:calc(100dvh - 44px);overflow-y:auto;padding:28px 34px 26px;background:linear-gradient(155deg,#102e49 0%,#071b30 70%,#061727 100%)}
.mx-v306-welcome .rv-welcome-logo{display:flex;align-items:center;justify-content:center;margin:0 30px 22px;min-height:65px}
.mx-v306-welcome .rv-welcome-logo img{max-width:100%;width:min(340px,100%);height:auto;max-height:95px;object-fit:contain}
.mx-v306-welcome h2{font:750 clamp(19px,3.5vw,24px)/1.32 Manrope,'Open Sans',Arial,sans-serif;letter-spacing:-.025em;color:#f1f8ff;margin:0 0 20px}
.mx-v306-welcome p{font:13px/1.72 Manrope,'Open Sans',Arial,sans-serif;color:#bed3e5;margin:0 0 14px}
.mx-v306-welcome p:last-of-type{margin:0 0 22px}
.mx-v306-welcome p strong{color:#f0faff;font-weight:750}
@media(max-width:600px){.mx-v306-welcome{padding:12px}.mx-v306-welcome .rv-wcard{max-height:calc(100dvh - 24px);padding:25px 20px 20px}.mx-v306-welcome .rv-welcome-logo{margin:0 22px 17px}.mx-v306-welcome .rv-welcome-logo img{width:min(265px,100%)}.mx-v306-welcome h2{font-size:19px;margin-bottom:16px}.mx-v306-welcome p{font-size:12px;line-height:1.65;margin-bottom:12px}}

/* V309: ranking integrado na linguagem plana dos restantes cards Testa-te. */
body.mx-testa .mx-v306-ranks{width:100%;max-width:340px;margin:12px 0 18px;padding:14px 16px 16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:0;box-shadow:none;font-family:"Open Sans",Arial,sans-serif}
body.mx-testa .mx-v306-ranks h3{font:700 10.5px "Open Sans",Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#8ea3bb}
body.mx-testa .mx-v306-ranks .rv-desc{font:12px/1.5 "Open Sans",Arial,sans-serif;color:#8294aa;margin:8px 0 10px}
body.mx-testa .mx-v306-ranks .rv-tabs{display:flex;gap:0;padding:0;background:none;border:1px solid rgba(255,255,255,.12);border-radius:0}
body.mx-testa .mx-v306-ranks .rv-tabs button{flex:1;border:0;border-radius:0;padding:9px 6px;color:#a5b6c9;background:transparent;box-shadow:none;font:700 10px "Open Sans",Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
body.mx-testa .mx-v306-ranks .rv-tabs button+button{border-left:1px solid rgba(255,255,255,.12)}
body.mx-testa .mx-v306-ranks .rv-tabs button.active{background:rgba(255,255,255,.10);color:#f3f8ff;box-shadow:inset 0 -2px #f2c230}
body.mx-testa .mx-v306-ranks li{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08);font:12px "Open Sans",Arial,sans-serif;color:#c9d4e3}
body.mx-testa .mx-v306-ranks .rv-rank{color:#8ea3bb}
body.mx-testa .mx-v306-ranks .rv-score{color:#e8eef7}
body.mx-testa .mx-v306-ranks .rv-foot{color:#8294aa;font:10px/1.5 "Open Sans",Arial,sans-serif;margin-top:12px}
@media(max-width:850px){body.mx-testa .mx-v306-ranks{width:100%;max-width:340px;padding:12px 14px}}

/* V311: official transparent THE MAPPP point tokens, no frame/background. */
.mx-v306-coin{width:18px;height:18px;object-fit:contain;display:inline-block;vertical-align:middle;flex:0 0 auto;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;filter:none!important}
.mx-v306-rank-icon{width:19px;height:19px}

/* END mx-v306-launch.css */
