/* REVOΛ Recife: cores e tipografia do Figma (Inter; escala 12, 16, 20, 24, 28, 32) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/inter/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/inter/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/inter/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/inter/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/inter/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/inter/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/inter/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/inter/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../lib/inter/inter-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../lib/inter/inter-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("../lib/inter/inter-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("../lib/inter/inter-latin-ext-900-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../lib/inter/inter-greek-800-normal.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("../lib/inter/inter-greek-900-normal.woff2") format("woff2"); unicode-range: U+0370-03FF; }
:root {
  --laranja: #E26D35;
  /* Fundo de botão com texto branco: um pouco mais escuro para o texto ter contraste de 4,6:1 (WCAG AA). */
  --laranja-botao: #B8561A; /* o único laranja dos botões (texto branco por cima com contraste de 4,8:1) */
  --laranja-texto: #A84A1C;
  --laranja-claro: #FCE9DF;
  --laranja-escuro-texto: #8A3B12;
  --tinta: #14232A;
  --cinza: #56626A;
  --azul: #1B3B48;
  --verde-fundo: #EEF4F1;
  --verde-texto: #2E5D4B;
  /* Tons quentes no lugar do branco puro, para cansar menos a vista. */
  --fundo: #F4F1EC;      /* areia clara: telas, painel do lugar, listas */
  --controle: #FAF7F2;   /* creme: busca, filtros, botões redondos, campos */
  --superficie: #EAE5DD;  /* camada de fundo e caixas internas: mais escura que os painéis, como no tema escuro */
  --borda: #DCD5CA;
  --borda-forte: #B9C6CC;
  --sombra: 0 4px 16px rgba(20, 35, 42, 0.12);
  --pino-comer: #1B3B48;
  color-scheme: light;
}
:root[data-theme="escuro"] {
  --laranja-texto: #F4A57E;
  --laranja-claro: #3A2A22;
  --laranja-escuro-texto: #F4A57E;
  --tinta: #FFFFFF;
  --cinza: #B9C6CC;
  --azul: #CFE6F0;
  --verde-fundo: #2A5263;
  --verde-texto: #EEF4F1;
  --fundo: #14232A;
  --controle: #14232A;
  --superficie: #1B3B48;
  --borda: #2A5263;
  --borda-forte: #3A6577;
  --sombra: 0 4px 16px rgba(0, 0, 0, 0.4);
  --pino-comer: #CFE6F0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--tinta); background: #0d171c;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Moldura de celular no computador */
.tela { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--fundo); overflow: hidden; }
.rolagem { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.conteudo { padding: 24px 24px 120px; }

/* Botões */
.botao {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 56px; padding: 12px 20px; border: 0; border-radius: 16px;
  background: var(--laranja-botao); color: #fff; font-weight: 600; font-size: 16px;
}
.botao:disabled { opacity: .45; cursor: not-allowed; }
.botao.secundario { background: transparent; color: var(--tinta); border: 1.5px solid var(--borda-forte); }
.rodape-fixo { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 24px 24px; background: linear-gradient(to top, var(--fundo) 70%, transparent); }
.voltar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--fundo); color: var(--tinta); box-shadow: var(--sombra);
}
.voltar.simples { box-shadow: none; background: transparent; margin-left: -10px; }
.topo-simples { padding: 16px 24px 0; }
h1.titulo { font-size: 32px; line-height: 1.2; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.02em; }
.subtitulo { color: var(--cinza); margin: 0 0 16px; }
.rotulo { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); margin: 24px 0 8px; }
.texto-cinza { color: var(--cinza); }
.pequeno { font-size: 12px; }

/* Chips e selos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--borda-forte);
  background: transparent; font-weight: 500;
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--laranja-botao); border-color: var(--laranja-botao); color: #fff; }
/* Filtro do mapa repetido na lista Comer, com um X para tirar */
.chip-filtro-ativo { display: inline-flex; align-items: center; gap: 6px; }
.chips.rolar .chip { flex: 0 0 auto; }
.chips.rolar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.rolar::-webkit-scrollbar { display: none; }
.selo {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--verde-fundo); color: var(--verde-texto);
}
.selo.atencao { background: var(--laranja-claro); color: var(--laranja-escuro-texto); }
.selo svg { width: 14px; height: 14px; }

/* Splash e Preferências (foto do Recife, véu azul e a marca, como no Figma) */
.splash, .preferencias { color: #fff; background: #14232A; }
.splash .fundo, .preferencias .fundo { position: absolute; inset: 0; background: url("../img/recife-fundo.jpg") center/cover; }
.splash .veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,42,53,.35), rgba(18,42,53,.55) 50%, rgba(18,42,53,.75)); }
.intro-marca { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; pointer-events: none; }
.intro-passaro { width: 252px; transition: transform 1.7s cubic-bezier(.45,0,.2,1); transform-origin: center; }
.intro-nome { width: 212px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: transform .6s ease-out, opacity .6s ease-out; }
.preferencias.intro .corpo > *, .preferencias.intro .rodape, .preferencias.intro .seletor-idioma { opacity: 0; transform: translateY(12px); }
.preferencias .corpo > *, .preferencias .rodape, .preferencias .seletor-idioma { transition: opacity .45s ease, transform .45s ease; }
.preferencias.intro .veu { background: linear-gradient(180deg, rgba(18,42,53,.35), rgba(18,42,53,.55) 50%, rgba(18,42,53,.75)); }
.preferencias.animando .intro-nome { opacity: 0; transform: translateY(-24px); }
.preferencias.conteudo-visivel .corpo > *, .preferencias.conteudo-visivel .rodape, .preferencias.conteudo-visivel .seletor-idioma { opacity: 1; transform: none; }
.preferencias.intro .corpo .logo { visibility: hidden; }
/* O logo não se move na abertura: é o ponto onde o pássaro pousa. */
.preferencias .corpo > .logo { transform: none !important; opacity: 1 !important; transition: none; }
.preferencias { color: #fff; }
.preferencias .fundo { position: absolute; inset: 0; background: url("../img/recife-fundo.jpg") center/cover; }
.preferencias .veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,42,53,.35), rgba(18,42,53,.55) 50%, rgba(18,42,53,.75)); }
.preferencias .corpo { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 24px 0; overflow-y: auto; }
.preferencias .logo { width: 152px; margin-top: 40px; }
.preferencias h1 { font-size: 32px; line-height: 1.2; font-weight: 800; margin: 16px 0 0; }
.preferencias h1 .nome { color: #E26D35; display: block; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.preferencias .pergunta { font-size: 20px; font-weight: 600; margin: 24px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.preferencias .dica { color: #FFFFFF; text-shadow: 0 1px 4px rgba(0,0,0,.5); margin: 4px 0 16px; }
.preferencias .chips { justify-content: center; }
.preferencias .chip { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(20,35,42,.35); }
.preferencias .chip[aria-pressed="true"], .preferencias .chip[aria-checked="true"] { border-color: var(--laranja-botao); background: var(--laranja-botao); }
.preferencias .slogan { font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 16px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.preferencias .apresentacao { font-size: 20px; line-height: 1.4; max-width: 320px; margin: 16px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.preferencias .rodape { position: relative; padding: 16px 24px 24px; text-align: center; }
.preferencias .rodape p { margin: 0 0 12px; color: #FFFFFF; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.seletor-idioma { position: absolute; top: 16px; right: 16px; z-index: 5; }
.pilula {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.7); background: rgba(20,35,42,.5); color: #fff; font-weight: 600;
}
.lista-idiomas { position: absolute; right: 0; top: 52px; background: var(--fundo); color: var(--tinta); border-radius: 16px; box-shadow: var(--sombra); padding: 8px; min-width: 176px; list-style: none; margin: 0; }
.lista-idiomas button { width: 100%; text-align: left; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; display: flex; justify-content: space-between; }
.lista-idiomas button[aria-checked="true"] { background: var(--superficie); font-weight: 600; }

/* Mapa */
/* Mapa único: fica fixo atrás de todas as telas e nunca é recriado */
#mapa { position: fixed; top: 0; bottom: 0; left: max(0px, calc(50% - 215px)); width: min(430px, 100%); z-index: 0; background: #EFEBE6; }
#mapa.oculto { visibility: hidden; }
#app { position: relative; max-width: 430px; height: 100dvh; margin: 0 auto; overflow: hidden; z-index: 1; background: transparent; pointer-events: none; }
#app > * { pointer-events: auto; }
#app > #tela-mapa, #app > #tela-rota { background: transparent; pointer-events: none; }
#tela-mapa > *, #tela-rota > * { pointer-events: auto; }
:root[data-theme="escuro"] #mapa { background: #1a262e; }
:root[data-theme="escuro"] #mapa.escurecer[data-fundo="imagens"] .maplibregl-canvas { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
#mapa.maplibregl-map { font-family: inherit; }
#mapa[data-fundo="sem-webgl"]::after { content: "Este navegador não consegue desenhar o mapa."; position: absolute; inset: 40% 24px auto; text-align: center; color: var(--tinta); }
/* Marcadores do app (HTML por cima do mapa) */
#mapa .marcador { cursor: pointer; }
#mapa .marcador.arrastavel { cursor: grab; }
#mapa .marcador:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; border-radius: 8px; }
/* Créditos do mapa: compactos, no canto de baixo */
#mapa .maplibregl-ctrl-attrib { font-size: 12px; }
:root[data-theme="escuro"] #mapa .maplibregl-ctrl-attrib { background: rgba(26, 38, 46, .8); color: #dfe6ea; }
:root[data-theme="escuro"] #mapa .maplibregl-ctrl-attrib a { color: #F4A57E; }
.barra-busca {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 500; display: flex; align-items: center; gap: 4px;
  min-height: 56px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--controle); box-shadow: var(--sombra);
}
.abrir-busca { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px 0 12px; border: 0; border-radius: 999px; background: none; text-align: left; color: var(--cinza); }
.abrir-busca .texto { flex: 1; }
.botao-icone { width: 48px; height: 48px; flex: 0 0 auto; border: 0; border-radius: 50%; background: none; color: var(--tinta); display: grid; place-items: center; }
.avatar-busca { width: 40px; height: 40px; margin: 4px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--superficie); color: var(--tinta); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.avatar-busca.com-conta { background: #FCE9DF; color: #A84A1C; }
.campo-busca .botao-icone { width: 44px; height: 44px; }
.tela-voz { text-align: center; }
.tela-voz .passaro-icone.ouvindo { width: 96px; margin: 16px auto 8px; }
.tela-voz .chips { justify-content: center; }
.botoes-mapa { position: absolute; right: 16px; bottom: 32px; z-index: 500; display: flex; flex-direction: column; gap: 12px; transition: bottom .25s; }
.botao-redondo { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--controle); color: var(--tinta); box-shadow: var(--sombra); display: grid; place-items: center; }
.tela.com-cartao .botoes-mapa { bottom: 272px; }
.cartao-lugar .linha { display: flex; gap: 12px; align-items: flex-start; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.cartao-lugar h2 { font-size: 20px; margin: 0 0 4px; line-height: 1.2; }
.cartao-lugar p { margin: 0; color: var(--cinza); font-size: 16px; line-height: 1.4; }
.cartao-lugar .botao { margin-top: 12px; min-height: 48px; }
.cartao-lugar .fechar { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--cinza); display: grid; place-items: center; padding: 0; }
.placeholder-foto { display: grid; place-items: center; background: linear-gradient(135deg, #1B3B48, #2E5D4B); color: #F4A57E; }
.aviso-topo {
  position: absolute; top: 84px; left: 16px; right: 16px; z-index: 550; padding: 12px 16px; border-radius: 16px;
  background: var(--fundo); box-shadow: var(--sombra);
}
.aviso-topo strong { display: block; }
.aviso-topo button { margin-top: 8px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--borda-forte); background: transparent; padding: 8px 16px; font-weight: 600; }

/* Pinos */
.pino { width: 24px; height: 30px; }
.pino svg { width: 24px; height: 30px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.ponto { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ponto.historico { background: #E26D35; }
.ponto.comer { background: var(--azul); }
:root[data-theme="escuro"] .ponto { border-color: #14232A; }
:root[data-theme="escuro"] .ponto.comer { color: #14232A; }
.rotulo-ponto { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: #14232A; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
.pino .rotulo-ponto, .rotulo-ponto.forte { left: 28px; top: 12px; font-size: 16px; font-weight: 700; }
:root[data-theme="escuro"] .rotulo-ponto { color: #fff; text-shadow: 0 0 3px #14232A, 0 0 3px #14232A, 0 0 3px #14232A; }
#mapa.sem-rotulos-osm .rotulo-ponto.osm { display: none; }
/* Longe (zoom abaixo de 17), cada lugar vira um pontinho laranja, sem ícone e sem nome. */
#mapa.longe .ponto.pequeno { transform: scale(.5); background: #E26D35; border-width: 2px; }
#mapa.longe .ponto.pequeno svg { display: none; }
/* Rota: aviso dos trechos sem dados de calçada. */
.aviso-trecho { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--laranja-escuro-texto); background: var(--laranja-claro); border-radius: 12px; padding: 8px 12px; margin: 12px 0 0; }
.aviso-trecho svg { flex: 0 0 auto; margin-top: 1px; }
.ponto.pequeno { width: 20px; height: 20px; border-width: 1.5px; opacity: .92; }
.rotulo-ponto.osm { left: 24px; font-weight: 500; }
.icone-osm { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: #FFFFFF; background: #E26D35; }
.icone-osm.comer { background: var(--azul); }
:root[data-theme="escuro"] .icone-osm.comer { color: #14232A; }
.rotulo-ponto.esquerda { left: auto; right: 32px; }
.lista-recursos { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.lista-recursos li { display: flex; align-items: center; gap: 8px; }
.lista-recursos svg { color: var(--verde-texto); flex: 0 0 auto; }
.nota-lugar { margin: 6px 0 0; }
.dica-cat { display: flex; gap: 12px; align-items: flex-start; background: var(--verde-fundo); color: var(--verde-texto); border-radius: 16px; padding: 12px 16px; margin: 16px 0 0; }
.dica-cat svg { flex: 0 0 auto; margin-top: 2px; }
.dica-cat p { margin: 4px 0 0; font-size: 16px; }
.cartao-lugar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 600;
  background: var(--fundo);
  border-radius: 24px;
  box-shadow: var(--sombra);
  padding: 16px;
  max-height: calc(100% - 160px);
  overflow-y: auto;
}
.porque-rota { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--verde-texto); background: var(--verde-fundo); border-radius: 12px; padding: 8px 12px; margin: 12px 0 0; }
.porque-rota svg { flex: 0 0 auto; margin-top: 2px; }
.voce { width: 20px; height: 20px; border-radius: 50%; background: var(--azul); border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(27,59,72,.2); }
:root[data-theme="escuro"] .voce { border-color: #14232A; box-shadow: 0 0 0 10px rgba(207,230,240,.25); }
.ponto-numero { width: 28px; height: 28px; border-radius: 50%; background: var(--laranja-botao); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; }

/* Detalhes do lugar */
.capa { position: relative; height: 272px; flex: 0 0 auto; }
.capa img, .capa .placeholder-foto { width: 100%; height: 100%; object-fit: cover; }
.capa .voltar { position: absolute; top: 16px; left: 16px; }
.cabecalho-lugar h1 { font-size: 28px; line-height: 1.2; font-weight: 800; margin: 4px 0; }
.meta { color: var(--cinza); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meta .estrela { color: var(--laranja); }
.meta strong { color: var(--tinta); }
.recurso {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 16px;
  border: 1.5px solid var(--borda-forte); background: transparent; text-align: left; margin-bottom: 12px;
}
.recurso.principal { background: var(--laranja-botao); border-color: var(--laranja-botao); color: #fff; }
.recurso .icone { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); flex: 0 0 auto; }
.recurso:not(.principal) .icone { background: var(--superficie); }
.recurso strong { display: block; font-size: 16px; }
.recurso span { font-size: 13px; }
.paragrafo { margin: 0; }
.link-acao { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; padding: 0; color: var(--laranja-texto); font-weight: 600; text-align: left; }
.lista-acoes { margin-top: 16px; border-top: 1px solid var(--borda); }
.lista-acoes button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--borda); background: none; text-align: left; padding: 0; font-weight: 500; }

/* Audiodescrição */
.player { background: var(--superficie); border-radius: 24px; padding: 20px; margin-top: 8px; }
.barra-progresso { height: 6px; border-radius: 3px; background: var(--borda); overflow: hidden; }
.barra-progresso div { height: 100%; width: 0; background: var(--laranja); transition: width .2s; }
.tempos { display: flex; justify-content: space-between; font-size: 12px; color: var(--cinza); margin-top: 6px; }
.controles { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 12px; }
.controles .menor { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--borda-forte); background: var(--controle); display: grid; place-items: center; }
.controles .play { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--laranja-botao); color: #fff; display: grid; place-items: center; }
.texto-lido span.lido { color: var(--tinta); font-weight: 600; }
.texto-lido span { color: var(--cinza); }

/* Libras */
.caixa-aviso { background: var(--superficie); border-radius: 16px; padding: 16px; margin: 8px 0 16px; }
.texto-libras { font-size: 20px; line-height: 1.5; border: 1.5px dashed var(--borda-forte); border-radius: 16px; padding: 16px; }

/* Rota */
.painel-rota {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--fundo); border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 12px 24px 24px; max-height: 46%; overflow-y: auto;
}
.painel-rota .alca { width: 40px; height: 4px; border-radius: 2px; background: var(--borda-forte); margin: 0 auto 12px; }
.painel-rota h1 { font-size: 24px; margin: 0; }
.ponto-atencao { display: flex; gap: 12px; align-items: flex-start; background: var(--superficie); border-radius: 16px; padding: 12px 16px; margin-bottom: 8px; }
.ponto-atencao .ponto-numero { flex: 0 0 auto; border-color: transparent; }
.ponto-atencao strong { display: block; }
.aviso-demo { font-size: 12px; color: var(--laranja-escuro-texto); background: var(--laranja-claro); border-radius: 12px; padding: 8px 12px; margin-top: 12px; }
details.passos summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
details.passos ol { margin: 0; padding-left: 20px; color: var(--cinza); }

.caixa-trajeto { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 600; display: flex; align-items: center; gap: 8px; background: var(--controle); border-radius: 24px; padding: 8px; box-shadow: var(--sombra); }
.caixa-trajeto .voltar { box-shadow: none; background: var(--superficie); flex: 0 0 auto; }
.campos-trajeto { flex: 1; display: grid; gap: 4px; min-width: 0; }
.campo-trajeto .icone-campo { grid-row: 1 / 3; display: grid; place-items: center; color: var(--tinta); }
.campo-trajeto .icone-campo.destino { color: var(--laranja); }
.botao-trocar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--superficie); color: var(--tinta); display: grid; place-items: center; flex: 0 0 auto; }
.marca-partida { width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; border: 6px solid #1B3B48; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
:root[data-theme="escuro"] .marca-partida { border-color: #CFE6F0; background: #14232A; }
.aviso-toque { position: absolute; top: 140px; left: 16px; right: 16px; z-index: 650; background: var(--tinta); color: #fff; border-radius: 16px; padding: 12px 16px; text-align: center; font-weight: 600; }
:root[data-theme="escuro"] .aviso-toque { color: #14232A; }
.folha { position: absolute; inset: 0; z-index: 1400; }
.folha-fundo { position: absolute; inset: 0; background: rgba(18,42,53,.45); }
.folha-corpo { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80%; overflow-y: auto; background: var(--fundo); border-radius: 24px 24px 0 0; padding: 16px 24px 24px; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.folha-topo h2 { font-size: 20px; margin: 0; }
.botao-redondo.pequeno-b { width: 44px; height: 44px; box-shadow: none; background: var(--superficie); }
.campo-busca > svg { margin-left: 12px; color: var(--cinza); flex: 0 0 auto; }
.opcoes-ponto { display: grid; gap: 8px; margin: 12px 0 4px; }
.opcao-ponto { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border-radius: 999px; border: 0; background: #CFE6F0; color: var(--tinta); font-weight: 600; text-align: left; }
:root[data-theme="escuro"] .opcao-ponto { background: #2A5263; }

/* Comer e Busca */
.capa img { object-position: center 35%; }
.cartao-lugar .miniatura { width: 96px; height: 80px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; object-position: center 30%; }
.item-lista { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; border: 0; border-bottom: 1px solid var(--borda); background: none; text-align: left; padding: 8px 0; }
.item-lista .icone-lista { width: 40px; height: 40px; border-radius: 12px; background: var(--superficie); display: grid; place-items: center; color: var(--azul); flex: 0 0 auto; }
.item-lista strong { display: block; }
.item-lista > span:last-child > span { display: block; font-size: 12px; color: var(--cinza); }
.campo-busca { display: flex; align-items: center; gap: 8px; min-height: 56px; border-radius: 999px; background: var(--superficie); padding: 0 8px 0 4px; }
.campo-busca input { flex: 1; border: 0; background: transparent; min-height: 48px; outline: none; }

/* Relatar */
.opcao-radio { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; border: 1.5px solid var(--borda); border-radius: 16px; background: transparent; padding: 8px 16px; margin-bottom: 8px; text-align: left; }
.opcao-radio[aria-checked="true"] { border-color: var(--laranja); background: var(--laranja-claro); }
.opcao-radio .bolinha { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--borda-forte); flex: 0 0 auto; display: grid; place-items: center; }
.opcao-radio[aria-checked="true"] .bolinha { border-color: var(--laranja); }
.opcao-radio[aria-checked="true"] .bolinha::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--laranja); }
label.campo { display: block; font-weight: 500; margin: 16px 0 8px; }
textarea { width: 100%; min-height: 112px; border: 1.5px solid var(--borda-forte); border-radius: 16px; padding: 12px 16px; background: var(--controle); resize: vertical; }
.caixa-foto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 112px; border: 1.5px dashed var(--borda-forte); border-radius: 16px; background: transparent; font-weight: 600; }
.foto-escolhida img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 16px; }
.foto-escolhida .acoes { display: flex; gap: 16px; }
.sucesso { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.sucesso .check { width: 88px; height: 88px; border-radius: 50%; background: var(--verde-fundo); color: var(--verde-texto); display: grid; place-items: center; margin-bottom: 16px; }
.sucesso h1 { font-size: 28px; margin: 0 0 8px; }
.cartao-relato { border: 1.5px solid var(--borda); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.status.em-analise { background: var(--laranja-claro); color: var(--laranja-escuro-texto); }
.status.confirmado { background: var(--verde-fundo); color: var(--verde-texto); }
.status.resolvido { background: var(--superficie); color: var(--cinza); }
.status.rejeitado { background: var(--superficie); color: var(--cinza); text-decoration: line-through; }

/* Perfil */
.segmentado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmentado .chip { border-radius: 12px; padding: 8px; }

/* Aviso rápido */
.toast { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 900; background: var(--tinta); color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--sombra); font-size: 16px; line-height: 1.4; animation: toast-entra .2s ease-out; }
/* No tablet e no computador, um aviso pequeno no meio, embaixo, sem cobrir o painel do lado. */
@media (min-width: 768px) {
  .toast { position: fixed; left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: min(480px, calc(100vw - 48px)); }
}
@keyframes toast-entra { from { opacity: 0; } to { opacity: 1; } }
:root[data-theme="escuro"] .toast { color: #14232A; }

/* Filtro de acessibilidade do mapa */
.filtros-mapa::-webkit-scrollbar { display: none; }
.filtros-mapa .chip { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; background: var(--controle); box-shadow: var(--sombra); border-color: var(--borda); }
.filtros-mapa .chip[aria-pressed="true"] { background: var(--laranja-botao); border-color: var(--laranja-botao); color: #FFFFFF; }
.marcador.apagado { opacity: .28; }
.apagado-lista { opacity: .55; }
.aviso-filtro { display: flex; gap: 6px; align-items: center; color: var(--laranja-escuro-texto); margin: 8px 0 0; }
.marcador.apagado .rotulo-ponto { display: none; }
.tela .aviso-topo { top: 132px; }

/* VLibras: o botão original fica no canto de cima, à direita (posição ajustada no app.js) */
.tela[data-tela="rota"] .aviso-toque { right: 72px; }

/* Identidade REVOΛ */
.so-escuro { display: none !important; }
:root[data-theme="escuro"] .so-claro { display: none !important; }
:root[data-theme="escuro"] .so-escuro { display: block !important; }
.marca-mini { display: flex; align-items: center; gap: 8px; color: var(--azul); font-weight: 900; font-size: 20px; letter-spacing: .08em; line-height: 1; }
.marca-mini img { width: 44px; height: auto; display: block; }
:root[data-theme="escuro"] .marca-mini { color: #FFFFFF; }
.marca-mini.sobre-foto { color: #FFFFFF; }
.marca-mini.sobre-foto img { display: block; }
.passaro-icone { display: inline-grid; place-items: center; flex: 0 0 auto; }
.passaro-icone img { width: 100%; height: auto; display: block; }
.passaro-icone.na-busca { width: 36px; }
.cabecalho-foto { position: relative; color: #FFFFFF; background: #14232A; min-height: 216px; display: flex; }
.cabecalho-foto .fundo { position: absolute; inset: 0; background: url("../img/recife-fundo.jpg") center 40%/cover; }
.cabecalho-foto .veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,42,53,.45), rgba(18,42,53,.8)); }
.cabecalho-foto .dentro { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 20px 24px 20px; }
.cabecalho-foto p { margin: 0; }
.pessoa-perfil { display: flex; align-items: center; gap: 16px; }
.pessoa-perfil strong { display: block; font-size: 20px; line-height: 1.2; }
.pessoa-perfil span span { display: block; font-size: 12px; opacity: .9; word-break: break-all; }
.avatar-grande { width: 64px; height: 64px; border-radius: 50%; background: #FCE9DF; color: #A84A1C; font-weight: 800; font-size: 20px; display: grid; place-items: center; flex: 0 0 auto; }
.vazio { color: var(--cinza); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 16px; }
.vazio p { margin: 0; }
.passaro-icone.apagado { width: 88px; opacity: .45; }
.selo-sucesso { position: relative; width: 120px; height: 120px; border-radius: 50%; background: #1B3B48; display: grid; place-items: center; margin-bottom: 16px; }
.selo-sucesso img { width: 84px; animation: pouso .8s cubic-bezier(.2,.8,.3,1) both; }
.selo-sucesso .visto { position: absolute; right: 0; bottom: 4px; width: 36px; height: 36px; border-radius: 50%; background: #2E5D4B; color: #FFFFFF; display: grid; place-items: center; border: 3px solid var(--fundo); }
:root[data-theme="escuro"] .selo-sucesso { background: #2A5263; }
@keyframes pouso { from { transform: translateY(-24px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.carregando-rota { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 16px; }
.carregando-rota p { margin: 0; color: var(--cinza); font-weight: 600; }
/* Pássaro calmo: plana devagar e bate as asas sem pressa. */
.passaro-icone.voando { width: 72px; animation: voo 2.8s ease-in-out infinite; }
.passaro-icone.voando img { animation: asas 1.2s ease-in-out infinite alternate; transform-origin: center 40%; }
@keyframes voo { 0%, 100% { transform: translate(-12px, 3px); } 50% { transform: translate(12px, -4px); } }
@keyframes asas { from { transform: scaleY(1); } to { transform: scaleY(.75); } }
.passaro-icone.no-aviso { width: 64px; margin-bottom: 8px; }

/* Conta */
.entrada { width: 100%; min-height: 56px; border: 1.5px solid var(--borda-forte); border-radius: 16px; padding: 12px 16px; background: var(--controle); }
select.entrada { appearance: auto; font: inherit; color: var(--tinta); }
.campo-senha { position: relative; }
.campo-senha input { width: 100%; min-height: 56px; border: 1.5px solid var(--borda-forte); border-radius: 16px; padding: 12px 56px 12px 16px; background: var(--controle); }
.ver-senha { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--cinza); display: grid; place-items: center; }
.erro-form { color: #B42318; background: #FDECEA; border-radius: 12px; padding: 8px 12px; margin: 12px 0 0; font-size: 16px; }
:root[data-theme="escuro"] .erro-form { color: #FFD7D2; background: #5A2420; }
.pilha-botoes { display: grid; gap: 12px; margin-top: 16px; }
.link-acao.centro { justify-content: center; width: 100%; }
.caixa-marcar { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 8px; cursor: pointer; }
.link-texto { border: 0; background: none; padding: 0; font: inherit; color: var(--laranja-texto); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; min-height: 24px; }
.caixa-marcar label { cursor: pointer; }
.texto-legal h3 { font-size: 16px; margin: 16px 0 4px; }
.texto-legal p { margin: 0; }
.caixa-marcar input { width: 24px; height: 24px; margin: 0; accent-color: var(--laranja); flex: 0 0 auto; }
.campo-titulo { font-weight: 600; margin: 16px 0 8px; }
.linha-cartao { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; border: 0; border-radius: 16px; background: var(--superficie); padding: 12px 16px; margin-bottom: 8px; text-align: left; }
.linha-cartao > span:nth-child(2) { flex: 1; }
.linha-cartao strong { display: block; }
.linha-cartao span span { display: block; font-size: 12px; color: var(--cinza); }
.linha-cartao .ic { display: grid; place-items: center; color: var(--tinta); }
.linha-cartao.sair, .linha-cartao.sair .ic { color: var(--laranja-texto); }
.linha-cartao.perigo, .linha-cartao.perigo .ic { color: #B42318; }
:root[data-theme="escuro"] .linha-cartao.perigo, :root[data-theme="escuro"] .linha-cartao.perigo .ic { color: #FF9C92; }
.botao.perigo { background: #B42318; color: #FFFFFF; }
.botao.perigo:hover { background: #912018; }
.aviso-conta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.aviso-conta h2 { font-size: 20px; margin: 0 0 8px; }
.aviso-conta p { margin: 0; }
.aviso-conta .pilha-botoes { width: 100%; }
.estrela-nota { width: 52px; height: 52px; border: 0; background: none; padding: 0; color: var(--laranja); display: grid; place-items: center; }
.estrela-nota svg { stroke: var(--laranja); }
.nota-texto { font-weight: 700; margin: 8px 0 0; }
.nota-mini { color: var(--laranja); display: inline-flex; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) {
  /* Quem pede menos movimento no sistema: animações terminam na hora e não repetem.
     (Sem limitar a repetição, as animações sem fim, como o pássaro voando, ficavam tremendo muito rápido.) */
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* O pássaro continua voando, bem devagar e suave: é o sinal de que o app está trabalhando. */
  .passaro-icone.voando { animation: voo 2.8s ease-in-out infinite !important; }
  .passaro-icone.voando img { animation: asas 1.2s ease-in-out infinite alternate !important; }
}

/* ---------- Três modos ----------
   Celular (até 599 px): como sempre.
   Tablet (600 a 1023 px) e computador (a partir de 1024 px): mapa ao fundo e painéis por cima.
   O mapa fica sempre ao fundo; à esquerda, uma barra com o menu; as telas (busca, lugar, Comer, Perfil,
   cadastro) abrem num painel ao lado da barra, por cima do mapa; a conta fica no canto de cima, à direita.
   Em tablets menores que 768 px, as telas ficam numa coluna central. */
.zoom-mapa { display: none; flex-direction: column; border-radius: 24px; box-shadow: var(--sombra); overflow: hidden; }
.zoom-mapa .botao-redondo { border-radius: 0; box-shadow: none; }
.zoom-mapa .botao-redondo + .botao-redondo { border-top: 1px solid var(--borda); }
#trilho, #conta-topo { display: none; }

/* ---------- Barra lateral (tablet e computador) ---------- */
.hamburguer-busca { display: none; }
@media (min-width: 600px) {
  #trilho { display: block; }
  body.modo-inicio #trilho { display: none !important; }
  /* Barra desligada no menu: some, e os três tracinhos aparecem dentro da busca */
  body.sem-trilho { --trilho: 0px; }
  body.sem-trilho #trilho { display: none; }
  body.sem-trilho .hamburguer-busca { display: grid; margin-left: 4px; }
  body.sem-trilho .barra-busca .passaro-icone { display: none; }
  .trilho {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--trilho); z-index: 1200; background: var(--controle);
    box-shadow: 1px 0 0 var(--borda); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0;
  }
  .item-trilho { position: relative; border: 0; background: none; color: var(--tinta); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; min-height: 72px; transition: color .3s; }
  .item-trilho .icone-trilho { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
  .item-trilho:not([aria-current]):hover .icone-trilho { background: var(--superficie); }
  /* Item ativo igual ao celular: ícone branco dentro da bolinha laranja, que desliza de um item para o outro */
  .item-trilho[aria-current="page"] { color: #fff; }
  .item-trilho[aria-current="page"] .rotulo-trilho { font-weight: 600; color: var(--laranja-texto); }
  .bolha-trilho { position: absolute; left: 50%; top: 0; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: var(--laranja-botao); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
  .rotulo-trilho { font-size: 12px; line-height: 16px; color: var(--cinza); }
  /* Três tracinhos no topo, centralizados na mesma altura da caixa de busca */
  .item-trilho.hamburguer { min-height: 0; height: 56px; padding: 0; margin: 16px 0 8px; justify-content: center; }
  .item-trilho.hamburguer .icone-trilho { width: 48px; height: 48px; border-radius: 50%; }
  :root[data-theme="escuro"] .trilho { background: #14232A; }
  /* Comer fica na barra lateral */
  .filtros-mapa .chip-comer { display: none; }

}
/* Gaveta: abre pela esquerda, por cima de tudo, com um item por linha */
.menu-conta.gaveta {
  top: 0; bottom: 0; left: 0; right: auto; width: min(320px, 86vw); max-height: none; border-radius: 0; z-index: 1400; padding: 0 0 16px;
  animation: gaveta-entra .22s cubic-bezier(.4, 0, .2, 1);
}
.veu-gaveta { position: fixed; inset: 0; z-index: 1350; background: rgba(20, 35, 42, .32); animation: veu-entra .22s; }
.topo-gaveta { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 8px 0 24px; }
.gaveta .fechar { position: static; }
.marca-gaveta { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.marca-gaveta img { width: 32px; height: 32px; object-fit: contain; }
.linha-gaveta { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 48px; padding: 0 24px; border: 0; background: none; color: var(--tinta); text-align: left; font-size: 16px; }
.linha-gaveta:hover { background: var(--superficie); }
.linha-gaveta .ic { width: 24px; display: grid; place-items: center; color: var(--cinza); flex: 0 0 auto; }
.chave-linha > span:nth-child(2) { flex: 1; }
.chave { width: 36px; height: 20px; border-radius: 10px; background: var(--borda-forte); position: relative; flex: 0 0 auto; transition: background .2s; }
.chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.chave-linha[aria-checked="true"] .chave { background: var(--laranja-botao); }
.chave-linha[aria-checked="true"] .chave::after { transform: translateX(16px); }
.divisor-gaveta { border: 0; border-top: 1px solid var(--borda); margin: 8px 0; }
@media (min-width: 768px) { .item-trilho.hamburguer { margin-top: 20px; } }
@keyframes gaveta-entra { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes veu-entra { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .menu-conta.gaveta, .veu-gaveta { animation: none; } }

@media (min-width: 600px) {
  #app { max-width: none; }
  #mapa { left: 0; width: 100%; }
  .folha-corpo { left: calc(50% - 280px); right: auto; width: 560px; }
  .zoom-mapa { display: flex; }
  /* Abertura em tela cheia, com o conteúdo no centro */
  .tela.preferencias .corpo { justify-content: center; padding-bottom: 24px; }
  .tela.preferencias .apresentacao { max-width: 480px; }
  .tela.preferencias .rodape { width: 100%; max-width: 432px; margin: 0 auto; padding-bottom: 48px; }
}
@media (min-width: 600px) and (max-width: 767px) {
  :root { --trilho: 72px; }
  .tela:not(#tela-mapa):not(#tela-rota):not(.preferencias) { left: var(--trilho); right: auto; width: min(560px, calc(100% - var(--trilho))); box-shadow: 4px 0 16px rgba(20, 35, 42, .16); }
  #tela-mapa .barra-busca, #tela-rota .caixa-trajeto, #tela-mapa .filtros-mapa, #tela-mapa .cartao-lugar, #tela-rota .painel-rota { left: calc(var(--trilho) + 16px); right: 16px; width: auto; }
  #tela-mapa .lista-comer { left: var(--trilho); }
  #tela-mapa .filtros-mapa { padding: 0 0 4px; }
}

/* Painel (a partir de 768 px) */
@media (min-width: 768px) {
  :root { --largura-painel: 360px; --trilho: 72px; }
  body { background: var(--superficie); }
  #app { position: relative; z-index: 1; background: transparent; pointer-events: none; }
  #app > * { pointer-events: auto; }
  #app > #tela-mapa, #app > #tela-rota { pointer-events: none; }
  body.modo-inicio #conta-topo { display: none !important; }

  /* Conta no canto de cima, à direita */
  #conta-topo { display: block; position: fixed; top: 20px; right: 24px; z-index: 1100; }
  #conta-topo .avatar-busca { width: 48px; height: 48px; margin: 0; box-shadow: var(--sombra); background: var(--controle); }
  #conta-topo .avatar-busca.com-conta { background: #FCE9DF; }
  .barra-busca .avatar-busca { display: none; }

  /* Telas comuns viram um painel ao lado da barra, por cima do mapa */
  .tela:not(#tela-mapa):not(#tela-rota):not(.preferencias) {
    left: var(--trilho); right: auto; width: var(--largura-painel); box-shadow: 4px 0 16px rgba(20, 35, 42, .16);
  }
  .tela:not(#tela-mapa):not(#tela-rota):not(.preferencias) .capa { height: 200px; }

  /* Mapa */
  #tela-mapa .barra-busca { left: calc(var(--trilho) + 16px); right: auto; width: calc(var(--largura-painel) - 32px); top: 20px; }
  #tela-mapa .filtros-mapa { left: calc(var(--trilho) + var(--largura-painel)); right: 88px; width: auto; top: 24px; padding: 0 0 4px; }
  #tela-mapa .cartao-lugar { left: calc(var(--trilho) + 16px); right: auto; width: calc(var(--largura-painel) - 32px); top: 92px; bottom: 24px; max-height: none; }
  #tela-mapa .botoes-mapa, .tela.com-cartao .botoes-mapa, .tela.com-lista .botoes-mapa { right: 24px; bottom: 48px; }
  #tela-mapa .aviso-topo { left: calc(var(--trilho) + var(--largura-painel)); right: auto; top: 80px; }

  /* Rota */
  #tela-rota .caixa-trajeto { left: calc(var(--trilho) + 16px); right: auto; width: calc(var(--largura-painel) - 32px); top: 20px; }
  #tela-rota .painel-rota { left: calc(var(--trilho) + 16px); right: auto; width: calc(var(--largura-painel) - 32px); top: 164px; bottom: 24px; max-height: none; border-radius: 24px; box-shadow: var(--sombra); }
  #tela-rota .painel-rota .alca { display: none; }
  #tela-rota .aviso-toque { left: calc(var(--trilho) + var(--largura-painel)); right: auto; }

  /* Painel completo do lugar na coluna do mapa */
  .painel-lugar { padding: 0; overflow-y: auto; }
  .capa-painel { position: relative; height: 176px; }
  .capa-painel img, .capa-painel .placeholder-foto { width: 100%; height: 100%; object-fit: cover; border-radius: 24px 24px 0 0; display: block; }
  /* Longe o bastante do canto arredondado do painel (24 px), para o X não parecer espremido. */
  .capa-painel .fechar { top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--controle); border-radius: 50%; box-shadow: var(--sombra); }
  .corpo-painel { padding: 16px 20px 20px; }
  .painel-lugar h2 { font-size: 24px; }
  .acoes-painel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .acoes-painel .botao { margin-top: 0; min-height: 44px; width: auto; flex: 1 1 100%; }
  .acoes-painel .botao.secundario { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; }

  /* Passando o mouse sobre um ponto, aparece o nome */
  #mapa .marcador:hover { z-index: 100000 !important; }
  #mapa.longe .marcador:hover .ponto.pequeno { transform: scale(.8); }
}
@media (min-width: 1024px) {
  :root { --largura-painel: 408px; }
}

/* Telefone: código do país + número */
.linha-telefone { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; }
.linha-telefone .ddi { padding-left: 12px; padding-right: 8px; }

/* ---------- Comer: filtro do mapa com a lista dos lugares de comer ---------- */
.marcador.escondido { display: none !important; }
.filtros-mapa .chip-comer { font-weight: 700; }
.lista-comer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; height: 44%; display: flex; flex-direction: column;
  background: var(--fundo); border-radius: 24px 24px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,.16); padding: 0 16px; transition: height .25s;
}
.lista-comer.aberta { height: calc(100% - 140px); }
.alca-lista { display: grid; place-items: center; width: 100%; height: 24px; border: 0; background: none; padding: 0; flex: 0 0 auto; }
.alca-lista span { width: 40px; height: 4px; border-radius: 2px; background: var(--borda-forte); }
.topo-lista { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.topo-lista h2 { font-size: 20px; margin: 0; }
.topo-lista p { margin: 0; }
.topo-lista .fechar { width: 44px; height: 44px; border: 0; background: var(--superficie); border-radius: 50%; display: grid; place-items: center; color: var(--tinta); flex: 0 0 auto; }
.lista-comer .chips { margin: 8px 0; flex: 0 0 auto; }
.itens-comer { flex: 1; overflow-y: auto; margin: 0 -16px; padding: 0 16px; }
.item-comer { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 72px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--borda); background: none; text-align: left; color: var(--tinta); }
.item-comer .miniatura, .item-comer .placeholder-foto { width: 64px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.item-comer .icone-osm { width: 64px; height: 56px; border-radius: 12px; }
.item-comer > span:last-child { display: flex; flex-direction: column; }
.item-comer strong { font-size: 16px; }
.item-comer span span { font-size: 12px; color: var(--cinza); }
.item-comer .aviso-filtro { color: var(--laranja-escuro-texto); }
.tela.com-lista .botoes-mapa { bottom: calc(44% + 16px); }
@media (min-width: 768px) {
  #tela-mapa .lista-comer, #tela-mapa .lista-comer.aberta { left: calc(var(--trilho) + 16px); right: auto; width: calc(var(--largura-painel) - 32px); top: 92px; bottom: 24px; height: auto; border-radius: 24px; box-shadow: var(--sombra); }
  .alca-lista { display: none; }
  .topo-lista { padding-top: 16px; }
}

/* ---------- Menu da conta ---------- */
.menu-conta {
  position: fixed; z-index: 1300; top: 8px; left: 8px; right: 8px; max-height: calc(100dvh - 16px); overflow-y: auto;
  background: var(--fundo); color: var(--tinta); border-radius: 24px; box-shadow: 0 8px 32px rgba(20,35,42,.28); padding: 16px;
}
.menu-conta .fechar { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--tinta); }
.menu-conta .sair { margin-top: 16px; }
@media (min-width: 768px) {
  .menu-conta { top: 76px; left: auto; right: 16px; width: 360px; max-height: calc(100dvh - 92px); }
}
/* Cartão da conta (foto no canto): centralizado */
.cartao-conta { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 16px 8px; }
.cartao-conta .avatar-grande { width: 72px; height: 72px; font-size: 24px; }
.cartao-conta .avatar-grande.sem-conta { background: var(--superficie); color: var(--cinza); }
.cartao-conta .avatar-grande.sem-conta svg { width: 32px; height: 32px; }
.nome-conta { font-size: 20px; font-weight: 700; margin: 12px 0 0; }
.email-conta { font-size: 14px; color: var(--cinza); margin: 4px 0 16px; word-break: break-word; }
.cartao-conta .botao { width: auto; min-width: 200px; padding: 0 28px; }
.cartao-conta .botao-texto { margin-top: 8px; }
.cartao-conta .divisor-gaveta { align-self: stretch; margin: 16px -16px 8px; }
.cartao-conta .linha-gaveta { border-radius: 12px; padding: 0 16px; }
@media (min-width: 768px) { .cartao-conta { width: 320px; } }
/* Gaveta: Mapa, Comer e Salvos só sem a barra lateral; a chave da barra só onde ela existe */
.so-sem-trilho { display: none; }
@media (min-width: 600px) { body.sem-trilho .so-sem-trilho { display: block; } }
@media (max-width: 599px) { .gaveta .chave-linha { display: none; } }
@media (min-width: 600px) { .cartao-conta .so-celular { display: none; } }
.rotulo-gaveta { padding: 0 24px; margin: 8px 0 4px; }
.rodape-gaveta { padding: 16px 24px 0; font-size: 12px; color: var(--cinza); margin: 0; }
.rodape-gaveta .link-texto { font-size: 12px; color: var(--cinza); }

/* ---------- Busca no próprio mapa ---------- */
#busca-inline {
  position: absolute; inset: 0; z-index: 800; background: var(--fundo); display: flex; flex-direction: column; padding: 16px 16px 0; overflow: hidden;
}
#busca-inline[hidden] { display: none; }
@media (min-width: 600px) and (max-width: 767px) { #busca-inline { left: var(--trilho); } }
/* Resultado: parte digitada em negrito, o resto mais leve */
#resultados-busca .item-lista strong { font-weight: 500; }
#resultados-busca .item-lista strong b { font-weight: 800; }
/* Botão de rota dentro da busca */
.botao-rota-busca { color: var(--laranja-texto); }
.botao-rota-busca:hover { background: var(--laranja-claro); }
@media (min-width: 768px) { #tela-mapa .cartao-lugar.cartao-endereco { bottom: auto; } }
.cartao-endereco .botoes-redondos { margin: 12px 0 8px; }
#busca-inline .chips { margin: 12px 0 4px; flex: 0 0 auto; }
#resultados-busca { flex: 1; overflow-y: auto; margin: 0 -16px; padding: 0 16px 24px; }
.tela.buscando .barra-busca, .tela.buscando .filtros-mapa { visibility: hidden; }
@media (min-width: 768px) {
  #busca-inline { inset: auto; top: 16px; left: calc(var(--trilho) + 16px); width: calc(var(--largura-painel) - 32px); max-height: min(600px, calc(100% - 40px)); border-radius: 28px; box-shadow: 0 4px 16px rgba(20, 35, 42, .28); padding: 8px 16px 0; }
  .tela.buscando .filtros-mapa { visibility: visible; }
}
/* No celular a busca ocupa a tela toda. No computador e no tablet ela abre por cima e o painel do lugar
   (ou a lista Comer) continua lá atrás, como no Google Maps. */
@media (max-width: 767px) { .tela.buscando .lista-comer, .tela.buscando #cartao { visibility: hidden; } }

/* ---------- Página de login ---------- */
.tela.tela-login { background: var(--superficie); }
.login-area { min-height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 1040px; margin: 0 auto; padding: 8px 16px 24px; }
.login-area .topo-simples { padding: 0; }
.login-cartao { background: var(--controle); box-shadow: 0 1px 2px rgba(20, 35, 42, .06), 0 8px 24px rgba(20, 35, 42, .08); border-radius: 28px; padding: 32px 24px; display: grid; gap: 24px; }
.passaro-icone.login { width: 56px; display: block; }
.login-titulo { font-size: 32px; line-height: 1.2; font-weight: 600; margin: 16px 0 8px; }
.login-sub { margin: 0; font-size: 16px; color: var(--tinta); }
.login-lado .campo:first-child { margin-top: 0; }
.login-botoes { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 32px; }
.login-botoes .botao { width: auto; min-width: 120px; padding: 0 28px; }
.botao-texto { border: 0; background: none; color: var(--laranja-texto); font-weight: 700; min-height: 48px; padding: 0 12px; border-radius: 999px; }
.botao-texto:hover { background: var(--laranja-claro); }
.login-rodape { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 8px 0; font-size: 14px; }
.login-rodape span { display: flex; gap: 24px; }
.login-rodape .link-texto { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--tinta); text-decoration: none; }
.seletor-login { border: 0; background: transparent; color: var(--tinta); font-size: 14px; min-height: 44px; }
@media (min-width: 600px) {
  .tela.tela-login { left: 0 !important; width: 100% !important; box-shadow: none !important; }
  .login-cartao { padding: 48px; }
}
@media (min-width: 900px) {
  .login-cartao { grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 48px 40px; }
  .login-titulo { font-size: 40px; }
}

/* ---------- Ícones de acessibilidade ---------- */
.icones-acess { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
/* Etiquetas de acessibilidade: ícone + nome, sempre à vista (no celular não há "passar o mouse"). */
.icone-acess { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px 3px 8px; border-radius: 999px; background: var(--superficie); color: var(--tinta); font-size: 13px; font-weight: 600; line-height: 1.2; }
.icone-acess svg { flex: 0 0 auto; }
.icone-acess.atencao { background: transparent; border: 1.5px dashed var(--laranja-escuro-texto); color: var(--laranja-escuro-texto); padding: 2px 11px 2px 7px; }
.icone-acess .sinal { position: absolute; right: -2px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--laranja-botao); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* ---------- Resumo do lugar (cartão do celular e cartão ao passar o mouse) ---------- */
.resumo-lugar { display: flex; flex-direction: column; }
.capa-resumo { width: 100%; height: 112px; object-fit: cover; border-radius: 16px; display: block; }
.capa-resumo.sem-foto { display: grid; place-items: center; color: #fff; background: #E26D35; }
.capa-resumo.sem-foto.comer { background: #1B3B48; }
.resumo-corpo { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding-top: 12px; }
.resumo-texto { min-width: 0; }
.resumo-lugar h2 { font-size: 20px; line-height: 1.2; margin: 0 0 2px; }
.resumo-lugar .meta { margin: 0; }
.resumo-categoria { margin: 2px 0 0; }
.resumo-status { margin: 4px 0 0; }
.resumo-status .aberto { color: #2A7347; font-weight: 600; }
.resumo-status .fechado { color: #B3261E; font-weight: 600; }
:root[data-theme="escuro"] .resumo-status .aberto { color: #8FD3A8; }
:root[data-theme="escuro"] .resumo-status .fechado { color: #F2B8B5; }
.botoes-redondos { display: flex; gap: 8px; flex: 0 0 auto; }
.botao-circulo { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--tinta); font-size: 12px; font-weight: 600; min-width: 52px; }
/* Botões redondos neutros; o laranja fica só na Rota (ação principal) e no que está ligado (Salvo, Pausar). */
.botao-circulo .circulo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie); color: var(--azul); }
.botao-circulo.principal { color: var(--laranja-texto); }
.botao-circulo.botao-fala::before { display: none; }
.botao-circulo.principal .circulo { background: var(--laranja-botao); color: #fff; }
.botao-circulo[aria-pressed="true"] .circulo { background: var(--laranja-botao); color: #fff; }
.botao-circulo[aria-pressed="true"] { color: var(--laranja-texto); }
.cartao-resumo { padding: 12px; }
/* X dentro da foto, a 8 px do canto (a foto começa 20 px abaixo do topo e 12 px da lateral do cartão). */
.cartao-resumo .fechar { z-index: 2; background: var(--controle); border-radius: 50%; top: 28px; right: 20px; width: 40px; height: 40px; }
.cartao-resumo .capa-resumo { height: 96px; }
.ver-detalhes { margin-top: 4px; min-height: 40px; }
.detalhes-osm p { margin: 4px 0 0; }
.painel-lugar .botoes-redondos { margin: 12px 0 0; justify-content: flex-start; gap: 16px; }
.previa-lugar { position: absolute; z-index: 900; width: 300px; background: var(--fundo); border-radius: 20px; padding: 10px; box-shadow: 0 8px 28px rgba(20,35,42,.28); cursor: pointer; }
.previa-lugar .botoes-redondos { cursor: default; }

/* Pergunta curta (ex.: salvar sem login) */
.folha-pergunta .folha-corpo { padding: 24px 24px 32px; }
.folha-pergunta h2 { font-size: 20px; margin: 0 0 8px; }
.botoes-pergunta { display: flex; gap: 12px; margin-top: 24px; }
.botoes-pergunta .botao { flex: 1; margin: 0; }
@media (min-width: 600px) {
  .folha-pergunta .folha-corpo { left: 50%; right: auto; top: 50%; bottom: auto; width: 400px; transform: translate(-50%, -50%); border-radius: 24px; box-shadow: var(--sombra); }
}

/* VLibras 7 no celular: janela menor, para caber entre os filtros e o painel do lugar.
   Ela ainda pode ser ampliada pelo botão de expandir do próprio VLibras.
   A posição do botão e da janela é ajustada no app.js (estiloVLibras), porque fica dentro de shadow DOM. */
@media (max-width: 767px) {
  /* Janela estreita e alta, na direita. Para os botões Expandir e Fechar caberem, o app.js esconde o nome "VLibras" da barra azul. */
  #vlibras-app-root { --widget-width: 172px; --player-height: 215px; }
}
/* Tema escuro: botões redondos com contorno, para não sumirem no fundo do cartão */
:root[data-theme="escuro"] .botao-circulo:not(.principal):not([aria-pressed="true"]) .circulo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--borda-forte); }
/* Audiodescrição e Libras no cartão dos lugares do OpenStreetMap e da equipe */
.acoes-ouvir { display: flex; gap: 8px; margin: 12px 0 4px; }
.acoes-ouvir .botao { flex: 1; min-height: 44px; margin: 0; font-size: 14px; padding: 8px 12px; }
/* Audiodescrição tocando no próprio botão: fundo laranja claro que cresce conforme a leitura */
.botao-fala { position: relative; overflow: hidden; isolation: isolate; }
.botao-fala::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--progresso, 0%); background: var(--laranja-claro); z-index: -1; transition: width .4s; }
.botao-fala.tocando { border-color: var(--laranja); color: var(--laranja-escuro-texto); }
.recurso.principal.botao-fala::before { background: rgba(255, 255, 255, .22); }
.recurso.principal.botao-fala.tocando { color: #fff; }
.link-player { margin: 4px 0 8px; font-size: 14px; }
.resumo-descricao { margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Zoom: menos pontos de longe, todos de perto ---------- */
#mapa.z-medio:not(.com-filtro-ativo) .marcador.p3 { display: none; }
#mapa.z-longe:not(.com-filtro-ativo) .marcador.p2 { display: none; }

/* ---------- Menu fixo embaixo (celular) ---------- */
#menu-celular { display: none; }
@media (max-width: 599px) {
  #menu-celular:not([hidden]) {
    --i: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    height: calc(80px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--fundo); box-shadow: 0 -1px 0 var(--borda), 0 -4px 16px rgba(20, 35, 42, .08); overflow: hidden;
  }
  /* Bolinha laranja (círculo) do item ativo: fica dentro da barra e desliza para o lado quando o item muda */
  #menu-celular .bolha {
    position: absolute; top: 7px; left: calc((100% / 3) * var(--i) + (100% / 6) - 23px); width: 46px; height: 46px; border-radius: 50%;
    background: var(--laranja-botao); transition: left .3s cubic-bezier(.4, 0, .2, 1);
  }
  #menu-celular button { transition: color .3s; position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; color: var(--tinta); min-height: 80px; padding: 7px 0 0; }
  #menu-celular .icone-menu, #menu-celular .icone-menu-cheio { height: 46px; display: flex; align-items: center; justify-content: center; }
  #menu-celular .rotulo-menu { font-size: 12px; line-height: 16px; color: var(--cinza); }
  #menu-celular .icone-menu-cheio { display: none; }
  #menu-celular button[aria-current="page"] { color: #fff; }
  /* Item ativo: ícone branco dentro do círculo e o nome embaixo, em laranja */
  #menu-celular button[aria-current="page"] .icone-menu { display: none; }
  #menu-celular button[aria-current="page"] .icone-menu-cheio { display: flex; }
  #menu-celular button[aria-current="page"] .rotulo-menu { color: var(--laranja-texto); font-weight: 600; }
  :root[data-theme="escuro"] #menu-celular { background: #1B3B48; }
  :root[data-theme="escuro"] #menu-celular .rotulo-menu { color: #B9C6CC; }
  :root[data-theme="escuro"] #menu-celular button:not([aria-current]) { color: #fff; }
  /* Comer agora é do menu: some dos filtros de cima */
  .filtros-mapa .chip-comer { display: none; }
  /* Tudo que fica embaixo sobe acima do menu */
  body.com-menu-celular #app { height: calc(100dvh - 80px - env(safe-area-inset-bottom)); }
  body.com-menu-celular #mapa .maplibregl-ctrl-bottom-right { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { #menu-celular .bolha { transition: none; } }

/* ---------- Cartão do lugar no celular: tocar ou puxar para cima abre "Mais detalhes" ---------- */
.alca-cartao { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--borda-forte); margin: -4px auto 8px; }
.cartao-resumo[data-detalhes] { cursor: pointer; }
@media (min-width: 768px) { .alca-cartao { display: none; } }

/* Detalhes do lugar como folha que sobe do cartão (celular) */
.alca-detalhes { display: none; }
@media (max-width: 767px) {
  .tela-detalhes .alca-detalhes { display: block; position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
  .tela-detalhes.subindo { animation: folha-sobe .3s cubic-bezier(.2, .8, .2, 1); }
  /* Vindo do cartão: começa exatamente na altura do cartão, sem transparência (não parece recarregar) */
  .tela-detalhes.descendo, .tela-detalhes.subindo.descendo { animation: folha-desce .2s ease-in forwards; }
}
/* Cartão do lugar: entra deslizando de baixo (celular) ou da esquerda (tablet e computador).
   Ao trocar de um lugar para outro, o cartão fica parado e só o conteúdo aparece suave. */
@keyframes cartao-entra { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* No computador, o painel do lugar entra deslizando da esquerda, de trás do menu lateral, e sai do mesmo jeito. */
/* Mesmos tempos e curvas do Google Maps (medidos no próprio site):
   entrar = o painel desliza de trás do menu lateral (0,2 s) e o conteúdo vai aparecendo junto;
   sair = o conteúdo some e o painel recolhe para a esquerda, encolhendo a largura (0,2 s). */
@keyframes painel-entra { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes painel-recolhe { to { width: 0; box-shadow: none; } }
@keyframes conteudo-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes conteudo-sai { to { opacity: 0; } }
@keyframes conteudo-troca { from { opacity: .35; } to { opacity: 1; } }
#cartao .cartao-lugar.entrando { animation: cartao-entra .24s cubic-bezier(.2, .8, .2, 1); }
#cartao .cartao-lugar.trocando > * { animation: conteudo-troca .18s ease-out; }
@media (min-width: 768px) {
  #cartao .cartao-lugar.entrando { animation: painel-entra .2s ease-in-out; }
  #cartao .cartao-lugar.entrando > * { animation: conteudo-entra .2s cubic-bezier(0, 0, .2, 1); }
  #cartao .cartao-lugar.saindo { animation: painel-recolhe .2s ease-in-out forwards; overflow: hidden; pointer-events: none; }
  #cartao .cartao-lugar.saindo > * { animation: conteudo-sai .2s cubic-bezier(0, 0, .2, 1) forwards; min-width: var(--largura-painel); }
  /* A foto aparece suave quando termina de carregar. */
  .capa-painel img { transition: opacity .15s cubic-bezier(.4, 0, 1, 1); }
  .capa-painel img.carregando { opacity: 0; }
  /* Barra de rolagem fina e discreta no painel. */
  .painel-lugar { scrollbar-width: thin; scrollbar-color: var(--borda-forte) transparent; }
}
@media (prefers-reduced-motion: reduce) { #cartao .cartao-lugar.entrando, #cartao .cartao-lugar.entrando > *, #cartao .cartao-lugar.saindo, #cartao .cartao-lugar.saindo > *, #cartao .cartao-lugar.trocando > * { animation: none; } .capa-painel img { transition: none; } }
@keyframes folha-sobe { from { transform: translateY(60%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes folha-desce { to { transform: translateY(100%); } }

/* Lista do Comer sobe de baixo ao ligar o Comer */
.lista-comer.subindo { animation: lista-sobe .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes lista-sobe { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 768px) { .lista-comer.subindo { animation: painel-entra .2s ease-in-out; } .lista-comer.subindo > * { animation: conteudo-entra .2s cubic-bezier(0, 0, .2, 1); } }
/* Ao desligar o filtro, a lista sai como o cartão do lugar: desce no celular; no computador o conteúdo some e o painel recolhe para a esquerda. */
.lista-comer.saindo { animation: lista-desce .22s ease-in forwards; pointer-events: none; }
@keyframes lista-desce { to { transform: translateY(100%); } }
@keyframes lista-recolhe { to { width: 0; padding-left: 0; padding-right: 0; box-shadow: none; } }
@media (min-width: 768px) {
  .lista-comer.saindo { animation: lista-recolhe .2s ease-in-out forwards; overflow: hidden; }
  .lista-comer.saindo > * { animation: conteudo-sai .2s cubic-bezier(0, 0, .2, 1) forwards; min-width: calc(var(--largura-painel) - 64px); }
}
@media (prefers-reduced-motion: reduce) { .tela-detalhes.subindo, .tela-detalhes.descendo, .lista-comer.subindo, .lista-comer.saindo, .lista-comer.saindo > * { animation: none; } }

/* Nome escondido porque ficaria por cima de outro (aparece ao aproximar ou ao passar o mouse) */
#mapa .rotulo-ponto.rotulo-oculto { visibility: hidden; }
#mapa .marcador:hover .rotulo-ponto.rotulo-oculto { visibility: visible; }
/* Zoom 16: os de comer viram pontinhos, em vez de sumir */
#mapa.z-medio:not(.z-longe):not(.com-filtro-ativo) .marcador.p3 { display: block !important; }
#mapa.z-medio:not(.z-longe) .marcador.p3 .ponto.pequeno { transform: scale(.5); border-width: 2px; }
#mapa.z-medio:not(.z-longe) .marcador.p3 .ponto.pequeno svg { display: none; }

/* Escolha de partida/destino aberta logo abaixo dos campos da rota */
.folha.ancorada .folha-fundo { background: transparent; }
.folha.ancorada .folha-topo { display: none; }
.campo-trajeto.escolhendo { border-color: var(--laranja); }

/* Só o nosso botão de mostrar senha: esconde o "olho" que o Edge põe sozinho no campo */
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
/* Fechar o Perfil (por cima da foto do topo) */
.fechar-pagina { position: absolute; top: 16px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(20, 35, 42, .55); color: #FFFFFF; cursor: pointer; }
.fechar-pagina:hover { background: rgba(20, 35, 42, .75); }
.fechar-pagina:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* ---------- Categorias no topo do mapa e Recentes ---------- */
.separador-chips { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--borda); }
.topo-recentes { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.topo-recentes .link-acao { margin: 0; padding: 4px 8px; min-height: 32px; }

/* ---------- Ficha do lugar com abas ---------- */
.cabecalho-ficha h1, .cabecalho-ficha h2 { margin: 0 0 4px; }
.cabecalho-ficha .meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 0 0 4px; }
.categoria-ficha { margin: 0 0 8px; }
.estrelas { gap: 4px; display: inline-flex; color: var(--laranja); }
.estrelas svg { stroke: var(--laranja); }
.abas-ficha { display: flex; margin: 16px -20px 0; padding: 0 12px; border-bottom: 1px solid var(--borda); overflow-x: auto; scrollbar-width: none; }
.tela-detalhes .abas-ficha { margin: 16px -24px 0; padding: 0 16px; }
.abas-ficha [role="tab"] { flex: 1 0 auto; border: 0; background: none; color: var(--tinta); font: inherit; font-size: 16px; font-weight: 500; padding: 12px 12px 10px; border-bottom: 3px solid transparent; cursor: pointer; min-height: 48px; }
.abas-ficha [role="tab"][aria-selected="true"] { color: var(--laranja-texto); border-bottom-color: var(--laranja); font-weight: 600; }
.abas-ficha [role="tab"]:focus-visible { outline: 3px solid var(--laranja); outline-offset: -3px; }
/* Fileira de ações: cada botão com a mesma largura; se não couber, rola para o lado. */
.acoes-ficha { padding: 16px 0 12px; border-bottom: 1px solid var(--borda); justify-content: space-between !important; gap: 4px !important; margin: 0 !important; overflow-x: auto; scrollbar-width: none; }
.acoes-ficha .botao-circulo { flex: 1 1 0; min-width: 0; text-align: center; line-height: 1.2; white-space: nowrap; }
.painel-aba { padding-top: 16px; }
.painel-aba > .paragrafo:first-child { margin-top: 0; }
.linhas-info { margin: 12px -20px 0; border-top: 1px solid var(--borda); }
.tela-detalhes .linhas-info { margin: 16px -24px 0; }
.linha-info { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--borda); }
.tela-detalhes .linha-info { padding: 12px 24px; }
.icone-info { color: var(--laranja-texto); flex: none; display: grid; }
.texto-info { flex: 1; font-size: 16px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.rotulo-info { display: block; font-size: 12px; color: var(--tinta); opacity: .72; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.copiar-info { flex: none; color: var(--tinta); }
.ouvir-ficha { margin-top: 12px; }
.resumo-avaliacoes { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.nota-grande { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nota-grande strong { font-size: 40px; line-height: 1; }
.barras-notas { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.barra-nota { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.trilho-nota { flex: 1; height: 8px; border-radius: 4px; background: var(--superficie); overflow: hidden; }
.trilho-nota > span { display: block; height: 100%; background: var(--laranja); border-radius: 4px; }
.avaliacao-item { padding: 16px 0; border-bottom: 1px solid var(--borda); }
.avaliacao-item p { margin: 0 0 4px; }
.painel-aba .botao.secundario { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }

/* ---------- Modos da rota ---------- */
.modos-rota { display: flex; gap: 4px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.modos-rota [role="radio"] { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 16px; background: none; color: var(--tinta); font: inherit; font-size: 12px; cursor: pointer; }
.modos-rota [role="radio"][aria-checked="true"] { background: var(--laranja-claro); color: var(--laranja-texto); font-weight: 600; }
:root[data-theme="escuro"] .modos-rota [role="radio"][aria-checked="true"] { background: var(--superficie); color: #F4A57E; }
.modos-rota [role="radio"]:focus-visible { outline: 3px solid var(--laranja); outline-offset: -3px; }
#resumo-rota .link-acao[data-acao="copiar-rota"] { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Imagens de rua ---------- */
.folha-rua .folha-corpo { max-height: 90%; }
.visor-rua img.foto-rua { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 16px; background: #000; display: block; }
.faixa-360 { height: min(50vh, 360px); overflow-x: auto; overflow-y: hidden; border-radius: 16px; background: #000; cursor: grab; touch-action: pan-y; scrollbar-width: thin; }
.faixa-360 img { height: 100%; width: auto; max-width: none; display: block; user-select: none; }
.faixa-360:focus-visible { outline: 3px solid var(--laranja); }
.dica-360 { display: flex; align-items: center; gap: 6px; }
/* Computador e tablet: as fotos da rua abrem numa janela no meio da tela, como os textos legais (antes ficavam presas embaixo). */
@media (min-width: 768px) {
  .folha-rua .folha-corpo {
    width: min(880px, calc(100% - 48px)); max-height: min(760px, calc(100% - 64px));
    left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%);
    border-radius: 24px; box-shadow: 0 8px 32px rgba(20, 35, 42, .28);
  }
}
.fonte-info { display: block; margin-top: 2px; }
.linha-botao { width: 100%; border: 0; border-bottom: 1px solid var(--borda); background: none; color: var(--tinta); font: inherit; text-align: left; cursor: pointer; }
.linha-botao:hover { background: var(--superficie); }
.linha-botao:focus-visible { outline: 3px solid var(--laranja); outline-offset: -3px; }

/* ---------- Campos de partida e destino com digitação direta ---------- */
.campo-trajeto { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; width: 100%; min-height: 48px; border: 1.5px solid var(--borda); border-radius: 12px; background: var(--controle); padding: 4px 12px; text-align: left; cursor: text; }
.campo-trajeto .valor-campo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 2; width: 100%; min-width: 0; border: 0; padding: 0; margin: 0; background: transparent; color: var(--tinta); font: inherit; font-weight: 600; font-size: 16px; line-height: 24px; outline: none; }
.campo-trajeto .valor-campo::placeholder { color: var(--laranja-texto); opacity: 1; font-weight: 600; }
.campo-trajeto .rotulo-campo { font-size: 12px; line-height: 16px; color: var(--cinza); cursor: text; }
/* Enquanto a lista está aberta, os campos ficam por cima dela e continuam clicáveis. */
#app:has(.folha.ancorada) #tela-rota .caixa-trajeto { z-index: 1500; }
.folha.ancorada .folha-corpo { position: absolute; bottom: auto; right: auto; transform: none; border-radius: 20px; box-shadow: var(--sombra); padding: 12px 16px 16px; background: var(--controle); }

/* ---------- Barra de filtros: rola com a roda do mouse, arrastando ou pelas setas ---------- */
.filtros-mapa { position: absolute; top: 80px; left: 0; right: 0; z-index: 520; display: flex; gap: 8px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.filtros-mapa.arrastando { scroll-behavior: auto; cursor: grabbing; }
.seta-filtros { position: absolute; z-index: 521; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--controle); color: var(--tinta); box-shadow: var(--sombra); display: none; place-items: center; cursor: pointer; }
.seta-filtros.visivel { display: grid; }
.seta-filtros:focus-visible { outline: 3px solid var(--laranja); }
@media (hover: none) { .seta-filtros { display: none !important; } }

/* Pontos de comer colados em outro ponto: somem e o ponto que fica mostra "+N" (toque aproxima o mapa). */
#mapa .marcador.agrupado { display: none !important; }
.contagem-grupo { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--fundo); color: var(--tinta); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 1.5px var(--tinta); pointer-events: none; }
/* Pontos pequenos do mapa: área de toque de 24 x 24 (WCAG 2.5.8), com o desenho de 20 px no centro. */
.marcador > .ponto.pequeno { margin: 2px; }

/* "Pular para o conteúdo": só aparece quando recebe o foco pelo teclado. */
.pular-conteudo { position: fixed; left: 16px; top: -80px; z-index: 5000; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 12px; background: var(--laranja-botao); color: #fff; font: inherit; font-weight: 600; box-shadow: var(--sombra); }
.pular-conteudo:focus { top: 16px; outline: 3px solid var(--tinta); outline-offset: 2px; }
.campo-trajeto:focus-within { border-color: var(--laranja); box-shadow: 0 0 0 2px var(--laranja-claro); outline: 2px solid var(--laranja); outline-offset: 1px; }
/* Celular deitado (tela baixa): sem os botões de zoom, que não cabem; dá para aproximar com os dedos ou o teclado. */
@media (max-height: 520px) {
  .zoom-mapa { display: none; }
  .botoes-mapa { gap: 8px; }
}

/* ---------- Celular: barra de busca, filtros e botões do mapa mais compactos ----------
   O desenho fica menor, mas a área de toque continua com pelo menos 44 px. */
@media (max-width: 767px) {
  .barra-busca { min-height: 48px; padding: 2px 4px 2px 2px; }
  .barra-busca .abrir-busca { min-height: 44px; }
  .barra-busca .botao-icone { width: 44px; height: 44px; }
  .barra-busca .avatar-busca { margin: 2px; }
  .filtros-mapa { top: 66px; padding: 4px 16px 6px; }
  .filtros-mapa .chip { position: relative; min-height: 36px; padding: 6px 14px; font-size: 14px; }
  .filtros-mapa .chip::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
  .botoes-mapa { gap: 8px; }
  .botoes-mapa .botao-redondo { width: 44px; height: 44px; }
}

/* Computador: botões do mapa menores, como nos mapas de computador (o mouse não precisa de área de toque grande). */
@media (min-width: 1024px) {
  .botoes-mapa { gap: 8px; }
  .botoes-mapa .botao-redondo { width: 40px; height: 40px; }
  .botoes-mapa .botao-redondo svg { width: 20px; height: 20px; }
  .zoom-mapa { border-radius: 20px; }
}
@media (min-width: 1024px) {
  #tela-mapa .filtros-mapa { top: 30px; }
  #tela-mapa .filtros-mapa .chip { min-height: 36px; padding: 6px 14px; font-size: 14px; gap: 6px; }
  #tela-mapa .filtros-mapa .chip svg { width: 16px; height: 16px; }
}

/* "Você está aqui": nome num balão acima do ponto, ao passar o mouse ou tocar. */
.marca-voce { cursor: default; }
.rotulo-voce {
  position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 4px);
  white-space: nowrap; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.2;
  background: var(--tinta); color: var(--fundo); box-shadow: var(--sombra);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.marca-voce:hover .rotulo-voce, .marca-voce.mostrar .rotulo-voce { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .rotulo-voce { transition: none; } }
.marca-voce:hover, .marca-voce.mostrar { z-index: 1000 !important; }

/* ---------- Computador e tablet: painel do lugar e lista Comer ao lado do menu lateral, na altura toda,
   como no Google Maps: com uma pequena margem e cantos arredondados. A caixa de busca fica na frente, por cima da foto. ---------- */
@media (min-width: 768px) {
  #tela-mapa .barra-busca { z-index: 700; min-height: 48px; padding: 2px 4px 2px 2px; top: 16px; }
  #tela-mapa .barra-busca .abrir-busca { min-height: 44px; }
  #tela-mapa .barra-busca .botao-icone { width: 44px; height: 44px; }
  /* Filtros começam depois do cartão e da faixa em volta dele (8 px), com folga, para não passarem por baixo dela. */
  #tela-mapa .filtros-mapa { top: 22px; left: calc(var(--trilho) + var(--largura-painel) + 20px); }
  #tela-mapa .aviso-topo { left: calc(var(--trilho) + var(--largura-painel) + 20px); }
  /* Lugar sem foto: o ícone fica no meio da área livre, abaixo da busca (antes ficava no canto, escondido). */
  .capa-painel .placeholder-foto { display: grid; place-items: center; padding-top: 56px; box-sizing: border-box; }
  #tela-mapa .cartao-lugar.painel-lugar,
  #tela-mapa .lista-comer, #tela-mapa .lista-comer.aberta {
    /* Igual ao Google Maps (medido no site): cartão com cantos de 24 px, solto 8 px do topo, de baixo e da direita,
       sobre uma faixa da mesma cor do menu lateral, com os cantos da direita arredondados (32 px). */
    left: var(--trilho); top: 8px; bottom: 8px; width: var(--largura-painel); height: auto;
    border-radius: 24px; box-shadow: 0 0 0 8px var(--fundo-trilho);
  }
  #tela-mapa .lista-comer, #tela-mapa .lista-comer.aberta { padding: 80px 20px 0; }
  #tela-mapa .lista-comer .topo-lista { padding-top: 0; }
  .capa-painel { height: 240px; }
  .capa-painel img, .capa-painel .placeholder-foto { border-radius: 0; }
  #tela-mapa { --fundo-trilho: var(--controle); }
  :root[data-theme="escuro"] #tela-mapa { --fundo-trilho: #14232A; }
  /* O X sai da foto e vai para dentro da caixa de busca. Com o lugar aberto a partir da lista, ele também volta para a lista. */
  .capa-painel .fechar { display: none; }
  #tela-mapa.com-cartao .barra-busca .fechar-na-busca { display: grid; }
}
.fechar-na-busca { display: none; }

/* Menu ☰: acordeão de idioma */
.linha-idioma .valor-gaveta { margin-left: auto; color: var(--cinza); font-size: 14px; }
.linha-idioma .seta-gaveta { display: grid; place-items: center; color: var(--cinza); transition: transform .2s; }
.linha-idioma[aria-expanded="true"] .seta-gaveta { transform: rotate(180deg); }
.opcoes-idioma { padding-bottom: 4px; }
.acordeao-idioma { align-self: stretch; width: 100%; }
.opcao-idioma { padding-left: 68px; justify-content: space-between; min-height: 44px; }
.opcao-idioma .marca-idioma { display: none; color: var(--laranja-texto); }
.opcao-idioma[aria-checked="true"] { font-weight: 600; }
.opcao-idioma[aria-checked="true"] .marca-idioma { display: grid; }
.linha-idioma .valor-gaveta { white-space: nowrap; }
.cartao-conta .opcao-idioma { padding-left: 60px; }
.sem-animacao, .sem-animacao * { animation: none !important; }
/* Enquanto a tela é redesenhada (troca de idioma etc.): nada desliza nem pisca. O pássaro da abertura continua voando. */
body.trocando-idioma *, body.trocando-idioma *::before, body.trocando-idioma *::after { transition: none !important; }
body.trocando-idioma *:not(.voando):not(.voando img):not(.toast) { animation: none !important; }

/* Textos legais (privacidade e termos) e demais janelas: no tablet e no computador ficam no meio da tela,
   com todos os cantos arredondados e uma margem em volta; o texto rola por dentro. */
.texto-legal { scrollbar-width: thin; scrollbar-color: var(--borda-forte) transparent; }
@media (min-width: 600px) {
  .folha:not(.ancorada):not(.folha-rua):not(.folha-pergunta) .folha-corpo {
    left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 48px)); max-height: min(720px, calc(100% - 64px));
    border-radius: 24px; box-shadow: 0 8px 32px rgba(20, 35, 42, .28); padding: 20px 28px 28px;
  }
}
/* Com uma janela de texto aberta no celular, o menu de baixo também fica escurecido e um toque nele fecha a janela. */
@media (max-width: 599px) {
  body.com-janela #menu-celular::after { content: ""; position: absolute; inset: 0; background: rgba(18, 42, 53, .45); z-index: 5; }
}

/* Gaveta do menu: sai deslizando para a esquerda, como entrou (mesma curva), e o véu some junto. */
.menu-conta.gaveta.gaveta-saindo { animation: gaveta-sai .22s cubic-bezier(.4, 0, .2, 1) forwards; pointer-events: none; }
.veu-gaveta.saindo { animation: veu-sai .22s forwards; pointer-events: none; }
@keyframes gaveta-sai { to { transform: translateX(-100%); } }
@keyframes veu-sai { to { opacity: 0; } }
/* Com o painel do lugar ou a lista Comer aberta, o menu lateral e a faixa atrás do cartão viram uma peça só (sem a linha divisória). */
@media (min-width: 768px) { body:has(#tela-mapa.com-cartao, #tela-mapa.com-lista) .trilho { box-shadow: none; } }
/* Celular estreito: o país fica numa linha e o número embaixo, os dois com a largura toda (o nome do país não corta). */
@media (max-width: 479px) { .linha-telefone { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Melhorias da design critique (15/11/2026) ---------- */
/* Conteúdo das telas com botão fixo embaixo termina acima dele. */
.tela:has(> .rodape-fixo) > .rolagem { padding-bottom: 120px; }
/* Aviso do que falta enquanto o botão está bloqueado. */
.dica-bloqueio { margin: 0 0 8px; font-size: 14px; color: var(--cinza); text-align: center; }
/* Busca: por que o lugar apareceu. */
.motivo-busca { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--verde-texto); }
/* Editar e apagar relatos e avaliações. */
.acoes-item { display: flex; gap: 8px; margin-top: 10px; }
.botao-texto-pequeno { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--borda-forte); background: transparent; color: var(--tinta); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.botao-texto-pequeno.perigo { color: #B42318; border-color: #E9B4AE; }
:root[data-theme="escuro"] .botao-texto-pequeno.perigo { color: #FF9C92; border-color: #6B3A36; }
.folha-corpo textarea { width: 100%; min-height: 96px; }
/* Avaliar: para qual necessidade é a nota. */
.chips-perfil { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
/* Como ler o mapa. */
.linha-legenda { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.linha-legenda strong { display: block; }
.linha-legenda > span:last-child > span { display: block; font-size: 14px; color: var(--cinza); margin-top: 2px; }
.desenho-legenda { flex: 0 0 auto; min-width: 44px; display: flex; justify-content: center; padding-top: 2px; color: var(--verde-texto); }
.desenho-legenda .icone-acess { white-space: nowrap; }
.linha-legenda:has(.icone-acess) { flex-direction: column; gap: 6px; }
.linha-legenda:has(.icone-acess) .desenho-legenda { justify-content: flex-start; }
.desenho-legenda .ponto { position: static; }
.desenho-legenda .contagem-grupo { position: static; display: inline-block; }
.ponto-voce-legenda { width: 18px; height: 18px; margin: 3px; border-radius: 50%; background: var(--azul); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(27,59,72,.2); }
:root[data-theme="escuro"] .ponto-voce-legenda { border-color: #14232A; box-shadow: 0 0 0 6px rgba(207,230,240,.25); }
.conteudo h2.rotulo { margin-top: 24px; }
/* A etiqueta "a confirmar" é um botão que abre a legenda. */
button.icone-acess { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
/* Horário: estado de agora em cor e a semana num quadro que abre ao tocar. */
.estado-horario .aberto { color: #2A7347; font-weight: 600; }
.estado-horario .fechado { color: #B3261E; font-weight: 600; }
.estado-horario .fecha-breve { color: var(--laranja-texto); font-weight: 600; }
:root[data-theme="escuro"] .estado-horario .aberto { color: #8FD3A8; }
:root[data-theme="escuro"] .estado-horario .fechado { color: #F2B8B5; }
.semana-horario { margin-top: 6px; }
.semana-horario summary { cursor: pointer; color: var(--laranja-texto); font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; gap: 4px; width: fit-content; }
.semana-horario table { border-collapse: collapse; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.semana-horario th { text-align: left; font-weight: 400; padding: 3px 16px 3px 0; color: var(--cinza); }
.semana-horario td { padding: 3px 0; }
.semana-horario tr.hoje th, .semana-horario tr.hoje td { font-weight: 700; color: var(--tinta); }

/* Cartão do lugar: etiquetas de acessibilidade e horário na largura toda, lado a lado (não numa coluna estreita ao lado de Rota e Salvar). */
.resumo-lugar > .icones-acess { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.resumo-lugar > .resumo-status { margin-top: 8px; }
/* Linha da nota: um toque abre a avaliação. */
.resumo-lugar .nota-avaliar, .nota-avaliar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; padding: 6px 0; min-height: 44px; background: none; border: 0; font: inherit; color: var(--cinza); text-align: left; cursor: pointer; }
.nota-avaliar .link-avaliar { display: inline-flex; align-items: center; gap: 4px; color: var(--laranja-texto); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Enquanto a lista de partida ou destino está aberta, o botão do VLibras sai da frente dela. */
body:has(.folha) #vlibras-access-wrapper { display: none !important; }

/* Aba Avaliações: cinco estrelas para tocar, como no Google Maps. */
.avaliar-aqui { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.avaliar-aqui .rotulo { margin: 0 0 4px; }
.estrelas-tocar { display: flex; gap: 4px; margin-top: 8px; }
.estrela-tocar { width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: var(--laranja-texto); display: grid; place-items: center; cursor: pointer; }
.estrela-tocar:hover, .estrela-tocar:focus-visible { background: var(--laranja-claro); }
/* Aba Sobre: uma linha por recurso de acessibilidade. */
.lista-sobre li { align-items: flex-start; }
.lista-sobre li.talvez { color: var(--laranja-escuro-texto); }
.lista-sobre li.nao { color: var(--cinza); }
/* Busca no computador: a caixa fica do mesmo tamanho e no mesmo lugar; só a lista desce embaixo dela. */
@media (min-width: 768px) {
  #busca-inline { padding: 0 16px; background: var(--controle); border-radius: 24px; }
  #busca-inline .campo-busca { margin: 0 -16px; min-height: 48px; padding: 2px 4px 2px 2px; background: var(--controle); border-radius: 999px; gap: 4px; }
  #busca-inline .campo-busca input { min-height: 44px; }
}

/* Resumo ao passar o mouse: compacto, como no Google Maps (etiquetas só com ícone, o nome aparece ao parar o mouse). */
.previa-lugar .capa-resumo { height: 88px; }
.previa-lugar .resumo-lugar > .icones-acess { margin-top: 6px; gap: 4px; }
.previa-lugar .icone-acess { padding: 4px 6px; min-height: 26px; }
.previa-lugar .icone-acess > span[aria-hidden="true"] { display: none; }

/* Telefone e "Como chegar" na Visão geral */
.link-fone { color: var(--azul); font-weight: 600; text-decoration: none; }
.link-fone:hover, .link-fone:focus-visible { text-decoration: underline; }
.como-chegar { margin-top: 8px; }
.como-chegar > .rotulo { padding: 0 20px; }
.tela-detalhes .como-chegar > .rotulo { padding: 0 24px; }
.como-chegar .aviso-trecho { margin: 12px 20px 0; }
.como-chegar .texto-info a { color: var(--azul); font-weight: 600; }

/* Lista aberta dos seletores (idioma e outros): as opções seguem o tema, para não ficar letra clara em fundo branco no modo escuro. */
select option { background: var(--fundo); color: var(--tinta); }

/* Lista Comer: linha com tipo, cadeira de rodas e endereço (corta com "..." se não couber) */
.item-comer > span:last-child { min-width: 0; flex: 1; }
.item-comer .linha-endereco { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-comer .cad-mini { display: inline-flex; vertical-align: -2px; color: var(--tinta); }
/* Lista minimizada (arrastada para baixo): só o título e o X */
.lista-comer.minima { height: 104px; }
.lista-comer.minima .chips, .lista-comer.minima .itens-comer { visibility: hidden; }
.lista-comer.arrastando { transition: none; user-select: none; }
.alca-lista, .lista-comer .topo-lista { touch-action: none; }
.alca-lista { cursor: grab; }
.tela.com-lista.lista-minima .botoes-mapa { bottom: 120px; }
@media (prefers-reduced-motion: reduce) { .bolha-trilho, .lista-comer { transition: none; } }
/* Chips da lista Comer com ícone: mesmo espaço entre ícone e texto dos chips do topo */
.lista-comer .chips .chip { display: inline-flex; align-items: center; gap: 6px; }

/* Celular: lista cheia cobre o mapa inteiro (sem a faixa de mapa cortada); a busca e os filtros ficam por cima */
@media (max-width: 767px) {
  /* O conteúdo começa abaixo do botão do VLibras (canto direito), para o X da lista não ficar embaixo dele */
  .lista-comer.aberta { height: 100%; border-radius: 0; padding-top: 168px; box-shadow: none; }
  .tela.lista-cheia .filtros-mapa, .tela.lista-cheia .barra-busca { z-index: 650; }
  .tela.lista-cheia .botoes-mapa { visibility: hidden; }
  /* Celular: tocar em qualquer parte do cartão abre a página completa. O tracinho sai; o "Mais detalhes" some da tela,
     mas continua para o leitor de tela e o teclado (aparece quando recebe o foco) */
  .cartao-resumo .alca-cartao { display: none; }
  .cartao-resumo .ver-detalhes:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* Ao ligar um filtro, a fileira rola até ele sem esconder o chip na borda */
.filtros-mapa { scroll-padding-left: 16px; }
/* Lista sem nenhum lugar que atenda aos filtros: explica antes da lista */
.aviso-zero { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--laranja-claro); color: var(--laranja-escuro-texto); font-size: 14px; flex: 0 0 auto; }
