/* O PERGAMINHO DA ROTA (rota.js): o esqueleto imprimível da área como checklist, no fim de cada casa.
   Medidas em cqw (largura da folha), para ficar igual ao PDF em qualquer tela. --rc = a cor da casa. */
.rota { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: rgba(6, 12, 22, .82); backdrop-filter: blur(3px); padding: 18px 12px 28px; animation: rota-entra .5s ease-out; }
@keyframes rota-entra { from { opacity: 0; } }
.rota-caixa { width: min(94vw, 700px); margin: 0 auto; container-type: inline-size; } /* cqw = 1% da largura da folha (a folha ocupa a caixa inteira) */
.rota-folha { position: relative; aspect-ratio: 1142 / 1615; color: #2a1d10;
  /* moldura em 9 partes: só o meio estica quando a lista é longa; âncoras, linha tracejada e timões não saem do lugar */
  border-style: solid; border-width: 0; border-image: url(img/rota/pergaminho.webp?v=1) 185 60 175 60 fill / 16.2cqw 5.25cqw 15.3cqw 5.25cqw stretch;
  font-family: 'Noto Serif', 'Cormorant Garamond', Georgia, serif; padding: 4.6cqw 9cqw 12cqw 12.5cqw; display: flex; flex-direction: column; box-shadow: 0 18px 60px rgba(0, 0, 0, .55); animation: rota-desenrola .7s cubic-bezier(.2, .8, .3, 1); transform-origin: top center; }
@keyframes rota-desenrola { from { transform: scaleY(.6); opacity: 0; } }
.rota-logo { position: absolute; left: 50%; top: 5.2cqw; width: 47.7cqw; transform: translateX(-50%); } /* acima da linha tracejada do pergaminho, como no PDF */
/* o conteúdo tem margem esquerda maior (a trilha dos números): os títulos centram na folha, não no conteúdo */
.rota-sobre, .rota-nome, .rota-pe { margin-left: -3.5cqw !important; }
.rota-sobre { margin: 9.3cqw 0 0; text-align: center; font-size: max(1.4cqw, 9px); font-weight: 700; letter-spacing: .05em; color: #6b4a22; }
.rota-nome { margin: 1.2cqw 0 0; text-align: center; font-size: max(4.6cqw, 22px); font-weight: 800; letter-spacing: .01em; color: #1c140b; line-height: 1.1; }
.rota-faixa { display: flex; align-items: center; gap: 1cqw; margin: 3cqw 0 2.4cqw -1.5cqw; }
.rota-faixa span { flex: 1; background: var(--rc); color: #fff; border-radius: 99px; text-align: center; font: 600 max(1.4cqw, 10px) 'Source Sans 3', sans-serif; padding: .5cqw 1cqw; }
.rota-faixa b { background: color-mix(in srgb, var(--rc) 14%, #fff); color: var(--rc); border-radius: .8cqw; font-size: 1.2cqw; padding: .45cqw 2.4cqw; letter-spacing: .03em; }
.rota-lista { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.rota-lista::before { content: ''; position: absolute; left: 4.4cqw; top: 1cqw; bottom: 1cqw; width: .9cqw; border-radius: 9px; background: color-mix(in srgb, var(--rc) 14%, #fff); opacity: .8; }
.rota-it { display: grid; grid-template-columns: max(4.6cqw, 22px) 1fr max(3.2cqw, 20px); align-items: start; gap: 0 2.6cqw; padding: .9cqw 0 1.1cqw; border-bottom: .12cqw solid rgba(120, 90, 50, .28); cursor: pointer; position: relative; }
.rota-num { width: max(4.4cqw, 22px); height: max(4.4cqw, 22px); border-radius: 50%; display: grid; place-items: center; background: var(--rc); color: #fff; font: 700 max(1.45cqw, 10px) 'Source Sans 3', sans-serif;
  box-shadow: 0 0 0 .45cqw #f3e6cc, 0 0 0 .62cqw rgba(160, 120, 60, .45); position: relative; z-index: 1; margin-left: -1.4cqw; }
.rota-txt { border-left: .5cqw solid var(--rc); padding-left: 1.6cqw; }
.rota-txt strong { display: block; font-size: max(2.3cqw, 13px); font-weight: 700; color: #1c140b; line-height: 1.25; }
.rota-txt span { display: block; font-size: max(1.62cqw, 11.5px); line-height: 1.45; color: #2d2216; margin-top: .3cqw; }
.rota-ck { position: absolute; opacity: 0; pointer-events: none; }
.rota-caixinha { width: max(2.6cqw, 17px); height: max(2.6cqw, 17px); border: .3cqw solid var(--rc); border-radius: .55cqw; background: rgba(255, 255, 255, .35); display: grid; place-items: center; margin-top: .2cqw; transition: background .2s, transform .2s; }
.rota-caixinha::after { content: '✓'; font: 800 max(2.3cqw, 14px) 'Source Sans 3', sans-serif; color: #fff; opacity: 0; transform: scale(.3); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.rota-ck:checked ~ .rota-caixinha { background: #c99a2e; border-color: #8a6414; transform: scale(1.08); }
.rota-ck:checked ~ .rota-caixinha::after { opacity: 1; transform: none; }
.rota-ck:focus-visible ~ .rota-caixinha { outline: .4cqw solid #f2c96b; outline-offset: .3cqw; }
.rota-it:has(.rota-ck:checked) .rota-txt strong { color: var(--rc); }
.rota-pe { margin: 2cqw 0 0; text-align: center; font-size: max(1.45cqw, 9.5px); font-weight: 700; letter-spacing: .04em; color: #6b4a22; }
.rota-marca { margin: 1.4cqw auto 0; width: 54%; translate: -1.75cqw; text-align: center; background: color-mix(in srgb, var(--rc) 14%, #fff); color: var(--rc); border-radius: 99px; font-size: max(2.1cqw, 11px); font-weight: 700; padding: .7cqw 0; }
.rota-selo { position: absolute; right: 17cqw; bottom: 4.5cqw; width: 19cqw; height: 19cqw; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 800 max(2.9cqw, 11px)/1.05 'Source Sans 3', sans-serif; letter-spacing: .05em;
  color: #9c1f1f; border: .9cqw double #9c1f1f; background: rgba(255, 235, 220, .35); transform: rotate(-14deg) scale(2.2); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.rota.completa .rota-selo { opacity: .88; transform: rotate(-14deg); }
.rota-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; }
.rota-conta { flex-basis: 100%; margin: 0 0 4px; text-align: center; color: #f6efe2; font: 600 15px 'Source Sans 3', sans-serif; }
.rota-btn { font: 600 15px 'Source Sans 3', sans-serif; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(242, 201, 107, .7); background: var(--marinho-900); color: #f6efe2; cursor: pointer; text-decoration: none; }
.rota-btn:hover { background: var(--marinho-700); }
.rota-ilha { background: var(--botao-ouro); color: var(--tinta); border-color: #f2c96b; }
@media (prefers-reduced-motion: reduce) { .rota, .rota-folha, .rota-selo { animation: none; transition: none; } }
/* impressão: só a folha, numa página A4 */
@media print {
  @page { size: A4; margin: 0; }
  body > *:not(.rota) { display: none !important; }
  .rota { position: static; background: none; padding: 0; backdrop-filter: none; overflow: visible; }
  .rota-caixa { width: 100%; }
  .rota-folha { box-shadow: none; animation: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rota-acoes { display: none; }
}
