/* ===============================
   Brando Imóveis / Nous - main.css
   Paleta 2025 - Azul institucional (#557985 / #88A9B9)
   =============================== */

:root {
  --brand-blue: #557985;         /* Azul principal da logo */
  --brand-blue-700: #88A9B9;     /* Azul claro para hovers e gradientes */
  --brand-green: #22c55e;        /* Verde para destaques ou sucesso */
  --text: #111827;               /* Texto padrão */
  --muted: #6b7280;              /* Texto secundário */
  --bg: #f9fafb;                 /* Fundo geral */
}

html, body {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Roboto", Arial, sans-serif;
}

/* Badge de tipo de imóvel */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-blue);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Animação de zoom nas imagens dos cards */
.card:hover img {
  transform: scale(1.03);
}
.card img {
  transition: transform 0.4s ease;
}

/* Valor (preço) */
.price {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--brand-blue);
}

/* Botão Brandinho (assistente) */
#brandinho-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(85, 121, 133, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
#brandinho-toggle:hover {
  background: var(--brand-blue-700);
}

/* Caixa do Brandinho */
#brandinho-box {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  z-index: 9999;
}

/* Cabeçalho do Brandinho */
#brandinho-header {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-700));
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#brandinho-header img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
}

/* Mensagens do Brandinho */
#brandinho-messages {
  height: 320px;
  overflow: auto;
  padding: 12px;
  background: #f3f4f6;
}
.brandinho-msg {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.brandinho-msg .bubble {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 80%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
}
.brandinho-msg.user {
  justify-content: flex-end;
}
.brandinho-msg.user .bubble {
  background: #dcfce7;
}
.brandinho-msg.bot .bubble {
  background: #fff;
}

/* Input do Brandinho */
#brandinho-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
#brandinho-input input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
}
#brandinho-input button {
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.3s ease;
}
#brandinho-input button:hover {
  background: var(--brand-blue-700);
}

/* Toast de notificação */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: none;
}

/* Botões padrões reutilizáveis */
.btn-admin {
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}
.btn-admin:hover {
  background: #fff;
  color: var(--brand-blue);
}
.btn-whatsapp {
  background: var(--brand-green);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  background: #16a34a;
}
.btn-brand {
  background: var(--brand-blue);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}
.btn-brand:hover {
  background: var(--brand-blue-700);
}

/* =====================================================
   Interpretação automática Tailwind-like
   ===================================================== */
[class*="bg-[color:var(--brand-blue)]"]     { background-color: var(--brand-blue) !important; color: #fff !important; }
[class*="bg-[color:var(--brand-blue-700)]"] { background-color: var(--brand-blue-700) !important; color: #fff !important; }
[class*="text-[color:var(--brand-blue)]"]   { color: var(--brand-blue) !important; }
[class*="text-[color:var(--brand-blue-700)]"] { color: var(--brand-blue-700) !important; }

/* Hovers */
[class*="hover:bg-[color:var(--brand-blue-700)]"]:hover {
  background-color: var(--brand-blue-700) !important;
  color: #fff !important;
}

/* =====================================================
   Campos, tabelas e componentes
   ===================================================== */

.field {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
  outline: none;
  transition: all 0.2s ease;
}
.field:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(85, 121, 133, 0.25);
}

.table-brand th {
  background-color: var(--brand-blue);
  color: #fff;
  font-weight: 600;
}
.table-brand td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
}
.table-brand tr:hover {
  background-color: #f3f4f6;
}

/* =====================================================
   Scroll estilizado
   ===================================================== */

section.overflow-y-auto {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-blue) #f0f0f0;
}

section.overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}
section.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
section.overflow-y-auto::-webkit-scrollbar-thumb {
  background-color: var(--brand-blue);
  border-radius: 4px;
}
section.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background-color: var(--brand-blue-700);
}

.banner-content h2,
.banner-content p {
  color: var(--brand-dark) !important;
}

/* ===============================
   SLIDES & CARROSSEL BRANDO
   =============================== */

/* Efeito suave */
.slide {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateX(10px);
}
.slide:not(.hidden) {
  opacity: 1;
  transform: translateX(0);
}

/* Botões laterais */
.carousel-btn {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}
.carousel-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
}

/* Thumbs */
.thumb {
  transition: transform 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
}
.thumb:hover {
  transform: scale(1.05);
}
.thumb.active {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 2px var(--brand-blue);
}

/* Scroll horizontal das thumbnails */
.thumb-row::-webkit-scrollbar {
  height: 6px;
}
.thumb-row::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border-radius: 10px;
}

/* ===============================
   Ajuste do texto do banner (Opção 1)
   Azul institucional + leve glow
   =============================== */

.banner-content h2,
.banner-content p {
  color: var(--brand-blue) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}
