/* ═══════════════════════════════════════════════════════════
   IMOBHUB — DESIGN SYSTEM
   Aesthetic: Luxury / Editorial / Refined Dark Gold
   ═══════════════════════════════════════════════════════════ */

:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #8A6B2A;
  --bg:          #0A0A0B;
  --bg-2:        #111114;
  --bg-3:        #18181C;
  --bg-4:        #202026;
  --border:      rgba(201,168,76,0.15);
  --border-2:    rgba(201,168,76,0.08);
  --text:        #F0EDE6;
  --text-muted:  #888880;
  --text-dim:    #555550;
  --success:     #3ECF8E;
  --danger:      #F25767;
  --warning:     #F4A136;
  --info:        #60A5FA;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow:      0 4px 24px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.12);
  --transition:  all 0.22s cubic-bezier(0.4,0,0.2,1);
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ─── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-2);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold));
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-text strong { color: var(--gold); font-weight: 800; }

.navbar-menu {
  display: flex;
  gap: 8px;
  flex: 1;
}

.navbar-menu a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-menu a:hover {
  color: var(--text);
  background: var(--bg-3);
}

.navbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0A0A0B;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #0A0A0B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--text); }

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

.btn-success {
  background: var(--success);
  color: #0A0A0B;
  font-weight: 700;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.card-body { padding: 24px; }

/* ─── IMOVEL CARD ───────────────────────────────────────── */
.imovel-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.imovel-card .foto-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
}

.imovel-card .foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.imovel-card .badge-finalidade {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-venda { background: rgba(201,168,76,0.9); color: #0A0A0B; border-radius: 20px; }
.badge-aluguel { background: rgba(96,165,250,0.9); color: #0A0A0B; border-radius: 20px; }

.badge-destaque {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: #0A0A0B;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.imovel-card .multi-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10,10,11,0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.imovel-card .imovel-info {
  padding: 18px;
}

.imovel-card .imovel-preco {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.imovel-card .imovel-titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imovel-card .imovel-end {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imovel-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.imovel-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.imovel-spec span { font-size: 1rem; }

.imovel-card .imob-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.imob-nome-small {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.imob-logo-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
}

/* ─── GRID ──────────────────────────────────────────────── */
.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ─── FORMS ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-label.required::after {
  content: ' *';
  color: var(--gold);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--bg-4);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-control::placeholder { color: var(--text-dim); }

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888880' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 5px;
}

.form-section {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.form-section-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-2);
}

/* ─── ALERTS ────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid;
  margin-bottom: 16px;
}

.alert-success { background: rgba(62,207,142,0.1); border-color: rgba(62,207,142,0.3); color: var(--success); }
.alert-danger   { background: rgba(242,87,103,0.1); border-color: rgba(242,87,103,0.3); color: var(--danger); }
.alert-warning  { background: rgba(244,161,54,0.1); border-color: rgba(244,161,54,0.3); color: var(--warning); }
.alert-info     { background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.3); color: var(--info); }

.alert button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
}

/* ─── SEARCH BOX ────────────────────────────────────────── */
.search-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.search-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}

.search-tab.active {
  background: var(--gold);
  color: #0A0A0B;
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

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

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ─── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── PLANOS ─────────────────────────────────────────────── */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.plano-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plano-card.destaque {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(201,168,76,0.05) 100%);
}

.plano-card.destaque::before {
  content: 'MAIS POPULAR';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--gold);
  color: #0A0A0B;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 40px;
  transform: rotate(35deg);
}

.plano-nome {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plano-preco {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.plano-preco sup {
  font-size: 1rem;
  vertical-align: super;
}

.plano-preco sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plano-features {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plano-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plano-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ─── DASHBOARD ─────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border-2);
  padding: 32px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 16px;
}

.sidebar-section {
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 12px 0 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--text);
  background: rgba(201,168,76,0.06);
  border-left-color: var(--gold);
}

.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.dashboard-main { padding: 32px; }

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

.dash-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ─── TABLE ─────────────────────────────────────────────── */
.table-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--bg-3);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-2);
}

tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.875rem;
  color: var(--text-muted);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: rgba(201,168,76,0.02); }

/* ─── BADGES ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-success { background: rgba(62,207,142,0.15); color: var(--success); }
.badge-danger  { background: rgba(242,87,103,0.15); color: var(--danger); }
.badge-warning { background: rgba(244,161,54,0.15); color: var(--warning); }
.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-info    { background: rgba(96,165,250,0.15); color: var(--info); }

/* ─── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body { padding: 28px; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-2);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ─── FOTO UPLOAD ───────────────────────────────────────── */
.foto-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.foto-upload-area:hover, .foto-upload-area.dragover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

.foto-upload-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }

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

.foto-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.foto-thumb.principal { border-color: var(--gold); }

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

.foto-thumb .remove-foto {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.foto-thumb:hover .remove-foto { opacity: 1; }

/* ─── IMOVEL DETAIL ─────────────────────────────────────── */
.imovel-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-3);
}

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

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

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

.imovel-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.imovel-contact-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.creci-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-2);
}

.creci-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
  border: 2px solid var(--border);
}

.creci-info-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.creci-info-creci {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}

/* ─── SAME ADDRESS BUTTONS ──────────────────────────────── */
.same-address-panel {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.same-address-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 14px;
}

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

.imob-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.imob-btn:hover, .imob-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.imob-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 12px 0 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ─── AUTH PAGES ────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  background: var(--bg-2);
  border-right: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ─── FILTERS ───────────────────────────────────────────── */
.filters-bar {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

/* ─── PAGINATION ────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #0A0A0B; font-weight: 700; }
.page-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ─── ADMIN ─────────────────────────────────────────────── */
.admin-sidebar { background: #0D0D0F; }
.admin-topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .imovel-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-menu    { display: none !important; }
  .navbar-actions { display: none !important; }
  .hamburger      { display: flex !important; margin-left: auto; }
  .auth-layout    { grid-template-columns: 1fr; }
  .auth-panel     { display: none; }
  .search-fields  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }
  .section        { padding: 48px 0; }
  .container      { padding: 0 16px; }
}

/* ─── UTILITIES ─────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── LOADER ─────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-desc { font-size: 0.875rem; max-width: 300px; margin: 0 auto 20px; }

/* ─── CEP LOADING ────────────────────────────────────────── */
.cep-loading { display: none; }
.cep-loading.show { display: inline-block; }