/* ==========================================================================
   7X Patrimonial — Admin Panel CSS  v2.0
   Premium dark UI — standalone (não depende de main.css)
   ========================================================================== */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --adm-bg:         #080a10;
  --adm-surface:    #0f1118;
  --adm-surface-2:  #161926;
  --adm-surface-3:  #1c2133;
  --adm-border:     rgba(255,255,255,0.06);
  --adm-border-2:   rgba(255,255,255,0.1);
  --adm-gold:       #c9ac77;
  --adm-gold-dim:   rgba(201,172,119,0.12);
  --adm-gold-hover: #dcc48a;
  --adm-text:       #eef0f8;
  --adm-text-2:     #7b82a0;
  --adm-text-3:     #3e4460;
  --adm-green:      #3ecf8e;
  --adm-green-dim:  rgba(62,207,142,0.12);
  --adm-blue:       #5a9cf8;
  --adm-blue-dim:   rgba(90,156,248,0.12);
  --adm-red:        #f06060;
  --adm-red-dim:    rgba(240,96,96,0.12);
  --adm-purple:     #a78bfa;
  --adm-sidebar-w:  256px;
  --adm-radius:     12px;
  --adm-radius-sm:  8px;
  --adm-font:       'Inter', system-ui, sans-serif;
  --adm-transition: 0.18s ease;
  --adm-shadow:     0 4px 24px rgba(0,0,0,0.4);
  --adm-shadow-lg:  0 8px 40px rgba(0,0,0,0.6);

  /* ── Aliases de compatibilidade (variáveis antigas) ── */
  --bg-card:        var(--adm-surface);
  --bg-hover:       var(--adm-surface-2);
  --border-light:   var(--adm-border-2);
  --text-muted:     var(--adm-text-2);
  --text-main:      var(--adm-text);
  --accent-gold:    var(--adm-gold);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--adm-font);
  background: var(--adm-bg);
  color: var(--adm-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--adm-surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--adm-text-3); }

/* ══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(201,172,119,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(90,156,248,0.05) 0%, transparent 60%),
              var(--adm-bg);
}

.login-page {
  width: 100%; display: flex; align-items: center;
  justify-content: center; padding: 2rem;
}

.login-card {
  width: 100%; max-width: 400px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--adm-shadow-lg);
}

.login-logo {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}

.login-logo-mark {
  width: 44px; height: 44px;
  background: var(--adm-gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #000;
  letter-spacing: -0.5px;
}

.login-logo-text { line-height: 1.2; }
.login-logo-name { font-weight: 700; font-size: 1rem; color: var(--adm-text); }
.login-logo-sub  { font-size: 0.75rem; color: var(--adm-text-2); }

.login-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.35rem; }
.login-sub   { font-size: 0.875rem; color: var(--adm-text-2); margin-bottom: 2rem; }

.login-field { margin-bottom: 1.25rem; }
.login-field label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--adm-text-2); margin-bottom: 0.5rem; letter-spacing: 0.3px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap > svg:first-child {
  position: absolute;
  left: 1rem;
  color: var(--adm-text-3);
  pointer-events: none;
}

.login-field input {
  width: 100%; background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text); padding: 0.7rem 1rem 0.7rem 2.75rem;
  font-size: 0.9rem; transition: border-color var(--adm-transition), box-shadow var(--adm-transition);
  outline: none;
}
.login-field input:focus {
  border-color: var(--adm-gold);
  box-shadow: 0 0 0 3px var(--adm-gold-dim);
}

.login-eye {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--adm-text-3);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--adm-transition);
}
.login-eye:hover { color: var(--adm-text); }

.login-btn {
  width: 100%; padding: 0.75rem;
  background: var(--adm-gold); color: #000;
  font-weight: 700; font-size: 0.95rem; border: none;
  border-radius: var(--adm-radius-sm); cursor: pointer;
  transition: background var(--adm-transition), transform var(--adm-transition);
  margin-top: 0.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.login-btn:hover { background: var(--adm-gold-hover); transform: translateY(-1px); }

.login-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--adm-text-2);
  transition: color var(--adm-transition);
  text-align: center;
  width: 100%;
}
.login-back:hover { color: var(--adm-gold); }

.login-error {
  background: var(--adm-red-dim);
  border: 1px solid rgba(240,96,96,0.3);
  color: var(--adm-red); border-radius: var(--adm-radius-sm);
  padding: 0.65rem 1rem; font-size: 0.85rem; margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT — SIDEBAR + MAIN
   ══════════════════════════════════════════════════════════════════════════ */

.admin-body {
  display: flex; min-height: 100vh; overflow-x: hidden;
}

/* Sidebar */
.admin-sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--adm-sidebar-w); height: 100vh;
  background: var(--adm-surface);
  border-right: 1px solid var(--adm-border);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform 0.25s ease;
}

.admin-sidebar-inner {
  display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1rem;
}

/* Brand */
.admin-brand {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--adm-border);
  margin-bottom: 1.5rem;
}

.admin-brand-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--adm-gold), #9d7d48);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #000;
  letter-spacing: -0.5px; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(201,172,119,0.3);
}

.admin-brand-name { font-weight: 700; font-size: 0.95rem; display: block; }
.admin-brand-sub  { font-size: 0.7rem; color: var(--adm-text-2); display: block; }

/* Nav */
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.admin-nav-section {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--adm-text-3);
  padding: 1rem 0.5rem 0.5rem; display: block;
}

.admin-nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text-2);
  font-size: 0.875rem; font-weight: 500;
  transition: background var(--adm-transition), color var(--adm-transition);
  position: relative;
}

.admin-nav-item:hover {
  background: var(--adm-surface-2);
  color: var(--adm-text);
}

.admin-nav-item.active {
  background: var(--adm-gold-dim);
  color: var(--adm-gold);
  font-weight: 600;
}

.admin-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--adm-gold);
  border-radius: 0 2px 2px 0;
}

/* Sidebar Footer */
.admin-sidebar-footer {
  border-top: 1px solid var(--adm-border);
  padding-top: 1rem; margin-top: auto;
  display: flex; align-items: center; gap: 0.75rem;
}

.admin-user-info {
  display: flex; align-items: center; gap: 0.65rem; flex: 1; min-width: 0;
}

.admin-avatar {
  width: 32px; height: 32px;
  background: var(--adm-gold-dim);
  border: 1px solid var(--adm-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: var(--adm-gold);
  flex-shrink: 0;
}

.admin-user-name {
  display: block; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-user-role {
  display: block; font-size: 0.7rem; color: var(--adm-text-2);
}

.admin-logout-btn {
  width: 30px; height: 30px; border-radius: var(--adm-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--adm-text-2); flex-shrink: 0;
  transition: background var(--adm-transition), color var(--adm-transition);
}
.admin-logout-btn:hover { background: var(--adm-red-dim); color: var(--adm-red); }

/* Main */
.admin-main {
  margin-left: var(--adm-sidebar-w);
  flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem;
  height: 58px;
  background: rgba(8,10,16,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--adm-border);
}

.admin-menu-btn {
  display: none; background: none; border: none;
  color: var(--adm-text-2); cursor: pointer; padding: 0.4rem;
  border-radius: var(--adm-radius-sm);
  transition: background var(--adm-transition);
}
.admin-menu-btn:hover { background: var(--adm-surface-2); }

.admin-topbar-title {
  font-size: 0.95rem; font-weight: 600; flex: 1;
}

.admin-topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.admin-topbar-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--adm-text-2);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  transition: all var(--adm-transition);
}
.admin-topbar-link:hover { color: var(--adm-text); border-color: var(--adm-gold); }

/* Content */
.admin-content {
  flex: 1; padding: 2rem 1.75rem;
  max-width: 1400px; width: 100%;
}

/* Overlay mobile */
.admin-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 150;
  backdrop-filter: blur(2px);
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPONENTS — Cards, Badges, Buttons, Tables
   ══════════════════════════════════════════════════════════════════════════ */

/* Card */
.dash-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.5rem;
  transition: border-color var(--adm-transition);
}
.dash-card:hover { border-color: var(--adm-border-2); }

/* Stat cards */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.stat-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  position: relative; overflow: hidden;
  transition: border-color var(--adm-transition), transform var(--adm-transition);
}
.stat-card:hover { border-color: var(--adm-border-2); transform: translateY(-2px); }

.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--stat-color, var(--adm-gold));
  opacity: 0.7;
}

.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--adm-text-2); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--adm-text); line-height: 1.1; }
.stat-sub   { font-size: 0.75rem; color: var(--adm-text-2); }
.stat-icon  { position: absolute; right: 1.25rem; top: 1.25rem; color: var(--stat-color, var(--adm-gold)); opacity: 0.25; }

/* Buttons */
.admin-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--adm-transition);
  white-space: nowrap;
}
.admin-btn:hover { background: var(--adm-surface-3); border-color: var(--adm-border-2); }

.admin-btn--gold {
  background: var(--adm-gold); color: #000; border-color: var(--adm-gold);
  font-weight: 700;
}
.admin-btn--gold:hover { background: var(--adm-gold-hover); border-color: var(--adm-gold-hover); }

.admin-btn--danger { border-color: var(--adm-red); color: var(--adm-red); }
.admin-btn--danger:hover { background: var(--adm-red-dim); }

.admin-btn--ghost { background: transparent; border-color: transparent; }
.admin-btn--ghost:hover { background: var(--adm-surface-2); }

.admin-btn--sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

/* Badges */
.badge-sm {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 99px; font-size: 0.7rem; font-weight: 600;
  background: var(--adm-surface-3); color: var(--adm-text-2);
}
.badge-sm--gold   { background: var(--adm-gold-dim); color: var(--adm-gold); }
.badge-sm--green  { background: var(--adm-green-dim); color: var(--adm-green); }
.badge-sm--blue   { background: var(--adm-blue-dim); color: var(--adm-blue); }
.badge-sm--purple { background: rgba(167,139,250,0.12); color: var(--adm-purple); }
.badge-sm--red    { background: var(--adm-red-dim); color: var(--adm-red); }

/* Alerts */
.adm-alert {
  padding: 0.75rem 1rem; border-radius: var(--adm-radius-sm);
  font-size: 0.875rem; margin-bottom: 1.25rem;
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.adm-alert--success { background: var(--adm-green-dim); color: var(--adm-green); border: 1px solid rgba(62,207,142,0.2); }
.adm-alert--error   { background: var(--adm-red-dim);   color: var(--adm-red);   border: 1px solid rgba(240,96,96,0.2); }
.adm-alert--info    { background: var(--adm-blue-dim);  color: var(--adm-blue);  border: 1px solid rgba(90,156,248,0.2); }

/* Flash messages */
.flash { padding: 0.75rem 1.1rem; border-radius: var(--adm-radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.flash.success { background: var(--adm-green-dim); color: var(--adm-green); border: 1px solid rgba(62,207,142,0.25); }
.flash.error   { background: var(--adm-red-dim);   color: var(--adm-red);   border: 1px solid rgba(240,96,96,0.25); }

/* Form elements */
.adm-input, .adm-select, .adm-textarea {
  width: 100%;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--adm-transition), box-shadow var(--adm-transition);
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
  border-color: var(--adm-gold);
  box-shadow: 0 0 0 3px var(--adm-gold-dim);
}

/* ══════════════════════════════════════════════════════════════════════════
   PROPERTIES TABLE — /admin/imoveis
   ══════════════════════════════════════════════════════════════════════════ */

.props-toolbar {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}

.props-search-wrap {
  position: relative; flex: 1; min-width: 200px;
}
.props-search-wrap svg {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--adm-text-3); pointer-events: none;
}
.props-search-wrap input {
  width: 100%;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text); padding: 0.6rem 0.85rem 0.6rem 2.3rem;
  font-size: 0.875rem; outline: none;
  transition: border-color var(--adm-transition);
}
.props-search-wrap input:focus { border-color: var(--adm-gold); }
.props-search-wrap input::placeholder { color: var(--adm-text-3); }

.props-table-wrap {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
}

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

.props-table thead th {
  background: var(--adm-surface-2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--adm-text-2);
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}

.props-table tbody tr {
  border-bottom: 1px solid var(--adm-border);
  transition: background var(--adm-transition);
}
.props-table tbody tr:last-child { border-bottom: none; }
.props-table tbody tr:hover { background: var(--adm-surface-2); }

.props-table td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
  font-size: 0.85rem;
}

.td-with-img { display: flex; align-items: center; gap: 0.75rem; }

.td-thumb {
  width: 44px; height: 44px;
  object-fit: cover; border-radius: 6px;
  background: var(--adm-surface-2);
  flex-shrink: 0;
}

.td-ref { font-size: 0.72rem; color: var(--adm-text-2); font-weight: 500; }
.td-title { font-weight: 600; max-width: 280px; }
.td-price { font-weight: 700; color: var(--adm-gold); white-space: nowrap; }

.td-actions { display: flex; align-items: center; gap: 0.4rem; }
.td-action-btn {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--adm-text-2);
  transition: background var(--adm-transition), color var(--adm-transition);
}
.td-action-btn:hover { background: var(--adm-surface-3); color: var(--adm-text); }
.td-action-btn--danger:hover { background: var(--adm-red-dim); color: var(--adm-red); }
.td-action-btn--gold:hover   { background: var(--adm-gold-dim); color: var(--adm-gold); }

/* Pagination */
.admin-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-top: 1px solid var(--adm-border);
  font-size: 0.82rem; color: var(--adm-text-2);
}

.admin-pagination-links { display: flex; gap: 0.4rem; }

.adm-page-link {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; color: var(--adm-text-2);
  border: 1px solid transparent;
  transition: all var(--adm-transition);
}
.adm-page-link:hover { background: var(--adm-surface-2); color: var(--adm-text); }
.adm-page-link.active { background: var(--adm-gold-dim); color: var(--adm-gold); border-color: rgba(201,172,119,0.2); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════════════════ */

.dash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem;
}

.dash-section-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--adm-text-2); margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROPERTY DETAIL — /admin/imoveis/{id}
   ══════════════════════════════════════════════════════════════════════════ */

.prop-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}

.admin-back-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--adm-text-2);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  transition: all var(--adm-transition);
}
.admin-back-btn:hover { color: var(--adm-text); border-color: var(--adm-gold); }

.admin-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--adm-text-2);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  transition: all var(--adm-transition);
}
.admin-btn-ghost:hover { color: var(--adm-gold); border-color: var(--adm-gold); }

.prop-detail-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 1.25rem; align-items: start;
}

.prop-detail-main {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden; padding: 0;
}

.prop-detail-img-wrap { position: relative; }
.prop-detail-img {
  width: 100%; height: 240px;
  object-fit: cover; display: block;
  background: var(--adm-surface-2);
}

.prop-detail-badges {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}

.prop-detail-info { padding: 1.25rem; }

.prop-detail-ref { font-size: 0.75rem; color: var(--adm-text-2); margin-bottom: 0.25rem; }
.prop-detail-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.prop-detail-location {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--adm-text-2); margin-bottom: 1.25rem;
}

.prop-specs-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.prop-spec {
  display: flex; flex-direction: column; align-items: center;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  padding: 0.5rem 0.75rem;
  min-width: 60px; text-align: center;
}
.prop-spec strong { font-size: 1rem; font-weight: 700; }
.prop-spec span   { font-size: 0.68rem; color: var(--adm-text-2); }

.prop-detail-desc {
  font-size: 0.83rem; color: var(--adm-text-2); line-height: 1.7;
  border-top: 1px solid var(--adm-border); padding-top: 1rem; margin-top: 1rem;
}

.prop-detail-side { display: flex; flex-direction: column; gap: 1rem; }

.prop-info-group {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius); padding: 1.25rem;
}

.prop-info-group-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--adm-text-2);
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--adm-border);
}

.prop-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 0; font-size: 0.85rem;
  border-bottom: 1px solid var(--adm-border);
}
.prop-info-row:last-child { border-bottom: none; }
.prop-info-row-label { color: var(--adm-text-2); }
.prop-info-row-value { font-weight: 600; text-align: right; }

/* Gallery */
.prop-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem;
}
.prop-gallery-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; cursor: zoom-in;
  transition: transform var(--adm-transition), opacity var(--adm-transition);
  background: var(--adm-surface-2);
}
.prop-gallery-img:hover { transform: scale(1.03); opacity: 0.9; }

/* ══════════════════════════════════════════════════════════════════════════
   COLEÇÃO EXCLUSIVA — /admin/exclusivos
   ══════════════════════════════════════════════════════════════════════════ */

.exclusive-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}

.exclusive-page-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.exclusive-page-sub   { font-size: 0.85rem; color: var(--adm-text-2); }

.exclusive-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Slot filled */
.exclusive-slot-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
  transition: border-color var(--adm-transition), box-shadow var(--adm-transition);
  display: flex; flex-direction: column;
}
.exclusive-slot-card:hover {
  border-color: var(--adm-border-2);
  box-shadow: var(--adm-shadow);
}

.exclusive-slot-cover {
  position: relative; height: 190px; overflow: hidden;
  background: var(--adm-surface-2);
}

.exclusive-slot-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.exclusive-slot-card:hover .exclusive-slot-cover img { transform: scale(1.04); }

.exclusive-slot-cover-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: var(--adm-text-3); font-size: 0.8rem;
}

.exclusive-slot-order {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  color: var(--adm-gold);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem; border-radius: 99px;
  border: 1px solid rgba(201,172,119,0.3);
}

.exclusive-slot-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.25s;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0.75rem; gap: 0.5rem;
}
.exclusive-slot-card:hover .exclusive-slot-overlay { opacity: 1; }

.exclusive-slot-body {
  padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem;
}

.exclusive-slot-name { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.exclusive-slot-loc  { font-size: 0.78rem; color: var(--adm-text-2); display: flex; align-items: center; gap: 0.3rem; }

.exclusive-slot-actions {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--adm-border);
  flex-wrap: wrap;
}

/* Upload label inline */
.upload-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  font-size: 0.78rem; color: var(--adm-text-2);
  cursor: pointer; transition: all var(--adm-transition);
  background: transparent;
}
.upload-trigger:hover { border-color: var(--adm-gold); color: var(--adm-gold); }

/* Empty slot (add) */
.exclusive-slot-add {
  background: var(--adm-surface);
  border: 2px dashed var(--adm-border-2);
  border-radius: var(--adm-radius);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.25rem;
  text-align: center;
  transition: border-color var(--adm-transition);
}
.exclusive-slot-add:hover { border-color: var(--adm-gold); }

.exclusive-slot-add-icon {
  width: 52px; height: 52px;
  background: var(--adm-gold-dim);
  border: 1px solid rgba(201,172,119,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--adm-gold);
}

.exclusive-slot-add-title {
  font-size: 1rem; font-weight: 700; color: var(--adm-text);
}
.exclusive-slot-add-sub {
  font-size: 0.82rem; color: var(--adm-text-2); margin-top: -0.75rem;
}

.exclusive-add-form {
  width: 100%; display: flex; flex-direction: column; gap: 0.75rem;
}

.exclusive-add-select {
  width: 100%;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text); padding: 0.65rem 0.9rem;
  font-size: 0.875rem; outline: none;
  transition: border-color var(--adm-transition);
}
.exclusive-add-select:focus { border-color: var(--adm-gold); }

.exclusive-add-file-label {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem;
  border: 1px dashed var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  font-size: 0.82rem; color: var(--adm-text-2);
  cursor: pointer; transition: all var(--adm-transition);
}
.exclusive-add-file-label:hover { border-color: var(--adm-gold); color: var(--adm-gold); }

.exclusive-add-submit {
  width: 100%; padding: 0.65rem;
  background: var(--adm-gold); color: #000;
  font-weight: 700; font-size: 0.875rem;
  border: none; border-radius: var(--adm-radius-sm);
  cursor: pointer; transition: background var(--adm-transition);
}
.exclusive-add-submit:hover { background: var(--adm-gold-hover); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--adm-shadow-lg); }
  .admin-overlay.active { display: block; }
  .admin-main { margin-left: 0; }
  .admin-menu-btn { display: flex; }
  .prop-detail-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-content { padding: 1.25rem 1rem; }
  .exclusive-slots-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD — KPI cards, charts, tables
   ══════════════════════════════════════════════════════════════════════════ */

/* Sync button */
.dash-actions { margin-bottom: 1.5rem; display: flex; justify-content: flex-end; }

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color var(--adm-transition), transform var(--adm-transition);
}
.kpi-card:hover { border-color: var(--adm-border-2); transform: translateY(-2px); }

.kpi-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon--gold   { background: var(--adm-gold-dim);              color: var(--adm-gold); }
.kpi-icon--green  { background: var(--adm-green-dim);             color: var(--adm-green); }
.kpi-icon--blue   { background: var(--adm-blue-dim);              color: var(--adm-blue); }
.kpi-icon--purple { background: rgba(167,139,250,0.12);           color: var(--adm-purple); }

.kpi-info { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { font-size: 0.72rem; color: var(--adm-text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--adm-text); line-height: 1.1; }

/* Dash grid (charts row) */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Dash card */
.dash-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.25rem;
  transition: border-color var(--adm-transition);
}
.dash-card:hover { border-color: var(--adm-border-2); }

.dash-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--adm-border);
}
.dash-card-header h3 { font-size: 0.875rem; font-weight: 600; color: var(--adm-text); }
.dash-link { font-size: 0.78rem; color: var(--adm-gold); transition: opacity 0.2s; }
.dash-link:hover { opacity: 0.8; }

/* Bar chart list */
.dash-list { display: flex; flex-direction: column; gap: 0.75rem; }

.dash-list-row { display: flex; align-items: center; gap: 0.75rem; }
.dash-list-label { font-size: 0.78rem; color: var(--adm-text-2); min-width: 90px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list-count { font-size: 0.78rem; font-weight: 700; color: var(--adm-text); min-width: 28px; text-align: right; }

.dash-bar-wrap { flex: 1; height: 6px; background: var(--adm-surface-3); border-radius: 99px; overflow: hidden; }
.dash-bar { height: 100%; background: var(--adm-gold); border-radius: 99px; min-width: 4px; transition: width 0.6s ease; }
.dash-bar--blue { background: var(--adm-blue); }

/* Big stat */
.dash-big-stat { padding: 1.5rem 0; text-align: center; }
.dash-big-val { display: block; font-size: 1.6rem; font-weight: 800; color: var(--adm-gold); }
.dash-big-sub { display: block; font-size: 0.75rem; color: var(--adm-text-2); margin-top: 0.25rem; }

.dash-stat-breakdown {
  display: flex; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--adm-border);
}
.dash-stat-item { flex: 1; text-align: center; }
.dash-stat-item span   { display: block; font-size: 0.72rem; color: var(--adm-text-2); }
.dash-stat-item strong { display: block; font-size: 0.9rem; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED TABLE (admin-table / admin-table-wrap)
   Used in dashboard recent + properties list
   ══════════════════════════════════════════════════════════════════════════ */

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%; border-collapse: collapse; min-width: 600px;
}

.admin-table thead th {
  background: var(--adm-surface-2);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--adm-text-2);
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--adm-border);
  transition: background var(--adm-transition);
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table-row:hover { background: var(--adm-surface-2); }

.admin-table td {
  padding: 0.65rem 1rem; vertical-align: middle; font-size: 0.85rem;
}

.td-id    { display: block; font-size: 0.7rem; color: var(--adm-text-3); font-family: monospace; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-ref   { font-size: 0.72rem; color: var(--adm-text-2); font-weight: 500; }
.td-muted { color: var(--adm-text-2); font-size: 0.82rem; }
.td-title { font-weight: 600; }
.td-price { font-weight: 700; color: var(--adm-gold); white-space: nowrap; }
.td-empty { text-align: center; padding: 3rem 1rem; }

/* Row link action */
.admin-row-action {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--adm-text-2);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
  transition: all var(--adm-transition);
  white-space: nowrap;
}
.admin-row-action:hover { color: var(--adm-gold); border-color: var(--adm-gold); background: var(--adm-gold-dim); }

/* Empty state */
.admin-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; padding: 2rem; color: var(--adm-text-3);
}
.admin-empty p { font-size: 0.875rem; color: var(--adm-text-2); }

/* Status dot */
.status-dot {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--adm-text-2);
}
.status-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--adm-text-3); flex-shrink: 0;
}
.status-dot--green::before { background: var(--adm-green); }
.status-dot--yellow::before { background: var(--adm-yellow, #f7c46f); }
.status-dot--red::before    { background: var(--adm-red); }

/* ══════════════════════════════════════════════════════════════════════════
   PROPERTIES TOOLBAR
   ══════════════════════════════════════════════════════════════════════════ */

.admin-toolbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-search-form {
  display: flex; align-items: center; gap: 0.6rem; flex: 1; flex-wrap: wrap;
}

.admin-search-wrap {
  position: relative; flex: 1; min-width: 200px;
}
.admin-search-wrap svg {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--adm-text-3); pointer-events: none;
}
.admin-search-input {
  width: 100%;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text); padding: 0.6rem 0.85rem 0.6rem 2.25rem;
  font-size: 0.875rem; outline: none;
  transition: border-color var(--adm-transition);
}
.admin-search-input:focus { border-color: var(--adm-gold); }
.admin-search-input::placeholder { color: var(--adm-text-3); }

.admin-select-wrap { display: flex; }
.admin-select {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text); padding: 0.6rem 0.85rem;
  font-size: 0.875rem; outline: none;
  transition: border-color var(--adm-transition); cursor: pointer;
}
.admin-select:focus { border-color: var(--adm-gold); }

.admin-btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: var(--adm-gold); color: #000;
  font-size: 0.875rem; font-weight: 700;
  border: none; border-radius: var(--adm-radius-sm);
  cursor: pointer; transition: background var(--adm-transition), transform var(--adm-transition);
  white-space: nowrap;
}
.admin-btn-primary:hover { background: var(--adm-gold-hover); transform: translateY(-1px); }

.admin-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: transparent;
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text-2); font-size: 0.875rem;
  cursor: pointer; transition: all var(--adm-transition);
  white-space: nowrap; text-decoration: none;
}
.admin-btn-ghost:hover { color: var(--adm-text); border-color: var(--adm-text-2); }

.admin-toolbar-right { margin-left: auto; }
.admin-result-count { font-size: 0.82rem; color: var(--adm-text-2); }

/* td-with-img */
.td-with-img { display: flex; align-items: center; gap: 0.75rem; }
.td-thumb {
  width: 42px; height: 42px; object-fit: cover;
  border-radius: 6px; background: var(--adm-surface-2); flex-shrink: 0;
}

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */

.adm-pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 0; margin-top: 1rem;
  border-top: 1px solid var(--adm-border);
}

.adm-pagination-info {
  font-size: 0.8rem; color: var(--adm-text-2);
}

.adm-pagination-links {
  display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap;
}

.adm-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 0.6rem;
  border-radius: var(--adm-radius-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--adm-text-2);
  border: 1px solid var(--adm-border);
  background: var(--adm-surface);
  transition: all var(--adm-transition);
  white-space: nowrap;
}
.adm-page-btn:hover { color: var(--adm-text); border-color: var(--adm-border-2); background: var(--adm-surface-2); }

.adm-page-btn--active {
  background: var(--adm-gold-dim);
  color: var(--adm-gold);
  border-color: rgba(201,172,119,0.25);
  font-weight: 700;
  cursor: default;
}

.adm-page-btn--ellipsis {
  border: none; background: transparent; cursor: default; color: var(--adm-text-3);
}

