/* Fontes: Manrope carregada via <link> assíncrono no <head> dos PHP
   (o @import aqui criava cadeia render-blocking styles.css -> Google Fonts). */

/* ===== contact.css (inlinado; era @import, que baixa em série e bloqueia o render) ===== */

/* Estilos para Info Cards e Formulário de Contato */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.light-theme .info-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, .1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(255, 255, 255, 0.25);
}

.light-theme .info-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  background: #f8fafc;
}

.info-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--color-title);
}

.info-content p,
.info-content address,
.info-content .contact-list {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.info-content .contact-list {
  list-style: none;
  padding: 0;
}

.info-content .contact-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.info-content .contact-list a:hover {
  color: var(--color-primary);
}

/* Formulário de Contato */
.contact-form {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: none;
}

.light-theme .contact-form {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Botões Sociais */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 15px;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.light-theme .social-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-text);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.light-theme .social-btn:hover {
  background: rgba(0, 0, 0, 0.05); /* Melhor visibilidade no hover claro */
  border-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: var(--color-primary);
}


.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-title);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-input-bg);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--color-input-text);
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.light-theme .form-group input,
.light-theme .form-group textarea,
.light-theme .form-group select {
  background: #f9fafb;
  border-color: rgba(0, 0, 0, .15);
  color: #1f2937;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent);
  outline: none;
}

.light-theme .form-group input:focus,
.light-theme .form-group textarea:focus,
.light-theme .form-group select:focus {
  background: #ffffff;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 4px;
  min-height: 20px;
}

.form-message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== breadcrumbs.css (inlinado; era @import, que baixa em série e bloqueia o render) ===== */
/* Breadcrumbs (Redesign) */
.breadcrumbs {
  padding: 12px 0 !important;
  background: transparent !important;
  border: none !important;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.light-theme .breadcrumbs {
  background: transparent !important;
  border-color: transparent !important;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
}

.breadcrumbs-item:not(:last-child)::after {
  content: "›";
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1;
}

.breadcrumbs-link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: none;
}

.breadcrumbs-current {
  color: var(--color-text);
  font-weight: 600;
  text-transform: none;
}

.light-theme .breadcrumbs-current {
  color: #000;
}

/* ===== badges.css (inlinado; era @import, que baixa em série e bloqueia o render) ===== */

/* Wrapper para badges no card (Categoria + Exclusivo) */
.card-badges-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none; /* Permite clicar na imagem abaixo */
}

/* Quando dentro do wrapper, a badge perde o posicionamento absoluto */
.card-badges-wrapper .badge {
  position: static;
  left: auto;
  top: auto;
}

.badge-exclusive {
  background: rgba(0, 0, 0, .6);
  color: #fff;
}

.theme-loaded .badge-exclusive {
  background: color-mix(in srgb, var(--color-primary) 60%, transparent);
  color: #fff;
}


 [hidden] {
   display: none !important;
 }

:root {
  /* Tipografia: corpo (Inter) vs título (display) */
  --font-base: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --font-display: 'Manrope', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --color-bg: #0b0d10;
  --color-surface: #12151a;
  --color-text: #e7ebf0;
  --color-muted: #a8b0bd;
  --color-primary: #2563eb;
  /* fallback */
  --color-accent: #ef4444;
  /* fallback (vermelho) */
  --color-ghost: #2a3140;
  --radius: 12px;
  --shadow-1: var(--shadow-md);
  --shadow-2: var(--shadow-lg);
  --cards-per-view: 4;
  --site-bg: #0b0f17;
  --color-title: #e7ebf0;
  /* fallback caso API não envie */
  --cards-duration: .68s;
  --cards-ease: cubic-bezier(.22, .61, .36, 1);
  /* pleasant ease-out */
  --ghost-btn-bg: transparent;
  --ghost-btn-text: #e7ebf0;
  --ghost-btn-border: rgba(255, 255, 255, .5);
  --ghost-btn-hover-bg: rgba(255, 255, 255, .12);
  /* Cores dinâmicas do menu - definidas via API */
  --color-nav-link: var(--color-text);
  --color-nav-link-hover: var(--color-primary);
  /* Cores dinâmicas dos títulos da home - definidas via API */
  --color-home-titulo: var(--color-title);
  --color-home-subtitulo: var(--color-muted);
  /* Cor dinâmica do fundo do filtro */
  --color-filter-bg: rgba(18, 21, 26, .84);
  /* Cor dinâmica do fundo dos inputs */
  --color-input-bg: #0f1319;
  /* Cores dinâmicas das fontes do filtro/hero */
  --color-filter-label: var(--color-muted);
  --color-filter-placeholder: rgba(255, 255, 255, 0.6);
  --color-input-text: var(--color-text);

  --color-input-border: rgba(255, 255, 255, 0.12);
  --color-input-border-hover: var(--color-primary);
  /* Spacing Scale (Problem #24) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  /* Standard Border Radius (Problem #26) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadow Tokens */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.light-theme {
  --color-title: #111827;
  --color-text: #374151;
  --color-muted: #4b5563;
  --color-text-muted: #4b5563;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .08);
  --color-surface: #ffffff;
  --color-input-border: rgba(0, 0, 0, 0.2);
}

.light-theme .card,
.light-theme .sobre-content,
.light-theme .about,
.light-theme .footer,
.light-theme .topbar {
  border-color: rgba(0, 0, 0, .1);
}

.light-theme .about {
  border-top-color: rgba(0, 0, 0, .08);
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), transparent);
}

/* Configurações padrão do footer (Escuro) */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: var(--footer-bg, #0a0d12);
  transition: background 0.3s ease, color 0.3s ease;
  color: #fff;
}

.footer h3,
.footer strong {
  color: #fff;
  margin-bottom: 20px;
  display: block;
}

.footer .hours {
  margin-top: 18px;
}
.footer .hours strong {
  margin-bottom: 4px;
}

.footer .list li,
.footer #footer-desc,
.footer .address,
.footer .hours,
.footer #creci,
.footer .copyright,
.copyright {
  color: rgba(255, 255, 255, 0.85);
}

.footer .copyright {
  background: transparent;
  border-top: none;
  margin-top: 12px;
}

.footer .social a,
.footer #creci {
  color: #fff;
}

/* Sobrescritas para quando o footer for claro (JS adiciona .light-footer ao html).
   Usa var(--color-text)/var(--color-title) para respeitar a paleta vinda da API
   (corfontetexto/corfontetitulo); fallback para os greys originais quando não houver. */
.light-footer .footer {
  color: var(--color-text, #374151);
  border-top-color: rgba(0, 0, 0, .12);
}

.light-footer .footer h3,
.light-footer .footer strong {
  color: var(--color-title, #111827);
}

.light-footer .footer #footer-desc,
.light-footer .footer .address,
.light-footer .footer .hours,
.light-footer .footer .list li,
.light-footer .footer #creci,
.light-footer .copyright,
.light-footer .copyright .container {
  color: var(--color-text, #374151) !important;
}

.light-footer .footer .social-link,
.light-footer .social a {
  border-color: rgba(0, 0, 0, .25);
  color: var(--color-text, #374151);
  background: rgba(0, 0, 0, 0.02);
}

.light-footer .footer .social-link:hover,
.light-footer .social a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.light-footer .copyright {
  background: transparent;
  border-top: none;
}

/* Footer com múltiplas unidades (matriz + filial(is)) — sem background/borda nos cards */
.footer .footer-multi-empresas {
  grid-column: span 2;
}
.footer .address-multi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  font-style: normal;
}
@media (min-width: 720px) {
  .footer .address-multi {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
  }
}
.footer .footer-empresa-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
}
.footer .footer-empresa-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
  margin: 0;
}
.footer .footer-empresa-label strong {
  display: inline;
  margin: 0;
  font-weight: 700;
  opacity: 1;
  color: var(--color-title, inherit);
}
.footer .footer-empresa-addr {
  font-size: 0.92rem;
  line-height: 1.5;
  color: inherit;
}
.footer .footer-empresa-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.footer .footer-empresa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  /* Importante: o `.address` ancestral aplica text-transform: capitalize.
     Reset aqui para que e-mails fiquem em lowercase real (ex.: lgacorretor@gmail.com
     em vez de Lgacorretor@Gmail.Com). Telefones não são afetados por capitalize. */
  text-transform: none;
  transition: opacity .15s ease;
}
.footer .footer-empresa-link:hover {
  opacity: .8;
  text-decoration: underline;
}
.footer .footer-empresa-hours {
  font-size: 0.88rem;
  line-height: 1.5;
  color: inherit;
  opacity: 0.85;
  margin-top: 4px;
}
.footer .footer-empresa-hours strong {
  display: block;
  margin: 0 0 2px;
  font-weight: 600;
  color: inherit;
}

.light-theme .amenities {
  color: #111827 !important;
  font-weight: 500;
}

.light-theme .amenities svg {
  opacity: 1;
  color: #4b5563;
  /* Tom mais escuro para melhor ênfase (neutral-600) */
}

.light-theme .card {
  background: #ffffff;
}

.light-theme .card-media::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.05), transparent);
}

.light-theme .card-details-btn {
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

@media (max-width: 900px) {
  .light-theme .topbar {
    background: var(--topbar-bg, rgba(255, 255, 255, 0.9)) !important;
  }

  .light-theme #mobile-menu .mobile-menu-content {
    background: #ffffff;
    border-right-color: rgba(0, 0, 0, .1);
  }

  .light-theme #mobile-menu .nav-link {
    color: #374151;
  }
}

* {
  box-sizing: border-box;
}

/* ===== FOCUS-VISIBLE GLOBAL (Acessibilidade - Problemas #1, #5, #8) ===== */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove outline padrão para cliques do mouse, mantém para teclado */
:focus:not(:focus-visible) {
  outline: none;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--site-bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Cor/estilo do topo definidos via API (corTopo/topoEstilo). Fallback = visual padrão. */
  background: var(--topbar-bg, rgba(10, 12, 16, .6));
  backdrop-filter: var(--topbar-blur, saturate(160%) blur(8px));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  /* total aproximado ~110px considerando conteÃºdo interno */
}

#logo-img,
#footer-logo {
  max-height: 62px;
  height: auto;
  width: auto;
}

#logo-img {
  opacity: 0;
  transition: opacity .2s ease;
}

#logo-img.logo-visible {
  opacity: 1;
}

@media (min-width: 1024px) {

  #logo-img,
  #footer-logo {
    max-height: 100px;
    height: auto;
    width: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.topbar .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.topbar .menu-left {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.topbar .menu-right {
  display: flex;
  align-items: center;
}

/* Links simples no topo (Sobre, Fale Conosco) */
.nav-link {
  color: var(--color-nav-link);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover {
  color: var(--color-nav-link-hover);
  background: rgba(255, 255, 255, .06);
}

.nav-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn {
  appearance: none;
  border: 1px solid var(--ghost-btn-border);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .05s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
  background: var(--ghost-btn-bg);
  color: var(--ghost-btn-text);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px) scale(.98);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--color-primary) 35%, transparent);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--color-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.btn-accent {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
  border-color: transparent;
}

.btn-accent:hover {
  background: var(--color-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.btn-ghost {
  background: var(--ghost-btn-bg);
  color: var(--ghost-btn-text);
  border: 1px solid var(--ghost-btn-border);
  box-shadow: 0 0 0 transparent;
}

.btn-ghost:hover {
  background: var(--ghost-btn-hover-bg);
}

.btn-block {
  width: 100%;
}

/* BotÃµes principais: evitar flash azul no reload */
.theme-loaded #link-area-cliente,
.theme-loaded #btn-ver-todos,
.theme-loaded #btn-more-filters,
.theme-loaded #btn-buscar,
.theme-loaded .filter-sidebar-footer .btn-ghost,
.theme-loaded .mobile-topbar #link-area-cliente,
.theme-loaded .mobile-area-cliente-btn {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
}

.theme-loaded #link-area-cliente:hover,
.theme-loaded #btn-ver-todos:hover,
.theme-loaded #btn-more-filters:hover,
.theme-loaded #btn-buscar:hover,
.theme-loaded .filter-sidebar-footer .btn-ghost:hover,
.theme-loaded .mobile-topbar #link-area-cliente:hover,
.theme-loaded .mobile-area-cliente-btn:hover {
  background: var(--color-accent) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-accent) 45%, transparent) !important;
}

#link-area-cliente,
#btn-ver-todos,
#btn-more-filters,
#btn-buscar,
.filter-sidebar-footer .btn-ghost {
  color: var(--ghost-btn-text) !important;
  border-color: var(--ghost-btn-border) !important;
  background: var(--ghost-btn-bg) !important;
  box-shadow: none !important;
}

#link-area-cliente:hover,
#btn-ver-todos:hover,
#btn-more-filters:hover,
#btn-buscar:hover,
.filter-sidebar-footer .btn-ghost:hover {
  background: var(--ghost-btn-hover-bg) !important;
}

.featured .center .btn,
.featured .center .btn-primary {
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
}

.featured .center .btn:hover,
.featured .center .btn-primary:hover {
  background: var(--color-accent) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-accent) 45%, transparent) !important;
}

.hero {
  position: relative;
  min-height: 400px;
  height: 65vh;
  display: grid;
  place-items: center;
  overflow: visible;
  contain: layout style;
  /* permite dropdown ultrapassar a seção */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateZ(0) scale(1.02);
  /* GPU acceleration */
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 50% 0%, rgba(0, 0, 0, .18), rgba(0, 0, 0, .48));
  transform: translateZ(0) scale(1.02);
  /* GPU acceleration */
}

.hero-content {
  position: relative;
  z-index: 100;
  padding: 56px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 48px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--color-home-titulo);
  font-weight: 700;
  text-transform: none; /* Sentence case (respeita o texto original) */
}

.hero .subtitle {
  color: var(--color-home-subtitulo);
  margin-bottom: 22px;
  font-size: 1.2em;
}

.subtitle {
  color: var(--color-muted);
  margin-bottom: 22px;
}

.filter {
  background: var(--color-filter-bg);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
  text-align: left;
  position: relative;
  z-index: 1000;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* Linha 2: 4 campos + botão */
.filter-grid .form-field:nth-child(n+6):nth-child(-n+9) {
  grid-column: span 1;
}

.filter-grid .form-actions {
  grid-column: span 1;
}

@media (max-width: 1200px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1000px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Remover fundo e estilo de card do filtro no mobile */
  .filter {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 16px !important; /* Mantém padding lateral para não colar na borda da tela */
  }

  /* Esconder labels no mobile (mantendo acessível) */
  .filter label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }


  /* Ajuste para inputs ficarem mais visíveis sem o fundo do container */
  .filter select,
  .filter input {
    background: var(--color-input-bg); /* Garante fundo nos inputs */
    backdrop-filter: blur(8px); /* Efeito vidro opcional se o bg for translúcido */
    height: 48px; /* Touch target melhor */
  }

  /* Mobile filter animation (Problem #11) */
  .filter-grid .filter-advanced {
    display: none !important;
  }

  .filter-grid.show-advanced .filter-advanced {
    display: flex !important;
    animation: filterSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

@keyframes filterSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-autocomplete {
  position: relative;
  z-index: 10000;
}

label {
  font-size: 12px;
  color: var(--color-filter-label);
}

.filter label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

select,
input {
  background: var(--color-input-bg);
  color: var(--color-input-text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 12px;
}

input::placeholder {
  color: var(--color-filter-placeholder, rgba(255, 255, 255, 0.8)); /* Aumentado contraste para 0.8 */
  opacity: 1;
}

select.is-placeholder {
  color: var(--color-filter-placeholder, rgba(255, 255, 255, 0.8));
}

/* Forçar cinza no select quando não há valor selecionado e o filtro é claro */
.light-filter select.is-placeholder {
  color: var(--color-filter-placeholder, #555555) !important;
}

select:not(.is-placeholder) {
  color: var(--color-input-text);
}

select:hover,
input:hover {
  border-color: var(--color-primary);
}

select:focus,
input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

select option {
  background: var(--color-input-bg);
  color: var(--color-text);
}

.light-filter select option {
  color: #111827;
}

select option:checked {
  background: var(--color-primary);
  color: #fff;
}

select option:hover {
  background: color-mix(in srgb, var(--color-primary) 85%, black);
  color: #fff;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--color-input-bg);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 99999 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.autocomplete-group-title {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-filter-label, var(--color-muted));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.light-filter .autocomplete-group-title {
  color: rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.05);
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--color-input-text, var(--color-text));
  transition: background .15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: 12px;
}

.light-filter .autocomplete-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(255, 255, 255, .08);
}

.light-filter .autocomplete-item:hover {
  background: rgba(0, 0, 0, .08);
}

.autocomplete-item.selected {
  background: var(--color-primary);
  color: #fff;
}

.btn-more-filters {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 1 / -1;
  background: var(--color-primary);
  border: 1px solid transparent;
  color: #fff;
  padding: 0 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
  line-height: 1.1;
  height: 42px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.btn-more-filters:hover {
  background: var(--color-accent);
  border-color: transparent;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.btn-more-filters svg {
  transition: transform 0.3s ease;
}

.filter-grid.show-advanced .btn-more-filters svg {
  transform: rotate(180deg);
}

.filter-grid.show-advanced .btn-more-filters {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 720px) {
  .btn-more-filters {
    display: flex;
  }
}

@media (min-width: 721px) {
  .btn-more-filters {
    display: none !important;
  }
}

.form-actions {
  display: flex;
  justify-content: center;
  align-items: end;
}

.form-actions .btn {
  height: 42px;
}

.banners {
  padding-top: 58px !important;
  padding-bottom: 14px !important;
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform var(--cards-duration) var(--cards-ease) !important;
  will-change: transform;
}

.slide {
  aspect-ratio: 16 / 6.3;
}

.slide {
  background: var(--site-bg);
}

.slide img {
  object-fit: contain !important;
  background: var(--site-bg);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .45);
  color: white;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .2s ease, transform .2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, .6);
}

.carousel-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.carousel-dots button[aria-selected="true"] {
  background: white;
  width: 18px;
  border-radius: 4px;
}

.featured {
  padding: 28px 0 64px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-transform: capitalize; /* Title Case */
  color: var(--color-title);
  letter-spacing: 0.02em;
}

.tabs {
  display: inline-flex;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.tab {
  background: transparent;
  color: var(--color-text);
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tab.active {
  background: var(--color-primary);
  color: #fff;
}

.featured-subtitle {
  margin: 28px 0 12px;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--color-title);
}

.cards-carousel {
  position: relative;
  margin-bottom: 32px;
}

.cards-viewport {
  overflow: hidden;
  cursor: grab;
}

.cards-track {
  display: flex;
  gap: 16px;
  will-change: transform;
  transition: transform var(--cards-duration) var(--cards-ease) !important;
  align-items: stretch;
  transform: translateZ(0);
  /* GPU acceleration */
}

.cards-carousel .card {
  flex: 0 0 320px !important;
  width: 320px !important;
}

@media (max-width: 600px) {
  .cards-carousel .card {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

.cards-track.dragging {
  transition: none !important;
}

.cards-viewport:active {
  cursor: grabbing;
}

.cards-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .45);
  color: white;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .2s ease, transform .2s ease;
}

.cards-btn:hover {
  background: rgba(0, 0, 0, .6);
}

.cards-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cards-btn.prev {
  left: 6px;
}

.cards-btn.next {
  right: 6px;
}

/* No mobile a navegação dos cards é por swipe (setupCardsCarousel trata touch) */
@media (max-width: 768px) {
  .cards-btn {
    display: none;
  }
}

@media (max-width: 1200px) {
  :root {
    --cards-per-view: 3;
  }
}

@media (max-width: 900px) {
  :root {
    --cards-per-view: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --cards-per-view: 1;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumbs (Redesign) */
.breadcrumbs {
  padding: 12px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: var(--radius);
}

.light-theme .breadcrumbs {
  background: #f0f0f0;
  border-color: rgba(0,0,0,0.1);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
}

.breadcrumbs-item:not(:last-child)::after {
  content: "›";
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1;
}

.breadcrumbs-link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs-link:hover {
  color: var(--color-primary);
}

.breadcrumbs-current {
  color: var(--color-text);
  font-weight: 600;
}

.light-theme .breadcrumbs-current {
  color: #000;
}

/* Card Improvements (Redesign) */
.card {
  background: var(--site-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px; /* Fixed minimum height per redesign */
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px); /* Increased lift per redesign */
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

.light-theme .card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}

.card-media {
  position: relative;
  height: 180px !important;
  aspect-ratio: auto !important;
}

.card-media::before {
  display: none !important;
  padding-top: 0 !important;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.badge-category {
  left: 12px;
}

.badge-tarja {
  right: 12px;
  max-width: calc(100% - 48px);
  text-align: right;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-weight: 600;
  color: var(--color-title);
}

.card-code {
  font-size: 13px;
  color: var(--color-muted);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Garante um respiro mÃ­nimo antes dos botÃµes mesmo quando colados na base */

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.amenity svg {
  vertical-align: middle;
}

.address {
  font-style: normal;
  text-transform: capitalize;
}

.hours {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.about {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.sobre-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}

/* BotÃ£o Buscar mais estreito em desktop, 100% no mobile */
@media (min-width: 720px) {
  #btn-buscar {
    width: auto;
    padding-inline: 20px;
  }
}

/* Mobile header: set bar height to 110px and force hamburger visibility */
@media (max-width: 900px) {
  .topbar {
    min-height: 110px;
  }

  .topbar .container {
    padding: 22px 0;
  }

  #btn-menu {
    display: inline-flex !important;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .topbar .actions {
    position: relative;
  }

  .brand {
    z-index: 1;
  }
}

@media (max-width: 1200px) {
  :root {
    --cards-per-view: 3;
  }
}

@media (max-width: 900px) {
  :root {
    --cards-per-view: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --cards-per-view: 1;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--site-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  height: 180px !important;
  aspect-ratio: auto !important;
}

.card-media::before {
  display: none !important;
  padding-top: 0 !important;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.badge-category {
  left: 12px;
}

.badge-tarja {
  right: 12px;
  max-width: calc(100% - 48px);
  text-align: right;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-weight: 600;
  color: var(--color-title);
}

.card-code {
  font-size: 13px;
  color: var(--color-muted);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Garante um respiro mÃ­nimo antes dos botÃµes mesmo quando colados na base */

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.amenity svg {
  vertical-align: middle;
}

.address {
  font-style: normal;
  text-transform: capitalize;
}

.hours {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.about {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

/* BotÃ£o Buscar mais estreito em desktop, 100% no mobile */
@media (min-width: 720px) {
  #btn-buscar {
    width: auto;
    padding-inline: 20px;
  }
}

/* Mobile header: set bar height to 110px and force hamburger visibility */
@media (max-width: 900px) {
  .topbar {
    min-height: 110px;
  }

  .topbar .container {
    padding: 22px 0;
  }

  #btn-menu {
    display: inline-flex !important;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .topbar .actions {
    position: relative;
  }

  .brand {
    z-index: 1;
  }
}

@media (max-width: 1200px) {
  :root {
    --cards-per-view: 3;
  }
}

@media (max-width: 900px) {
  :root {
    --cards-per-view: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --cards-per-view: 1;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--site-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  height: 180px !important;
  aspect-ratio: auto !important;
}

.card-media::before {
  display: none !important;
  padding-top: 0 !important;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.badge-category {
  left: 12px;
}

.badge-tarja {
  right: 12px;
  max-width: calc(100% - 48px);
  text-align: right;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-weight: 600;
  color: var(--color-title);
}

.card-code {
  font-size: 13px;
  color: var(--color-muted);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Garante um respiro mÃ­nimo antes dos botÃµes mesmo quando colados na base */

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.amenity svg {
  vertical-align: middle;
}

.address {
  font-style: normal;
  text-transform: capitalize;
}

.hours {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.sobre-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}

/* BotÃ£o Buscar mais estreito em desktop, 100% no mobile */
@media (min-width: 720px) {
  #btn-buscar {
    width: auto;
    padding-inline: 20px;
  }
}

/* Mobile header: set bar height to 110px and force hamburger visibility */
@media (max-width: 900px) {
  .topbar {
    min-height: 110px;
  }

  .topbar .container {
    padding: 22px 0;
  }

  #btn-menu {
    display: inline-flex !important;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .topbar .actions {
    position: relative;
  }

  .brand {
    z-index: 1;
  }
}

@media (max-width: 1200px) {
  :root {
    --cards-per-view: 3;
  }
}

@media (max-width: 900px) {
  :root {
    --cards-per-view: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --cards-per-view: 1;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--site-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  height: 180px !important;
  aspect-ratio: auto !important;
}

.card-media::before {
  display: none !important;
  padding-top: 0 !important;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.badge-category {
  left: 12px;
}

.badge-tarja {
  right: 12px;
  max-width: calc(100% - 48px);
  text-align: right;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-weight: 600;
  color: var(--color-title);
}

.card-code {
  font-size: 13px;
  color: var(--color-muted);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Garante um respiro mÃ­nimo antes dos botÃµes mesmo quando colados na base */

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.amenity svg {
  vertical-align: middle;
}

.address {
  font-style: normal;
  text-transform: capitalize;
}

.hours {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.about {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.sobre-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}

/* BotÃ£o Buscar mais estreito em desktop, 100% no mobile */
@media (min-width: 720px) {
  #btn-buscar {
    width: auto;
    padding-inline: 20px;
  }
}

/* Mobile header: set bar height to 110px and force hamburger visibility */
@media (max-width: 900px) {
  .topbar {
    min-height: 110px;
  }

  .topbar .container {
    padding: 22px 0;
  }

  #btn-menu {
    display: inline-flex !important;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .topbar .actions {
    position: relative;
  }

  .brand {
    z-index: 1;
  }
}

@media (max-width: 1200px) {
  :root {
    --cards-per-view: 3;
  }
}

@media (max-width: 900px) {
  :root {
    --cards-per-view: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --cards-per-view: 1;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--site-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  height: 180px !important;
  aspect-ratio: auto !important;
}

.card-media::before {
  display: none !important;
  padding-top: 0 !important;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.badge-category {
  left: 12px;
}

.badge-tarja {
  right: 12px;
  max-width: calc(100% - 48px);
  text-align: right;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-weight: 600;
  color: var(--color-title);
}

.card-code {
  font-size: 13px;
  color: var(--color-muted);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-meta {
  color: var(--color-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Garante um respiro mÃ­nimo antes dos botÃµes mesmo quando colados na base */

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.amenity svg {
  vertical-align: middle;
}

.address {
  font-style: normal;
  text-transform: capitalize;
}

.hours {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.about {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.sobre-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}



/* Mobile: increase spacing around banner by ~20% */
@media (max-width: 600px) {
  .banners {
    padding: calc(12px * 1.2) 0 calc(6px * 1.2) !important;
  }

  .carousel-dots {
    bottom: calc(6px * 1.2) !important;
  }

  /* Increase top space of the next section after banner by ~20% */
  .featured {
    padding-top: calc(12px * 1.2) !important;
  }
}

/* Mobile: precise vertical centering for hamburger and logo using fixed container height */
@media (max-width: 900px) {
  .topbar {
    min-height: 110px !important;
    position: relative;
  }

  .topbar .container {
    position: relative !important;
    height: 110px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 1;
  }

  #btn-menu {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    line-height: 0;
    padding: 0 !important;
    color: var(--color-title);
    z-index: 3 !important;
  }

  #btn-menu svg {
    width: 36px;
    height: 36px;
    display: block;
  }
}

/* Painel de menu mobile (overlay) - Estilo Novo (Slide-in) */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block; /* Garante que o elemento exista para a transição de opacidade */
}

body.menu-open #mobile-menu {
  opacity: 1;
  visibility: visible;
}

/* Container deslizante */
.mobile-menu-container {
  position: absolute;
  top: 0;
  left: 0; /* Slide vindo da esquerda */
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--color-surface);
  border-right: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

body.menu-open .mobile-menu-container {
  transform: translateX(0);
}

/* Header do Menu */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  min-height: 80px;
}

.mobile-menu-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: rotate(90deg);
}

.light-theme .mobile-menu-close {
  border-color: rgba(0,0,0,0.1) !important;
  color: var(--color-text);
}

.light-theme .mobile-menu-close:hover {
  background: rgba(0,0,0,0.05) !important;
}

/* Corpo / Navegação */
.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 16px 24px;
  transition: color 0.2s, background-color 0.2s;
  border: none !important;
  background: transparent !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}

.light-theme .mobile-nav-link {
  border-bottom-color: rgba(0,0,0,0.03) !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--color-primary);
  background: rgba(255,255,255,0.02) !important;
  padding-left: 32px;
}

.light-theme .mobile-nav-link:hover {
  background: rgba(0,0,0,0.02) !important;
}

/* Footer do Menu */
.mobile-menu-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0,0,0,0.02);
}

/* Link de Telefone no Menu */
.mobile-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 8px;
}

.mobile-phone-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-primary);
}

.light-theme .mobile-phone-link {
  background: rgba(0, 0, 0, 0.03);
}

.light-theme .mobile-phone-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.light-theme .mobile-menu-footer {
  border-top-color: rgba(0,0,0,0.06);
}

/* Botão Área do Cliente no Menu */
.mobile-area-cliente-btn {
  width: 100%;
  justify-content: center;
  display: flex !important;
  margin-top: 0 !important;
  height: 48px;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Redes Sociais no Menu */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mobile-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0 !important;
  color: var(--color-muted);
  transition: all 0.2s;
  padding: 0 !important;
  text-decoration: none !important;
}

.mobile-social-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

.light-theme .mobile-social-link {
  border: none !important;
  color: var(--color-muted);
}

.mobile-social-link:hover {
  background: transparent !important;
  border: none !important;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Reset de estilos antigos */
#mobile-menu a {
  display: inline-block; /* Reset básico */
}

/* Footer: align copyright to the left */
.footer .copyright .container,
.copyright .container {
  text-align: left;
}

/* Estilo do CRECI no rodapÃ© */
#creci {
  color: var(--color-muted);
  margin-top: 10px;
  font-size: 14px;
  text-align: left;
}

/* Cards: unified height & layout (consolidated from 6 duplicate blocks) */
.cards-viewport {
  min-height: 540px !important;
}

.cards-carousel .card {
  height: 540px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
}

.card-media {
  height: 260px !important;
  aspect-ratio: auto !important;
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
  overflow: hidden !important;
}

.card-media img {
  border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

/* Mobile: precise vertical centering for hamburger and logo using fixed container height */
@media (max-width: 900px) {
  .topbar {
    min-height: 110px !important;
    position: relative;
  }

  .topbar .container {
    position: relative !important;
    height: 110px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 1;
  }

  #btn-menu {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    line-height: 0;
    padding: 0 !important;
    color: var(--color-title);
    z-index: 3 !important;
  }

  #btn-menu svg {
    width: 36px;
    height: 36px;
    display: block;
  }
}

/* Painel de menu mobile (overlay) - Estilo Novo (Slide-in) */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block; /* Garante que o elemento exista para a transição de opacidade */
}

body.menu-open #mobile-menu {
  opacity: 1;
  visibility: visible;
}

/* Container deslizante */
.mobile-menu-container {
  position: absolute;
  top: 0;
  left: 0; /* Slide vindo da esquerda */
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--color-surface);
  border-right: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

body.menu-open .mobile-menu-container {
  transform: translateX(0);
}

/* Header do Menu */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  min-height: 80px;
}

.mobile-menu-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: rotate(90deg);
}

.light-theme .mobile-menu-close {
  border-color: rgba(0,0,0,0.1) !important;
  color: var(--color-text);
}

.light-theme .mobile-menu-close:hover {
  background: rgba(0,0,0,0.05) !important;
}

/* Corpo / Navegação */
.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 16px 24px;
  transition: color 0.2s, background-color 0.2s;
  border: none !important;
  background: transparent !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}

.light-theme .mobile-nav-link {
  border-bottom-color: rgba(0,0,0,0.03) !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--color-primary);
  background: rgba(255,255,255,0.02) !important;
  padding-left: 32px;
}

.light-theme .mobile-nav-link:hover {
  background: rgba(0,0,0,0.02) !important;
}

/* Footer do Menu */
.mobile-menu-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0,0,0,0.02);
}

/* Link de Telefone no Menu */
.mobile-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 8px;
}

.mobile-phone-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-primary);
}

.light-theme .mobile-phone-link {
  background: rgba(0, 0, 0, 0.03);
}

.light-theme .mobile-phone-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.light-theme .mobile-menu-footer {
  border-top-color: rgba(0,0,0,0.06);
}

/* Botão Área do Cliente no Menu */
.mobile-area-cliente-btn {
  width: 100%;
  justify-content: center;
  display: flex !important;
  margin-top: 0 !important;
  height: 48px;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Redes Sociais no Menu */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mobile-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0 !important;
  color: var(--color-muted);
  transition: all 0.2s;
  padding: 0 !important;
  text-decoration: none !important;
}

.mobile-social-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

.light-theme .mobile-social-link {
  border: none !important;
  color: var(--color-muted);
}

.mobile-social-link:hover {
  background: transparent !important;
  border: none !important;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Reset de estilos antigos */
#mobile-menu a {
  display: inline-block; /* Reset básico */
}

/* Footer: align copyright to the left */
.footer .copyright .container,
.copyright .container {
  text-align: left;
}



/* Mobile header: final safeguard to hide menus inside hamburger */
@media (max-width: 900px) {

  .topbar .menu-left,
  .topbar .menu-right {
    display: none !important;
  }

  #link-area-cliente {
    display: none !important;
  }
}

/* Carousel cards: fix width so items don't resize while sliding */
.cards-carousel .card {
  flex: 0 0 320px !important;
  width: 320px !important;
}

@media (max-width: 600px) {

  /* On very small screens keep one card per view filling the width */
  .cards-carousel .card {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* Card actions: center Detalhes/Contato horizontally on every card */
.card-actions {
  justify-content: center !important;
}

/* Smoothen all card/banners slide transitions */
:root {
  --cards-duration: .68s;
  --cards-ease: cubic-bezier(.22, .61, .36, 1);
  /* pleasant ease-out */
}

/* Featured cards track */
.cards-track {
  transition: transform var(--cards-duration) var(--cards-ease) !important;
  will-change: transform;
}

.cards-track.dragging {
  transition: none !important;
}

/* Hero/banner track to match feel */
.carousel-track {
  transition: transform var(--cards-duration) var(--cards-ease) !important;
  will-change: transform;
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {

  .cards-track,
  .carousel-track {
    transition-duration: .01ms !important;
  }

  .card,
  .cookie-notice,
  .filter-sidebar-panel,
  .filter-sidebar-overlay,
  .social a,
  .social .social-link,
  .btn,
  .nav-link,
  .carousel-btn,
  .cards-btn,
  .info-card,
  .social-btn {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Mobile: tighter spacing around banner */
@media (max-width: 600px) {
  .banners {
    padding: 16px 0 6px !important;
  }

  .carousel-dots {
    bottom: 6px !important;
  }

  /* Reduce top space of the next section after banner */
  .featured {
    padding-top: 16px !important;
  }
}



/* Estilos para o formulário de captura WhatsApp */
#whatsapp-lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius);
  color: var(--color-text);
  box-shadow: var(--shadow-1);
}

.light-theme #whatsapp-lead-form {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#whatsapp-lead-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.9rem;
}

#whatsapp-lead-form input,
#whatsapp-lead-form select,
#whatsapp-lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--color-input-bg, #0f1319);
  color: var(--color-input-text, #fff);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#whatsapp-lead-form textarea {
  min-height: 80px;
  resize: vertical;
}

.light-theme #whatsapp-lead-form input,
.light-theme #whatsapp-lead-form select,
.light-theme #whatsapp-lead-form textarea {
  border-color: rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  color: #374151;
}

#whatsapp-lead-form input:focus,
#whatsapp-lead-form select:focus,
#whatsapp-lead-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

#whatsapp-lead-form .actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

#whatsapp-lead-form .btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  flex: 1;
}

#whatsapp-lead-form .btn-primary:hover {
  filter: brightness(1.1);
}

#whatsapp-lead-form .btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid currentColor;
  cursor: pointer;
  opacity: 0.8;
}

#whatsapp-lead-form .btn-ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.light-theme #whatsapp-lead-form .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

#whatsapp-lead-form .helper {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.cookie-notice {
  position: fixed;
  bottom: 24px;
  width: min(360px, calc(100vw - 32px));
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 20px 22px;
  z-index: 120;
  backdrop-filter: saturate(140%) blur(16px);
  animation: cookieSlideIn .4s ease-out;
}

@keyframes cookieSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.light-theme .cookie-notice {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.15);
}

@media (min-width: 901px) {
  .cookie-notice {
    left: 24px;
    right: auto;
  }
}

.cookie-notice__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.cookie-notice__text {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
}

.cookie-notice__link {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-notice__actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-notice__accept {
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .cookie-notice {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .cookie-notice__actions {
    justify-content: stretch;
  }

  .cookie-notice__accept {
    width: 100%;
  }
}

/* Floating WhatsApp Button */
#whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1f8efa;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  text-decoration: none;
  z-index: 110;
}

#whatsapp-fab svg {
  display: block;
}

#whatsapp-fab img {
  display: block;
  width: 98%;
  /* quase preenchendo o círculo, mantendo uma borda mínima */
  height: auto;
  /* preserva proporção original */
  object-fit: contain;
  /* garante que não distorça */
}

#whatsapp-fab:hover {
  filter: brightness(1.05);
}

#whatsapp-fab:active {
  transform: translateY(1px) scale(.98);
}

#whatsapp-fab:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  #whatsapp-fab {
    width: 56px;
    height: 56px;
    right: 18px;
    bottom: 80px;
    /* Elevated to avoid overlapping content (Problem #22) */
  }

  #whatsapp-fab img {
    width: 98%;
    /* no mobile, mesma proporção visual do desktop */
  }
}

/* WhatsApp modal */
.whatsapp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, 0.5);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 2000;
}

.whatsapp-modal {
  width: min(420px, 92vw);
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: modal-enter 180ms ease;
}

.whatsapp-modal header {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f8fafc;
  padding: 5px 18px;
  display: flex;
  align-items: center;
  /* centraliza ícone + textos verticalmente */
  gap: 12px;
}

.whatsapp-modal header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.whatsapp-modal header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.whatsapp-modal header .title {
  line-height: 1.2;
}

.whatsapp-modal header .subtitle {
  font-size: 13px;
  opacity: 1;
  color: #fff;
}

.whatsapp-modal header .title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin-top: 22px;
}

.whatsapp-modal header button {
  margin-left: auto;
  align-self: center;
  /* fecha ícone alinhado ao centro vertical */
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 22px;
  cursor: pointer;
}

.whatsapp-modal .body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.whatsapp-modal label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.whatsapp-modal input,
.whatsapp-modal textarea,
.whatsapp-modal select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-modal input:focus,
.whatsapp-modal textarea:focus,
.whatsapp-modal select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.whatsapp-modal textarea {
  min-height: 96px;
  resize: vertical;
}

.whatsapp-modal .actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.whatsapp-modal .btn-primary {
  flex: 1;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.55);
  /* sombra verde padrão */
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.whatsapp-modal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.65);
  /* mesma cor, um pouco mais forte no hover */
}

.whatsapp-modal .btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: transparent;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.whatsapp-modal .helper {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.whatsapp-modal .error {
  color: #f87171;
  font-size: 12px;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Skeleton loading cards */
.skel-card {
  background: var(--site-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
  height: 360px;
}

.skel-media {
  aspect-ratio: 4 / 3;
  height: 180px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .12) 37%, rgba(255, 255, 255, .06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.1s infinite linear;
}

.skel-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.skel-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .12) 37%, rgba(255, 255, 255, .06) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.1s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}



/* Fix 1: Esconder menu hambúrguer no desktop */
@media (min-width: 901px) {
  #btn-menu {
    display: none !important;
  }
}

/* Layout e Responsividade do Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  padding: 28px 0;
}

.footer .list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer .list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer .list svg {
  flex-shrink: 0;
}

/* Footer: breakpoint intermediário 2 colunas (Problema #19) */
@media (max-width: 900px) and (min-width: 601px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid>*:first-child {
    grid-column: 1 / -1;
  }
}

/* Footer mobile responsivo */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
  }

  /* Garante que cada bloco interno também centralize seus filhos */
  .footer-grid>* {
    width: 100%;
    display: grid;
    justify-items: center;
  }

  .footer .list {
    justify-items: center;
    text-align: center;
  }

  #contatos li {
    justify-content: center;
  }

  .social {
    justify-content: center;
  }

  .social-link {
    margin: 0 4px;
  }
}

/* Copyright centralizado apenas no mobile */
@media (max-width: 600px) {

  .footer .copyright .container,
  .copyright .container {
    text-align: center !important;
  }
}

/* Footer desktop: copyright à esquerda */
@media (min-width: 801px) {

  .footer .copyright .container,
  .copyright .container {
    text-align: left;
  }
}

/* Responsividade adicional para topbar */
@media (max-width: 900px) {
  .topbar .actions {
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
    align-items: center;
  }

  .topbar .menu-left {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .topbar .menu-right {
    order: 1;
    width: 100%;
    justify-content: flex-end;
    min-width: 84px;
  }

  .topbar .actions {
    position: relative;
    z-index: 2;
  }

  #btn-menu {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex !important;
  }

  .brand {
    z-index: 1;
  }

  /* Oculta o botão Área do Cliente na barra do topo em mobile */
  #link-area-cliente {
    display: none !important;
  }
}

/* Classes utilitárias */
.center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

/* Estilo base do CRECI - as cores são sobrescritas pelas regras do footer acima */
#creci {
  margin-top: 10px;
  font-size: 14px;
  text-align: left;
}

/* Social buttons: ensure styled buttons */
.social a,
.social .social-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  background: transparent;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}

.social a:hover,
.social .social-link:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}

.social a:focus-visible,
.social .social-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}



/* Carousel styles */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}


/* Fix: Botão "Ver todos os imóveis" - Centralização vertical perfeita */
.featured {
  padding-bottom: 4rem;
  /* Espaço inferior adequado */
}

/* Fix: Banner carousel - Reduzir altura 30% apenas no mobile */
@media (max-width: 768px) {
  .banners {
    padding: calc(2rem * 0.7) 0 !important;
    /* 30% menor */
  }

  .carousel {
    height: auto;
    max-height: 70vh;
    /* Limitar altura máxima */
  }

  .carousel img {
    height: auto;
    max-height: 200px;
    /* Altura específica para mobile */
    object-fit: cover;
  }
}

/* Copyright sempre centralizado */
.copyright .container {
  text-align: center !important;
}

/* Mobile: tighter spacing around banner */
@media (max-width: 600px) {
  .banners {
    padding: calc(16px * 0.7) 0 calc(6px * 0.7) !important;
    /* 30% menor */
  }

  .carousel-dots {
    bottom: calc(6px * 0.7) !important;
  }

  /* Reduce top space of the next section after banner */
  .featured {
    padding-top: calc(16px * 0.7) !important;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 50vh;
    /* Reduced from desktop but solid to prevent CLS */
    padding: 4rem 0;
    display: grid;
    place-items: center;
  }
}

/* 3. Carousel 30% menor no mobile */
@media (max-width: 768px) {
  .banners {
    padding: calc(2rem * 0.7) 0 !important;
  }

  .carousel {
    max-height: calc(300px * 0.7) !important;
  }
}

.featured .center.mt-24 {
  margin-top: 2rem !important;
  /* Mesmo espaamento dos cards */
  margin-bottom: 2rem !important;
  /* Mesmo espaamento dos cards */
  padding: 0 !important;
  /* Remove padding extra */
  display: block !important;
  /* Volta ao comportamento normal */
  text-align: center !important;
  /* Centraliza o boto */
}

/* Ajustar espaamento da seo featured para consistncia */
.featured {
  padding: 2rem 0 !important;
  /* Espaamento padro */
}

/* Garantir que os cards tenham espaamento consistente */
.cards-carousel {
  margin-bottom: 2rem;
  /* Espaamento entre carrossis */
}

.featured-subtitle {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* Mobile: letterbox no banner (faixas pretas e centralizao vertical) */
@media (max-width: 768px) {
  .carousel {
    height: 165px !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: var(--site-bg) !important;
    contain: layout style paint;
    /* Otimizao de renderizao */
  }

  .carousel .slide,
  .carousel .slide>a {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--site-bg) !important;
  }

  .carousel .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 0 !important;
    display: block;
    background: var(--site-bg) !important;
    image-rendering: -webkit-optimize-contrast;
    /* Otimiza qualidade mobile */
  }

  /* Preload apenas primeira imagem */
  .carousel .slide:first-child img {
    content-visibility: auto;
    /* Renderizao otimizada */
  }

  /* Dots com espaamento */
  .carousel-dots {
    margin-top: 8px;
  }
}

/* Topbar mais clara (override final conforme captura) — agora respeita
   --topbar-bg/--topbar-blur do admin (vazio = mantém o look original). */
.topbar {
  background: var(--topbar-bg, rgba(255, 255, 255, 0.144)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: var(--topbar-blur, saturate(160%) blur(8px));
}

/* Mobile: ligeiramente mais escuro para manter contraste com contedos prximos */
@media (max-width: 900px) {
  .topbar {
    background: var(--topbar-bg, rgba(10, 12, 16, 0.42)) !important;
  }

  .light-theme .topbar {
    background: var(--topbar-bg, rgba(255, 255, 255, 0.92)) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
}

/* Ocultar badge visual do Google reCAPTCHA v3 */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hamburger Menu Animation (Problem #6) */
body.menu-open #btn-menu {
  color: var(--color-primary);
  transform: translateY(-50%) rotate(90deg) !important;
}

body.menu-open #btn-menu svg {
  transform: scale(1.1);
}

/* Transition for the hamburger button */
#btn-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* Ensure smooth transition for the icon itself */
#btn-menu svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Breadcrumbs (Problem #20) */
.breadcrumbs {
  padding: var(--space-sm) 0;
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* Fix: Ajuste da altura do Hero no mobile para evitar sobreposição do filtro nos cards
   Problema relatado: cards sobrepondo o filtro na home mobile.
   Causa: .hero com height fixa/vh não acomodava o filtro expandido em coluna.
*/
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    padding: 20px 0;
  }
}

/* Estilo específico para o botão Área do Cliente no menu mobile */
.mobile-area-cliente-btn,
.light-theme .mobile-area-cliente-btn,
#mobile-menu .mobile-area-cliente-btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  display: flex !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-align: center;
}

/* CSS para o novo menu já inclui estilos para .mobile-nav-link */
/* Removendo regra antiga conflitante */
/* Centralização e ajuste de toque para links do menu mobile */
/*
#mobile-menu .nav-link {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 12px;
  margin-top: 4px;
}
*/
/* Badge do Corretor no Card */
.card-broker-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100 !important;
  background: var(--color-surface);
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.card-broker-badge:hover {
  transform: scale(1.1);
}

.card-broker-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card de Corretor */
.brokers {
  padding: 28px 0 64px;
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.card-broker {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  align-items: center;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.light-theme .card-broker {
  background: #fff;
}

.card-broker:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .13);
}

.card-broker-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: none;
  background-color: var(--color-primary, #031245);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.card-broker-name {
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}

.card-broker-creci {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 20px;
  display: block;
  font-weight: 400;
}

.card-broker-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 24px;
  text-decoration: none;
  transition: color .2s;
}

.card-broker-phone:hover {
  color: var(--color-primary, #031245);
}

.card-broker-phone svg {
  flex-shrink: 0;
  color: #6b7280;
}

.card-broker-actions {
  margin-top: 0;
  width: 100%;
}

.btn-broker-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--color-primary, #031245);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  border: none;
  cursor: pointer;
}

.btn-broker-view:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* Ajustes no carrossel de corretores */
#car-corretores .card {
  height: auto !important;
  min-height: auto !important;
}

#car-corretores {
  position: static;
}

#car-corretores .cards-viewport {
  position: relative;
  min-height: 0 !important;
}

#car-corretores .cards-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* === Tipografia: fonte de destaque nos títulos (2026-05-22) === */
.hero h1,
.section-header h2,
.featured-subtitle {
  font-family: var(--font-display);
}
.hero h1, .section-header h2, .featured-subtitle { font-weight: 800; letter-spacing: -0.02em; }
.hero h1 { letter-spacing: -0.035em; line-height: 1.02; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

