/* ==========================================================================
   CAPELLO IMÓVEIS - PÁGINA PRINCIPAL (INDEX.HTML)
   Paleta Oficial: Preto, Amarelo & Dourado (Design Black & Yellow Premium)
   ========================================================================== */

:root {
  /* Brand Palette - CAPELLO Imóveis Preto & Amarelo */
  --primary: #FFB800;         /* Amarelo Oficial Capello */
  --primary-hover: #E0A200;   /* Amarelo Tom Mais Escuro */
  --secondary: #FFC72C;       /* Amarelo Brilhante */
  --secondary-hover: #E5B220;
  --accent: #FFB800;          /* CTA Amarelo */
  --accent-hover: #E0A200;
  --whatsapp: #25D366;        /* Verde WhatsApp */
  --whatsapp-hover: #1DA851;
  
  /* Neutral Palette - Black & Dark Theme */
  --bg-dark: #0A0A0C;         /* Preto Absoluto */
  --bg-card: #141417;         /* Grafite Escuro para Cards */
  --bg-light: #0F0F12;        /* Fundo do Site */
  --text-main: #F4F4F5;       /* Texto Claro */
  --text-muted: #A1A1AA;      /* Texto Cinza Suave */
  --text-white: #FFFFFF;
  
  /* Glassmorphism & Borders */
  --border-color: #27272A;
  --border-yellow: rgba(255, 184, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.7);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.9);
  --glass-bg: rgba(20, 20, 23, 0.92);
  
  /* Typography & Spacing */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme Overrides (Modo Dia) */
html.light-mode {
  --bg-dark: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-light: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-white: #0F172A;
  --border-color: #E2E8F0;
  --border-yellow: rgba(224, 162, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --glass-bg: rgba(255, 255, 255, 0.95);
}

html.light-mode body {
  background-color: #F8FAFC;
  color: #0F172A;
}

html.light-mode h1, 
html.light-mode h2, 
html.light-mode h3, 
html.light-mode h4, 
html.light-mode h5 {
  color: #0F172A;
}

html.light-mode .site-header {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

html.light-mode .brand-name {
  color: #0F172A;
}

html.light-mode .brand-subtitle {
  color: #D97706;
}

html.light-mode .btn-main-site,
html.light-mode .btn-blog {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html.light-mode .btn-main-site:hover,
html.light-mode .btn-blog:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
}

html.light-mode .hero-search-section {
  background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
}

html.light-mode .hero-title {
  color: #0F172A;
}

html.light-mode .hero-subtitle {
  color: #475569;
}

html.light-mode .search-box-container {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(224, 162, 0, 0.4);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

html.light-mode .form-control {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

html.light-mode .form-control option {
  background-color: #FFFFFF;
  color: #0F172A;
}

html.light-mode .tag-btn {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #0F172A;
}

html.light-mode .tag-btn.active, 
html.light-mode .tag-btn:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
}

html.light-mode .property-card {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

html.light-mode .card-title {
  color: #0F172A;
}

html.light-mode .card-location, 
html.light-mode .card-delivery,
html.light-mode .card-spec-item {
  color: #475569;
}

html.light-mode .card-footer {
  border-top-color: #F1F5F9;
}

html.light-mode .modal-card {
  background-color: #FFFFFF;
  color: #0F172A;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-yellow);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  background: var(--primary);
  color: #000000;
  transform: translateY(-1px);
}

html.light-mode .btn-theme-toggle {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html.light-mode .btn-theme-toggle:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 70px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
}

.text-gradient {
  background: linear-gradient(135deg, #FFB800 0%, #FFE600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-mcmv {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.badge-mcmv img {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.badge-city {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

/* Header & Top Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-yellow);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--primary);
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-main-site,
.btn-blog {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-yellow);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-main-site:hover,
.btn-blog:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-whatsapp-header {
  background-color: var(--primary);
  color: #000000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.3);
}

.btn-whatsapp-header:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
}

/* Hero & Search Banner */
.hero-search-section {
  background: linear-gradient(180deg, #000000 0%, #121215 100%);
  color: white;
  padding: 40px 16px 56px 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-search-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* MCMV Search Container */
.search-box-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  text-align: left;
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .hero-title { font-size: 2.8rem; }
}

.search-form-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-row-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.filter-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
  align-items: end;
  width: 100%;
}

.filter-row-2 .form-group {
  min-width: 0;
}

.filter-row-2 label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-row-2 .btn-search {
  white-space: nowrap;
}

.quick-tags-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 184, 0, 0.25);
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  border: 2px solid white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* Desktop guarantees (min-width: 768px) */
@media (min-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .city-filter-mobile-group { display: none !important; }
  .btn-more-filters-toggle { display: none !important; }
  .delivery-filter-group { display: flex !important; }
  .secondary-financial-fields { display: contents !important; }
  .filter-row-1 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .filter-row-2 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) auto !important;
    gap: 10px !important;
    align-items: end !important;
    width: 100% !important;
  }
  .quick-tags-wrapper {
    display: flex !important;
  }
  .mobile-bottom-nav { display: none !important; }
  body { padding-bottom: 0 !important; }
  .btn-nav-text-mobile { display: none !important; }
  .btn-nav-text-desktop { display: inline !important; }
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #3F3F46;
  background-color: #0A0A0C;
  font-size: 0.9rem;
  color: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.25);
}

.btn-search {
  background: linear-gradient(135deg, #FFB800 0%, #E0A200 100%);
  color: #000000;
  font-weight: 800;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.4);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 184, 0, 0.6);
}

/* Quick Filter Badges bar */
.quick-tags-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 184, 0, 0.2);
}

@media (min-width: 769px) {
  .quick-tags-container {
    flex-direction: row;
    align-items: center;
  }
}

.quick-tags-label {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.quick-tags-bar {
  display: flex;
  flex-wrap: wrap; /* MULTILINHA NO CELULAR: Todas as cidades sempre visíveis! */
  gap: 6px;
  width: 100%;
}

@media (min-width: 769px) {
  .quick-tags-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quick-tags-bar::-webkit-scrollbar { display: none; }
}

.tag-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex: 1 1 auto;
  text-align: center;
}

@media (min-width: 769px) {
  .tag-btn {
    flex: 0 0 auto;
  }
}

.tag-btn.active, .tag-btn:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
  font-weight: 800;
}

/* Main Catalog Area */
.catalog-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .catalog-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.results-count {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.results-count span {
  color: var(--primary);
}

/* Caixa de Resultado da Simulação de Financiamento MCMV */
.simulation-alert-box {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15) 0%, rgba(255, 184, 0, 0.05) 100%);
  border: 1.5px solid var(--primary);
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 0.98rem;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  line-height: 1.5;
}

html.light-mode .simulation-alert-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #D97706;
  color: #0F172A;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
}

.simulation-alert-title {
  font-weight: 800;
  color: #FFB800;
  margin-bottom: 6px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

html.light-mode .simulation-alert-title {
  color: #B45309;
}

.simulation-alert-price {
  color: #FFB800;
  font-size: 1.18rem;
  font-weight: 900;
}

html.light-mode .simulation-alert-price {
  color: #B45309;
}

.simulation-alert-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

html.light-mode .simulation-alert-sub {
  color: #475569;
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .property-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Property Card */
.property-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #1E1E24;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-media img {
  transform: scale(1.06);
}

.card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  z-index: 2;
}

.card-badge-status {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-developer {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-features {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.card-pricing {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.price-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
}

.subsidy-highlight {
  font-size: 0.75rem;
  color: #000000;
  font-weight: 800;
  background: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-card-details {
  background-color: var(--primary);
  color: #000000;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
}

.btn-card-details:hover {
  background-color: var(--primary-hover);
}

.btn-card-whatsapp {
  background-color: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-card-whatsapp:hover {
  background-color: var(--whatsapp);
  color: white;
}

/* Mobile Fixed Bottom Navigation (Base) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-yellow);
  display: flex;
  padding: 6px 12px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .mobile-bottom-nav { display: none !important; }
  body { padding-bottom: 0 !important; }
  .btn-nav-text-mobile { display: none !important; }
  .btn-nav-text-desktop { display: inline !important; }
}

.btn-nav-action {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-nav-simular {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 2px 12px rgba(255, 184, 0, 0.35);
}

.btn-nav-whatsapp {
  background: var(--whatsapp);
  color: white;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE POLISH (< 768px & < 480px)
   Layout do PC mantido 100% intacto!
   ========================================================================== */

/* Previne rolagem lateral em telas pequenas */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* 1. CABEÇALHO EMPILHADO NO CELULAR & TABLET */
  .site-header {
    padding: 8px 0;
  }

  .header-container {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-name {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  /* Oculta os nomes das cidades no subtítulo do cabeçalho só no celular/tablet */
  .brand-subtitle {
    display: none !important;
  }

  /* Ações do cabeçalho empilhadas verticalmente abaixo da logo */
  .header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 6px;
  }

  .btn-main-site,
  .btn-blog {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  /* Botão WhatsApp do cabeçalho posicionado logo abaixo sem esticar para a direita */
  .btn-whatsapp-header {
    display: flex !important;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(255, 184, 0, 0.3);
  }

  /* 2. FILTRO POR CIDADE EM MULTILINHA (SEM ROLAGEM LATERAL) */
  .quick-tags-container {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 184, 0, 0.2);
    width: 100%;
  }

  .quick-tags-label {
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
  }

  .quick-tags-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 6px;
    width: 100%;
    overflow: visible !important;
  }

  .tag-btn {
    flex: 1 1 calc(33.33% - 6px);
    min-width: 90px;
    padding: 8px 6px;
    font-size: 0.78rem;
    text-align: center;
  }

  /* 3. ESPAÇAMENTO INFERIOR (BODY) E BARRA FIXA COMPACTA MOBILE */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Barra Fixa Inferior Compacta */
  .mobile-bottom-nav {
    padding: 6px 12px !important;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .btn-nav-text-desktop {
    display: none !important;
  }

  .btn-nav-text-mobile {
    display: inline !important;
    white-space: nowrap !important;
  }

  .btn-nav-action {
    flex: 1 !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
  }

  .btn-nav-simular {
    width: 100% !important;
    box-shadow: 0 2px 12px rgba(255, 184, 0, 0.35) !important;
  }

  /* Botão WhatsApp Flutuante posicionado logo acima da barra fixa */
  .floating-whatsapp-btn {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .floating-whatsapp-btn svg {
    width: 26px !important;
    height: 26px !important;
  }

  /* 4. HERÓI & BUSCA COMPACTOS (APROXIMA O CATÁLOGO DO TOPO) */
  .hero-search-section {
    padding: 16px 12px 14px 12px !important;
  }

  .hero-title {
    font-size: 1.55rem !important;
    margin-bottom: 2px !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
  }

  .search-box-container {
    padding: 12px 10px !important;
    border-radius: var(--radius-md) !important;
  }

  .search-form-layout {
    gap: 8px !important;
  }

  /* 5. LINHA 1 MOBILE: 2 COLUNAS (CIDADE + VALOR MÁXIMO) */
  .filter-row-1 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .city-filter-mobile-group {
    display: flex !important;
    min-width: 0 !important;
  }

  .price-filter-group {
    display: flex !important;
    min-width: 0 !important;
  }

  .delivery-filter-group {
    display: none !important;
  }

  .search-form-layout.more-filters-open .delivery-filter-group {
    display: flex !important;
    grid-column: 1 / -1 !important;
    margin-top: 2px !important;
  }

  /* 6. BOTÃO TOGGLE MAIS FILTROS */
  .btn-more-filters-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 184, 0, 0.45) !important;
    border-radius: 8px !important;
    color: #F8FAFC !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    box-sizing: border-box !important;
  }

  html.light-mode .btn-more-filters-toggle {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0F172A !important;
  }

  .btn-more-filters-toggle:hover,
  .btn-more-filters-toggle:active {
    background: rgba(255, 184, 0, 0.15) !important;
    border-color: var(--primary) !important;
  }

  .btn-more-filters-content {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: inherit !important;
  }

  .btn-more-filters-content svg {
    color: var(--primary) !important;
  }

  .more-filters-badge {
    background: var(--primary) !important;
    color: #0A0A0C !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 1px 7px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
  }

  .btn-more-filters-toggle .chevron-icon {
    transition: transform 0.25s ease !important;
    color: var(--primary) !important;
  }

  .btn-more-filters-toggle.is-open .chevron-icon {
    transform: rotate(180deg) !important;
  }

  /* 7. LINHA 2 MOBILE: CAMPOS FINANCEIROS SECUNDÁRIOS E BOTÃO BUSCA */
  .filter-row-2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
    overflow-x: visible !important;
  }

  .secondary-financial-fields {
    display: none !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .search-form-layout.more-filters-open .secondary-financial-fields {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .filter-row-2 .btn-search {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    margin-top: 2px !important;
  }

  /* 8. TAGS RÁPIDAS COLAPSÁVEIS NO MOBILE */
  .quick-tags-wrapper {
    display: none !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 184, 0, 0.2) !important;
  }

  .quick-tags-wrapper.mobile-open {
    display: flex !important;
  }

  .catalog-section {
    padding: 16px 10px !important;
  }
}

@media (max-width: 480px) {
  .tag-btn {
    flex: 1 1 calc(50% - 6px); /* 2 colunas bem espaçadas em telas menores de 480px */
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-form-layout.more-filters-open .secondary-financial-fields {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   DESTAQUE COMERCIAL: BREVE LANÇAMENTO (MELHORIA 2)
   Identidade Visual Capello: Preto e Dourado com Alto Contraste
   ========================================================================== */
.property-card.card-is-prelaunch {
  border-color: rgba(255, 184, 0, 0.55);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.12), var(--shadow-sm);
}

.property-card.card-is-prelaunch:hover {
  border-color: #FFB800;
  box-shadow: 0 8px 30px rgba(255, 184, 0, 0.28);
}

.card-prelaunch-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(135deg, #FFB800 0%, #D49000 100%);
  color: #000000;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
  border: 1.5px solid #000000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: prelaunchPulse 2.8s ease-in-out infinite;
}

@keyframes prelaunchPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.03); box-shadow: 0 4px 22px rgba(255, 184, 0, 0.6); }
}

.card-prelaunch-banner .prelaunch-sparkle {
  font-size: 0.85rem;
  color: #000000;
}

.card-prelaunch-callout {
  margin: 6px 0;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.18) 0%, rgba(255, 184, 0, 0.08) 100%);
  border: 1px solid rgba(255, 184, 0, 0.5);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFB800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-prelaunch-callout strong {
  color: #FFB800;
  font-weight: 900;
  letter-spacing: 0.5px;
}

html.light-mode .property-card.card-is-prelaunch {
  border-color: #D49000;
  box-shadow: 0 4px 20px rgba(212, 144, 0, 0.2);
}

html.light-mode .card-prelaunch-callout {
  background: rgba(255, 184, 0, 0.2);
  border-color: #D49000;
  color: #8A5B00;
}

html.light-mode .card-prelaunch-callout strong {
  color: #8A5B00;
}

/* ==========================================================================
   STATUS COMERCIAL: TOTALMENTE VENDIDO / 100% VENDIDO (Melhoria 2)
   ========================================================================== */
.property-card.card-is-soldout {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}

.property-card.card-is-soldout:hover {
  border-color: #EF4444;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.28);
}

.card-soldout-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.card-soldout-banner .soldout-icon {
  font-size: 0.85rem;
}

.card-soldout-callout {
  margin: 6px 0;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #F87171;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-pricing-soldout .price-label {
  color: #9CA3AF !important;
}

.btn-card-whatsapp.btn-whatsapp-soldout {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-card-whatsapp.btn-whatsapp-soldout:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

html.light-mode .property-card.card-is-soldout {
  border-color: #EF4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

html.light-mode .card-soldout-callout {
  background: rgba(239, 68, 68, 0.15);
  border-color: #DC2626;
  color: #B91C1C;
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO: CAIXA DE TRABALHO FIXA E TABELA ROLÁVEL
   ========================================================================== */

/* Quando o painel está no modo autenticado (dashboard ativo) */
body.dashboard-mode {
  height: 100vh;
  overflow: hidden;
  padding-bottom: 0 !important;
}

body.dashboard-mode .container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 12px 20px;
  height: calc(100vh - 73px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Estrutura da Página do Painel */
.painel-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex: 1;
}

/* 1. Topo da Página Fixo (Título, subtítulo, botões, segurança e contador) */
.painel-header-fixo {
  flex-shrink: 0;
  z-index: 25;
}

.painel-header-fixo .dashboard-header {
  margin-bottom: 12px;
}

.painel-header-fixo .info-bar {
  margin-bottom: 8px;
}

/* 2. Workspace da Listagem */
.painel-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 3. Barra Horizontal Superior Fixa Sincronizada */
.top-scroll-wrapper,
.table-scroll-top-wrapper {
  flex-shrink: 0;
  background: rgba(20, 20, 23, 0.95);
  border: 1px solid var(--border-color);
  border-bottom: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 8px 8px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  margin-bottom: 0;
  z-index: 20;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #141417;
  display: none;
}

.top-scroll-wrapper::-webkit-scrollbar,
.table-scroll-top-wrapper::-webkit-scrollbar {
  height: 10px;
}

.top-scroll-wrapper::-webkit-scrollbar-track,
.table-scroll-top-wrapper::-webkit-scrollbar-track {
  background: #141417;
  border-radius: 8px;
}

.top-scroll-wrapper::-webkit-scrollbar-thumb,
.table-scroll-top-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
}

.top-scroll-wrapper::-webkit-scrollbar-thumb:hover,
.table-scroll-top-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.top-scroll-dummy,
.table-scroll-top-dummy {
  height: 1px;
  pointer-events: none;
}

/* 4. Caixa Scrollável da Tabela com Rolagem Interna Vertical e Horizontal */
.table-container-scrollable,
.table-container {
  flex: 1;
  min-height: 0;
  height: calc(100vh - 275px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #141417;
}

.table-container-scrollable::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-container-scrollable::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
  background: #141417;
}

.table-container-scrollable::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

.table-container-scrollable::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* 5. Cabeçalho Fixo / Sticky da Tabela */
.table-container-scrollable thead.sticky-thead th,
.table-container-scrollable th,
.table-container thead th {
  position: sticky;
  top: 0;
  background: #1A1A1E;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 14px 12px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  z-index: 15;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Adaptação para telas menores ou tablets */
@media (max-width: 900px) {
  body.dashboard-mode .container {
    height: auto;
    overflow: visible;
  }
  .table-container-scrollable,
  .table-container {
    height: calc(100vh - 320px);
    min-height: 400px;
  }
}



