/* ===== OPA Imóveis — CSS global (compartilhado pelas 6 páginas) =====
   Os estilos de layout ficam inline nos templates (fidelidade ao protótipo).
   Aqui: fontes self-hosted, reset/global, keyframes e as regras responsivas
   que o protótipo fazia via matchMedia. */

/* ---- Inter self-hosted (@fontsource, woff2) ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-300-normal.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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-ext-300-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-ext-400-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-ext-500-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-ext-600-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-ext-700-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-ext-800-normal.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-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Reset/global (do helmet do protótipo) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: #12455f; font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
a { color: #2a7ca8; text-decoration: none; }
a:hover { color: #12455f; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid #2a7ca8; outline-offset: 3px; border-radius: 4px; }
/* No mapa de regiões o anel de foco desenharia um retângulo em volta da ilha inteira */
[data-regiao-mapa]:focus, [data-regiao-mapa]:focus-visible { outline: none; }
[data-regiao-mapa]:focus-visible { filter: brightness(1.16) saturate(1.05); }

@keyframes opaPop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes opaVeuSai { 0%, 58% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes opaMarcaEntra {
  0% { opacity: 0; transform: scale(1.06); letter-spacing: .1em; }
  26% { opacity: 1; transform: scale(1); letter-spacing: 0; }
  72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.985); }
}
@keyframes opaSobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes opaSurge { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-intro] { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* Páginas internas (body[data-header="solido"]): sem véu de intro — as
   animações de entrada não devem atrasar nada. */
body[data-header="solido"] [data-intro] { animation: none !important; opacity: 1 !important; }

/* ---- Nav ampla x compacta (o protótipo alternava via matchMedia 900px) ---- */
@media (max-width: 900px) {
  .nav-ampla { display: none !important; }
}
@media (min-width: 900.02px) {
  .nav-compacta { display: none !important; }
  .busca-botao { display: none !important; }
}

/* ---- Busca do hero no mobile: botão "Buscar imóveis" abre os campos ---- */
@media (max-width: 900px) {
  .busca-hero:not(.aberta) .busca-campos { display: none !important; }
  .busca-hero.aberta .busca-botao { display: none !important; }
}

/* ---- Trilha de destaques: esconder scrollbar (WebKit) ---- */
.trilha-sem-scrollbar::-webkit-scrollbar { display: none; }

/* Cards da trilha: 3 por vez no desktop (inline); no mobile, um card quase
   inteiro por vez para não ficar ilegível. */
@media (max-width: 700px) {
  .card-destaque { flex: 0 0 86% !important; }
}

/* ---- Dropdowns da busca ---- */
.menu-drop { display: none; }
.menu-drop.aberto { display: flex; }
.opcao-ativa { background: #eaf3f8 !important; color: #12455f !important; font-weight: 600 !important; }

/* ---- Toggle Venda/Aluguel do hero ---- */
.neg-btn.neg-on { background: #ffffff !important; color: #12455f !important; box-shadow: 0 6px 18px rgba(9,44,62,0.18); cursor: default; }
.neg-btn:not(.neg-on):hover { background: rgba(255,255,255,0.18); color: #ffffff; }

/* ---- Abas da seção Exclusivos ---- */
.aba-ativa { border-bottom: 2px solid #2a7ca8 !important; color: #12455f !important; cursor: default !important; }

/* ---- Inputs (o protótipo usava style-focus, que o motor não processa) ---- */
.input-opa:focus { border-color: #2a7ca8 !important; }
