/* Diretório de Massoterapia — estilos */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --text: #1d2722;
  --text-2: #4f5b55;
  --muted: #7b847f;
  --border: #ebe6de;
  --primary: #2f6b57;
  --primary-dark: #234f40;
  --primary-soft: #e6f0eb;
  --accent: #c27a52;
  --accent-soft: #f8ebe2;
  --gold: #b8892a;
  --gold-soft: #f6efd9;
  --success: #2f7a4f;
  --success-soft: #e5f3ea;
  --warning: #8a6417;
  --warning-soft: #fbf1d9;
  --error: #a3352a;
  --error-soft: #fbe8e5;
  --info: #2e5f80;
  --info-soft: #e6f0f7;
  --whatsapp: #1fa855;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 39, 34, .04), 0 8px 24px rgba(29, 39, 34, .06);
  --shadow-lg: 0 2px 6px rgba(29, 39, 34, .06), 0 18px 40px rgba(29, 39, 34, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.narrow-sm { max-width: 440px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.1rem; color: var(--text-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .6em; }
.section { padding: 36px 0; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.h-section { margin-top: 28px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-light:hover { background: var(--surface-2); color: var(--primary-dark); border-color: var(--surface-2); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #178a45; border-color: #178a45; }
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #82271e; border-color: #82271e; }
.link-danger { background: none; border: 0; padding: 0; color: var(--error); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }
.muted-link { color: var(--muted); }

/* ---------- Cabeçalho ---------- */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); text-decoration: none; font: 600 1.2rem var(--font-display); }
.logo svg { width: 30px; height: 30px; color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .94rem; }
.main-nav a:not(.btn):hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .btn { margin-top: 12px; }
}

/* Abas do topo (Todos / Mulheres / Homens / Trans) */
.gender-tabs { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 19; }
.gender-tabs-inner { display: flex; }
.gender-tabs a { flex: 1; text-align: center; padding: 13px 8px 11px; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); text-decoration: none; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.gender-tabs a:hover { color: var(--primary); }
.gender-tabs a.on { color: var(--primary-dark); border-bottom-color: var(--primary); }
@media (max-width: 560px) { .gender-tabs a { font-size: .78rem; letter-spacing: .03em; padding: 12px 4px 10px; } }

/* Fileira de fotos redondas (planos Destaque e Premium) */
.highlights { display: flex; gap: 18px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.highlights::-webkit-scrollbar { display: none; }
.hl-item { flex: none; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.hl-ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #7fb59c, var(--primary)); }
.hl-ring.hl-premium { background: linear-gradient(135deg, #e7c36a, var(--accent)); }
.hl-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); background: var(--surface-2); }
.hl-name { font-size: .78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hl-item:hover .hl-name { color: var(--primary); }

/* ---------- Hero e busca ---------- */
.hero { background: radial-gradient(900px 380px at 85% 0, #e3efe8 0, transparent 65%), radial-gradient(700px 300px at 0 100%, #f6ece4 0, transparent 60%), var(--bg); padding: 60px 0 52px; }
.hero-inner { max-width: 860px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.search-box { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: 18px; box-shadow: var(--shadow); margin-top: 22px; }
.search-box select { border: 0; background: var(--surface-2); border-radius: 12px; padding: 13px 14px; font: inherit; color: var(--text); min-width: 0; }
.search-box .btn { border-radius: 12px; padding: 13px 26px; }
@media (max-width: 640px) { .search-box { grid-template-columns: 1fr; } }

.page-head { padding: 18px 0 4px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin-bottom: 0; max-width: 760px; font-size: 1.02rem; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }
.h1-tag { display: inline-block; vertical-align: middle; font: 600 .8rem var(--font); text-transform: uppercase; letter-spacing: .08em; background: var(--primary-soft); color: var(--primary-dark); padding: 4px 12px; border-radius: 999px; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.filters select, .filters input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: inherit; font-size: .9rem; color: var(--text); min-width: 0; }
.filters input[type=search] { flex: 1 1 180px; }
.result-count { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.section-tight { padding-top: 14px; }

/* ---------- Bairros ---------- */
.nb-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.nb-bar::-webkit-scrollbar { display: none; }
.nb-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .86rem; text-decoration: none; white-space: nowrap; }
.nb-chip:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nb-chip-on { background: var(--primary); color: #fff; }
.nb-chip-on:hover { background: var(--primary-dark); color: #fff; }
.nb-picker { margin: 4px 0 0; }
.nb-picker summary { cursor: pointer; font-weight: 500; font-size: .9rem; padding: 6px 0; color: var(--primary); list-style: none; }
.nb-picker summary::-webkit-details-marker { display: none; }
.nb-picker summary::after { content: " ▾"; }
.nb-picker[open] summary::after { content: " ▴"; }
.nb-picker[open] { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 18px 0; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.zones-compact { padding: 8px 0 16px; }
.zone h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.nb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nb-list a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--text); text-decoration: none; }
.zones-compact .nb-list a { background: var(--bg); }
.nb-list a:hover, .nb-list a.current { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 600; text-align: center; line-height: 18px; }
.nb-chip .count { background: rgba(47,107,87,.14); color: var(--primary-dark); }
.nb-chip-on .count { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-hl2 { box-shadow: 0 0 0 2px #e6cf8f, var(--shadow); }
.card-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-2); color: #fff; text-decoration: none; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-photo img { transform: scale(1.03); }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 12px 11px; background: linear-gradient(transparent, rgba(16,24,20,.8)); display: flex; flex-direction: column; gap: 4px; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-name { display: block; font-size: 1.12rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.card-price { flex: none; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.card-price .sep { width: 1px; height: 13px; background: rgba(255,255,255,.6); }
.card-place { font-size: .82rem; display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .95; }
.card-place svg { width: 13px; height: 13px; flex: none; }
.card-mode { flex: none; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); padding: 2px 8px; border-radius: 6px; font-size: .74rem; font-weight: 500; }
.card-body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tech { margin: 0; font-size: .84rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tech span { color: var(--muted); }
.card-cta { margin-top: auto; display: block; text-align: center; padding: 8px; border-radius: 999px; border: 1px solid var(--primary-soft); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: .88rem; text-decoration: none; }
.card-cta:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card-badges .badge { position: static; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.profile-head .badge { position: static; display: inline-block; margin-bottom: 8px; }
.badge-featured { background: var(--primary); color: #fff; }
.badge-premium { background: var(--gold); color: #fff; }
.badge-new { background: #fff; color: var(--accent); }
.chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.chips li { font-size: .75rem; background: var(--primary-soft); color: var(--primary-dark); padding: 3px 9px; border-radius: 999px; }
.chips li a { color: inherit; text-decoration: none; }
.chips-lg li { font-size: .88rem; padding: 6px 13px; }
.chip-more { background: var(--surface-2) !important; color: var(--muted) !important; }
.grid-ad { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-overlay { padding: 40px 9px 8px; gap: 2px; }
  .card-name { font-size: .98rem; }
  .card-price { font-size: .84rem; gap: 6px; }
  .card-place { font-size: .76rem; }
  .card-mode { display: none; }
  .card-badges { top: 7px; left: 7px; gap: 4px; }
  .card-badges .badge { font-size: .6rem; padding: 3px 7px; }
  .card-badges .badge-new { display: none; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters select { font-size: .84rem; padding: 9px 10px; }
  .filters input[type=search] { grid-column: 1 / 2; }
  .page-head .lead { font-size: .95rem; }
  .highlights { gap: 12px; }
  .hl-item { width: 68px; }
  .hl-ring { width: 64px; height: 64px; }
  .card-body { padding: 8px 9px 10px; }
  .card-tech { font-size: .76rem; }
  .card-cta { font-size: .8rem; padding: 6px; }
}

.card-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.card-meta svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.nb-picker-home { margin-top: 10px; }
.nb-bar-wrap { flex-wrap: wrap; overflow: visible; }

/* ---------- Anúncios ---------- */
.ad { margin: 22px 0; text-align: center; min-height: 90px; }
.ad-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }

/* ---------- Vazio ---------- */
.empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty p { color: var(--text-2); max-width: 520px; margin: 0 auto 18px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Técnicas ---------- */
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tech-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.tech-grid a:hover { border-color: var(--primary); }
.tech-grid strong { color: var(--primary-dark); }
.tech-grid span { font-size: .88rem; color: var(--text-2); }
.tech-grid em { font-style: normal; font-size: .85rem; color: var(--primary); margin-top: auto; padding-top: 6px; }

/* ---------- Faixa CTA ---------- */
.cta-band { background: var(--primary-dark); color: #fff; padding: 44px 0; margin-top: 24px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.82); max-width: 600px; margin: 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Perfil ---------- */
.profile { padding-top: 22px; padding-bottom: 30px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } .profile-side { order: -1; } }
.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.profile-head h1 { margin-bottom: 4px; }
.profile-head .lead { margin-bottom: 6px; }
@media (max-width: 560px) { .profile-head { flex-direction: column; align-items: flex-start; } }
.avatar { width: 160px; height: 200px; border-radius: 20px; object-fit: cover; background: var(--surface-2); border: 4px solid var(--surface); box-shadow: var(--shadow); flex: none; }
.avatar-xs { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; background: var(--surface-2); }
.with-avatar { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.profile-section { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.profile-section h2 { font-size: 1.15rem; }
.prose { color: var(--text-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.contact-box { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
.price-big { font-size: .95rem; color: var(--muted); margin: 0 0 4px; }
.price-big strong { font-size: 1.5rem; color: var(--text); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.report-link { text-align: center; font-size: .82rem; margin-top: 10px; }
.report-link a { color: var(--muted); }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.plans-compact { max-width: none; margin: 0 0 24px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan-popular { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan-price { font: 600 2rem var(--font-display); margin: 0 0 12px; }
.plan-price span { font: 400 .95rem var(--font); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: .93rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 8px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.trial-note { display: inline-block; background: var(--accent-soft); color: #7b4527; padding: 8px 16px; border-radius: 999px; font-size: .92rem; }
.how { max-width: 760px; margin: 40px auto 0; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }

/* ---------- Formulários ---------- */
.form label { display: block; margin-bottom: 14px; font-size: .9rem; font-weight: 500; }
.form label small { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea, .table input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-weight: 400; color: var(--text);
}
.table input:not([type=checkbox]) { margin-top: 0; padding: 6px 8px; font-size: .88rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.form input[type=file] { display: block; margin-top: 6px; font-size: .88rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.form legend { font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.checkbox, .radio { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.checkbox input, .radio input { margin-top: 5px; accent-color: var(--primary); }
.radios-inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.radios-inline legend { width: 100%; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; }
.check-grid .checkbox { margin-bottom: 6px; }
.card-form { background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 12px; }
.align-start { align-items: start; gap: 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.hint { font-size: .87rem; color: var(--text-2); background: var(--surface-2); padding: 10px 14px; border-radius: var(--radius-sm); }
.auth-wrap { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.photo-field { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.photo-field .avatar { width: 110px; height: 110px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 12px; }
.inline { display: inline; }
.prose-page h2 { margin-top: 1.4em; font-size: 1.25rem; }

/* ---------- Alertas e pílulas ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-size: .93rem; }
.alert-success { background: var(--success-soft); color: #1f5a39; }
.alert-error { background: var(--error-soft); color: #7e2219; }
.alert-warning { background: var(--warning-soft); color: #6e4e10; }
.alert-info { background: var(--info-soft); color: #234a64; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; vertical-align: middle; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-error { background: var(--error-soft); color: var(--error); }
.pill-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Painel e admin ---------- */
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-top: 26px; padding-bottom: 40px; align-items: start; }
.side-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px 12px; }
.side-nav a { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .93rem; display: flex; justify-content: space-between; align-items: center; }
.side-nav a:hover { background: var(--surface-2); }
.side-nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; gap: 14px; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-title { display: none; }
  .side-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--border); }
}
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-title h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h2 { font-size: 1.15rem; }
.status-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; color: var(--text); text-decoration: none; }
a.stat-card:hover { outline: 1px solid var(--primary); }
.stat-label { font-size: .8rem; color: var(--muted); }
.big { font: 600 1.7rem var(--font-display); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.todo { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.todo li { padding-left: 26px; position: relative; color: var(--text-2); }
.todo li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); }
.todo li.done { color: var(--muted); text-decoration: line-through; }
.todo li.done::before { background: var(--primary); border-color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bar span { width: 100%; max-width: 30px; background: var(--primary); border-radius: 4px 4px 0 0; }
.bar small { font-size: .65rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-compact td { padding: 6px 8px; }
.row-open td { background: #fffaf0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mod-actions { display: flex; flex-direction: column; gap: 10px; }
.inline-note { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.inline-note input, .inline-note select { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.danger-zone { border: 1px solid var(--error-soft); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .9rem; }
.tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-admin figure { margin: 0; background: var(--surface); border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow); }
.photo-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.caption-form { display: flex; gap: 4px; margin-bottom: 4px; }
.caption-form input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; }
.upload-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.upload-box label { margin: 0; flex: 1; }
.pix-box { border: 2px solid var(--primary-soft); }
.pix-key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.pix-key code { background: var(--surface-2); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 1rem; word-break: break-all; }
.message.is-read { opacity: .65; }
.message header { margin-bottom: 6px; }

/* ---------- Paginação ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .9rem; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Rodapé ---------- */
.site-footer { background: #1b2420; color: #c9d1cc; margin-top: 40px; padding: 40px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font: 600 1.15rem var(--font-display); color: #fff; display: block; margin-bottom: 8px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.site-footer a { display: block; color: #c9d1cc; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding: 16px; font-size: .8rem; color: #95a19a; }
.cta-band + .site-footer { margin-top: 0; }

/* ---------- Brasil inteiro: busca por estado, cidade e bairro ---------- */
.search-box-br { grid-template-columns: .9fr 1.2fr 1.2fr 1fr auto; }
.search-box select:disabled { opacity: .55; }
@media (max-width: 900px) { .search-box-br { grid-template-columns: 1fr 1fr; } .search-box-br .btn { grid-column: 1 / -1; } }
@media (max-width: 640px) { .search-box-br { grid-template-columns: 1fr; } }
.page-head + .search-box-br { margin: 6px 0 18px; }
.row-2 > .span-2 { grid-column: 1 / -1; }
.span-2 .hint { display: block; margin-top: 6px; font-weight: 400; }
.states-list a { background: var(--surface); }
.nb-chip small { color: var(--muted); font-size: .72rem; }
[data-geo-typed][hidden], [data-areas][hidden] { display: none; }
