/**
 * Tema `tema01` — dourado e cinza (clássico), story 10.1.
 *
 * Portado do ALS_IMOB_SISTEMA_COMPLETO: `_temas/tema01/tema01.module.css` (topo, menu, home, rodapé),
 * `app/globals.css` e `publico.module.css` (cartão, listagem, ficha, formulários, simulador).
 * As regras de lá vêm COPIADAS e escopadas em `body#template`, sem Bootstrap por baixo.
 *
 * O ouro é `var(--cor-principal, #eec150)` (cor do painel); sem cor escolhida, o dourado de lá.
 */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/montserrat-400.ttf) format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-600.ttf) format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-700.ttf) format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body#template {
  --ouro: var(--cor-principal, #eec150);
  /* Hover: #e9b122 de lá. Quando o cliente escolhe uma cor, o layout grava `--ouro-forte` escurecendo-a. */
  --ouro-forte: #e9b122;
  --cinza: #6a6a6a;
  --cinza-linha: #515151;
  --texto: #3c4858;
  /* Cor do texto SOBRE o ouro: escura no dourado, branca se o cliente escolher uma cor escura no painel. */
  --sobre-ouro: #1d1d1d;
  /* Pele das páginas (lista, ficha, contato…): as cores base do sistema de lá, trocadas pelas do tema. */
  --bg: #fafaf6;
  --ink: #3c4858;
  --green: var(--ouro);
  --lime: #fbf2dc;
  --icone: #a97c0f;
  --line: #e5e7eb;
  --muted: #7f8691;
  --white: #fff;
  --red: #c95f51;
  --sidebar: #0a3541;
  --shadow: 0 8px 30px #15343c08;
  margin: 0;
  font-family: Montserrat, "Trebuchet MS", sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  background: #fafaf6;
  color: var(--texto);
}
/* Embrulho da página (como o `.raiz` de lá): rodapé sempre no fim e sem rolagem lateral causada pelas faixas de 100vw.
   O `overflow-x: clip` fica AQUI, nunca em html/body (Safari/iOS). */
body#template .raiz { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
@supports (color: oklch(from red l c h)) {
  body#template { --sobre-ouro: oklch(from var(--ouro) clamp(0, (0.62 - l) * 1000, 1) 0 0); }
}
body#template *, body#template *::before, body#template *::after { box-sizing: border-box; }
/* ATENÇÃO: sem overflow-x em html/body (Safari/iOS abre um vazio gigante abaixo do rodapé). */
body#template a { color: inherit; text-decoration: none; }
body#template button { font: inherit; cursor: pointer; }
body#template input, body#template select, body#template textarea { font: inherit; }
body#template h1, body#template h2, body#template h3, body#template p { margin: 0; }
body#template h1, body#template h2, body#template h3 { font-family: Manrope, Arial, sans-serif; }
body#template h1 { font-size: 27px; letter-spacing: -1px; font-weight: 750; }
body#template h2 { font-size: 17px; font-weight: 750; letter-spacing: -0.35px; }
body#template h3 { font-size: 14px; }
body#template [hidden], body#template [x-cloak] { display: none !important; }
body#template a:focus-visible, body#template button:focus-visible, body#template input:focus-visible, body#template select:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
/* Campos de formulário ficam sem o anel de foco ao clicar (pedido do Adriano, como lá). */
body#template :is(input, select, textarea):focus, body#template :is(input, select, textarea):focus-visible { outline: none; box-shadow: none; }
body#template .field :is(input, select, textarea):focus { border-color: #dee2e8; }
body#template .btn.primary { color: var(--sobre-ouro); }
body#template .btn.primary:hover { background: var(--ouro-forte); }
body#template .pagination .current { background: var(--ouro); border-color: var(--ouro); color: var(--sobre-ouro); }
body#template .pagination .btn:hover { border-color: var(--ouro); }
body#template .principal { width: 100%; flex: 1; }
/* Seção de largura total, mesmo dentro do contêiner centralizado das páginas. */
body#template .sangra { width: 100vw; margin-left: calc(50% - 50vw); }

/* ====== topo, menu, home, rodapé (tema01.module.css de lá) ====== */
body#template .t01-topo { background: var(--cinza); color: #fff; }
body#template .t01-topo-barra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 30px; border-bottom: 1px solid var(--cinza-linha); }
body#template .t01-topo-contato { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body#template .t01-pilula { display: inline-flex; align-items: center; gap: 8px; height: 45px; padding: 10px 20px; border: 1px solid #e2e4e8cc; border-radius: 30px; font-size: 14px; color: #fff; white-space: nowrap; }
body#template .t01-pilula:hover,
body#template .t01-pilula:focus { color: #fff; text-decoration: none; background: #ffffff14; }
body#template .t01-pilula-icone { display: inline-flex; color: #25d366; }
body#template .t01-logo { display: flex; justify-content: center; max-height: 140px; max-width: 270px; padding: 6px 0; color: #fff; }
body#template .t01-logo:hover,
body#template .t01-logo:focus { color: #fff; text-decoration: none; }
body#template .t01-logo img { max-width: 100%; max-height: 128px; width: auto; height: auto; object-fit: contain; }
body#template .t01-logo span { font-size: 22px; font-weight: 700; text-align: center; }
body#template .t01-topo-redes { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px; font-size: 12px; }
body#template .t01-topo-redes a { color: #fff; opacity: .85; }
body#template .t01-topo-redes a:hover { opacity: 1; color: #fff; text-decoration: underline; }
body#template .t01-menu-caixa { border-bottom: 1px solid var(--cinza-linha); }
body#template .t01-menu { display: flex; justify-content: center; flex-wrap: wrap; min-height: 60px; padding: 10px 30px; align-items: center; }
body#template .t01-menu a { display: flex; align-items: center; height: 40px; padding: 10px 15px; margin: 0 5px; border-radius: 2px; font-size: 14px; color: #fff; white-space: nowrap; transition: background-color .2s, color .2s; }
body#template .t01-menu a:hover,
body#template .t01-menu a.ativo { color: var(--sobre-ouro); background: var(--ouro); text-decoration: none; }
body#template .t01-hero { margin-top: -35px; min-height: 350px; display: flex; align-items: center; justify-content: center; padding: 60px 20px; background-size: cover; background-position: center; }
body#template .t01-hero h1 { color: #fff; font-size: 40px; line-height: 1.15; font-weight: 500; text-align: center; max-width: 1000px; text-shadow: 0 2px 10px #0006; margin: 0; }
body#template .t01-busca { background: var(--cinza); color: #fff; padding: 25px 16px 35px; }
body#template .t01-busca-miolo { max-width: 1000px; margin: 0 auto; }
body#template .t01-busca-topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
body#template .t01-busca-topo h2 { font-size: 18px; font-weight: 700; margin: 0; color: #fff; }
body#template .t01-busca-ref { display: flex; align-items: center; gap: 8px; font-size: 14px; }
body#template .t01-busca-ref input { width: 160px; }
body#template .t01-busca-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
body#template .t01-busca .field { gap: 0; color: #fff; }
body#template .t01-busca .field label { margin: 0 0 5px; font-size: 14px; font-weight: 700; }
body#template .t01-busca .busca-campo-pesquisa { grid-column: span 2; }
body#template .t01-busca label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 5px; color: #fff; }
body#template .t01-busca-ref label { margin: 0; }
body#template .t01-busca select,
body#template .t01-busca input { width: 100%; height: 40px; padding: 0 13px; background: #fff; color: #3c4858; border: 1px solid #d1d1d1; border-radius: 8px; font: inherit; font-size: 14px; }
body#template .t01-botao-ouro { display: inline-flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--ouro); background: var(--ouro); color: var(--sobre-ouro); border-radius: 2px; padding: 10px 20px; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .4s; }
body#template .t01-botao-ouro:hover,
body#template .t01-botao-ouro:focus { background: var(--ouro-forte); color: var(--sobre-ouro); text-decoration: none; }
body#template .t01-faixa { display: block; line-height: 0; }
body#template .t01-faixa img { width: 100%; height: 300px; object-fit: cover; object-position: center; }
body#template .t01-destaques { max-width: 1200px; margin: 50px auto 20px; padding: 0 15px; }
body#template .t01-destaques-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
body#template .t01-destaques-topo h2 { font-size: 26px; font-weight: 600; margin: 0; }
body#template .t01-link-ouro { color: var(--texto); font-weight: 600; font-size: 14px; text-decoration: underline; text-decoration-color: var(--ouro); text-underline-offset: 5px; }
body#template .t01-vazio { padding: 30px 0; color: #777; }
body#template .t01-rodape { background: #000; color: #fff; padding: 45px 30px 20px; margin-top: 50px; }
body#template .t01-rodape-miolo { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
body#template .t01-rodape-logo { display: block; max-width: 270px; margin-bottom: 18px; color: #fff; }
body#template .t01-rodape-logo img { display: block; max-width: 100%; max-height: 128px; width: auto; height: auto; object-fit: contain; }
body#template .t01-rodape-miolo strong { font-size: 16px; }
body#template .t01-rodape-miolo p { margin: 8px 0 0; font-size: 14px; }
body#template .t01-rodape a { color: #fff; }
body#template .t01-rodape-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
body#template .t01-rodape-links a { opacity: .85; }
body#template .t01-rodape-links a:hover { opacity: 1; color: var(--ouro); }
body#template .t01-rodape-base { max-width: 1200px; margin: 30px auto 0; padding: 15px 0 70px; border-top: 1px solid #ffffff26; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; opacity: .85; }
body#template .t01-email-botao { border: 0; background: none; color: inherit; font: inherit; padding: 0; text-decoration: underline; cursor: pointer; }
body#template .t01-email-visivel { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body#template .t01-flutuante { position: fixed; right: 16px; bottom: 17px; width: 55px; height: 55px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 100; box-shadow: 0 4px 12px #0003; }
body#template .t01-flutuante:hover,
body#template .t01-flutuante:focus { background: #1fbd5a; color: #fff; text-decoration: none; }
body#template .t01-flutuante svg { width: 30px; height: 30px; }
@media (max-width: 900px) {
body#template .t01-busca-campos { grid-template-columns: 1fr 1fr; }
body#template .t01-busca-campos > button { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
body#template .t01-topo-barra { grid-template-columns: 1fr; justify-items: center; padding: 14px 16px 8px; }
body#template .t01-topo-contato,
body#template .t01-topo-redes { justify-content: center; align-items: center; }
body#template .t01-logo img { max-width: 220px; }
body#template .t01-hero { min-height: 250px; padding: 35px 18px; margin-top: -25px; }
body#template .t01-hero h1 { font-size: 28px; }
body#template .t01-faixa img { height: 165px; }
body#template .t01-destaques-topo h2 { font-size: 22px; }
body#template .t01-rodape { padding: 35px 20px 20px; }
body#template .t01-rodape-miolo > div { width: 100%; }
body#template .t01-rodape-logo { margin: 0 auto 18px; }
body#template .t01-rodape-logo img { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
body#template .t01-menu a,
body#template .t01-botao-ouro { transition: none; }
}

/* ====== copiado de globals.css (lá), escopado ====== */
body#template svg.icon { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
body#template .page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
body#template .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 7px; }
body#template .subtitle { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
body#template .actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
body#template .btn { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #445062; font-size: 11px; font-weight: 600; white-space: nowrap; }
body#template .btn:hover { background: #f0f2f5; }
body#template .btn.primary { background: var(--green); color: white; border-color: var(--green); }
body#template .btn.primary:hover { background: #0a3541; }
body#template .btn.dark { background: var(--sidebar); color: white; border-color: var(--sidebar); }
body#template .btn.danger { color: var(--red); border-color: #eed4cf; }
body#template .btn.ghost { border-color: transparent; background: none; }
body#template .btn.sm { padding: 7px 10px; font-size: 10px; }
body#template .panel { background: #fff; border: 1px solid var(--line); border-top: 3px solid #9fc3c6; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
body#template .panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; gap: 15px; }
body#template .panel-head h2 { font-size: 14px; }
body#template .panel-head small { color: var(--muted); display: block; margin-top: 5px; font-size: 10px; }
body#template .panel-body { padding: 8px 22px 24px; }
body#template .link { border: 0; background: none; color: var(--green); font-size: 11px; font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 5px; }
body#template .grid { display: grid; gap: 20px; }
body#template .grid.two { grid-template-columns: 1fr 1fr; }
body#template .grid.three { grid-template-columns: repeat(3, 1fr); }
body#template .grid.four { grid-template-columns: repeat(4, 1fr); }
body#template .list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edeff1; }
body#template .list-row:last-child { border: 0; }
body#template .list-row .grow { flex: 1; }
body#template .list-row b { font-size: 11px; display: block; }
body#template .list-row small { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
body#template .list-row time { font-size: 10px; white-space: nowrap; color: var(--muted); }
body#template .badge { font-size: 9px; font-weight: 550; padding: 4px 7px; border-radius: 4px; background: #e8f2f4; color: #4c658a; display: inline-block; white-space: nowrap; }
body#template .badge.amber { background: #fbf3df; color: #ac8534; }
body#template .badge.red { background: #fbede9; color: #bd6755; }
body#template .badge.blue { background: #eff6f8; color: #6483b0; }
body#template .badge.gray { background: #eff0f2; color: #8a9099; }
body#template .badge.purple { background: #eef7f9; color: #8c77ad; }
body#template .muted { color: var(--muted); }
body#template .text-sm { font-size: 11px; }
body#template .property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body#template .property-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; position: relative; }
body#template .property-card img { height: 175px; width: 100%; object-fit: cover; background: #e6eaef; }
body#template .property-card .content { padding: 17px; }
body#template .property-card h3 { font-size: 13px; margin: 8px 0; }
body#template .property-card p { font-size: 10px; color: var(--muted); line-height: 1.7; }
body#template .property-card .price { font-size: 19px; font-weight: 700; margin-top: 15px; }
body#template .property-card .features { display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; font-size: 10px; color: #7c838e; }
body#template .property-card > .badge { position: absolute; top: 12px; left: 12px; background: white; }
body#template .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body#template .field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #5a6474; min-width: 0; }
body#template .field.full { grid-column: 1/-1; }
body#template .field label { font-size: 11px; font-weight: 550; }
body#template .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body#template .field textarea,
body#template .field select,
body#template .select { padding: 11px 12px; border: 1px solid #dee2e8; border-radius: 6px; background: white; color: #485364; width: 100%; min-width: 0; font-size: 12px; }
body#template .field input:focus,
body#template .field textarea:focus,
body#template .field select:focus { border-color: #5875a1; outline: 2px solid #a4ccd63d; }
body#template select,
body#template .field input[type="range"] { width: 100%; accent-color: var(--green); }
body#template .field textarea { min-height: 100px; resize: vertical; }
body#template .field .help { color: #959ba4; font-size: 10px; line-height: 1.5; }
body#template .check { display: flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.6; color: #5c6778; }
body#template .check input { accent-color: var(--green); height: 15px; width: 15px; flex-shrink: 0; }
body#template .checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body#template .info-banner { padding: 14px 17px; background: #e6f2f5; border: 1px solid #d6e7eb; border-radius: 8px; display: flex; gap: 11px; font-size: 11px; line-height: 1.7; margin-bottom: 20px; color: #566884; }
body#template .info-banner .icon { margin-top: 1px; }
body#template .empty { padding: 45px 20px; text-align: center; color: var(--muted); font-size: 12px; }
body#template .empty .icon { width: 30px; height: 30px; margin-bottom: 12px; }
body#template .empty p { margin: 10px 0 16px; }
body#template .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
body#template .galeria { margin-bottom: 20px; }
body#template .galeria-principal { position: relative; aspect-ratio: 4 / 3; max-height: 480px; width: 100%; border-radius: 10px; overflow: hidden; background: #e2e7ee; touch-action: pan-y; }
body#template .galeria-foto { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
body#template .galeria-foto:disabled { cursor: default; }
body#template .galeria-foto:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
body#template .galeria-principal img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
body#template .galeria-seta { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
body#template .galeria-seta.volta { left: 10px; }
body#template .galeria-seta.proxima { right: 10px; }
body#template .galeria-contador { position: absolute; left: 10px; bottom: 10px; background: #000a; color: #fff; border-radius: 20px; padding: 4px 10px; font-size: 11px; }
body#template .galeria-todas { position: absolute; right: 10px; bottom: 10px; }
body#template .galeria-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
body#template .galeria-mini button { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #e2e7ee; cursor: pointer; }
body#template .galeria-mini button.ativa { border-color: var(--green); }
body#template .galeria-mini button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
body#template .galeria-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
body#template .galeria-mais { position: absolute; inset: 0; display: grid; place-items: center; background: #000b; color: #fff; font-size: 20px; font-weight: 700; }
body#template .galeria-acoes { margin-top: 8px; display: flex; justify-content: flex-end; }
@media (hover: none) {
body#template .galeria-seta { display: none; }
}
@media (max-width: 767px) {
body#template .galeria-mini { gap: 6px; }
body#template .galeria-mais { font-size: 16px; }
}
body#template .description { font-size: 12px; line-height: 1.9; color: #707883; }
body#template .data-pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
body#template .data-pairs dt { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
body#template .data-pairs dd { margin: 0; font-size: 12px; }
body#template .side-card { padding: 22px; }
body#template .side-card .price { font-size: 27px; font-weight: 700; letter-spacing: -1px; margin: 8px 0 20px; }
body#template .side-card .btn { width: 100%; margin-top: 8px; }
body#template .side-card h3 { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
body#template .public-main { max-width: 1260px; margin: auto; padding: 35px 30px 70px; }
body#template .public-search { background: white; padding: 18px 20px; display: flex; gap: 10px; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 0 0 35px; }
body#template .public-search .field { flex: 1; }
body#template .photo-fallback { background: linear-gradient(135deg, #a5b4ca, #e8e4d7); }
body#template .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
body#template .pagination .btn { min-width: 34px; justify-content: center; text-decoration: none; }
body#template .pagination .gap { min-width: 20px; text-align: center; color: var(--muted); }
body#template .pagination .current { background: #d8eaee; color: #3a646e; border-color: #cee3e8; }
@media (max-width: 1150px) {
body#template .grid.four { grid-template-columns: repeat(2, 1fr); }
body#template .property-grid { grid-template-columns: repeat(2, 1fr); }
body#template .detail-layout { grid-template-columns: minmax(0, 1fr) 250px; }
body#template .checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
body#template .grid.three { grid-template-columns: repeat(2, 1fr); }
body#template .detail-layout { grid-template-columns: 1fr; }
body#template .detail-layout > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
body#template .public-search { flex-wrap: wrap; }
body#template .public-search .field { min-width: 40%; }
body#template .public-search .btn { width: 100%; }
body#template .public-main { padding: 25px 18px 45px; }
body#template .page-head { align-items: flex-start; }
body#template .page-head h1 { font-size: 24px; }
body#template .checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
body#template .page-head { flex-wrap: wrap; margin-bottom: 22px; }
body#template .page-head .actions { width: 100%; }
body#template .grid.two,
body#template .grid.three,
body#template .property-grid,
body#template .form-grid { grid-template-columns: 1fr; }
body#template .grid.four { gap: 10px; }
body#template .panel-head { padding: 19px 17px 14px; }
body#template .panel-body { padding: 6px 17px 20px; }
body#template .detail-layout > aside { grid-template-columns: 1fr; }
body#template .checks { grid-template-columns: 1fr 1fr; gap: 12px; }
body#template .check { font-size: 10px; }
body#template .data-pairs { gap: 20px; }
body#template .property-card img { height: 220px; }
}


/* ====== copiado de publico.module.css (lá), escopado ====== */
body#template .etiquetas { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 1; }
body#template .etiqueta { font-size: 9px; font-weight: 650; padding: 5px 8px; border-radius: 4px; background: var(--sidebar); color: white; }
body#template .etiquetaNegociado { background: #8a94a3; }
body#template .isca { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
body#template .formulario { display: grid; gap: 16px; }
body#template .erro { background: #fbeceb; color: #a1473d; border: 1px solid #f0cfcb; border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.6; }
body#template .sucesso { background: #eaf5ee; color: #2f6b47; border: 1px solid #cfe6d8; border-radius: 8px; padding: 18px; font-size: 13px; line-height: 1.7; }
body#template .avisoWhatsapp { font-size: 12px; color: #5b6677; margin: 2px 0 4px; }
body#template .sucesso b { display: block; font-size: 15px; margin-bottom: 4px; }
body#template .corpo { font-size: 14px; line-height: 1.9; color: #5f6875; max-width: 860px; overflow-wrap: anywhere; }
body#template .corpo p,
body#template .corpo div { margin: 0 0 14px; }
body#template .corpo h2,
body#template .corpo h3 { color: var(--ink); margin: 24px 0 10px; }
body#template .corpo ul,
body#template .corpo ol { padding-left: 22px; margin: 0 0 14px; }
body#template .paginacao { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; font-size: 12px; color: var(--muted); }
body#template .metricas { display: flex; flex-wrap: wrap; gap: 30px; padding: 6px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
body#template .cartaoInfo { display: inline-flex; align-items: center; gap: 5px; }
body#template .metrica { display: flex; align-items: center; gap: 10px; }
body#template .metricaIcone { color: var(--icone, var(--green)); flex-shrink: 0; }
body#template .caracteristica { display: flex; align-items: center; gap: 9px; }
body#template .caracteristicaIcone { color: var(--icone, var(--green)); flex-shrink: 0; }
body#template .metricas b { font-size: 20px; display: block; }
body#template .metricas small { font-size: 10px; color: var(--muted); }
body#template .video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; overflow: hidden; background: #0f1c30; margin-top: 20px; }
body#template .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body#template .simulador { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
body#template .simuladorControles,
body#template .simuladorResultado { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
body#template .simuladorControles { display: grid; gap: 26px; }
body#template .simuladorResultado dl { margin: 18px 0 0; display: grid; gap: 10px; }
body#template .simuladorResultado dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
body#template .simuladorResultado dt { color: var(--muted); }
body#template .simuladorResultado dd { margin: 0; font-weight: 600; }
body#template .controleTopo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 13px; }
body#template .controleTopo label { font-weight: 600; }
body#template .controleTopo output { font-weight: 700; font-size: 15px; text-align: right; }
body#template .controle input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline-offset: 6px; background: linear-gradient(to right, var(--green) var(--avanco, 0%), var(--line) var(--avanco, 0%)); cursor: pointer; }
body#template .controle input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px #0003; }
body#template .controle input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px #0003; }
body#template .valorDigitado { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
body#template .valorDigitado input { width: 150px; }
body#template .parcela { font-size: 38px; font-weight: 750; letter-spacing: -1.2px; line-height: 1.1; margin: 4px 0 18px; }
body#template .parcela span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
body#template .barra { display: flex; height: 14px; border-radius: 14px; overflow: hidden; background: var(--line); }
body#template .parteEntrada { background: #2f4b76; }
body#template .parteFinanciado { background: var(--green); }
body#template .parteJuros { background: #c95f51; }
body#template .legenda { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
body#template .legenda li { display: flex; align-items: center; gap: 8px; }
body#template .legenda li b { margin-left: auto; }
body#template .legenda i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 860px) {
body#template .simulador { grid-template-columns: 1fr; }
body#template .parcela { font-size: 32px; }
}
body#template .resultado { display: grid; gap: 14px; }
body#template .resultado .destaque { font-size: 30px; font-weight: 750; letter-spacing: -1px; }
body#template .resultado dl { margin: 0; display: grid; gap: 10px; }
body#template .resultado dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 12px; }
body#template .resultado dt { color: var(--muted); }
body#template .resultado dd { margin: 0; font-weight: 600; }
body#template .postagem { display: grid; gap: 8px; }
body#template .postagem time { font-size: 10px; color: var(--muted); }
body#template .larguraTotal { width: 100%; }
body#template .sugerido { position: absolute; top: 12px; left: 12px; z-index: 1; }
body#template .acao { margin-top: 18px; }
@media (max-width: 760px) {
body#template .metricas { gap: 22px; }
body#template .resultado .destaque { font-size: 25px; }
}

/* ====== galeria em tela cheia (o equivalente da lightbox de lá; sem biblioteca externa) ====== */
body#template .lb { position: fixed; inset: 0; z-index: 1000; background: #000e; display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; }
body#template .lb-palco { grid-column: 2; grid-row: 1; height: 100%; display: grid; place-items: center; padding: 48px 0 8px; min-height: 0; }
body#template .lb-palco img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
body#template .lb-contador { position: absolute; top: 12px; left: 16px; color: #fff; font-size: 13px; }
body#template .lb-fechar { position: absolute; top: 6px; right: 12px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 6px 10px; z-index: 2; }
body#template .lb-seta { background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; height: 100%; width: 100%; opacity: .85; }
body#template .lb-seta:hover { opacity: 1; }
body#template .lb-seta.volta { grid-column: 1; grid-row: 1; }
body#template .lb-seta.proxima { grid-column: 3; grid-row: 1; }
body#template .lb-minis { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 10px 14px 14px; }
body#template .lb-minis button { flex: 0 0 auto; width: 90px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #222; opacity: .6; }
body#template .lb-minis button.ativa { border-color: #fff; opacity: 1; }
body#template .lb-minis img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  body#template .lb { grid-template-columns: 1fr; }
  body#template .lb-seta { display: none; }
  body#template .lb-palco { grid-column: 1; }
}
body#template .t01-vazio { padding: 30px 0; color: #777; }

/* ====== Financie: cartões dos bancos (Bancos.tsx de lá) ====== */
body#template .bancos { margin: 10px 0 35px; }
body#template .bancos h2 { font-size: 20px; font-weight: 600; margin: 0 0 20px; }
body#template .bancosLista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body#template .bancoCartao { background: #fff; border: 1px solid #e2e4e8; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
body#template .bancoCartao img { width: 220px; max-width: 100%; height: auto; aspect-ratio: 220 / 80; object-fit: contain; }
body#template .bancoCartao .t01-botao-ouro { text-decoration: none; }
body#template .soLeitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { body#template .bancosLista { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { body#template .bancosLista { grid-template-columns: 1fr; } }

/* ===== Story 10.3 — celular: menu ☰ em gaveta, filtros em gaveta e WhatsApp com ondinhas ===== */

/* Computador: nada do que é só do celular aparece (o topo, o menu em barra e a busca ficam como no original). */
body#template .t01-hamburguer,
body#template .t01-fundo,
body#template .t01-gaveta-fechar,
body#template .t01-gaveta-cab,
body#template .t01-gatilho,
body#template .t01-gatilho-lista,
body#template .t01-icone-whats,
body#template .t01-menu-icone,
body#template .t01-menu a.t01-menu-whats { display: none; }
body#template .t01-pilula-texto { display: inline; }

/* Botão flutuante do WhatsApp: duas ondinhas saindo do ícone, em tempos diferentes, para chamar a atenção. */
body#template .t01-flutuante::before,
body#template .t01-flutuante::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #25d366; opacity: 0; pointer-events: none; animation: t01-onda 2.6s ease-out infinite; }
body#template .t01-flutuante::after { animation-delay: 1.3s; }
@keyframes t01-onda { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.2); opacity: 0; } }

@media (max-width: 767px) {
  /* Topo: ☰ à esquerda, logo no meio, WhatsApp à direita. */
  body#template .t01-topo-barra { grid-template-columns: 48px 1fr 48px; grid-template-areas: "menu logo fone" "redes redes redes"; justify-items: center; align-items: center; gap: 4px 8px; padding: 10px 12px; }
  body#template .t01-hamburguer { grid-area: menu; justify-self: start; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: transparent; color: #fff; border: 1px solid #ffffff59; border-radius: 12px; cursor: pointer; }
  body#template .t01-hamburguer:hover { background: #ffffff14; }
  body#template .t01-logo { grid-area: logo; }
  body#template .t01-logo img { max-width: 100%; max-height: 90px; }
  body#template .t01-topo-contato { grid-area: fone; justify-self: end; }
  body#template .t01-topo-redes { grid-area: redes; justify-content: center; }
  body#template .t01-topo-redes:not(:has(a)) { display: none; }
  body#template .t01-pilula { width: 46px; height: 46px; padding: 0; gap: 0; justify-content: center; border: 0; border-radius: 50%; background: #25d366; }
  body#template .t01-pilula:hover,
  body#template .t01-pilula:focus { background: #1fbd5a; }
  body#template .t01-pilula-icone { color: #fff; filter: none; }
  body#template .t01-icone-fone { display: none; }
  body#template .t01-icone-whats { display: inline-flex; }
  body#template .t01-pilula-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* Fundo escuro atrás de qualquer gaveta aberta. */
  body#template .t01-fundo { display: block; position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  body#template .t01-fundo.aberto { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }

  /* Botão × das gavetas. */
  body#template .t01-gaveta-fechar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; padding: 0; background: transparent; color: #fff; border: 1px solid #ffffff59; border-radius: 10px; font-size: 28px; line-height: 1; cursor: pointer; }
  body#template .t01-gaveta-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 1; padding: 14px 0; margin-bottom: 12px; background: inherit; border-bottom: 1px solid var(--cinza-linha); font-size: 18px; color: #fff; }

  /* Menu: gaveta pela esquerda. */
  body#template .t01-menu-caixa { border-bottom: 0; }
  body#template .t01-menu { position: fixed; top: 0; bottom: 0; left: 0; z-index: 150; width: min(84vw, 320px); min-height: 0; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; padding: calc(72px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); background: var(--cinza); border-right: 1px solid var(--cinza-linha); border-radius: 0 22px 22px 0; box-shadow: 8px 0 30px #0006; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-104%); visibility: hidden; transition: transform .3s cubic-bezier(.22, .9, .3, 1), visibility 0s linear .3s; }
  body#template .t01-menu.aberto { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.22, .9, .3, 1), visibility 0s; }
  body#template .t01-menu a { height: 56px; margin: 0 0 4px; padding: 0 12px; gap: 14px; font-size: 17px; font-weight: 600; border-radius: 14px; white-space: normal; }
  body#template .t01-menu a:active { transform: scale(.98); }
  body#template .t01-menu-icone { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #ffffff1a; color: var(--ouro); }
  body#template .t01-menu-icone .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body#template .t01-menu a:hover .t01-menu-icone,
  body#template .t01-menu a.ativo .t01-menu-icone { background: #00000026; color: inherit; }
  /* WhatsApp no pé da bandeja: sempre verde. */
  body#template .t01-menu a.t01-menu-whats { display: flex; justify-content: center; margin: auto 0 0; height: 52px; background: #25d366; color: #052e16; font-weight: 700; }
  body#template .t01-menu a.t01-menu-whats:hover,
  body#template .t01-menu a.t01-menu-whats:focus { background: #1fbd5a; color: #052e16; }
  body#template .t01-menu .t01-gaveta-fechar { position: absolute; top: 14px; right: 14px; }

  /* Filtro da home: título + botão; os seis campos numa gaveta pela direita. */
  body#template .t01-busca { padding: 22px 16px 26px; }
  body#template .t01-gatilho { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  body#template .t01-gatilho-titulo { font-size: 20px; font-weight: 700; margin: 0; color: #fff; }
  body#template .t01-gatilho .t01-botao-ouro,
  body#template .t01-gatilho-lista { display: inline-flex; width: 100%; height: 48px; gap: 8px; }
  body#template .t01-busca-miolo { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(88vw, 380px); max-width: none; margin: 0; padding: 0 16px 24px; background: var(--cinza); box-shadow: -8px 0 24px #0006; overflow-y: auto; transform: translateX(102%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  body#template .t01-busca-miolo.aberto { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  body#template .t01-busca-topo { display: block; margin-bottom: 0; }
  body#template .t01-busca-topo h2 { display: none; }
  body#template .t01-busca-ref { display: block; margin-bottom: 14px; }
  body#template .t01-busca-ref label { display: block; margin: 0 0 5px; }
  body#template .t01-busca-ref input { width: 100%; }
  body#template .t01-busca-campos { grid-template-columns: 1fr; gap: 14px; }
  body#template .t01-busca-campos > button { grid-column: auto; height: 48px; margin-top: 4px; }
  body#template .t01-busca select,
  body#template .t01-busca input { height: 46px; font-size: 16px; }

  /* Filtro da listagem: botão "Filtrar imóveis"; a caixa branca vira gaveta pela direita. */
  body#template .t01-filtro-lista { margin: 0 0 25px; }
  body#template .t01-filtro-lista .public-search { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(88vw, 380px); margin: 0; padding: 0 16px 24px; flex-direction: column; flex-wrap: nowrap; align-content: flex-start; gap: 14px; border: 0; border-radius: 0; box-shadow: -8px 0 24px #0006; overflow-y: auto; transform: translateX(102%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  body#template .t01-filtro-lista .public-search.aberto { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  body#template .t01-filtro-lista .public-search .field { flex: none; min-width: 0; }
  body#template .t01-filtro-lista .public-search select { font-size: 16px; }
  body#template .t01-filtro-lista .t01-gaveta-cab { background: #fff; color: var(--texto); border-bottom-color: var(--line); }
  body#template .t01-filtro-lista .t01-gaveta-fechar { color: var(--texto); border-color: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  body#template .t01-flutuante::before,
  body#template .t01-flutuante::after { animation: none; display: none; }
  body#template .t01-menu,
  body#template .t01-menu.aberto,
  body#template .t01-busca-miolo,
  body#template .t01-busca-miolo.aberto,
  body#template .t01-filtro-lista .public-search,
  body#template .t01-filtro-lista .public-search.aberto,
  body#template .t01-fundo,
  body#template .t01-fundo.aberto { transition: none; }
}

/* ===== Story 10.4 — ficha do imóvel: texto e ícones mais fortes (pedido do cliente) ===== */
/* Só a descrição da ficha (`.description.midia-imovel`); Sobre e Contato também usam `.description` e não mudam. */
body#template .description.midia-imovel { color: var(--texto); }
body#template .metricas b { color: #1f2937; }
body#template .metricas small { color: #5b6573; }
/* Ícones: o dourado de sempre um pouco mais fechado (contraste ~4,6:1 no branco) e traço mais firme.
   Navegador sem color-mix cai na cor de antes, sem quebrar. */
body#template .metricaIcone,
body#template .caracteristicaIcone { color: color-mix(in srgb, var(--icone, var(--ouro)) 88%, #000); stroke-width: 2; }

/* Cartão de imóvel: o destaque é o TIPO (Apartamento/Casa/Terreno), o TÍTULO e o BAIRRO; o código fica pequeno e discreto.
   Pedido do Adriano em 10/11/2026 — fica só no tema01; os outros temas não mudam. */
body#template .property-card .cartaoTipo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: #4b5563; text-transform: uppercase; letter-spacing: .03em; }
body#template .property-card .cartaoTipo b { font-weight: 800; color: #111827; font-size: 13px; }
body#template .property-card .cartaoRef { font-size: 10px; color: #9aa1ab; text-transform: none; letter-spacing: 0; white-space: nowrap; }
body#template .property-card h3 { font-size: 16px; line-height: 1.35; font-weight: 700; color: #111827; margin: 10px 0 8px; }
body#template .property-card p.cartaoLocal { font-size: 13px; color: #4b5563; display: flex; align-items: center; gap: 5px; }
body#template .property-card p.cartaoLocal b { font-weight: 700; color: #111827; }
body#template .property-card .features { font-size: 13px; color: #374151; gap: 16px; flex-wrap: wrap; }
body#template .property-card .features .cartaoInfo { gap: 6px; }
body#template .property-card .features b { font-weight: 700; color: #111827; }

/* Filtro da listagem (mesmos campos da home): linha que quebra quando são muitos campos. */
@media (min-width: 768px) {
  body#template .public-search { flex-wrap: wrap; align-items: flex-end; }
  body#template .public-search .field { flex: 1 1 150px; }
  body#template .public-search .busca-campo-pesquisa { flex: 2 1 240px; }
}
@media (max-width: 767px) {
  body#template .t01-busca .busca-campo-pesquisa { grid-column: 1 / -1; }
}
