/* Petit Guide · tokens de tema (contraste conferido: ver brand/BRAND_GUIDE.md) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/vendor/fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/vendor/fonts/lora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url("/static/vendor/fonts/lora-latin-500-italic.woff2") format("woff2"); }

:root {
  --bg: #faf7f2; --surface: #ffffff; --sage: #e7ece4; --sage-2: #d6dfd2;
  --ink: #272824; --muted: #5e6058; --line: #d9d5cd; --line-strong: #b9b4aa;
  --green: #344b3d; --green-dark: #2b3f33; --green-soft: #e7ece4;
  --terra: #a64b35; --terra-dark: #8e3f2c; --terra-soft: #f6e7e1;
  --warn: #8a5a00; --warn-soft: #fff4dc; --danger: #b3261e; --danger-soft: #fcebea; --ok: #2f6b3a; --ok-soft: #e6f2e7;
  --focus: #a64b35;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(39 40 36 / 6%), 0 6px 20px rgb(39 40 36 / 6%);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
@media (min-width: 900px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.75rem); margin-top: 1.3em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .85em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.warn-text { color: var(--warn); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: .6em; }

/* Cabeçalho */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.city { font-size: .8rem; font-weight: 600; color: var(--green); background: var(--sage); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 8px 2px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.nav a.nav-cta { border: 1.5px solid var(--terra); color: var(--terra-dark); border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--terra-soft); text-decoration: none; }
.utils { display: flex; align-items: center; gap: 4px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.util-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); cursor: pointer; list-style: none; }
.util-btn::-webkit-details-marker { display: none; }
.util-btn:hover, .util-btn[aria-current="page"], .dropdown[open] > .util-btn { background: var(--sage); color: var(--green-dark); }
.util-btn::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.util-btn:hover::after, .util-btn:focus-visible::after { opacity: 1; }
.dropdown[open] > .util-btn::after { opacity: 0; }
.icon { width: 22px; height: 22px; flex: none; }
.util-login { font-weight: 600; text-decoration: none; padding: 8px 10px; color: var(--green); white-space: nowrap; }
.util-login:hover { text-decoration: underline; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; min-width: 220px; display: flex; flex-direction: column; z-index: 1100; }
.dropdown-panel a, .dropdown-panel button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 44px; text-decoration: none; color: var(--ink); font: 500 1rem/1.2 var(--sans); border-radius: 8px; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.dropdown-panel a:hover, .dropdown-panel button:hover, .dropdown-panel a[aria-current="page"] { background: var(--sage); color: var(--green-dark); }
.dropdown-panel form { margin: 0; }
.dropdown-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.dropdown-who { padding: 6px 14px 2px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.menu { margin-left: auto; display: none; }
.menu > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu-panel { min-width: 250px; }
/* O menu recolhível entra antes de o cabeçalho apertar (o item "Por que o Petit Guide?" é longo). */
@media (max-width: 1020px) { .nav, .utils { display: none; } .menu { display: block; } }
@media (max-width: 860px) { .logo img { height: 30px; } }
.envbar { background: var(--warn-soft); color: var(--warn); font-size: .82rem; text-align: center; padding: 4px 16px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--green);
  font: 600 1rem/1.15 var(--sans); text-decoration: none; cursor: pointer; background: transparent; color: var(--green); text-align: center; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--surface); }
.btn-secondary:hover { background: var(--sage); color: var(--green-dark); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
form.inline { display: inline; }

/* Hero */
.hero { background: linear-gradient(160deg, #fbeedd 0%, #f9f1e7 45%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 32px; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.2rem); max-width: 18ch; margin-bottom: .35em; }
.hero .lead { font-size: 1.08rem; color: var(--ink); max-width: 50ch; }
.hero-in > div { min-width: 0; }
.hero-search { display: flex; gap: 8px; margin: 20px 0 12px; max-width: 560px; }
.hero-search input { flex: 1; min-height: 52px; font-size: 1rem; border-radius: 999px; padding: 0 20px; border-color: #e3cdb6; }
.hero-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; margin: 0 0 14px; }
.shortcut { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 75%); border: 1px solid #e8d6c3; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.shortcut:hover { background: var(--surface); border-color: var(--terra); color: var(--terra-dark); }
.shortcut-near { background: var(--terra); border-color: var(--terra); color: #fff; font-weight: 600; }
.shortcut-near::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 35%); }
.shortcut-near:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; }
.hero-stats { font-size: .9rem; color: var(--muted); margin: 0; }
.hero-map { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 4px rgb(91 70 48 / 8%), 0 14px 36px rgb(91 70 48 / 14%); border: 4px solid #fff; }
.hero-map-canvas { height: 360px; background: #efe6d8; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-map-canvas.is-ready .hero-plate { display: none; }
.hero-map-link { position: absolute; left: 14px; bottom: 14px; z-index: 500; box-shadow: var(--shadow); }
.hero-plate { width: 96px; height: 96px; display: block; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-facts li { background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.hero-facts strong { font-family: var(--serif); font-size: 1.35rem; color: var(--green); margin-right: 6px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; padding-bottom: 20px; } .hero-map { display: none; }
  .hero-shortcuts { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; } .shortcut { flex: none; } }

/* Chips de formato */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.chip-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
@media (max-width: 860px) { .chip-row { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; } .chip-link { flex: none; } }
.chip-link:hover, .chip-link[aria-current="true"] { border-color: var(--green); background: var(--sage); color: var(--green-dark); }

/* Filtros */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.filters-toggle { display: none; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.types { border: 0; padding: 0; margin: 10px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.types legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.count { font-weight: 600; color: var(--muted); margin: 0; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--green); border-radius: 999px; overflow: hidden; }
.view-toggle a { min-height: 42px; min-width: 84px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 16px; text-decoration: none; font-weight: 600; color: var(--green); background: var(--surface); }
.view-toggle a[aria-current="page"] { background: var(--green); color: #fff; }
.active-filter { display: inline-flex; align-items: center; gap: 8px; background: var(--sage); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .9rem; font-weight: 500; }
.active-filter button { border: 0; background: var(--surface); border-radius: 999px; min-width: 32px; min-height: 32px; cursor: pointer; font-weight: 700; color: var(--ink); }
@media (max-width: 720px) {
  .filters-toggle { display: inline-flex; }
  .filters.is-collapsed .filters-body { display: none; }
}

/* Campos */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
.req { color: var(--danger); }
.hint { font-size: .875rem; color: var(--muted); margin: 0; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); margin: 0; flex: none; }
input[type=file] { padding: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.check { display: flex; align-items: center; gap: 10px; min-height: 38px; cursor: pointer; margin: 2px 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; font-size: .92rem; margin: 2px 0 0; }
.error::before { content: "! "; }
.error-summary { border: 2px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.error-summary ul { margin: 4px 0 0; padding-left: 20px; }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 8px; margin: 0 0 18px; background: var(--surface); }
.group legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; padding: 0 6px; }
.form { max-width: 720px; }
.suggest:not(:empty) { background: var(--warn-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin: -6px 0 14px; font-size: .95rem; }
.suggest ul { margin: 4px 0 0; padding-left: 20px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card.is-selected { outline: 3px solid var(--terra); outline-offset: 0; }
.card[hidden] { display: none; }
.card-link { display: block; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.18rem; margin: 0 0 2px; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--green); text-decoration: underline; }
.unit { font-family: var(--sans); font-weight: 500; font-size: .8em; color: var(--muted); }
.card-meta { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.card-summary { font-size: .95rem; }
.card-price { font-size: .9rem; margin-top: auto; }
.chips, .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sage); color: var(--green-dark); }
.chip-strong { background: var(--green); color: #fff; }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-muted { background: #efede8; color: var(--muted); }
.badge { font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.badge-online::before { content: "◎ "; }
.badge-visitor { background: var(--ok-soft); border-color: #c6dcc9; color: var(--ok); }
.badge-visitor::before { content: "✎ "; }
.badge-rest { background: #e9eef5; border-color: #c9d4e3; }
.badge-glp { background: var(--terra-soft); border-color: #e5c3b8; color: var(--terra-dark); }
.badge-glp-press { background: var(--surface); border-color: #e5c3b8; border-style: dashed; color: var(--terra-dark); }
.badge-src { background: var(--sage); }

/* Placeholder sem foto: não simula comida */
.ph { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; aspect-ratio: 16 / 8; padding: 14px 16px; position: relative; overflow: hidden; }
.ph-tone0 { background: var(--sage); color: var(--green-dark); }
.ph-tone1 { background: #f1e3cc; color: #5b4630; }
.ph-tone2 { background: var(--terra-soft); color: var(--terra-dark); }
.ph-plate { position: absolute; right: 8%; top: 50%; height: 84%; width: auto; transform: translateY(-50%) rotate(-8deg); }
.ph-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; position: relative; z-index: 1; font-weight: 600; max-width: 55%; }
.ph-hero { border-radius: var(--radius); aspect-ratio: 16 / 10; }
img.ph { object-fit: cover; padding: 0; }

/* Ficha */
.crumbs { margin-bottom: 12px; color: var(--muted); }
.rest-head { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 26px; align-items: start; margin-bottom: 16px; }
.rest-meta { color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.notice { background: var(--surface); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 8px; font-size: .95rem; }
.notice-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.offer-title { margin: 4px 0 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 12px 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 6px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }
.price { font-weight: 700; }
.price-unknown { color: var(--ink); font-weight: 500; }
details summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 36px; }
.inline-h { display: inline; }
.ev-list { list-style: none; padding: 0; margin: 8px 0 0; }
.ev { border-top: 1px dashed var(--line); padding: 10px 0; }
.ev-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
.unc { padding-left: 20px; }
.reports { list-style: none; padding: 0; }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.report-body { white-space: pre-line; }
.report-photo { max-width: 320px; border-radius: 10px; }
.share-status:empty { display: none; }

/* Seções da home */
.band { background: var(--sage); }
.band-terra { background: var(--terra-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 10px; } .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 14px 16px; }
  .steps li::before { grid-row: span 2; margin: 0; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.story-teaser { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-top: 22px; padding: 18px 22px; min-height: 56px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid #e8d6c3; border-left: 4px solid var(--terra); color: var(--ink); text-decoration: none; }
.story-teaser strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.story-teaser > span { color: var(--terra-dark); font-weight: 600; }
.story-teaser:hover > span { text-decoration: underline; }

/* Página "Por que o Petit Guide?" */
.story-head { background: linear-gradient(160deg, #fbeedd 0%, #f9f1e7 45%, var(--bg) 100%); border-bottom: 1px solid var(--line); text-align: center; padding: 48px 0 36px; }
.story-plate { width: 64px; height: 64px; display: block; margin: 0 auto 18px; }
.story-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .3em; }
.story-sub { font: italic 500 clamp(1.15rem, 3vw, 1.4rem)/1.4 var(--serif); color: var(--terra-dark); margin: 0 auto; max-width: 30ch; }
.story-body { max-width: 680px; padding-top: 36px; padding-bottom: 28px; font-size: 1.08rem; line-height: 1.75; }
.story-body p { margin-bottom: 1.1em; }
.story-quote { font: 500 1.3rem/1.5 var(--serif); color: var(--green-dark); border-left: 3px solid var(--terra); padding: 4px 0 4px 20px; margin: 1.6em 0; }
.story-quote strong { font-weight: 700; }
.story-sign { font: 600 1.35rem/1.4 var(--serif); color: var(--green); text-align: center; margin-top: 1.6em; }
.trust { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust li { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.trust h3 { margin: 0 0 6px; color: var(--green-dark); }
.trust p { margin: 0; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } .story-head { padding: 32px 0 26px; } .story-body { font-size: 1.02rem; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
.faq summary { color: var(--ink); font-weight: 600; }
.faq details p { margin: 8px 0 0; }
.note { font-size: .875rem; color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; text-align: center; }
.how-list { padding-left: 0; list-style: none; }
.how-list li { margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 16px; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-ok::before { content: "✓ "; }
.flash-error { background: var(--danger-soft); color: var(--danger); }

/* Mapa */
.map-layout { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 16px; align-items: start; }
.map-list { max-height: calc(100vh - 170px); overflow: auto; padding-right: 4px; display: grid; gap: 12px; align-content: start; }
.map-list .card .ph { display: none; }
.map-wrap { position: sticky; top: 80px; }
.map { height: calc(100vh - 170px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sage); z-index: 0; }
@media (max-width: 1099px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-layout .map-list { display: none; }
  .map-wrap { position: relative; top: 0; }
  .map { height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 360px; }
}
.map-status { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; z-index: 500; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); }
.map-status .btn { box-shadow: var(--shadow); }
.map-tools { position: absolute; right: 12px; bottom: 34px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-msg { margin: 8px 0; }
.map-msg:empty { display: none; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 30px; z-index: 600; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgb(39 40 36 / 18%); padding: 14px 16px; max-width: 440px; margin: 0 auto; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.map-card[hidden] { display: none; }
.map-card h3 { margin: 0 34px 2px 0; font-size: 1.15rem; }
.map-card .close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.2rem; }
.map-card .btn-row .btn { flex: 1; }
.map-card .choices { list-style: none; padding: 0; margin: 6px 0 0; }
.map-card .choices button { width: 100%; text-align: left; min-height: 44px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; cursor: pointer; font: inherit; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 35%); }
.pin::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); left: 7px; top: 7px; }
.pin-wrap.is-selected .pin { background: var(--terra); width: 38px; height: 38px; border-width: 4px; }
.pin-wrap.is-selected .pin::after { background: #fff; left: 10px; top: 10px; width: 12px; height: 12px; }
.cluster { background: var(--green); color: #fff; border: 3px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 2px 8px rgb(0 0 0 / 30%); width: 100%; height: 100%; font-size: .95rem; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 11px; }

/* Tabelas / admin */
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .93rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-weight: 600; }
.tabs { display: flex; gap: 14px; flex-wrap: wrap; }
.tabs a[aria-current] { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--terra); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.stat strong { font: 600 1.6rem/1 var(--serif); color: var(--green); display: block; }
.queue-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.qi-title { margin-top: 0; font-size: 1.15rem; }
.qi-photo { max-width: 260px; border-radius: 8px; }
.kv { display: grid; gap: 2px; margin: 8px 0; }
.kv div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; word-break: break-word; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.admin-offer { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; max-width: none; }
.admin-offer .field label { display: flex; flex-direction: column; gap: 4px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: none; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 200px; }
.filters-inline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.filters-inline select { width: auto; }

.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-in { padding: 28px 16px; font-size: .92rem; display: grid; gap: 6px; }
.footer-in img { height: 28px; width: auto; }

@media (max-width: 720px) {
  .rest-head { grid-template-columns: 1fr; }
  .kv div { grid-template-columns: 1fr; }
  .actions .btn, .actions form { flex: 1 1 calc(50% - 8px); }
  .actions form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Utilitários (sem style inline: CSP style-src 'self') */
.mt0 { margin-top: 0; }
.mt { margin-top: 18px; }
.measure { max-width: 60ch; }
.btn-row-center { justify-content: center; }
.area-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.area-filter[hidden] { display: none; }
.editorial .lead { font-size: 1.1rem; }
.ed-list { list-style: none; padding: 0; }
.ed-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.ed-format { margin-bottom: 18px; }
.editorial .grid { margin-bottom: 12px; }
.map-failed { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.map-fallback { max-width: 40ch; }
.cluster-wrap { background: transparent; border: 0; }
.pin-wrap { background: transparent; border: 0; position: relative; }
.pin-wrap:focus-visible .pin { outline: 3px solid var(--terra); outline-offset: 3px; }
.leaflet-marker-icon:focus-visible { outline: none; }
[hidden] { display: none !important; }
.filters.is-collapsed .filters-body { display: none; }
.filters-toggle.is-shown { display: inline-flex; margin-bottom: 12px; }
@media (max-width: 720px) { .ph:not(.ph-hero) { aspect-ratio: 16 / 5; } .ph-plate { height: 88%; right: 5%; } }
.pin { display: block; position: relative; }
.pin-wrap .pin { position: absolute; left: 0; top: 0; }
[data-mode="mapa"] > p.muted { display: none; }
[data-mode="mapa"] h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
[data-mode="mapa"] .filters { padding: 12px; }
[data-mode="mapa"] .filters .field-search { margin-bottom: 8px; }
.map-card .close { min-width: 44px; min-height: 44px; }
@media (min-width: 1100px) {
  .map-card { left: auto; right: 12px; top: 12px; bottom: auto; width: 360px; margin: 0; }
  .map-status { left: 40%; }
}
.map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 550; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; width: min(340px, calc(100% - 32px)); text-align: center; }
.map-empty p { margin-bottom: 10px; }
/* Indicação: escolhas em pílula (rádio acessível) */
.choice { border: 0; padding: 0; margin: 0 0 18px; }
.choice legend { font-weight: 600; margin-bottom: 8px; }
.chip-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-choice { position: relative; cursor: pointer; }
.chip-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 500; }
.chip-choice input:checked + span { border-color: var(--green); background: var(--sage); color: var(--green-dark); }
.chip-choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.maps-found { margin: -6px 0 14px; color: var(--green-dark); font-weight: 500; min-height: 1em; }
