:root {
  --navy: #161616;
  --navy-light: #2b2b2b;
  --gold: #b9923f;
  --gold-light: #d2b06b;
  --soft: #faf9f7;
  --text: #222222;
  --muted: #717171;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  --danger: #c94b4b;
  --success: #2d8a57;
  --border: #ebe7df;
  --radius: 1.15rem;
  --header-height: 84px;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --warning: #d97706;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  padding-top: var(--header-height);
  background: #fff;
  line-height: 1.62;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.bg-navy {
  background: var(--navy);
}

.bg-soft {
  background: var(--soft);
}

.text-gold {
  color: var(--gold) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: 1px solid var(--gold);
  color: #181818;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  transition: 0.25s ease;
  box-shadow: 0 10px 26px rgba(185, 146, 63, 0.24);
}

.btn-gold:hover,
.btn-gold:focus {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #181818;
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font-weight: 700;
  transition: 0.25s ease;
  background: transparent;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background: var(--gold);
  color: #181818;
}

/* HEADER */
.site-header {
  background: rgba(18, 18, 18, 0.82) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  min-height: var(--header-height);
}

.site-header .container {
  min-height: var(--header-height);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  max-width: 280px;
  margin-right: 1rem;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.brand-subtitle {
  margin-top: 0.18rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.navbar-toggler {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  border-color: rgba(185, 146, 63, 0.5);
}

.navbar .navbar-collapse {
  align-items: center;
}

.navbar-nav {
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  padding: 0.75rem 0.95rem !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86) !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .btn-gold {
  padding: 0.78rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-height: 48px;
  color: #111 !important;
  background: linear-gradient(135deg, #d8b56a 0%, #b9923f 55%, #e2c27c 100%);
  border: 1px solid rgba(255, 215, 140, 0.55);
  box-shadow:
    0 10px 24px rgba(185, 146, 63, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.header-cta .btn-gold:hover,
.header-cta .btn-gold:focus {
  color: #111 !important;
  background: linear-gradient(135deg, #e2c27c 0%, #c79d47 55%, #f0d493 100%);
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(185, 146, 63, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

/* HERO */
.hero {
  min-height: calc(100vh - var(--header-height));
  background:
    linear-gradient(100deg, rgba(22, 22, 22, 0.92), rgba(22, 22, 22, 0.68), rgba(22, 22, 22, 0.3)),
    url("../assets/hero-bg.jpg") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
}

.hero-badge {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
}

/* SECTIONS */
.section-py {
  padding: 5.6rem 0;
}

.section-title .eyebrow,
.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-title h1,
.section-title h2 {
  font-weight: 800;
  margin-top: 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.section-title p {
  color: var(--muted);
  max-width: 760px;
}

.page-hero {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #faf9f7 0%, #f2eee8 100%);
}

/* CARDS */
.search-card,
.info-card,
.property-card,
.testimonial-card,
.value-card,
.filter-box,
.admin-card,
.login-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.search-overlap {
  margin-top: -3.2rem;
  position: relative;
  z-index: 3;
}

.property-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.16);
}

.property-card img {
  height: 270px;
  object-fit: cover;
  width: 100%;
}

.property-card .card-body {
  padding: 1.4rem;
}

.property-card .card-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.badge-soft {
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

.price {
  color: var(--gold);
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.property-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.property-meta i {
  color: var(--gold);
}

/* BAND */
.gradient-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  overflow: hidden;
}

.gradient-band .section-title p,
.gradient-band .text-muted-custom {
  color: rgba(255, 255, 255, 0.7);
}

.stat-number {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  word-break: break-word;
}

.text-muted-custom {
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

/* TESTIMONIAL */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}

/* FOOTER */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: 0.2s ease;
}

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

.footer-brand {
  position: relative;
  padding-right: 1.5rem;
}

.footer-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.footer-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}

.footer-title span {
  color: var(--gold);
}

.footer-description {
  max-width: 380px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer-brand::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ICONS / COMMON */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(185, 146, 63, 0.14);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.filter-box {
  position: sticky;
  top: 104px;
}

/* GALERIA DO IMÓVEL */
.property-gallery {
  width: 100%;
}

.main-image-wrapper {
  position: relative;
}

.main-property-image {
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: 0.2s ease;
}

.gallery-arrow:hover {
  background: rgba(22, 22, 22, 0.78);
}

.gallery-arrow-left {
  left: 16px;
}

.gallery-arrow-right {
  right: 16px;
}

.gallery-thumb {
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0.9rem;
  width: 100%;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.gallery-thumb.active {
  border-color: var(--gold);
}

.gallery-thumb:hover {
  opacity: 0.9;
}

.map-placeholder {
  min-height: 220px;
  border-radius: var(--radius);
  background: #f0ece5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.list-clean {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list-clean li {
  margin-bottom: 0.6rem;
}

.small-muted {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ADMIN GENÉRICO */
.admin-body {
  background: linear-gradient(180deg, #fbfaf8 0%, #f4f0ea 100%);
  min-height: 100vh;
  padding-top: 0;
}

.admin-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 1.15rem 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.admin-title {
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.admin-card {
  padding: 1.6rem;
}

.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 2rem;
}

.login-logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}

.admin-table img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.65rem;
}

.admin-table th {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 700;
}

.admin-table td {
  vertical-align: middle;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--navy);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.image-preview-item {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8f6f1;
}

.image-preview-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  display: block;
}

.image-preview-item button {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: 0;
  background: rgba(22, 22, 22, 0.82);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  z-index: 3;
}

.image-preview-item button:hover {
  background: var(--danger);
  transform: scale(1.05);
}

.image-badge {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  background: rgba(22, 22, 22, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  z-index: 2;
}

.status-badge {
  display: inline-block;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-disponivel {
  background: rgba(45, 138, 87, 0.14);
  color: var(--success);
}

.status-vendido,
.status-alugado {
  background: rgba(201, 75, 75, 0.12);
  color: var(--danger);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state h4 {
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

.admin-topbar .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-help {
  font-size: 0.85rem;
  color: var(--muted);
}

.preview-cover {
  width: 100%;
  max-width: 340px;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* UPLOAD OVERLAY */
.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.upload-overlay-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.upload-overlay-card h5 {
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.upload-overlay-card .spinner-border {
  color: var(--gold);
  width: 2.25rem;
  height: 2.25rem;
}

.upload-overlay-card .progress {
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: #eee7db;
  border: 1px solid rgba(185, 146, 63, 0.18);
}

.upload-overlay-card .progress-bar {
  font-weight: 800;
  font-size: 0.9rem;
  color: #161616;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

#uploadProgressText {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

body.upload-lock {
  overflow: hidden;
}

/* UTIL */
.object-cover {
  object-fit: cover;
}

.rounded-4 {
  border-radius: var(--radius) !important;
}

.border-soft {
  border: 1px solid var(--border);
}

.shadow-soft {
  box-shadow: var(--shadow);
}

/* CAMPOS */
.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 14px;
  border: 1px solid #dbe2ea;
  padding: 0.78rem 0.92rem;
  font-size: 0.95rem;
  box-shadow: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(185, 146, 63, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(185, 146, 63, 0.12) !important;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2563eb 100%);
}

.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-light {
  border-width: 1px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

input[type="month"].form-control {
  min-height: 48px;
}

/* NOVO VISUAL ADMIN COMERCIAL */
.admin-commercial-body {
  background:
    radial-gradient(circle at top left, rgba(185, 146, 63, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, #f4efe6 100%);
}

.admin-commercial-header {
  background: rgba(18, 18, 18, 0.92) !important;
}

.admin-commercial-shell {
  padding: 36px 0 60px;
}

.admin-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(185, 146, 63, 0.12);
  border: 1px solid rgba(185, 146, 63, 0.24);
  color: #f4d899;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-logout-btn {
  min-height: 40px;
}

.admin-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(22, 22, 22, 0.96) 0%, rgba(43, 43, 43, 0.96) 100%);
  color: #fff;
  box-shadow: 0 24px 56px rgba(17, 17, 17, 0.18);
}

.admin-hero-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 146, 63, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.admin-hero-title {
  margin: 0.5rem 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.admin-hero-text {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

.admin-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat-card {
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stat-card-wide {
  grid-column: 1 / -1;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.hero-stat-value {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-stat-foot {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.admin-card-premium {
  border: 1px solid rgba(22, 22, 22, 0.06);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 247, 241, 0.94) 100%);
  box-shadow: 0 20px 48px rgba(15, 15, 15, 0.08);
  padding: 1.5rem;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-section-head-stack {
  flex-direction: column;
  align-items: stretch;
}

.admin-section-head-form {
  margin-bottom: 1.5rem;
}

.admin-section-title {
  margin: 0.38rem 0 0.2rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.form-block-title {
  position: relative;
  padding-top: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-block-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-wrap canvas {
  width: 100% !important;
}

.chart-wrap-lg {
  min-height: 320px;
}

.chart-wrap-lg canvas {
  height: 340px !important;
}

.chart-wrap-sm {
  min-height: 260px;
}

.chart-wrap-sm canvas {
  height: 280px !important;
}

.mini-kpi-list {
  display: grid;
  gap: 10px;
}

.mini-kpi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(22, 22, 22, 0.03);
  border: 1px solid rgba(22, 22, 22, 0.06);
}

.mini-kpi-item span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.mini-kpi-item strong {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
}

.history-filters {
  display: grid;
  grid-template-columns: 170px 190px minmax(240px, 1fr);
  gap: 10px;
}

.admin-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 22, 0.06);
  background: rgba(255, 255, 255, 0.75);
}

.admin-table-operations th,
.admin-table-operations td {
  white-space: nowrap;
}

.admin-table-operations td:nth-child(2) {
  min-width: 220px;
  white-space: normal;
}

.admin-table-operations td:nth-child(3),
.admin-table-operations td:nth-child(4) {
  min-width: 140px;
  white-space: normal;
}

.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom-width: 1px;
  white-space: nowrap;
  background: rgba(22, 22, 22, 0.02);
}

.table td {
  vertical-align: middle;
  font-size: 0.94rem;
}

.table-hover tbody tr:hover {
  background: rgba(185, 146, 63, 0.05);
}

.status-badge.status-fechado,
.status-badge.status-pago {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.status-badge.status-em-negociacao,
.status-badge.status-reservado,
.status-badge.status-pendente {
  background: rgba(217, 119, 6, 0.12);
  color: #9a3412;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.status-badge.status-disponivel,
.status-badge.status-ativo {
  background: rgba(185, 146, 63, 0.14);
  color: #8a651e;
  border: 1px solid rgba(185, 146, 63, 0.24);
}

.status-badge.status-cancelado,
.status-badge.status-inadimplente {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.16);
}

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

canvas {
  max-width: 100%;
}

/* RESPONSIVO */
@media (max-width: 991.98px) {
  :root {
    --header-height: 76px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header .container {
    min-height: var(--header-height);
  }

  .navbar-brand {
    max-width: 190px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .navbar .navbar-collapse {
    margin-top: 0.85rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .navbar-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .header-cta {
    margin-top: 1rem;
  }

  .header-cta .btn-gold {
    width: 100%;
    justify-content: center;
    box-shadow:
      0 12px 26px rgba(185, 146, 63, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 5rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.4rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .search-overlap {
    margin-top: -1.5rem;
  }

  .section-py {
    padding: 4.25rem 0;
  }

  .page-hero {
    padding: 3.5rem 0;
  }

  .main-property-image {
    height: 320px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .gallery-arrow-left {
    left: 10px;
  }

  .gallery-arrow-right {
    right: 10px;
  }

  .filter-box {
    position: static;
  }

  .admin-topbar {
    align-items: stretch;
  }

  .admin-topbar .actions {
    width: 100%;
  }

  .admin-commercial-shell {
    padding: 24px 0 48px;
  }

  .admin-hero-card {
    padding: 1.5rem;
  }

  .history-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-title h1,
  .section-title h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .property-card img {
    height: 230px;
  }

  .icon-circle {
    width: 54px;
    height: 54px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .text-muted-custom {
    font-size: 0.82rem;
  }

  .search-card,
  .info-card,
  .property-card,
  .testimonial-card,
  .value-card,
  .filter-box,
  .admin-card,
  .login-card {
    border-radius: 1rem;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-title {
    font-size: 1.65rem;
  }

  .footer-description {
    max-width: 100%;
    font-size: 0.93rem;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .chart-wrap canvas {
    height: 280px !important;
  }

  .admin-hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat-card-wide {
    grid-column: auto;
  }

  .admin-section-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    max-width: 165px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.54rem;
  }

  .navbar-toggler {
    padding: 0.4rem 0.58rem;
  }

  body {
    padding-top: 76px;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    line-height: 1.08;
  }

  .hero-badge {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .section-py {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 2.8rem 0;
  }

  .search-overlap {
    margin-top: -1rem;
  }

  .search-card {
    padding: 1.25rem !important;
  }

  .property-card .card-body {
    padding: 1.1rem;
  }

  .main-property-image {
    height: 240px;
  }

  .gallery-thumb {
    height: 84px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .footer {
    text-align: left;
  }

  .admin-card,
  .login-card {
    padding: 1.25rem;
  }

  .image-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-overlay {
    padding: 1rem;
  }

  .upload-overlay-card {
    padding: 1.35rem 1rem;
    border-radius: 1rem;
  }

  .upload-overlay-card h5 {
    font-size: 1rem;
  }

  .upload-overlay-card .progress {
    height: 22px;
  }

  #uploadProgressText {
    font-size: 0.86rem;
  }

  .admin-hero-title {
    font-size: 1.7rem;
  }

  .admin-hero-card,
  .admin-card-premium {
    border-radius: 20px;
  }
}