/* =====================================================================
   Robson Alexandre — Corretor de Imóveis
   Editorial / warm real-estate aesthetic
   ===================================================================== */

:root {
  --cream: #edebe5;
  --cream-dark: #ded9cd;
  --cream-darker: #cfc9b8;
  --navy: #1c242d;
  --navy-light: #2a3542;
  --navy-soft: #45505e;
  --orange: #ff7400;
  --orange-dark: #d95f00;
  --orange-light: #ffe4cc;
  --white: #ffffff;
  --text: #23262b;
  --text-muted: #6b6f76;
  --border: rgba(28, 36, 45, 0.12);
  --shadow-sm: 0 1px 2px rgba(28, 36, 45, 0.06), 0 1px 1px rgba(28, 36, 45, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 36, 45, 0.10), 0 2px 6px rgba(28, 36, 45, 0.06);
  --shadow-lg: 0 24px 60px rgba(28, 36, 45, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}

.brand__logo { height: 84px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #d7dae0;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background .15s ease, transform .15s ease;
}

.nav-whatsapp:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------
   Hero / busca
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,19,24,.60) 0%, rgba(15,19,24,.72) 45%, var(--cream) 96%),
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255,116,0,.20), transparent 60%),
    url('../img/blumenau-hero.jpg') center 42% / cover no-repeat;
  padding: 92px 0 40px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero__eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  max-width: 720px;
  line-height: 1.08;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.hero p.lead {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 28px;
}

/* Busca por código em destaque */
.busca-codigo {
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  margin-bottom: 32px;
}

.busca-codigo input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
}

.busca-codigo input::placeholder { color: #9a9ea6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-danger { background: #c0392b; color: var(--white); }
.btn-danger:hover { background: #a33325; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   Filtros
   --------------------------------------------------------------------- */
.filtros {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.filtros__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.campo label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy-soft);
  margin-bottom: 6px;
}

.campo select,
.campo input[type="text"],
.campo input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .15s ease;
}

.campo select:focus,
.campo input:focus {
  outline: none;
  border-color: var(--orange);
}

.campo--faixa { display: flex; gap: 8px; }

.filtros__tags {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--cream-dark);
}

.filtros__tags-titulo {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy-soft);
  margin: 0 0 10px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-soft);
  cursor: pointer;
  background: var(--cream);
  transition: all .15s ease;
}

.check-pill input { display: none; }

.check-pill:has(input:checked) {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.filtros__acoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   Resultados / grid de imóveis
   --------------------------------------------------------------------- */
.resultados-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.resultados-info h2 { font-size: 22px; margin: 0; }
.resultados-info span { color: var(--text-muted); font-size: 14px; }

.grid-imoveis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-bottom: 40px;
}

.card-imovel {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.card-imovel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-imovel__foto {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="%23cfc9b8" d="M0 0h24v24H0z"/></svg>');
  overflow: hidden;
}

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

.card-imovel:hover .card-imovel__foto img { transform: scale(1.05); }

.card-imovel__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
}

.card-imovel__badge--aluguel { background: var(--orange); }

.card-imovel__codigo {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(28,36,45,.75);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.card-imovel__corpo {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-imovel__tipo {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--orange-dark);
  margin-bottom: 6px;
}

.card-imovel__titulo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.25;
}

.card-imovel__local {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-imovel__specs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--navy-soft);
  border-top: 1px solid var(--cream-dark);
  padding-top: 12px;
  margin-top: auto;
  margin-bottom: 14px;
}

.card-imovel__specs span { display: inline-flex; align-items: center; gap: 5px; }

.card-imovel__valor {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
}

.card-imovel__valor small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.sem-resultados {
  text-align: center;
  padding: 70px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.sem-resultados h3 { color: var(--navy); }

/* Paginação */
.paginacao {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 60px;
}

.paginacao a, .paginacao span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--border);
  color: var(--navy);
}

.paginacao a:hover { border-color: var(--orange); }
.paginacao .is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------------------------------------------------------------------
   Página de detalhe
   --------------------------------------------------------------------- */
.detalhe-topo {
  padding: 32px 0 8px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--navy-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange-dark); }

.detalhe-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.detalhe-cabecalho h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }

.detalhe-local { color: var(--text-muted); font-size: 15px; }

.detalhe-codigo {
  background: var(--navy);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  max-height: 480px;
}

.galeria__principal {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
}

.galeria__principal img { width: 100%; height: 100%; object-fit: cover; }

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

.galeria__miniaturas div { aspect-ratio: 1/1; overflow: hidden; background: var(--cream-dark); position: relative; }
.galeria__miniaturas img { width: 100%; height: 100%; object-fit: cover; }

.galeria__mais {
  position: absolute;
  inset: 0;
  background: rgba(28,36,45,.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.galeria__clicavel {
  cursor: pointer;
  position: relative;
}

.galeria__clicavel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,36,45,0);
  transition: background .15s ease;
}

.galeria__clicavel:hover::after { background: rgba(28,36,45,.15); }
.galeria__clicavel:hover img { transform: scale(1.03); }
.galeria__clicavel img { transition: transform .3s ease; }

/* Lightbox — visualização de fotos em tela cheia */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 24, .96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-aberto {
  display: flex;
  animation: lightbox-fade .18s ease;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__conteudo {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox__conteudo img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.lightbox__contador {
  color: #c3c8d0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

.lightbox__fechar {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .15s ease;
}

.lightbox__fechar:hover { opacity: 1; }

.lightbox__seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}

.lightbox__seta:hover { background: var(--orange); border-color: var(--orange); }
.lightbox__seta--anterior { left: 20px; }
.lightbox__seta--proxima { right: 20px; }

@media (max-width: 640px) {
  .lightbox__seta { width: 40px; height: 40px; font-size: 20px; }
  .lightbox__seta--anterior { left: 8px; }
  .lightbox__seta--proxima { right: 8px; }
  .lightbox__fechar { top: 10px; right: 14px; font-size: 28px; }
}

.detalhe-corpo {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding-bottom: 60px;
  align-items: start;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 28px;
}

.specs-grid__item {
  text-align: center;
  padding: 10px 4px;
}

.specs-grid__valor {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}

.specs-grid__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

.bloco {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
}

.bloco h3 { font-size: 19px; margin-bottom: 14px; }
.bloco p { color: var(--text); white-space: pre-line; }

.tag-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-lista span {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
}

/* Sidebar de contato */
.sidebar-contato {
  position: sticky;
  top: 104px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.sidebar-contato__valor {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.sidebar-contato__negociacao {
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 700;
  margin-bottom: 18px;
}

.sidebar-contato .btn { width: 100%; margin-bottom: 10px; }

.sidebar-contato hr {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin: 20px 0;
}

.form-contato label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.form-contato input,
.form-contato textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  margin-bottom: 14px;
  resize: vertical;
}

.form-contato input:focus,
.form-contato textarea:focus { outline: none; border-color: var(--orange); }

.corretor-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cream-dark);
}

.corretor-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.corretor-mini strong { display: block; font-size: 14px; color: var(--navy); }
.corretor-mini span { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Alertas
   --------------------------------------------------------------------- */
.alerta {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.alerta-sucesso { background: #e4f5e9; color: #1e6b3a; border: 1px solid #b8e4c6; }
.alerta-erro { background: #fbe6e2; color: #a13322; border: 1px solid #f1c1b6; }
.alerta-info { background: var(--orange-light); color: var(--orange-dark); border: 1px solid #ffd2a8; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #c3c8d0;
  margin-top: 40px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 50px 24px 30px;
  align-items: start;
}

.footer-logo { height: 68px; margin-bottom: 6px; }

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.site-footer p { margin: 0 0 8px; font-size: 14px; }
.site-footer a:hover { color: var(--orange); }

.site-footer__copy {
  text-align: center;
  font-size: 12.5px;
  color: #7d838d;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Admin — login
   --------------------------------------------------------------------- */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 24px;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-login-card img { height: 56px; margin: 0 auto 22px; }
.admin-login-card h1 { font-size: 22px; margin-bottom: 4px; }
.admin-login-card p.sub { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }

.admin-login-card label {
  display: block;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 16px;
}

.admin-login-card input:focus { outline: none; border-color: var(--orange); }

/* ---------------------------------------------------------------------
   Admin — layout geral
   --------------------------------------------------------------------- */
.admin-body { background: var(--cream); min-height: 100vh; }

.admin-topbar {
  background: var(--navy);
  color: var(--white);
}

.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.admin-topbar img { height: 40px; }

.admin-topbar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.admin-topbar nav a { color: #c3c8d0; }
.admin-topbar nav a:hover { color: var(--white); }

.admin-main { padding: 36px 0 80px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-header h1 { font-size: 26px; margin: 0; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.stat-card__valor { font-family: var(--font-display); font-size: 28px; color: var(--navy); font-weight: 700; }
.stat-card__label { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* Tabela admin */
.tabela-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.tabela-admin { width: 100%; border-collapse: collapse; }

.tabela-admin th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy-soft);
  background: var(--cream);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.tabela-admin td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 14.5px;
  vertical-align: middle;
}

.tabela-admin tr:last-child td { border-bottom: none; }
.tabela-admin tr:hover { background: rgba(255,116,0,.04); }

.tabela-admin img.thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge-ativo { background: #e4f5e9; color: #1e6b3a; }
.badge-inativo { background: #f1f1ee; color: #83867e; }
.badge-aluguel { background: var(--orange-light); color: var(--orange-dark); }
.badge-compra { background: #dfe6f7; color: #2c4a9e; }

.acoes-tabela { display: flex; gap: 8px; }
.acoes-tabela a, .acoes-tabela button { white-space: nowrap; }

/* Formulário admin de imóvel */
.form-imovel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-imovel fieldset {
  border: none;
  padding: 0;
  margin: 0 0 30px;
}

.form-imovel legend {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--orange-light);
  padding-bottom: 8px;
  width: 100%;
}

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

.form-row--2 { grid-template-columns: 1fr 1fr; }

.campo-full { grid-column: 1 / -1; }

.form-imovel label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.form-imovel input,
.form-imovel select,
.form-imovel textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
}

.form-imovel input:focus,
.form-imovel select:focus,
.form-imovel textarea:focus { outline: none; border-color: var(--orange); }

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

.upload-fotos {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background: var(--cream);
  cursor: pointer;
  transition: border-color .15s ease;
}

.upload-fotos:hover { border-color: var(--orange); }
.upload-fotos input { display: none; }

.fotos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fotos-preview__item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.fotos-preview__item img { width: 100%; height: 100%; object-fit: cover; }

.fotos-preview__capa {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.fotos-preview__remover {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(28,36,45,.75);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.form-acoes {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.help-text { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------------------------------------------------------------------
   Responsivo
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .detalhe-corpo { grid-template-columns: 1fr; }
  .sidebar-contato { position: static; }
  .galeria { grid-template-columns: 1fr; max-height: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header__inner { height: 84px; }
  .brand__logo { height: 60px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-whatsapp) { display: none; }
  .hero { padding: 56px 0 24px; background-position: 62% 42%; }
  .filtros__grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .form-row--2 { grid-template-columns: 1fr; }
}
