/* Rota · Mapa interativo — site */
/* o tema (Hello reset.css) pinta todo button:hover/:focus de rosa (#c36): neutraliza aqui; regras próprias abaixo têm prioridade */
.rota-mapa-app :where(button, [type=button]):hover, .rota-mapa-app :where(button, [type=button]):focus { background-color: transparent; color: inherit; text-decoration: none; }
@property --z { syntax: '<number>'; inherits: false; initial-value: 1; }
.rota-mapa-app { position: relative; width: 100%; font-family: 'Hanken Grotesk', system-ui, sans-serif; color: #26304A; }
.rota-mapa-app:not(.is-montado) { min-height: 420px; background: #93AC35; }
.rota-mapa-app .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rota-mapa-app .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barra: filtros + busca */
.rota-mapa-app .rota-mapa-bar { max-width: 1320px; margin: 0 auto 24px; padding: 0 56px; display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; box-sizing: border-box; }
.rota-mapa-app .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rota-mapa-app .chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(38,48,74,.32); background: transparent; border-radius: 999px; padding: 9px 14px; font: 500 14px/1.2 'Hanken Grotesk', sans-serif; color: #26304A; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.rota-mapa-app .chip:hover { border-color: #26304A; }
.rota-mapa-app .chip[aria-pressed="true"] { background: #26304A; border-color: #26304A; color: #F4EEE4; }
.rota-mapa-app .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(244,238,228,.8); }
.rota-mapa-app .chip small { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.rota-mapa-app .msearch { position: relative; display: flex; align-items: center; flex: 0 1 300px; margin: 0; }
.rota-mapa-app .msearch .ico { position: absolute; left: 14px; color: #26304A; opacity: .9; pointer-events: none; }
.rota-mapa-app .msearch input { width: 100%; height: 42px; border: 1px solid rgba(38,48,74,.45); border-radius: 999px; background: transparent; padding: 0 16px 0 40px; font: 500 14px 'Hanken Grotesk', sans-serif; color: #26304A; -webkit-appearance: none; appearance: none; box-sizing: border-box; box-shadow: none; }
.rota-mapa-app .msearch input::placeholder { color: #26304A; opacity: .8; }
.rota-mapa-app .msearch input:focus { outline: 2px solid #26304A; outline-offset: 1px; background: transparent; color: #26304A; }

/* quadro do mapa */
.rota-mapa-app .mframe { position: relative; }
.rota-mapa-app .mframe::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 1px 0 rgba(38,48,74,.22), inset 0 -1px 0 rgba(38,48,74,.22); }
.rota-mapa-app .mv { --edge: max(16px, calc((100% - 1320px) / 2 + 56px)); position: relative; width: 100%; box-sizing: border-box; overflow: hidden; overflow: clip; aspect-ratio: 5079 / 2480; max-height: calc(100svh - 84px); min-height: 420px; background: #90A830; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.rota-mapa-app .mv:focus-visible { outline: 2px solid #26304A; outline-offset: -2px; }
.rota-mapa-app .mv.is-zoomed { touch-action: none; }
.rota-mapa-app .mv.is-drag { cursor: grabbing; }
.rota-mapa-app .ml { position: absolute; left: 0; top: 0; transform-origin: 0 0; --k: 1; }
.rota-mapa-app .mfundo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; -webkit-user-drag: none; margin: 0; }
.rota-mapa-app .mitens { position: absolute; inset: 0; pointer-events: none; }
.rota-mapa-app .mitem { position: absolute; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; pointer-events: none; -webkit-user-drag: none; }

/* pinos */
.rota-mapa-app .pin { position: absolute; width: 30px; height: 38px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; transform: translate(-50%, -100%) scale(calc(var(--k) * var(--z))); transform-origin: 50% 100%; transition: --z .25s cubic-bezier(.2,.7,.2,1), opacity .3s; filter: drop-shadow(0 2px 2px rgba(20,25,10,.35)); }
.rota-mapa-app .pin::before { content: ""; position: absolute; inset: -7px -7px -3px; }
.rota-mapa-app .pin svg { width: 100%; height: 100%; display: block; fill: var(--c); overflow: visible; }
.rota-mapa-app .pin > b { position: absolute; left: 0; right: 0; top: 0; height: 29px; display: grid; place-items: center; font: 700 13px/1 'Hanken Grotesk', sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rota-mapa-app .pin__lb { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); white-space: nowrap; background: #26304A; color: #F4EEE4; font: 600 12.5px/1 'Hanken Grotesk', sans-serif; padding: 7px 10px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.rota-mapa-app .pin:hover, .rota-mapa-app .pin:focus-visible { --z: 1.15; z-index: 3; }
.rota-mapa-app .pin:focus-visible { outline: none; }
.rota-mapa-app .pin:focus-visible svg, .rota-mapa-app .pin.is-sel svg { stroke: #fff; stroke-width: 2.2; }
.rota-mapa-app .pin:hover .pin__lb, .rota-mapa-app .pin:focus-visible .pin__lb { opacity: 1; transform: translate(-50%, 0); }
.rota-mapa-app .pin.is-sel { --z: 1.35; z-index: 4; }
.rota-mapa-app .mv.has-sel .pin:not(.is-sel):not(:hover) { opacity: .55; }
.rota-mapa-app .pin.is-off { opacity: 0 !important; pointer-events: none; --z: .5; }

/* casas tombadas: área de clique sobre a casinha do desenho (escala com o mapa; o rótulo não).
   Só um anel em volta da casa, sem preenchimento; o fundo fica sempre transparente (o reset do tema pinta botão de rosa). */
.rota-mapa-app .mcasas { position: absolute; inset: 0; }
.rota-mapa-app .casa, .rota-mapa-app .casa:hover, .rota-mapa-app .casa:focus, .rota-mapa-app .casa:active { background: transparent !important; color: inherit !important; box-shadow: none !important; outline: none !important; text-decoration: none !important; }
.rota-mapa-app .casa { position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%); transition: opacity .3s; -webkit-tap-highlight-color: transparent; }
.rota-mapa-app .casa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: calc(2.5px * var(--k)) solid #F4EEE4; background: none; opacity: 0; transform: scale(.92); transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); box-shadow: 0 0 0 calc(1px * var(--k)) rgba(38,48,74,.35), inset 0 0 0 calc(1px * var(--k)) rgba(38,48,74,.25); }
.rota-mapa-app .casa:hover::before, .rota-mapa-app .casa:focus-visible::before { opacity: 1; transform: scale(1); background: none; border-color: #F4EEE4; box-shadow: 0 0 0 calc(1px * var(--k)) rgba(38,48,74,.35), inset 0 0 0 calc(1px * var(--k)) rgba(38,48,74,.25); }
.rota-mapa-app .casa__lb { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 4px) scale(var(--k)); transform-origin: 50% 100%; white-space: nowrap; background: #8F5A1D; color: #F4EEE4; font: 600 12.5px/1 'Hanken Grotesk', sans-serif; padding: 7px 10px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.rota-mapa-app .casa:hover .casa__lb, .rota-mapa-app .casa:focus-visible .casa__lb { opacity: 1; transform: translate(-50%, -6px) scale(var(--k)); z-index: 2; }
.rota-mapa-app .casa:hover, .rota-mapa-app .casa:focus-visible { z-index: 2; }
/* filtro Patrimônio ou busca: anel tracejado discreto em todas; selecionada: anel cobre */
.rota-mapa-app .mv.so-casas .casa::before, .rota-mapa-app .casa.is-hit::before { opacity: .9; transform: scale(1); border-style: dashed; animation: rotaCasa 2.4s ease-in-out infinite; }
.rota-mapa-app .mv.so-casas .casa:hover::before, .rota-mapa-app .casa.is-hit:hover::before { border-style: solid; animation: none; opacity: 1; }
.rota-mapa-app .casa.is-sel::before { opacity: 1; transform: scale(1); background: none; border: calc(3px * var(--k)) solid #8F5A1D; box-shadow: 0 0 0 calc(2px * var(--k)) #F4EEE4; animation: none; }
.rota-mapa-app .casa.is-off { opacity: 0; pointer-events: none; }
@keyframes rotaCasa { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .rota-mapa-app .casa::before { animation: none !important; } }
/* pinos: idem, nunca pegar o fundo do tema */
.rota-mapa-app .pin, .rota-mapa-app .pin:hover, .rota-mapa-app .pin:focus, .rota-mapa-app .pin:active { background: none !important; box-shadow: none !important; }
.rota-mapa-app .ficha__foto { margin: -18px -20px 14px; aspect-ratio: 2.3 / 1; overflow: hidden; background: #DFD3BF; border-radius: 0; }
.rota-mapa-app .ficha__foto img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; margin: 0; border-radius: 0; }
.rota-mapa-app .ficha--casa .ficha__x { background: rgba(244,238,228,.92); top: 10px; right: 10px; }
.rota-mapa-app .ficha .bdg .ico { width: 16px; height: 16px; color: #fff; }
.rota-mapa-app .mlg .bdg .ico { width: 15px; height: 15px; color: #fff; }

/* dica e zoom */
.rota-mapa-app .mhint { position: absolute; left: var(--edge); top: 16px; z-index: 5; margin: 0; background: rgba(38,48,74,.88); color: #F4EEE4; font-size: 12.5px; font-weight: 500; line-height: 1.3; padding: 8px 14px; border-radius: 999px; pointer-events: none; transition: opacity .5s; max-width: calc(100% - 80px); }
.rota-mapa-app .mhint.is-gone { opacity: 0; }
.rota-mapa-app .mz { position: absolute; right: var(--edge); top: 16px; z-index: 7; display: flex; flex-direction: column; background: #F4EEE4; border-radius: 2px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.rota-mapa-app .mz button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: #26304A; padding: 0; margin: 0; border-radius: 0; }
.rota-mapa-app .mz button + button { border-top: 1px solid rgba(38,48,74,.16); }
.rota-mapa-app .mz button:hover { background: #EAE1D2; }
.rota-mapa-app .mz button:disabled { opacity: .3; cursor: default; background: none; }

/* ficha sobre o pino */
.rota-mapa-app .ficha { position: absolute; left: 0; top: 0; right: auto; bottom: auto; height: auto; animation: none; z-index: 8; width: min(360px, calc(100% - 16px)); max-height: none; overflow: visible; box-sizing: border-box; background: #F4EEE4; border-top: 4px solid var(--c); border-radius: 3px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.55); padding: 18px 20px 20px; cursor: auto; margin: 0; }
.rota-mapa-app .ficha::after { content: ""; position: absolute; left: var(--seta, 50%); bottom: -9px; width: 18px; height: 18px; margin-left: -9px; background: #F4EEE4; transform: rotate(45deg); box-shadow: 4px 4px 8px -4px rgba(0,0,0,.25); }
.rota-mapa-app .ficha.is-baixo::after { bottom: auto; top: -13px; background: var(--c); box-shadow: none; }
.rota-mapa-app .ficha.is-lado::after { bottom: auto; top: var(--seta-y, 50%); margin: -9px 0 0; left: -9px; box-shadow: -3px 3px 6px -3px rgba(0,0,0,.2); }
.rota-mapa-app .ficha.is-lado:not(.is-dir)::after { left: auto; right: -9px; box-shadow: 3px -3px 6px -3px rgba(0,0,0,.2); }
.rota-mapa-app .ficha[hidden] { display: none; }
.rota-mapa-app .ficha.is-fora { visibility: hidden; }
.rota-mapa-app .ficha.is-anim { animation: rotaFichaIn .3s cubic-bezier(.2,.7,.2,1); }
@keyframes rotaFichaIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.rota-mapa-app .ficha__x { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #26304A; padding: 0; margin: 0; }
.rota-mapa-app .ficha__x:hover { background: #EAE1D2; }
.rota-mapa-app .ficha__cat { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 11px/1 'Hanken Grotesk', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #4B5468; }
.rota-mapa-app .bdg { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font: 700 12px/1 'Hanken Grotesk', sans-serif; letter-spacing: -.02em; flex: none; font-variant-numeric: tabular-nums; }
.rota-mapa-app .ficha__t { font: 400 25px/1.1 'Newsreader', Georgia, serif; margin: 12px 36px 2px 0; color: #26304A; letter-spacing: -.01em; }
.rota-mapa-app .ficha__note { font-size: 14px; color: #8F5A1D; font-weight: 600; margin: 4px 0 0; }
.rota-mapa-app .ficha__info { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(38,48,74,.16); }
.rota-mapa-app .ficha__info li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(38,48,74,.16); font-size: 14px; line-height: 1.45; color: #4B5468; margin: 0; }
.rota-mapa-app .ficha__info .ico { width: 17px; height: 17px; margin-top: 2px; color: #26304A; }
.rota-mapa-app .ficha__info a { font-weight: 600; color: #26304A; text-decoration: none; border-bottom: 1px solid rgba(38,48,74,.16); white-space: nowrap; }
.rota-mapa-app .ficha__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.rota-mapa-app .ficha__acts .btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border-radius: 2px; font: 600 14px/1 'Hanken Grotesk', sans-serif; text-decoration: none; background: #26304A; color: #F4EEE4; }
.rota-mapa-app .ficha__acts .btn:hover { background: #1b2336; color: #F4EEE4; }
.rota-mapa-app .ficha__acts .link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #26304A; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* legenda (pontos vindos dos post types) */
.rota-mapa-app .rota-mapa-leg { max-width: 1320px; margin: 40px auto 0; padding: 0 56px; box-sizing: border-box; }
.rota-mapa-app .mlegend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
.rota-mapa-app .mlegend__col { display: grid; gap: 28px; }
.rota-mapa-app .mlegend__col[hidden] { display: none; }
.rota-mapa-app .mlg summary { list-style: none; display: flex; align-items: center; gap: 10px; font: 600 12px/1 'Hanken Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid #26304A; cursor: pointer; color: #26304A; }
.rota-mapa-app .mlg summary::-webkit-details-marker { display: none; }
.rota-mapa-app .mlg summary i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(244,238,228,.8); }
.rota-mapa-app .mlg summary small { margin-left: auto; font-weight: 500; letter-spacing: 0; opacity: .7; font-size: 13px; }
.rota-mapa-app .mlg summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; display: none; }
.rota-mapa-app .mlg[open] summary::after { transform: rotate(-135deg); }
.rota-mapa-app .mlg--casas summary::after { display: block; margin-left: 4px; }
.rota-mapa-app .mlg--casas ol { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.rota-mapa-app .mlg ol { list-style: none; margin: 0; padding: 0; }
.rota-mapa-app .mlg li { border-bottom: 1px solid rgba(38,48,74,.22); margin: 0; }
.rota-mapa-app .mlg li[hidden] { display: none; }
.rota-mapa-app .mlg button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 11px 6px 11px 0; cursor: pointer; transition: background .2s, padding .2s; }
.rota-mapa-app .mlg button:focus-visible { outline: 2px solid #26304A; outline-offset: 2px; }
.rota-mapa-app .mlg strong { display: block; font: 600 15px/1.25 'Hanken Grotesk', sans-serif; color: #26304A; }
.rota-mapa-app .mlg small { display: block; font-size: 13px; line-height: 1.35; color: #36412a; margin-top: 3px; }
.rota-mapa-app .mlg button:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rota-mapa-app .mlg li.is-sel button { background: rgba(244,238,228,.42); padding-left: 8px; }
.rota-mapa-app .mvazio { margin: 32px 0 0; font-size: 15px; }

@media (max-width: 1180px) { .rota-mapa-app .mlegend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .rota-mapa-app .rota-mapa-bar, .rota-mapa-app .rota-mapa-leg { padding: 0 32px; }
  .rota-mapa-app .mv { --edge: 32px; }
}
@media (max-width: 767px) {
  .rota-mapa-app .rota-mapa-bar, .rota-mapa-app .rota-mapa-leg { padding: 0 20px; }
  .rota-mapa-app .msearch { flex: 1 1 100%; }
  .rota-mapa-app .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .rota-mapa-app .chips::-webkit-scrollbar { display: none; }
  .rota-mapa-app .chip { flex: none; }
  .rota-mapa-app .mv { --edge: 8px; aspect-ratio: auto; height: min(70svh, 560px); min-height: 0; }
  .rota-mapa-app .ficha { width: calc(100% - 16px); padding: 16px 16px 18px; }
  .rota-mapa-app .ficha__foto { margin: -16px -16px 12px; aspect-ratio: 2 / 1; }
  .rota-mapa-app .ficha__t { font-size: 22px; }
  .rota-mapa-app .mhint, .rota-mapa-app .mz { top: 8px; }
  .rota-mapa-app .mlegend { grid-template-columns: 1fr; gap: 0; }
  .rota-mapa-app .mlegend__col { gap: 0; }
  .rota-mapa-app .mlg summary { padding: 16px 0; border-bottom-color: rgba(38,48,74,.35); }
  .rota-mapa-app .mlg summary::after { display: block; }
}
