/* ============================================================
   VISIT MONSARAZ — Guia Digital Oficial
   Design premium · ADN YAPP (Cormorant + DM Sans, verde-floresta)
   Mobile-first · imersivo · ecrã inteiro
   ============================================================ */

:root {
  --cream: #F7F3EA;
  --cream-2: #EFE9DB;
  --ink: #1A2417;
  --ink-2: #55604C;
  --ink-3: #8A9281;
  --line: #E7E1D2;
  --forest: #16301d;
  --forest-2: #244d30;
  --green: #2F6B47;
  --green-soft: #E7EFE4;
  --gold: #C99A3B;
  --gold-soft: #F1E4C4;
  --danger: #B3402F;
  --surface: #FFFFFF;
  --r-xs: 12px;
  --r-sm: 15px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  /* Sombras em camadas — profundidade premium (contacto + difusão) */
  --sh-1: 0 1px 2px rgba(20,30,18,.05), 0 3px 10px rgba(20,30,18,.05);
  --sh-2: 0 8px 24px rgba(20,30,18,.14), 0 24px 60px rgba(20,30,18,.20);
  --sh-card: 0 1px 2px rgba(20,30,18,.06), 0 6px 16px rgba(20,30,18,.07), 0 18px 40px rgba(20,30,18,.12);
  --sh-card-hover: 0 2px 4px rgba(20,30,18,.07), 0 12px 24px rgba(20,30,18,.10), 0 28px 60px rgba(20,30,18,.18);
  --sh-press: 0 1px 3px rgba(20,30,18,.10);
  /* Curvas de animação — consistentes em toda a app */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.22, .7, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --navh: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { height: 100%; background: var(--cream); overscroll-behavior: none; }

/* position:fixed + inset:0 acompanha sempre o viewport VISÍVEL — no Safari móvel
   (com barras dinâmicas) e em PWA standalone preenche o ecrã na totalidade,
   topo e fundo, sem depender de 100vh/100dvh. */
body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: pan-y;
}

img { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(201,154,59,.45); }
  70% { box-shadow: 0 0 0 16px rgba(201,154,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,154,59,0); }
}

/* Revelar ao deslizar */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .55s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   MICROINTERAÇÕES GLOBAIS — feedback de pressão/hover consistente
   ============================================================ */
@keyframes route-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }

/* Transição base de todos os elementos interativos */
.btn, .chip, .fp-opt, .fp-clear, .filter-btn, .icon-btn, .pill, .cat-tile,
.vista-card, .spot-card, .event-mini, .event-card, .story-card, .ai-card,
.now-card, .stat, .info-row, .review-btn, .map-open, .lang-btn, .dl-opt,
.section-head a, .home-menu, .live-tab, .dc, .map-locate, .map-mode,
.spot-card, .ev-act, .plan-pill, .rt-card, .voice-toggle {
  transition: transform .22s var(--ease-out), box-shadow .28s var(--ease-out),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), opacity .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* Pressão — botões e elementos pequenos (escala mais notória) */
.btn:active, .chip:active, .fp-opt:active, .fp-clear:active, .filter-btn:active,
.pill:active, .review-btn:active, .map-open:active, .lang-btn:active, .dl-opt:active,
.info-row:active, .section-head a:active, .dc:active, .ev-act:active,
.plan-pill:active, .voice-toggle:active, .event-mini:active, .stat:active {
  transform: scale(.95);
}

/* Pressão — cartões grandes (mais subtil, premium) */
.vista-card:active, .spot-card:active, .event-card:active, .story-card:active,
.ai-card:active, .now-card:active, .rt-card:active {
  transform: scale(.982);
  box-shadow: var(--sh-press);
}

/* Hover (rato/desktop) — elevação subtil dos cartões */
@media (hover: hover) and (pointer: fine) {
  .vista-card:hover, .spot-card:hover, .event-card:hover, .story-card:hover, .rt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-card-hover);
  }
  .ai-card:hover, .now-card:hover { transform: translateY(-3px); }
  .btn:hover { filter: brightness(1.06); }
  .chip:hover, .fp-opt:hover { border-color: var(--ink-3); }
  .cat-tile:hover .ico { transform: translateY(-3px); box-shadow: var(--sh-card); }
  .icon-btn:hover { box-shadow: var(--sh-card); }
}

/* ============================================================
   SPLASH
   ============================================================ */
#splash {
  position: fixed; inset: 0;
  z-index: 100;
  overflow: hidden; background: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: opacity .72s var(--ease-out), transform .9s var(--ease-out), filter .72s var(--ease-out);
  will-change: opacity, transform, filter;
}
/* Saída premium: dissolve, afasta-se em profundidade e desfoca — revelando a home por baixo */
#splash.leaving {
  opacity: 0;
  transform: scale(1.09);
  filter: blur(6px);
  pointer-events: none;
}
/* O conteúdo da splash acompanha com um leve avanço para criar continuidade */
#splash.leaving .splash-content { transform: translateY(-10px); opacity: 0; transition: transform .6s var(--ease-out), opacity .5s var(--ease-out); }
#splash.leaving .splash-top { opacity: 0; transition: opacity .4s var(--ease-out); }

.splash-bg { position: absolute; inset: 0; background: var(--cream); }
.splash-bg img,
.splash-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  min-height: 100%; min-width: 100%;
  object-fit: cover; object-position: center center;
}
/* O vídeo só fica visível quando está mesmo a tocar. Se o autoplay for
   bloqueado (ex.: poupança de bateria), fica escondido — vê-se a imagem,
   sem o botão de play nativo. */
.splash-bg video { opacity: 0; }
.splash-bg video.playing { opacity: 1; }
/* esconde controlos nativos que possam surgir */
.splash-bg video::-webkit-media-controls,
.splash-bg video::-webkit-media-controls-start-playback-button,
.splash-bg video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.splash-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,25,12,.55) 0%, rgba(15,25,12,.12) 28%, rgba(15,25,12,.5) 62%, rgba(13,22,11,.95) 100%);
}

/* Topo da splash: marca à esquerda, ações no canto superior DIREITO */
.splash-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: flex-start; justify-content: flex-end; gap: 12px;
  padding: calc(18px + var(--safe-t)) 18px 0;
}
.brand-mark { animation: fade-up .8s .1s both; }
.brand-name {
  display: block; font-family: var(--display);
  font-size: 24px; font-weight: 600; color: #fff; letter-spacing: .02em; line-height: 1;
}
.brand-sub {
  display: block; margin-top: 3px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft);
}
.splash-tools {
  display: flex; align-items: center; gap: 8px;
  animation: fade-up .8s .2s both;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .02em;
  white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; flex: none; }

.splash-content {
  position: relative; z-index: 2;
  padding: 0 22px calc(20px + var(--safe-b));
  color: #fff;
}
.splash-kicker {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 10px; animation: fade-up .8s .35s both;
}
.splash-title {
  font-family: var(--display);
  font-size: clamp(58px, 18vw, 92px); font-weight: 600; line-height: .92;
  margin-bottom: 14px; animation: fade-up .8s .45s both;
}
.splash-title .st-pre {
  display: block;
  font-size: clamp(22px, 6.4vw, 32px); font-weight: 500;
  letter-spacing: .01em; line-height: 1; margin-bottom: 2px;
  color: rgba(255,255,255,.92);
}
.splash-sub {
  font-size: 15px; line-height: 1.6; opacity: .9; max-width: 34ch;
  margin-bottom: 26px; animation: fade-up .8s .58s both;
}
.splash-actions { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; animation: fade-up .8s .7s both; }
.splash-actions .weather-pill { margin-left: 2px; }
.splash-official {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; animation: fade-up .8s .85s both;
}
.splash-official img {
  width: 38px; height: 40px; object-fit: contain; flex: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.splash-official span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.82); line-height: 1.3; max-width: 22ch;
}
.btn-explore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border: none; border-radius: 999px;
  background: #fff; color: var(--forest);
  font-size: 15.5px; font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.btn-explore svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn-explore:active { transform: scale(.96); }
.btn-explore:hover svg { transform: translateX(3px); }

.weather-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.weather-pill svg { width: 15px; height: 15px; flex: none; opacity: .9; }

/* Idioma (dropdown) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 12px;
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; color: #fff; font-size: 13px;
}
.lang-flag { font-size: 15px; line-height: 1; }
.lang-arr { font-size: 9px; opacity: .8; transition: transform .2s ease; }
.lang.open .lang-arr { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 16px; box-shadow: var(--sh-2);
  overflow: hidden; min-width: 176px; z-index: 200;
  animation: fade-up .25s both;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; padding: 13px 17px;
  font-size: 14.5px; color: var(--ink); text-align: left;
}
.lang-menu button:hover { background: var(--cream); }
.lang-menu button.on { background: var(--green-soft); font-weight: 600; }

/* ============================================================
   APP — estrutura ecrã inteiro
   ============================================================ */
.device {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--cream); overflow: hidden;
}
body.app-ready #app { animation: app-enter .85s var(--ease-out) both; }
@keyframes app-enter {
  from { opacity: 0; transform: scale(1.04); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1); }
}
/* Entrada suave do conteúdo a cada navegação entre páginas */
#screen.nav-anim { animation: screen-in .42s var(--ease-out); }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

#screen {
  flex: 1; position: relative;
  min-height: 0;            /* permite ao flex item encolher e resolver % de altura dos filhos */
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: none;     /* elimina o efeito elástico (rubber-band) do iOS */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#screen::-webkit-scrollbar { display: none; }

/* Contentor da home imersiva — altura total do ecrã visível */
.home2 { height: 100%; }

@media (min-width: 860px) {
  .topbar, .chip-row, .cat-grid, .section, .list, .hscroll, .timeline,
  .chat-log, .chat-suggest, .chat-input, .detail-body, .ai-card, .contact-group,
  .now-card, .stats, .search { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   COMPONENTES GERAIS
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(14px + var(--safe-t)) 16px 13px;
  background: rgba(247,243,234,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  flex: 1; font-family: var(--display);
  font-size: 26px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: none; border-radius: 14px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-1);
  transition: transform .15s ease;
}
.icon-btn:active { transform: scale(.93); }
.icon-btn.ghost { background: transparent; box-shadow: none; }
.icon-btn.glass {
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}

.section { padding: 4px 18px 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 14px; }
.section-head h2 { font-family: var(--display); font-size: 29px; font-weight: 600; line-height: 1; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--green); }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 17px; min-height: 38px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Barra de explorar com botão de filtro */
.explore-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.filter-btn {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.filter-btn.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.filter-btn .fb-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--gold); color: #3a2c08;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.filter-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 16px; }
.filter-panel.open { max-height: 320px; padding-bottom: 6px; }
.fp-row { margin-bottom: 12px; }
.fp-lbl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.fp-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-opt {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600;
}
.fp-opt.on { background: var(--green-soft); border-color: var(--green); color: var(--forest-2); }
.fp-clear {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--danger-soft); background: var(--surface); color: var(--danger);
  font-size: 13px; font-weight: 600;
}
.fp-clear.off { opacity: .4; pointer-events: none; }

.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.stars svg { color: var(--gold); }
.stars .rev { color: var(--ink-3); font-weight: 500; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--green-soft); color: var(--forest-2);
  font-size: 12px; font-weight: 600;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 22px;
  border: none; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #1c3b25 0%, var(--forest) 100%);
  color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(20,30,18,.10), 0 8px 20px rgba(22,48,29,.22);
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out), filter .2s var(--ease);
}
.btn:active { transform: scale(.96); box-shadow: 0 1px 3px rgba(20,30,18,.14); }
.btn.secondary {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 2px rgba(20,30,18,.04), 0 6px 16px rgba(20,30,18,.06);
}
.btn.secondary:active { box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 3px rgba(20,30,18,.08); }

/* Toast de sucesso */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--navh) + 20px);
  display: flex; align-items: center; gap: 9px;
  max-width: 86%; padding: 12px 18px;
  background: rgba(22,33,20,.94); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px; box-shadow: var(--sh-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  z-index: 95; pointer-events: none;
  transform: translateX(-50%);
  animation: toast-in .45s var(--ease-spring) both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(22px) scale(.94); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.toast.hide { animation: toast-out .34s var(--ease) both; }
@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) translateY(18px) scale(.95); }
}
.toast svg { width: 18px; height: 18px; flex: none; color: var(--gold-soft); }

/* Indicador de modo offline */
.offline-bar {
  position: fixed; left: 50%; bottom: calc(var(--navh) + 14px);
  display: flex; align-items: center; gap: 8px;
  max-width: 90%; padding: 10px 16px;
  background: #443610; color: #fff;
  border-radius: 999px; box-shadow: var(--sh-2);
  font-size: 12.5px; font-weight: 600;
  z-index: 96; pointer-events: none;
  opacity: 0; transform: translateX(-50%) translateY(16px);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-spring);
}
.offline-bar.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.offline-bar svg { flex: none; color: var(--gold-soft); }

/* ============================================================
   HOME IMERSIVA — imagem total + conteúdo que desliza por cima
   ============================================================ */
.hero-full {
  position: sticky; top: 0; z-index: 0;
  height: 100%;            /* preenche o ecrã visível acima do menu inferior */
  min-height: 460px;
  background: var(--forest);
  overflow: hidden;
}
.hero-full img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
.hero-full .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,22,11,.5) 0%, rgba(13,22,11,.04) 30%, rgba(13,22,11,.1) 55%, rgba(13,22,11,.66) 100%);
}

.home-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px 0;
  transition: opacity .3s ease, transform .3s ease;
}
.home-top.hide { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.home-menu {
  position: absolute; left: 14px; top: calc(14px + var(--safe-t));
  width: 42px; height: 42px; border: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(22,48,29,.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
}
.home-menu:active { transform: scale(.92); }
.home-top .n {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  color: #fff; letter-spacing: .08em; text-transform: uppercase; text-align: center; white-space: nowrap;
}
.home-top .s {
  display: block; font-size: 9px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft);
  margin-top: 2px; text-align: center;
}

.home-hero {
  position: absolute; left: 22px; right: 22px;
  bottom: 38px; z-index: 4; color: #fff;
  transition: opacity .3s ease;
}
.home-hero .kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft);
}
.home-hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 17vw, 86px); font-weight: 600; line-height: .9;
  margin: 6px 0 16px;
}
.home-hero h1 .st-pre {
  display: block; font-size: clamp(20px, 5.8vw, 30px); font-weight: 500;
  letter-spacing: .01em; line-height: 1; margin-bottom: 1px; color: rgba(255,255,255,.92);
}
.home-scrolled .home-hero { opacity: 0; }

/* Aba do Guia ao Vivo — borda direita, ícone a pulsar */
.live-tab {
  position: absolute; right: 0; top: 44%; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 62px; padding: 13px 6px 14px; border: none;
  border-radius: 18px 0 0 18px; color: #fff;
  background: rgba(22,48,29,.62);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22); border-right: none;
  box-shadow: -4px 6px 18px rgba(13,22,11,.3);
  transition: opacity .3s ease, transform .25s ease;
}
.live-tab:active { transform: translateX(2px); }
.live-tab .lt-ic {
  position: relative; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.live-tab .lt-pulse {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,154,59,.55); z-index: 1;
  animation: pulse-ring 2s ease-out infinite;
}
.live-tab .lt-tx { position: relative; z-index: 2; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.home-scrolled .live-tab { opacity: 0; pointer-events: none; }

/* Painel do Guia ao Vivo (desliza da direita) */
.live-veil {
  position: fixed; inset: 0; z-index: 44;
  background: rgba(12,18,10,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
body.live-open .live-veil { opacity: 1; pointer-events: auto; }
.live-side {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 45;
  width: 86%; max-width: 360px;
  background: var(--cream);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  box-shadow: -16px 0 50px rgba(13,22,11,.35);
  transform: translateX(110%);
  transition: transform .42s cubic-bezier(.2,.9,.3,1.05);
  padding-top: calc(20px + var(--safe-t)); padding-bottom: calc(18px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: center;
}
body.live-open .live-side { transform: translateX(0); }
.ls-grip {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 54px; border-radius: 999px; background: #D4CDBC; cursor: grab;
}
.ls-body { padding: 8px 26px 4px; text-align: center; }
.ls-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 12px;
  background: var(--green-soft); color: var(--forest-2);
  display: flex; align-items: center; justify-content: center;
}
.ls-body h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.ls-body p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 6px 0 16px; }
.ls-more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.home-weather {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px; font-size: 12.5px; font-weight: 500;
}
.home-weather svg { width: 14px; height: 14px; opacity: .9; }

.scroll-hint {
  position: absolute; left: 24px; bottom: 26px; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  color: #fff; font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; opacity: .85;
  transition: opacity .3s ease;
}
.scroll-hint svg { animation: bounce-y 1.8s ease-in-out infinite; }
.home-top.hide ~ .home-hero, .home-scrolled .home-hero { opacity: 0; }
.home-scrolled .scroll-hint { opacity: 0; }

/* Conteúdo que cobre a imagem */
.home-content {
  position: relative; z-index: 3;
  margin-top: -30px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--cream);
  box-shadow: 0 -16px 50px rgba(13,22,11,.28);
  padding-top: 12px; padding-bottom: 28px;
}
.home-content::before {
  content: ""; display: block;
  width: 44px; height: 5px; border-radius: 999px;
  background: #D4CDBC; margin: 2px auto 12px;
}

/* Pesquisa */
.search {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 18px 6px; padding: 0 18px;
  min-height: 54px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-1); color: var(--ink-3);
}
.search input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--ink-3); }

/* Categorias */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; padding: 14px 16px 6px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: none; background: transparent;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  text-align: center; line-height: 1.2;
}
.cat-tile .ico {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 20px;
  background: linear-gradient(160deg, #fff, #F4EFE4);
  box-shadow: var(--sh-1); color: var(--forest-2);
  transition: transform .18s ease;
}
.cat-tile:active .ico { transform: scale(.9); }

/* "Agora em Monsaraz" — widget vivo */
.now-card {
  margin: 14px 18px 0; padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--forest) 0%, #1d4027 70%, #2a5a38 100%);
  color: #fff; box-shadow: var(--sh-card);
  position: relative; overflow: hidden;
}
.now-card::after {
  content: ""; position: absolute; right: -40px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,154,59,.3), transparent 70%);
}
.now-card .nc-k {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft);
}
.now-card .nc-main { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 2px; }
.now-card .nc-temp { font-family: var(--display); font-size: 58px; font-weight: 600; line-height: 1; }
.now-card .nc-desc { font-size: 15px; opacity: .92; }
.now-card .nc-row {
  display: flex; flex-wrap: wrap; gap: 7px 16px;
  margin-top: 12px; font-size: 12.5px; opacity: .92;
}
.now-card .nc-row span { display: inline-flex; align-items: center; gap: 6px; }

/* Faixa de números do território */
.stats { display: flex; gap: 8px; padding: 20px 18px 2px; }
.stat { flex: 1; text-align: center; padding: 14px 6px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); }
.stat .v { font-family: var(--display); font-size: 25px; font-weight: 700; color: var(--forest-2); line-height: 1.05; }
.stat .l { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; line-height: 1.3; }

/* Scroll horizontal — com espaçamento lateral respeitado pelo snap */
.hscroll {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 4px 18px 14px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 18px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll::after { content: ""; flex: none; width: 4px; }

/* Destaques — cartões grandes estilo revista */
.spot-card {
  flex: none; width: min(80vw, 330px); height: 440px;
  scroll-snap-align: start; position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-card); color: #fff;
}
.spot-card img { width: 100%; height: 100%; object-fit: cover; }
.spot-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,8,.04) 35%, rgba(10,16,8,.84) 100%);
}
.spot-card .ov { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.spot-card .ov .tag {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 6px;
}
.spot-card .ov h3 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.02; }
.spot-card .ov .stars { margin-top: 9px; color: #fff; }
.spot-card .ov .stars .rev { color: rgba(255,255,255,.7); }

/* Cartão IA */
.ai-card {
  display: flex; align-items: center; gap: 15px;
  margin: 14px 18px 0; padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #fff; box-shadow: var(--sh-card);
  position: relative; overflow: hidden;
}
.ai-card::before {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,154,59,.32), transparent 70%);
}
.ai-card .ico {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 16px;
  background: rgba(255,255,255,.15);
}
.ai-card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.ai-card p { font-size: 13px; opacity: .85; line-height: 1.4; }
.ai-card .chev { margin-left: auto; opacity: .7; }

/* Cartão "A Nossa História" — teaser na home */
.story-card {
  position: relative; display: block;
  margin: 14px 18px 0; height: 188px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-card); color: #fff;
}
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-ov {
  position: absolute; inset: 0; padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(10,16,8,.05) 0%, rgba(10,16,8,.45) 45%, rgba(10,16,8,.86) 100%);
}
.story-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft);
}
.story-ov h3 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.05; margin-top: 4px; }
.story-ov p { font-size: 12.5px; line-height: 1.45; opacity: .9; margin-top: 6px; }
.story-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: #fff; margin-top: 10px;
}
.story-link svg { transition: transform .2s ease; }
.story-card:active .story-link svg { transform: translateX(3px); }

/* Cultura — lista de cartões */
.cult-list { display: flex; flex-direction: column; gap: 14px; padding: 14px 18px 6px; }
.cult-card {
  display: flex; background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card);
  color: var(--ink);
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.cult-card:active { transform: scale(.985); box-shadow: var(--sh-press); }
@media (hover: hover) and (pointer: fine) { .cult-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); } }
.cult-ph { width: 116px; flex: none; background: var(--cream-2); }
.cult-ph img { width: 100%; height: 100%; object-fit: cover; min-height: 142px; }
.cult-body { flex: 1; min-width: 0; padding: 14px 16px; }
.cult-k { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.cult-body h3 { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--forest); line-height: 1.08; margin: 3px 0 5px; }
.cult-body p { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* ============================================================
   PÁGINA — A NOSSA HISTÓRIA (editorial)
   ============================================================ */
.historia { padding-bottom: 30px; }
.hist-hero { position: relative; height: 380px; overflow: hidden; }
.hist-hero img { width: 100%; height: 100%; object-fit: cover; }
.hist-hero-ov {
  position: absolute; inset: 0; padding: 24px 22px 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(10,16,8,.15) 0%, transparent 30%, rgba(10,16,8,.78) 100%);
  color: #fff;
}
.hist-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft);
}
.hist-hero-ov h1 { font-family: var(--display); font-size: 60px; font-weight: 600; line-height: .98; margin-top: 6px; }
.hist-hero-ov p { font-family: var(--display); font-size: 19px; font-style: italic; opacity: .92; margin-top: 4px; }
.hist-body { padding: 22px 22px 0; max-width: 720px; margin: 0 auto; }
.hist-lead {
  font-family: var(--display); font-size: 21px; line-height: 1.45; color: var(--forest);
  font-weight: 500; margin-bottom: 6px;
}
.hist-lead::first-letter {
  font-size: 58px; font-weight: 600; float: left; line-height: .82;
  margin: 6px 10px 0 0; color: var(--gold);
}
.hist-p { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin-top: 14px; }
.hist-chap { margin-top: 26px; }
.hist-num {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); padding-bottom: 4px;
  border-bottom: 2px solid var(--gold-soft); margin-bottom: 8px;
}
.hist-chap h2 { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.06; color: var(--forest); }
.hist-chap p { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin-top: 9px; }
.hist-chap strong { color: var(--forest-2); font-weight: 600; }
.hist-fig { margin: 24px -22px; }
.hist-fig img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hist-fig figcaption {
  font-size: 12.5px; color: var(--ink-3); font-style: italic;
  padding: 8px 22px 0; text-align: center;
}
.hist-quote {
  font-family: var(--display); font-size: 22px; font-style: italic; line-height: 1.4;
  color: var(--forest); margin: 30px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gold);
}
.hist-legtitle { margin-top: 34px; text-align: center; }
.hist-legtitle .hist-num { border-bottom-color: var(--gold); }
.hist-legtitle h2 { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--forest); line-height: 1.06; }
.hist-legintro { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.legend {
  position: relative; margin-top: 16px;
  padding: 15px 18px 16px 20px;
  background: var(--cream-2); border-radius: var(--r);
  border-left: 3px solid var(--gold);
}
.legend-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.legend h3 { font-family: var(--display); font-size: 23px; font-weight: 600; color: var(--forest); line-height: 1.05; margin-top: 2px; }
.legend p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-top: 7px; }
.legend strong { color: var(--forest-2); font-weight: 600; }
/* Curiosidades (Sabia que…) */
.curio { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 15px 17px; margin-top: 12px; border-left: 3px solid var(--gold); }
.curio h3 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--forest); line-height: 1.1; }
.curio p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-top: 5px; }
.hist-cta { display: flex; flex-direction: column; margin-top: 34px; }

/* Brasão oficial na página Sobre */
.about-crest {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 22px 22px 6px;
}
.about-crest img { width: 92px; height: 96px; object-fit: contain; }
.about-crest .crest-cap {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.5;
}
.about-crest .crest-cap strong { color: var(--forest); }

/* Eventos mini — maiores */
.event-mini { flex: none; width: 215px; scroll-snap-align: start; color: var(--ink); }
.event-mini .ph {
  display: block; position: relative; height: 270px;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card);
}
.event-mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.event-mini .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,8,.35), transparent 40%);
}
.event-mini .date {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--forest-2);
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.event-mini h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: 10px; }
.event-mini p { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }

.home-foot { text-align: center; font-size: 11px; color: var(--ink-3); padding: 18px 16px 4px; }

/* Botão do Assistente IA — canto superior direito, circular (só símbolo) */
.fab {
  position: fixed;
  top: calc(14px + var(--safe-t)); right: 14px;
  z-index: 29;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(22,48,29,.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13,22,11,.3);
}
.fab svg { color: var(--gold-soft); }
.fab:active { transform: scale(.92); }

/* ============================================================
   EXPLORAR — cartões visuais grandes
   ============================================================ */
.list { display: flex; flex-direction: column; gap: 15px; padding: 8px 18px 26px; }

.vista-card {
  position: relative; display: block; height: 250px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-card); color: #fff;
}
.vista-card img { width: 100%; height: 100%; object-fit: cover; }
.vista-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,8,.08) 38%, rgba(10,16,8,.82) 100%);
}
.vista-card .dist {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--forest-2);
  font-size: 11px; font-weight: 700;
}
.vista-card .dist.near { background: var(--forest); color: #fff; }
.vista-card .dist.near svg { color: var(--gold-soft); }
.meta-dist.near {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--forest-2);
}
.meta-dist.near svg { color: var(--gold); }
.vista-card .ov { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.vista-card .ov .tag {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px;
}
.vista-card .ov h3 { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.02; }
.ov-empresa {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 600; color: #fff;
}
.ov-empresa svg { color: var(--gold-soft); }
.vista-card .ov .stars { margin-top: 7px; color: #fff; }
.vista-card .ov .stars .rev { color: rgba(255,255,255,.7); }

/* ============================================================
   EVENTOS — cartões grandes
   ============================================================ */
.event-card {
  border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--sh-card); overflow: hidden;
}
.event-card .ph { position: relative; height: 195px; }
.event-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.event-card .ph .date {
  position: absolute; top: 13px; left: 13px;
  background: rgba(255,255,255,.94); color: var(--forest-2);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.event-card .body { padding: 15px 17px 17px; }
.event-card h3 { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.1; }
.event-card .local { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.event-card p.desc { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.event-card { cursor: pointer; }
.event-card .ev-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--forest); }
.event-card .ev-cta svg { stroke: var(--gold); }

.empty { text-align: center; color: var(--ink-2); padding: 48px 24px; font-size: 14.5px; }

/* ============================================================
   DETALHE
   ============================================================ */
.detail-hero { position: relative; height: 400px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,8,.45), transparent 40%, transparent 64%, rgba(10,16,8,.42));
}
.detail-hero .hero-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(14px + var(--safe-t)) 16px 0;
}
.hero-actions { display: flex; gap: 8px; }

/* ---- Botão de favorito (coração) ---- */
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; padding: 0; color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-spring);
}
.fav-btn svg { transition: fill .2s var(--ease), color .2s var(--ease), transform .25s var(--ease-spring); }
.fav-btn:active { transform: scale(.82); }
.fav-btn.on svg { fill: var(--danger); color: var(--danger); transform: scale(1.05); }
.vista-card .fav-btn.on-card {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--forest-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(20,30,18,.2);
}
.fav-btn.glass {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,.16); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
}
.fav-btn.glass.on svg { fill: #ff5a6e; color: #ff5a6e; }

/* ---- Favoritos: estado vazio ---- */
.favs-empty { text-align: center; padding: 56px 30px; max-width: 420px; margin: 0 auto; }
.favs-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 24px;
  background: var(--green-soft); color: var(--danger); margin-bottom: 14px;
}
.favs-empty h2 { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--forest); }
.favs-empty p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; }
.detail-hero .h-title { position: absolute; left: 20px; right: 20px; bottom: 42px; z-index: 3; color: #fff; }
.detail-hero .h-title .badge {
  background: rgba(255,255,255,.16); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
}
.detail-hero .h-title h1 { font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1.02; margin-top: 10px; }

.detail-body {
  position: relative; z-index: 2; margin-top: -24px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--cream); padding: 24px 20px 32px;
}
.detail-body .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-body p.desc { color: #2E3A28; font-size: 15.5px; line-height: 1.62; }

.info-rows { margin: 18px 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.info-row { display: flex; align-items: center; gap: 13px; padding: 14px 16px; font-size: 14.5px; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row svg { color: var(--green); flex: none; }
.info-row .lbl { color: var(--ink-3); font-size: 11.5px; display: block; }
a.info-row { color: var(--forest); text-decoration: none; font-weight: 600; }
a.info-row:active { background: var(--cream-2); }
.open-badge {
  display: inline-block; margin-top: 5px; padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; vertical-align: middle;
}
.open-badge.open { background: var(--green-soft); color: var(--forest-2); }
.open-badge.closed { background: var(--danger-soft); color: var(--danger); }

/* Botão áudio-guia (TTS) */
.audio-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  margin: 2px 0 16px; padding: 13px 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--green); background: var(--green-soft); color: var(--forest-2);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease), color .2s var(--ease);
}
.audio-btn:active { transform: scale(.98); }
.audio-btn svg { flex: none; color: var(--green); }
.audio-btn.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.audio-btn.on svg { color: var(--gold-soft); }

/* Roteiros — tempo e nível de dificuldade */
.rt-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.rt-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rt-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rt-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.nv { padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.nv.easy { background: var(--green-soft); color: var(--forest-2); }
.nv.mod { background: var(--gold-soft); color: #8a6a1e; }
.nv.hard { background: var(--danger-soft); color: var(--danger); }

/* Evento recorrente */
.rec-badge { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; font-family: var(--sans); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--forest-2); }
.rec-badge svg { color: var(--green); }

.detail-actions { display: flex; gap: 10px; margin-top: 4px; }
.detail-actions .btn { flex: 1; }

/* ============================================================
   ROTEIROS
   ============================================================ */
.route-card {
  position: relative; display: block; height: 210px;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; box-shadow: var(--sh-card);
}
.route-card img { width: 100%; height: 100%; object-fit: cover; }
.route-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,8,.1), rgba(10,16,8,.8));
}
.route-card .body { position: absolute; left: 20px; right: 20px; bottom: 17px; z-index: 2; }
.route-card .body .tag { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.route-card h3 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; margin-top: 4px; }
.route-card p { font-size: 13px; opacity: .9; margin-top: 4px; }

.timeline { padding: 8px 16px 24px; }
.t-step { display: flex; gap: 14px; }
.t-step .when { flex: none; width: 66px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--forest-2); padding-top: 18px; }
.t-step .rail { flex: none; width: 14px; display: flex; flex-direction: column; align-items: center; }
.t-step .rail .dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green); margin-top: 21px; flex: none;
  box-shadow: 0 0 0 4px var(--green-soft);
}
.t-step .rail .line { flex: 1; width: 2px; background: #D2DBCB; }
.t-step:last-child .rail .line { background: transparent; }
.t-card {
  flex: 1; display: flex; gap: 12px; align-items: center;
  margin: 7px 0; padding: 11px;
  border-radius: 16px; background: var(--surface);
  box-shadow: var(--sh-1); color: var(--ink); min-width: 0;
}
.t-card img { width: 66px; height: 66px; border-radius: 14px; object-fit: cover; flex: none; }
.t-card h4 { font-size: 15px; font-weight: 700; line-height: 1.25; }
.t-card p { font-size: 12px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.t-leg { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px 80px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.t-leg svg { color: var(--green); }

/* ============================================================
   PLANEADOR DE ROTEIRO
   ============================================================ */
.planner-card { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 70%, #2f6b47 100%); }
.planner-card .pc-bg { position: absolute; inset: 0; background: radial-gradient(160px 120px at 85% 15%, rgba(201,154,59,.35), transparent 70%); }
.planner-card::after { display: none; }
.planner-card .body { position: absolute; }
.planner-card .tag { display: inline-flex; align-items: center; gap: 5px; }

.plan-modes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-modes .mm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 600;
}
.plan-modes .mm.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.plan-start {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.plan-start input { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 150px; }
.psel {
  position: relative; height: 110px; border-radius: var(--r); overflow: hidden;
  border: none; padding: 0; text-align: left; color: #fff;
  box-shadow: var(--sh-1);
}
.psel img { width: 100%; height: 100%; object-fit: cover; }
.psel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,8,.1) 40%, rgba(10,16,8,.8)); }
.psel .ps-name { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 2; font-size: 13px; font-weight: 700; line-height: 1.2; }
.psel .ps-check {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; color: transparent;
  transition: background .15s ease;
}
.psel.on { outline: 3px solid var(--green); outline-offset: -3px; }
.psel.on .ps-check { background: var(--green); color: #fff; }

.plan-bar {
  position: fixed; left: 0; right: 0; bottom: var(--navh); z-index: 28;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(13,22,11,.1);
  transform: translateY(220%); transition: transform .3s ease;
}
.plan-bar.show { transform: translateY(0); }
.plan-bar span { font-size: 14px; color: var(--ink-2); }
.plan-bar .btn { min-height: 46px; }

.traj-head { padding: 4px 16px 0; }
.th-stats { display: flex; gap: 8px; }
.th-stats > div { flex: 1; text-align: center; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 12px 6px; }
.th-stats .v { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--forest-2); line-height: 1.1; }
.th-stats .l { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); margin-top: 3px; }
.th-acts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.th-acts .btn { width: 100%; }

/* ============================================================
   ASSISTENTE IA
   ============================================================ */
.chat-screen { display: flex; flex-direction: column; height: 100%; }
.chat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: none;
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  scrollbar-width: none;
}
.chat-log::-webkit-scrollbar { display: none; }
.msg {
  max-width: 86%; padding: 13px 16px; border-radius: 20px;
  font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: break-word;
}
.msg a { font-weight: 700; }
.msg.bot { align-self: flex-start; background: var(--surface); box-shadow: var(--sh-1); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--forest); color: #fff; border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 17px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,70%,100% { opacity: .25 } 35% { opacity: 1 } }

.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }

.chat-input {
  flex: none;
  display: flex; gap: 10px;
  padding: 10px 16px 14px;
  background: var(--cream); border-top: 1px solid var(--line);
}
.chat-suggest { flex: none; }
.chat-input input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); font: inherit; font-size: 14.5px;
}
.chat-input input:focus { outline: none; border-color: var(--green); }
.chat-input button[type="submit"] {
  flex: none; width: 48px; height: 48px; border: none; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mic-btn {
  flex: none; width: 48px; height: 48px; border: none; border-radius: 50%;
  background: var(--surface); color: var(--forest-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  display: flex; align-items: center; justify-content: center;
}
.mic-btn.rec { background: var(--danger); color: #fff; box-shadow: none; }
.voice-toggle.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.voice-toggle svg { vertical-align: -2px; }

/* Barra de gravação de voz (estilo WhatsApp) */
.chat-input.recording > *:not(#rec-bar) { display: none; }
#rec-bar {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
}
#rec-bar .rec-cancel, #rec-bar .rec-send {
  flex: none; width: 40px; height: 40px; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#rec-bar .rec-cancel { background: var(--danger-soft); color: var(--danger); }
#rec-bar .rec-send { background: var(--forest); color: #fff; }
#rec-bar .rec-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: blink 1.1s infinite; }
#rec-bar .rec-time { flex: none; font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 34px; }
#rec-bar .rec-wave { flex: 1; display: flex; align-items: center; gap: 2.5px; height: 28px; overflow: hidden; }
#rec-bar .rec-wave i {
  flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px;
  background: var(--green); height: 22%;
  animation: rec-eq .9s ease-in-out infinite;
  transition: height .08s linear;
}
#rec-bar .rec-wave i:nth-child(2n) { animation-delay: .15s; }
#rec-bar .rec-wave i:nth-child(3n) { animation-delay: .3s; }
#rec-bar .rec-wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes rec-eq { 0%,100% { height: 18%; opacity: .55; } 50% { height: 88%; opacity: 1; } }

/* ============================================================
   MAPA / INFO
   ============================================================ */
.map-screen { display: flex; flex-direction: column; height: 100%; }
.map-screen .map-area { flex: 1; position: relative; background: var(--green-soft); }
#map-canvas { height: 100%; min-height: 320px; z-index: 1; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { font-family: var(--sans); }
.map-open {
  position: absolute; left: 50%; bottom: 18px; z-index: 5;
  transform: translateX(-50%);
  min-height: 44px; padding: 10px 18px;
  font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 8px 26px rgba(13,22,11,.35);
}
/* Modos A pé / Carro */
.map-modes {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: var(--sh-1);
}
.map-modes .mm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border: none; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 600;
}
.map-modes .mm.on { background: var(--forest); color: #fff; }
/* Botão "a minha localização" */
.map-locate {
  position: absolute; right: 14px; bottom: 74px; z-index: 5;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: #fff; color: #1A73E8;
  box-shadow: 0 4px 14px rgba(13,22,11,.28);
  display: flex; align-items: center; justify-content: center;
}
.map-locate.denied { color: var(--ink-3); }
.map-locate.loading { animation: pulse-ring 1.4s ease-out infinite; }
/* ============================================================
   POPUP DO EVENTO DE HOJE
   ============================================================ */
#event-pop {
  position: fixed; inset: 0; z-index: 80;
  display: flex; justify-content: center; align-items: center;
  overscroll-behavior: none;
  padding: 20px;
}
#event-pop .ep-backdrop {
  position: fixed; inset: 0; background: rgba(10,16,8,.62);
  opacity: 0; transition: opacity .35s ease;
}
#event-pop.show .ep-backdrop { opacity: 1; }
#event-pop .ep-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 96px);
  background: var(--cream); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); opacity: 0; overflow: hidden;
  transform: translateY(18px) scale(.98);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.9,.3,1.1);
}
#event-pop.show .ep-card { opacity: 1; transform: translateY(0) scale(1); }
#event-pop .ep-photo { position: relative; flex: none; height: 158px; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
#event-pop .ep-photo img { width: 100%; height: 100%; object-fit: cover; }
#event-pop .ep-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,8,.35) 0%, transparent 35%, rgba(10,16,8,.82) 100%); }
#event-pop .ep-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px;
}
#event-pop .ep-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gold); color: #3a2c08;
  font-size: 11.5px; font-weight: 700;
}
#event-pop .ep-titles { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; }
#event-pop .ep-when { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold-soft); }
#event-pop .ep-titles h2 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.04; margin-top: 3px; }
#event-pop .ep-body { padding: 15px 18px 18px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#event-pop .ep-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--forest-2); }
#event-pop .ep-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-top: 10px; }
#event-pop .ep-prog { margin-top: 14px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 13px 15px; }
#event-pop .ep-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
#event-pop .ep-line { font-size: 13px; color: var(--ink); padding: 4px 0; border-top: 1px solid var(--line); }
#event-pop .ep-line:first-of-type { border-top: none; }
#event-pop .ep-extra { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 12px; }
#event-pop .ep-cal { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; }
#event-pop .ep-cal-lbl { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--forest); margin-bottom: 10px; }
#event-pop .ep-cal-lbl svg { stroke: var(--gold); }
#event-pop .ep-cal-btns { display: flex; gap: 9px; }
#event-pop .ep-cal-btns .btn { flex: 1; width: auto; justify-content: center; }
#event-pop .ep-addcal { width: 100%; margin-top: 16px; }
#event-pop .ep-acts { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
#event-pop .ep-acts .btn { width: 100%; }

/* Folha de escolha de calendário (Apple / Google) */
#cal-sheet .cs-veil { position: fixed; inset: 0; z-index: 1600; background: rgba(10,16,8,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .26s; }
#cal-sheet.show .cs-veil { opacity: 1; }
#cal-sheet .cs-card {
  position: fixed; z-index: 1601; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: min(440px, 100%); background: var(--surface);
  border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + var(--safe-b));
  box-shadow: 0 -12px 44px rgba(0,0,0,.28); transition: transform .32s var(--ease-out, ease);
}
#cal-sheet.show .cs-card { transform: translate(-50%, 0); }
#cal-sheet h3 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--forest); }
#cal-sheet .cs-sub { font-size: 13px; color: var(--ink-2); margin: 3px 0 16px; }
#cal-sheet .btn { width: 100%; margin-bottom: 10px; }
#cal-sheet .cs-cancel { width: 100%; padding: 13px; border: none; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; margin-top: 2px; }
#event-pop .ep-note { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 12px; }

/* Pin colorido por categoria */
.vm-pin-d {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
/* Parque de estacionamento — P azul */
.vm-park-d {
  width: 26px; height: 26px; border-radius: 8px;
  background: #1A73E8; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
/* Legenda */
.map-legend-btn {
  position: absolute; right: 14px; bottom: 128px; z-index: 5;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: #fff; color: var(--forest-2);
  box-shadow: 0 4px 14px rgba(13,22,11,.28);
  display: flex; align-items: center; justify-content: center;
}
.map-legend {
  position: absolute; left: 14px; bottom: 18px; z-index: 6;
  display: none; flex-direction: column; gap: 7px;
  padding: 13px 15px; border-radius: 16px;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--sh-2);
}
.map-legend.open { display: flex; }
.map-legend span { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.map-legend i { width: 13px; height: 13px; border-radius: 50%; flex: none; }
/* Ponto azul de posição atual (estilo Google) */
.me-dot { position: relative; width: 22px; height: 22px; }
.me-dot .me-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: #1A73E8; border: 3px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.35);
}
.me-dot .me-pulse {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(26,115,232,.35);
  animation: me-ping 2s ease-out infinite;
}
@keyframes me-ping { 0% { transform: translate(-50%,-50%) scale(.6); opacity: .8; } 100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; } }

.contact-group { margin: 0 16px 18px; }
.contact-group h2 {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin: 20px 4px 11px;
}
.contact-card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: var(--surface); box-shadow: var(--sh-1); }
.contact-group .contact-card:first-of-type { border-radius: var(--r) var(--r) 0 0; }
.contact-group .contact-card:last-of-type { border-radius: 0 0 var(--r) var(--r); }
.contact-card + .contact-card { border-top: 1px solid var(--line); }
.contact-card .body { flex: 1; min-width: 0; }
.contact-card h3 { font-size: 15px; font-weight: 700; }
.contact-card p { font-size: 12.5px; color: var(--ink-2); }
.contact-card a.call {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-soft); color: var(--forest-2);
}

.demo-note {
  margin: 6px 16px 22px; padding: 13px 15px;
  border-radius: 14px; background: var(--gold-soft);
  border: 1px solid #E6D29A; color: #6E561C; font-size: 12.5px; line-height: 1.5;
}

/* Ícone em cartões de contacto/transportes */
.contact-card .ci {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-soft); color: var(--forest-2);
}

.review-btn { width: 100%; margin-top: 10px; }
.review-btn svg { color: var(--gold); }

/* ============================================================
   GUIA AO VIVO
   ============================================================ */
.live-hero { text-align: center; padding: 26px 24px 10px; }
.live-hero .ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--green-soft); color: var(--forest-2);
  margin-bottom: 14px;
}
.live-hero .ring.live { animation: pulse-ring 2s ease-out infinite; background: var(--forest); color: #fff; }
.live-hero h2 { font-family: var(--display); font-size: 30px; font-weight: 600; }
.live-hero p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
.live-status { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--forest-2); margin-top: 14px; min-height: 20px; }
.live-how { padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 12px; }
.live-how .lh { display: flex; align-items: center; gap: 14px; }
.live-how .lh span {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.live-how .lh p { font-size: 14px; color: var(--ink-2); }
.live-demo { box-shadow: inset 0 0 0 1.5px var(--gold) !important; color: var(--forest-2) !important; }
.live-demo svg { color: var(--gold); }

/* Alerta de proximidade (GPS em direto) */
/* Card grande de proximidade — sobe do fundo, um de cada vez */
@keyframes prox-up { from { transform: translateY(135%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes prox-down { from { transform: translateY(0); opacity: 1; } to { transform: translateY(135%); opacity: 0; } }
#prox-alert {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(var(--navh) + 14px);
  z-index: 70;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 20px 50px rgba(13,22,11,.4);
  animation: prox-up .55s cubic-bezier(.2,.9,.3,1.12) both;
}
#prox-alert.closing { animation: prox-down .4s ease-in both; }
#prox-alert .pa-photo { position: relative; height: 168px; }
#prox-alert .pa-photo img { width: 100%; height: 100%; object-fit: cover; }
#prox-alert .pa-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,8,.5) 0%, transparent 42%);
}
#prox-alert .pa-k {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(22,48,29,.92); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
#prox-alert .pa-k svg { color: var(--gold-soft); }
#prox-alert .pa-x {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px;
}
#prox-alert .pa-info { padding: 15px 18px 18px; }
#prox-alert .pa-info .tagline { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
#prox-alert .pa-info h3 { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.05; margin: 3px 0 6px; }
#prox-alert .pa-info p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
#prox-alert .pa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; min-height: 48px; border-radius: 14px;
  background: var(--forest); color: #fff; font-size: 15px; font-weight: 600;
}
#prox-alert .pa-dots { display: flex; gap: 5px; justify-content: center; margin-top: 13px; }
#prox-alert .pa-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
#prox-alert .pa-dots i.on { background: var(--forest); width: 18px; border-radius: 3px; }

/* ============================================================
   NAVEGAÇÃO INFERIOR (único menu da app)
   ============================================================ */
.bottom-nav {
  flex: none; display: flex;
  background: rgba(247,243,234,.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  /* Colado mesmo à borda inferior — folga mínima sobre a barra de gestos. */
  padding: 3px 8px max(3px, calc(var(--safe-b) - 24px));
  z-index: 30;
}
.bottom-nav a, .bottom-nav button {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 3px 0 1px; min-height: 40px; border-radius: 12px;
  font-size: 10px; font-weight: 500; color: var(--ink-3);
  background: none; border: none;
  transition: color .2s var(--ease), transform .2s var(--ease-out);
}
.bottom-nav a svg, .bottom-nav button svg { transition: transform .25s var(--ease-spring); }
.bottom-nav a:active, .bottom-nav button:active { transform: scale(.9); }
.bottom-nav .active { color: var(--forest); font-weight: 600; }
.bottom-nav .active svg { stroke-width: 2.4; transform: translateY(-1px) scale(1.08); }

/* ============================================================
   DRAWER (menu "Mais")
   ============================================================ */
.drawer-veil {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(12,18,10,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 41;
  width: 84%; max-width: 340px;
  background: var(--forest); color: #fff;
  padding: calc(28px + var(--safe-t)) 22px calc(22px + var(--safe-b));
  transform: translateX(-105%); transition: transform .3s ease;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: none;
}
body.drawer-open .drawer-veil { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: translateX(0); }

.drawer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.drawer .brand .logo {
  width: 48px; height: 48px; border-radius: 13px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 0;
}
.drawer .brand .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer .brand h2 { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.drawer .brand p { font-size: 11px; opacity: .7; }

.drawer-lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); opacity: .85; margin: 16px 2px 8px; }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer-cats .dc {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border-radius: 13px;
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.drawer-cats .dc:active { background: rgba(255,255,255,.16); }
.drawer-cats .dc-ic { color: var(--gold-soft); display: inline-flex; }
.drawer-secs { display: flex; flex-direction: column; gap: 1px; }
.drawer-secs a {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 10px; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 500;
}
.drawer-secs a svg { color: var(--gold-soft); opacity: .9; }
.drawer-secs a:active, .drawer-secs a:hover { background: rgba(255,255,255,.1); }
/* Secção "Para a freguesia" — discreta, separada do conteúdo turístico */
.drawer-lbl-local {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
}
.drawer-local a { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.72); padding: 10px; }
.drawer-local a svg { opacity: .65; }

/* ============================================================
   ESPAÇO DO MUNÍCIPE
   ============================================================ */
.muni { padding: 4px 18px 34px; max-width: 720px; margin: 0 auto; }
.muni-hero { text-align: center; padding: 16px 6px 4px; }
.muni-crest { display: block; width: 70px; height: auto; margin: 0 auto 10px; }
.muni-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--green-soft); color: var(--green); margin-bottom: 10px;
}
.muni-hero h2 { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--forest); }
.muni-hero p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; }
.muni-lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 16px 2px 8px; }
.muni-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.muni-chip {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease), color .2s var(--ease);
}
.muni-chip:active { transform: scale(.95); }
.muni-chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.muni-in {
  display: block; width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 15px; color: var(--ink); resize: vertical;
}
.muni-in:focus { outline: none; border-color: var(--green); }
.muni-in::placeholder { color: var(--ink-3); }
.muni-sec {
  font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--forest);
  margin: 24px 0 2px; padding-top: 16px; border-top: 1px solid var(--line);
}
.muni-sec:first-of-type { margin-top: 8px; padding-top: 0; border-top: none; }
.muni-sec span { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.muni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muni-drop {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--r-sm);
  border: 1.5px dashed var(--green); background: var(--green-soft);
  color: var(--forest-2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.muni-drop svg { flex: none; color: var(--green); }
.muni-drop small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.muni-thumb:not(:empty) { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 9px; }
.mi-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mi-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--r-xs); box-shadow: var(--sh-1); }
.muni-th { position: relative; width: 120px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-1); }
.muni-th img { width: 100%; height: 110px; object-fit: cover; display: block; }
.muni-th button {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px; border: none; border-radius: 50%;
  background: rgba(20,30,18,.7); color: #fff; font-size: 13px; line-height: 1;
}
/* As minhas participações */
.muni-mine { display: flex; flex-direction: column; gap: 12px; }
.muni-item { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 14px 16px; border-left: 4px solid var(--amber); }
.mi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mi-ref { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.mi-state { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--amber-soft, #FBF1D4); color: var(--amber, #9A7B1E); }
.muni-item h4 { font-size: 15px; font-weight: 700; color: var(--ink); }
.muni-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.mi-date { font-size: 12px; color: var(--ink-3); margin-top: 7px; }

.drawer-lang { display: flex; gap: 8px; margin: 22px 0 0; }
.dl-opt {
  flex: 1; padding: 9px 0; border-radius: 12px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 13px; font-weight: 600;
}
.dl-opt.on { background: #fff; color: var(--forest); border-color: #fff; }

.drawer .foot { margin-top: auto; padding-top: 24px; font-size: 11.5px; opacity: .65; line-height: 1.6; }

/* ============================================================
   BANNER "GUARDAR NO TELEMÓVEL"
   ============================================================ */
#install-banner {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(var(--navh) + 14px);
  z-index: 60;
  display: flex; align-items: center; gap: 13px;
  padding: 14px 14px 14px 16px;
  border-radius: 22px;
  background: var(--forest); color: #fff;
  box-shadow: 0 16px 44px rgba(13,22,11,.45);
  transform: translateY(140%); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.1), opacity .3s ease;
}
#install-banner.show { transform: translateY(0); opacity: 1; }
#install-banner img { border-radius: 13px; flex: none; }
#install-banner .ib-body { flex: 1; min-width: 0; }
#install-banner .ib-body strong { display: block; font-size: 14.5px; }
#install-banner .ib-body span { display: block; font-size: 12px; opacity: .85; line-height: 1.45; margin-top: 2px; }
#install-banner .ib-actions { display: flex; align-items: center; gap: 8px; flex: none; }
#install-banner .ib-install {
  border: none; border-radius: 999px;
  background: #fff; color: var(--forest);
  font-size: 13px; font-weight: 700;
  padding: 10px 16px; min-height: 40px;
}
#install-banner .ib-close {
  border: none; background: rgba(255,255,255,.14);
  color: #fff; width: 36px; height: 36px; border-radius: 50%;
  font-size: 14px;
}

/* ============================================================
   PLATAFORMA MUNICIPAL — porta de entrada, modos, Comunidade
   ============================================================ */

/* Porta de entrada na splash */
.splash-pick { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.82); margin: 6px 0 12px; }
.splash-doors { display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.door {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 14px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(247,243,234,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.door:active { transform: scale(.98); }
@media (hover:hover) { .door:hover { background: rgba(247,243,234,.26); } }
.door-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); }
.door-ic svg { width: 22px; height: 22px; color: var(--gold-2, #EBDCB0); }
.door-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.door-tx strong { font-family: var(--display); font-size: 20px; font-weight: 600; }
.door-tx small { font-size: 12.5px; opacity: .82; margin-top: 1px; }
.door-arr { width: 20px; height: 20px; flex: none; opacity: .7; }

/* Interruptor Visitante | Comunidade */
.mode-switch {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 16px;
  background: var(--surface-2, #efe9dc); border-radius: 13px; border: 1px solid var(--line);
}
.drawer .mode-switch { margin-bottom: 18px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.ms-opt {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 8px; border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-radius: 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drawer .ms-opt { color: rgba(255,255,255,.8); }
.ms-opt svg { width: 16px; height: 16px; }
.ms-opt.on { background: var(--forest); color: #fff; box-shadow: var(--sh-1); }
.drawer .ms-opt.on { background: #fff; color: var(--forest); }

/* Hub da Comunidade */
.comm { padding: 4px 16px 24px; }
.comm-hero { display: flex; align-items: center; gap: 14px; padding: 16px 0 18px; }
.comm-crest { width: 56px; height: 56px; flex: none; object-fit: contain; }
.comm-hero h2 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.1; color: var(--forest); }
.comm-hero p { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.comm-grid { display: flex; flex-direction: column; gap: 11px; }
.comm-card {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-card); transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.comm-card:active { transform: scale(.985); }
@media (hover:hover) { .comm-card:hover { transform: translateY(-2px); box-shadow: var(--sh-card-hover); } }
.cc-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); }
.cc-ic svg { width: 23px; height: 23px; color: var(--forest); }
.cc-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.cc-tx strong { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); }
.cc-tx small { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.cc-arr { width: 20px; height: 20px; flex: none; color: var(--ink-3); }

/* Serviços municipais */
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-card); padding: 16px 17px; }
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.svc-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); }
.svc-ic svg { color: var(--forest); }
.svc-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.svc-head h3 { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.1; }
.svc-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.svc-meta { margin: 12px 0; display: flex; flex-direction: column; gap: 7px; }
.svc-meta div { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink); }
.svc-meta svg { flex: none; color: var(--green); margin-top: 1px; }
.svc-acts { display: flex; gap: 9px; }
.svc-acts .btn { flex: 1; }

/* Emprego local */
.emp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-card); padding: 15px 17px; }
.emp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.emp-tipo { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.emp-tipo.ef { background: var(--green-soft); color: var(--forest); }
.emp-tipo.es { background: #eef2fb; color: #2f4a86; }
.emp-tipo.sa { background: #fdf2e2; color: #9a6a1c; }
.emp-tipo.te { background: #f3eef9; color: #6b4a86; }
.emp-prazo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.emp-prazo svg { flex: none; }
.emp-card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.12; }
.emp-empresa { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--forest-2); margin: 5px 0 8px; }
.emp-empresa svg { flex: none; color: var(--gold); }
.emp-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.emp-card .btn { width: 100%; }
.emp-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 16px 0 4px; padding: 14px; border-radius: var(--r);
  background: var(--green-soft); color: var(--forest); font-weight: 600; font-size: 13.5px;
  border: 1px dashed var(--green);
}
.emp-cta svg { flex: none; color: var(--green); }

/* ============================================================
   RGPD / COOKIES + PÁGINAS LEGAIS
   ============================================================ */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1400; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--forest); color: #fff; border-radius: 18px; padding: 15px 16px;
  box-shadow: 0 18px 50px rgba(20,30,18,.4);
  transform: translateY(140%); transition: transform .4s var(--ease-out, ease);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar .ck-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.cookie-bar .ck-ic svg { color: var(--gold-2, #EBDCB0); }
.cookie-bar .ck-tx { flex: 1; min-width: 180px; }
.cookie-bar .ck-tx strong { font-size: 14px; }
.cookie-bar .ck-tx p { font-size: 12px; line-height: 1.45; opacity: .9; margin-top: 2px; }
.cookie-bar .ck-tx a { color: var(--gold-2, #EBDCB0); text-decoration: underline; }
.cookie-bar .ck-btns { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.cookie-bar .ck-btns .btn { flex: 1; }
.cookie-bar .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.cookie-bar .btn.secondary { background: rgba(255,255,255,.14); color: #fff; border: none; }
@media (min-width: 560px) { .cookie-bar .ck-btns { width: auto; } .cookie-bar .ck-btns .btn { flex: none; } }

#cookie-prefs .cp-veil { position: fixed; inset: 0; background: rgba(20,30,18,.5); backdrop-filter: blur(3px); z-index: 1500; opacity: 0; transition: opacity .28s; }
#cookie-prefs.show .cp-veil { opacity: 1; }
.cp-card {
  position: fixed; z-index: 1501; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: min(520px, 100%); background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 24px 22px calc(26px + env(safe-area-inset-bottom)); box-shadow: var(--sh-2, 0 -10px 40px rgba(0,0,0,.2));
  transition: transform .34s var(--ease-out, ease);
}
#cookie-prefs.show .cp-card { transform: translate(-50%, 0); }
.cp-card h2 { font-family: var(--display); font-size: 24px; color: var(--forest); }
.cp-card .cp-sub { font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; line-height: 1.5; }
.cp-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.cp-row > div { flex: 1; }
.cp-row strong { font-size: 14.5px; }
.cp-row small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.cp-lock { font-size: 11.5px; font-weight: 700; color: var(--green); flex: none; }
.cp-toggle { flex: none; width: 48px; height: 28px; border-radius: 99px; border: none; background: var(--cream-2, #e7e1d2); cursor: pointer; position: relative; transition: background .2s; }
.cp-toggle span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s; }
.cp-toggle.on { background: var(--green); }
.cp-toggle.on span { transform: translateX(20px); }

.btn.danger-btn { background: var(--danger, #B3402F); color: #fff; }
.btn.danger-btn svg { color: #fff; }

/* Páginas legais */
.legal { padding: 6px 18px 30px; }
.legal-head { padding: 14px 0 22px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.legal-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.legal-head h1 { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.05; color: var(--forest); margin: 6px 0 8px; }
.legal-date { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.legal-sec { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legal-num { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--gold); flex: none; line-height: 1.2; }
.legal-sec h2 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.legal-sec p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.legal-foot { font-size: 11.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.5; }

/* Os meus dados (RGPD) */
.dados { padding: 6px 16px 28px; }
.dados-hero { text-align: center; padding: 16px 0 20px; }
.dados-ic { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 16px; background: var(--green-soft); margin-bottom: 10px; }
.dados-ic svg { color: var(--forest); }
.dados-hero h2 { font-family: var(--display); font-size: 25px; font-weight: 600; color: var(--forest); }
.dados-hero p { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.dados-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-card); padding: 16px 17px; margin-bottom: 13px; }
.dados-card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--forest); margin-bottom: 8px; }
.dados-state { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.dados-mini { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.dados-mini span { font-weight: 700; color: var(--forest); }
.dados-links { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 12px; }
.dados-links a { display: flex; align-items: center; gap: 6px; padding: 12px 4px; font-size: 14px; color: var(--forest); border-bottom: 1px solid var(--line); }
.dados-links a { justify-content: space-between; }
.dados-links a svg { color: var(--ink-3); transform: rotate(180deg); order: 2; }

/* Links legais no drawer */
.drawer-legal { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 14px 2px 6px; font-size: 12px; }
.drawer-legal a { color: rgba(255,255,255,.78); }
.drawer-legal span { color: rgba(255,255,255,.3); }

/* ============================================================
   PLANEADOR — avisos inteligentes (distância, refeições, fechado)
   ============================================================ */
.plan-warn { display: flex; gap: 12px; align-items: flex-start; margin: 14px 16px 0; padding: 14px 16px; background: var(--amber-soft, #FBF1D4); border: 1px solid var(--amber, #9A7B1E); border-radius: var(--r); }
.plan-warn > svg { flex: none; color: var(--amber, #9A7B1E); margin-top: 1px; }
.plan-warn strong { color: var(--amber, #9A7B1E); font-size: 14.5px; }
.plan-warn p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 10px; }
.plan-warn .btn.sm { display: inline-flex; }
.plan-notes { margin: 12px 16px 0; padding: 12px 14px; background: var(--green-soft); border-radius: var(--r); }
.plan-notes p { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--forest-2); line-height: 1.5; margin: 4px 0; }
.plan-notes p svg { flex: none; color: var(--gold); margin-top: 2px; }
.when-meal { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.t-closed { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--amber, #9A7B1E); }
.t-closed svg { flex: none; }

/* Passo de refeição no roteiro */
.t-card.is-meal { border-color: var(--gold); background: var(--gold-soft, #F1E4C4); }
.t-suggest { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--gold, #C99A3B); vertical-align: middle; }
.t-suggest svg { flex: none; }
.t-book { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--forest-2); }
.t-book svg { flex: none; color: var(--green); }

/* ============================================================
   FORMULÁRIO PREMIUM — Espaço da Comunidade / Portal Local
   (cartões por passo, seletor por ícones, inputs com ícone,
   dropzone elegante e confirmação animada). Substitui o ar
   "formulário do Google".
   ============================================================ */
.pform { padding: 4px 0 24px; }
.pform-hero { text-align: center; padding: 8px 8px 18px; }
.pform-hero .crest { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; display: block; }
.pform-hero h2 { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--forest); line-height: 1.05; }
.pform-hero p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 8px auto 0; max-width: 30em; }
.pcard {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-card);
  padding: 18px 16px; margin-bottom: 14px;
}
.pcard-h { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.pcard-n {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--green-soft); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.pcard-h h3 { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1; }
.pcard-h small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-family: var(--sans); }
.pcats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pcat {
  display: flex; align-items: center; gap: 10px; padding: 13px 12px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: left;
  transition: transform .25s var(--ease-spring), border-color .2s, background .2s;
}
.pcat svg { color: var(--ink-3); flex: none; transition: color .2s; }
.pcat:active { transform: scale(.96); }
.pcat.on { border-color: var(--forest); background: var(--green-soft); color: var(--forest); }
.pcat.on svg { color: var(--forest); }
.plbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 2px; }
.plbl + .plbl { margin-top: 12px; }
.pfield { position: relative; margin-bottom: 12px; }
.pfield > .pf-ic { position: absolute; left: 13px; top: 14px; color: var(--ink-3); pointer-events: none; }
.pfield input, .pfield textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 13px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.pfield.has-ic input { padding-left: 42px; }
.pfield textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.pfield input:focus, .pfield textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.pgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdrop {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 16px; border: 2px dashed var(--line); border-radius: 16px;
  background: var(--cream); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pdrop:active { background: var(--cream-2); }
.pdrop .pd-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--green-soft); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.pdrop strong { display: block; font-size: 14px; color: var(--ink); }
.pdrop small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pthumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pthumbs .pth { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; box-shadow: var(--sh-1); }
.pthumbs .pth img { width: 100%; height: 100%; object-fit: cover; }
.pthumbs .pth button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(12,18,10,.6); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.psubmit { width: 100%; margin-top: 4px; }
.pnote { font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; margin-top: 14px; padding: 0 8px; }
/* Confirmação animada */
.psuccess { text-align: center; padding: 40px 20px; animation: pop-in .5s var(--ease-out) both; }
.psuccess .ps-ring {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green-soft); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  animation: ps-ring .5s var(--ease-spring) both;
}
@keyframes ps-ring { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.psuccess h2 { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--forest); }
.psuccess p { font-size: 14.5px; color: var(--ink-2); margin: 10px auto 0; max-width: 28em; line-height: 1.55; }
.psuccess .ps-ref { display: inline-block; margin-top: 18px; padding: 9px 18px; border-radius: 999px; background: var(--cream-2); font-weight: 700; color: var(--forest); letter-spacing: .04em; }

/* ============================================================
   FOTOS — skeleton a cintilar até carregar (rapidez percebida)
   ============================================================ */
.vm-img { background-color: var(--cream-2); }
.vm-img:not(.ld) {
  background-image: linear-gradient(100deg, rgba(247,243,234,0) 28%, rgba(255,255,255,.6) 50%, rgba(247,243,234,0) 72%);
  background-size: 220% 100%; background-repeat: no-repeat;
  animation: vm-shimmer 1.25s ease-in-out infinite;
}
.vm-img.ld { animation: vm-img-in .55s var(--ease-out) both; }
@keyframes vm-shimmer { from { background-position: 180% 0; } to { background-position: -100% 0; } }
@keyframes vm-img-in { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vm-img:not(.ld) { animation: none; } .vm-img.ld { animation: none; } }
