:root {
  --azul: #0e5061;
  --azul-dark: #073139;
  --dourado: #c9a227;
  --dourado-dark: #a8841c;
  --dourado-light: rgba(201, 162, 39, 0.16);
  --bg: #0a2229;
  --bg-deep: #051419;
  --surface: #0f2e36;
  --surface-alt: #143842;
  --surface-hover: #1a4650;
  --border: #1e4b55;
  --text: #f2ead4;
  --text-muted: #9fb8bd;
  --text-faint: #6a868c;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar (contato + compartilhar) */
.topbar { background: var(--bg-deep); color: rgba(242, 234, 212, 0.78); font-size: 12.5px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 20px; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; color: inherit; transition: color var(--ease) .15s; }
.topbar-contact a:hover { color: var(--dourado); }
.topbar-contact svg.icon { width: 14px; height: 14px; }
.share-block { display: flex; align-items: center; gap: 10px; color: rgba(242, 234, 212, 0.55); }
.share-icons { display: flex; gap: 6px; }
.share-icons a {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(242, 234, 212, 0.1); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text);
  transition: background var(--ease) .15s;
}
.share-icons a:hover { background: var(--dourado); color: var(--bg-deep); }
.share-before-footer { display: flex; justify-content: center; padding: 24px 20px 0; }

/* Hero */
.hero {
  background: radial-gradient(120% 180% at 15% 0%, var(--azul) 0%, var(--bg-deep) 65%);
  color: var(--text);
  padding: 18px 0 48px;
}
.hero-inner { text-align: left; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero .creci-badge {
  display: inline-block; background: var(--dourado-light); color: var(--dourado);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; padding: 5px 12px;
  border-radius: 999px; border: 1px solid rgba(201, 162, 39, 0.4);
}
.hero h1 {
  margin: 0 0 8px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em;
  display: inline-block; background: #fff; padding: 10px 16px; border-radius: 10px;
}
.hero-logo { display: block; height: 52px; width: auto; }
.hero-tagline { margin: 0; font-size: 15.5px; color: rgba(242, 234, 212, 0.72); max-width: 560px; line-height: 1.5; }

/* Barra de modalidades (sticky) */
.tabs-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(0,0,0,0.1);
  margin-top: -28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.finalidade-tabs {
  display: flex; gap: 6px; padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.finalidade-tabs::-webkit-scrollbar { display: none; }
.finalidade-tabs button {
  border: none; background: transparent; padding: 9px 20px;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; border-radius: 999px; white-space: nowrap;
  transition: background var(--ease) .15s, color var(--ease) .15s;
}
.finalidade-tabs button:hover { background: var(--surface-alt); color: var(--text); }
.finalidade-tabs button.active { color: var(--bg-deep); background: var(--dourado); }
.btn-anunciar {
  margin-left: auto; border: 1px solid var(--dourado) !important; color: var(--dourado) !important;
  background: transparent !important; flex: none;
}
.btn-anunciar:hover { background: var(--dourado-light) !important; }

@media (max-width: 640px) {
  .hero { padding: 18px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero-tagline { font-size: 15px; }
  .finalidade-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 8px; justify-content: center; }
  .finalidade-tabs .tab-break { flex-basis: 100%; width: 0; height: 0; }
  .finalidade-tabs .btn-anunciar { margin-left: 0; }
}

/* Layout principal */
.main-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: start;
}
@media (max-width: 860px) {
  .main-layout { grid-template-columns: 1fr; }
}

.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 16px; font-size: 13px; color: var(--text-muted);
}
.toolbar-left { display: none; }
.toolbar select {
  padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--text); cursor: pointer;
}
.btn-filtros-mobile { display: none; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: all var(--ease) .15s; flex: none; color: var(--text);
}
.btn-icon:hover { border-color: var(--dourado); color: var(--dourado); }

/* Sidebar filtros */
.sidebar {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; font-size: 13px;
  position: sticky; top: 76px;
}
.sidebar h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
  margin: 20px 0 10px; font-weight: 700;
}
.sidebar h3:first-child { margin-top: 0; }
.sidebar input[type="text"], .sidebar input[type="number"] {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px;
  transition: border-color var(--ease) .15s; background: var(--bg); color: var(--text);
}
.sidebar input:focus { outline: none; border-color: var(--dourado); }
.range-row { display: flex; gap: 8px; }
.tipo-list label, .checklist label {
  display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; font-size: 13.5px;
}
.counters { display: flex; flex-wrap: wrap; gap: 6px; }
.counters button {
  border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius-sm); color: var(--text);
  padding: 5px 12px; font-size: 13px; cursor: pointer; transition: all var(--ease) .15s;
}
.counters button:hover { border-color: var(--dourado); }
.counters button.active { background: var(--dourado); color: var(--bg-deep); border-color: var(--dourado); }
.clear-filters {
  margin-top: 18px; width: 100%; padding: 9px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text); cursor: pointer; font-weight: 600; transition: background var(--ease) .15s;
}
.clear-filters:hover { background: var(--surface-hover); }

/* Cards */
.results-count { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}
.skeleton-block, .skeleton-line {
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--surface-hover) 37%, var(--surface-alt) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
.skeleton-line { height: 12px; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.property-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow var(--ease) .2s, transform var(--ease) .2s;
  animation: fade-in .35s var(--ease) both;
}
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.property-card .thumb {
  display: block; background: var(--surface-alt) center/cover no-repeat; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
}
.property-card .thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}
.property-card .thumb .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.property-card .thumb .badge {
  background: rgba(5, 20, 25, 0.82); backdrop-filter: blur(2px); color: var(--text);
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.03em; text-transform: uppercase;
}
.property-card .thumb .badge-video {
  position: absolute; bottom: 12px; left: 12px; background: rgba(5, 20, 25, 0.82); color: var(--text);
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1;
}

.property-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.property-title { font-size: 16.5px; font-weight: 700; margin: 0; letter-spacing: -0.005em; line-height: 1.35; color: var(--text); }
.property-price { font-size: 19px; font-weight: 800; color: var(--dourado); }
.property-prices { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row .price-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text-muted); background: var(--surface-alt); padding: 2px 7px; border-radius: 999px; flex: none;
}
.price-row .price-value { font-size: 15px; font-weight: 800; color: var(--dourado); }
.property-cod { font-size: 12px; color: var(--text-muted); }
.property-cod-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lancamento-badge {
  display: inline-flex; align-items: center; background: var(--dourado); color: var(--bg-deep);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}
.property-icons { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin: 6px 0 2px; }
.property-icons span { display: inline-flex; align-items: center; gap: 5px; }
.property-meta { font-size: 12px; color: var(--text-faint); }

.property-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; border: none;
  text-transform: uppercase; transition: all var(--ease) .15s;
}
.btn-primary { background: var(--dourado); color: var(--bg-deep); }
.btn-primary:hover { background: var(--dourado-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--dourado); color: var(--dourado); }

.empty-state {
  background: var(--surface); border-radius: var(--radius); padding: 50px 20px; text-align: center;
  color: var(--text-muted); box-shadow: var(--shadow);
}

.site-footer {
  text-align: center; padding: 28px; font-size: 12px; color: var(--text-muted);
}
.site-footer a { color: var(--dourado); font-weight: 600; }

/* Mobile */
@media (max-width: 860px) {
  .sidebar { position: fixed; inset: 0; z-index: 60; border-radius: 0; overflow-y: auto; display: none; }
  .sidebar.show { display: block; }
  .btn-filtros-mobile {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .sidebar .sidebar-close { display: block; margin-bottom: 10px; }
}
.sidebar-close { display: none; margin-left: auto; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }

/* Admin */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.admin-topbar h1 { font-size: 20px; margin: 0; color: var(--text); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg);
}
.login-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; width: 100%; max-width: 360px;
}
.login-card h1 { font-size: 18px; margin: 0 0 4px; color: var(--text); }
.login-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: var(--text-muted); text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dourado); }
.field textarea { resize: vertical; }
.form-error { color: #f0685f; font-size: 13px; margin-top: 8px; min-height: 18px; }
.form-hint { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr 1fr; } }

.form-section {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px;
}
.form-section h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin: 0 0 16px; }

.consultar-check {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 500;
  text-transform: none; color: var(--text-muted); cursor: pointer;
}
.preco-field input[type="number"]:disabled { background: var(--surface-alt); color: var(--text-faint); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; padding-top: 4px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 42px; height: 24px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border);
  position: relative; flex: none; transition: background var(--ease) .15s, border-color var(--ease) .15s;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted);
  transition: transform var(--ease) .15s, background var(--ease) .15s;
}
.switch input:checked + .switch-track { background: var(--dourado-light); border-color: var(--dourado); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: var(--dourado); }
.switch-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button {
  border: none; background: var(--surface-alt); width: 32px; height: 36px; font-size: 16px; cursor: pointer;
  color: var(--text); flex: none; transition: background var(--ease) .15s;
}
.stepper button:hover { background: var(--surface-hover); }
.stepper input {
  border: none; text-align: center; width: 100%; font-size: 14px; padding: 0; -moz-appearance: textfield;
  background: var(--surface); color: var(--text);
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-thumb { position: relative; width: 92px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .photo-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(5, 20, 25, 0.8); color: var(--text); font-size: 14px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.photo-thumb .photo-tag {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(5, 20, 25, 0.78); color: var(--text);
  font-size: 9px; text-align: center; padding: 2px 0; text-transform: uppercase; letter-spacing: 0.03em;
}
.photo-thumb .photo-principal {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(5, 20, 25, 0.8); color: rgba(255, 255, 255, 0.85); cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.photo-thumb .photo-principal:hover { background: rgba(5, 20, 25, 0.95); color: var(--dourado); }
.photo-thumb .photo-principal.active { background: var(--dourado); color: #241a02; }
.photo-thumb .photo-tag { pointer-events: none; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text); }
.admin-table th { background: var(--surface-alt); text-transform: uppercase; font-size: 11px; color: var(--text-muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.tag-creci { background: var(--dourado-light); color: var(--dourado); }
.tag-manual { background: rgba(30, 75, 85, 0.5); color: #bcdce2; }
.tag-off { background: rgba(200, 60, 50, 0.18); color: #f0685f; }
.tag-lancamento { background: var(--dourado-light); color: var(--dourado); }
.tag-processando { background: rgba(41, 121, 255, 0.15); color: #6fa8ff; }

/* Modal / detalhes */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(3, 12, 15, 0.75);
  align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg); max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
  animation: fade-in .2s var(--ease) both;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; border: none; background: rgba(5, 20, 25, 0.75); width: 32px; height: 32px;
  border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--text); line-height: 1; z-index: 2;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.modal-content { padding: 24px 26px 26px; }
.modal-box h2 { margin: 0 0 4px; font-size: 19px; color: var(--text); }
.modal-box .property-price { font-size: 19px; margin: 2px 0 12px; }
.modal-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; margin: 14px 0; }
.modal-box dt { color: var(--text-muted); }
.modal-box dd { color: var(--text); margin: 0; }
.modal-box p.descricao { font-size: 14px; white-space: pre-wrap; line-height: 1.6; color: var(--text); }
.modal-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.modal-badges .badge {
  background: var(--dourado-light); color: var(--dourado); font-size: 10.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; letter-spacing: 0.03em; text-transform: uppercase;
}

/* Galeria de fotos */
.gallery-viewer { position: relative; background: var(--surface-alt); }
.gallery-viewer img { width: 100%; height: 280px; object-fit: cover; display: block; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(5, 20, 25, 0.75); color: var(--text);
  border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(201, 162, 39, 0.45); }
.gallery-dots span.active { background: var(--dourado); }

.video-embed { position: relative; padding-top: 56.25%; margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-deep); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--surface); color: var(--text);
  padding: 12px 18px; border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow-lg); display: none;
  z-index: 80; border: 1px solid var(--dourado);
}
.toast.show { display: block; animation: fade-in .2s var(--ease) both; }

/* Pagina de detalhes do imovel */
.detail-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.detail-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.detail-back { font-size: 13.5px; font-weight: 600; color: var(--text-muted); transition: color var(--ease) .15s; }
.detail-back:hover { color: var(--dourado); }
.detail-brand {
  font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; background: #fff; padding: 6px 10px; border-radius: 8px;
}
.detail-logo { display: block; height: 28px; width: auto; }

.detail-main { padding: 28px 0 60px; max-width: 760px; }
.detail-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.detail-gallery img { height: 420px; }
.detail-title { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.01em; }
.detail-map { margin-top: 24px; }
.detail-map h3 { font-size: 15px; margin: 0 0 10px; color: var(--text); }
.detail-map iframe { display: block; width: 100%; border-radius: var(--radius); }
.detail-not-found {
  background: var(--surface); border-radius: var(--radius); padding: 60px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.detail-not-found p { color: var(--text-muted); margin: 10px 0 20px; }

.loading-state-page { text-align: center; padding: 80px 20px; color: var(--text-muted); font-size: 14px; }
.spinner-lg {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 16px;
  border: 3px solid var(--surface-alt); border-top-color: var(--dourado);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .detail-gallery img { height: 260px; }
}

/* Pre-cadastro (lead) */
.lead-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead-intro { font-size: 13.5px; color: var(--text-muted); margin: 4px 0 18px; line-height: 1.5; }
#leadForm .field, #leadForm .form-grid { margin-bottom: 14px; }
.lead-success-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--dourado-light); color: var(--dourado);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin-bottom: 14px;
}
#leadSuccess p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }

/* Widget flutuante de WhatsApp */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-fab {
  width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--dourado); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: transform var(--ease) .15s; flex: none;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(0.96); }

.wa-panel {
  display: none; flex-direction: column; width: 320px; max-width: calc(100vw - 40px);
  max-height: min(460px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: fade-in .2s var(--ease) both;
}
.wa-panel.show { display: flex; }

.wa-panel-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px;
  background: var(--bg-deep); border-bottom: 1px solid var(--border);
}
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--dourado); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none;
}
.wa-header-text { flex: 1; min-width: 0; }
.wa-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.wa-status { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.wa-dot { width: 6px; height: 6px; border-radius: 50%; background: #3ecf5b; flex: none; }
.wa-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }
.wa-close:hover { color: var(--text); }

.wa-body { padding: 14px 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 70px; }
.wa-bubble {
  background: var(--surface-alt); color: var(--text); padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  font-size: 13.5px; line-height: 1.55; max-width: 88%; align-self: flex-start; animation: fade-in .2s var(--ease) both;
}
.wa-bubble.user {
  background: var(--dourado-light); color: var(--text); border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 14px 14px 4px 14px; align-self: flex-end;
}
.wa-typing { display: flex; gap: 4px; align-items: center; align-self: flex-start; background: var(--surface-alt); padding: 12px 14px; border-radius: 14px 14px 14px 4px; }
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: wa-bounce 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wa-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.wa-quick-replies { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.wa-quick-replies button {
  text-align: left; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text);
  padding: 9px 12px; border-radius: 10px; font-size: 12.5px; cursor: pointer; transition: all var(--ease) .15s;
}
.wa-quick-replies button:hover { border-color: var(--dourado); color: var(--dourado); }

.wa-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.wa-input-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px;
  color: var(--text); font-size: 13px; min-width: 0;
}
.wa-input-row input:focus { outline: none; border-color: var(--dourado); }
.wa-input-row button {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--dourado); color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background var(--ease) .15s;
}
.wa-input-row button:hover { background: var(--dourado-dark); }

@media (max-width: 480px) {
  .wa-widget { right: 14px; bottom: 14px; }
  .wa-panel { width: calc(100vw - 28px); }
}
