:root {
  --bg: #0b0b0d;
  --bg-2: #101117;
  --bg-3: #161922;
  --panel: rgba(18, 19, 25, 0.88);
  --panel-solid: #151822;
  --panel-soft: rgba(255, 255, 255, 0.03);
  --text: #f5f1e8;
  --muted: #bfb4a3;
  --muted-2: #95897a;
  --gold: #caa15f;
  --gold-2: #e6c992;
  --gold-3: #f3dfbc;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(202, 161, 95, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(202, 161, 95, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(180deg, #0a0a0c 0%, #0d0e12 32%, #10131a 100%);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* TOPO */
.topbar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 30%, rgba(202, 161, 95, 0.04) 100%),
    #09090b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner,
.nav-wrap,
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar-inner {
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
}

.social-mini,
.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.social-mini a,
.menu a {
  color: var(--muted);
  position: relative;
}

.social-mini a:hover,
.menu a:hover,
.admin-table a:hover {
  color: var(--gold-2);
}

.menu a::after,
.social-mini a::after,
.footer-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-3));
  transition: width 0.25s ease;
}

.menu a:hover::after,
.social-mini a:hover::after,
.footer-grid a:hover::after {
  width: 100%;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 10, 14, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.nav-wrap {
  padding: 10px 0;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  position: relative;
}

.brand::before {
  content: "";
  position: absolute;
  inset: 12px -8px;
  background: radial-gradient(circle, rgba(202, 161, 95, 0.18), transparent 70%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

.brand img {
  position: relative;
  z-index: 1;
  height: 110px;
  width: auto;
  object-fit: contain;
  margin: -10px 0;
}

/* HERO */
.hero,
.property-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg,
.property-hero {
  background-size: cover;
  background-position: center;
}

.hero-bg,
.hero-overlay,
.property-hero .overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay,
.property-hero .overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.88) 8%, rgba(10, 12, 17, 0.42) 58%, rgba(8, 8, 11, 0.78) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.hero-content,
.property-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: end;
  padding: 92px 0 76px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1,
.inner-hero h1,
.property-hero h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.lead {
  max-width: 620px;
  color: #e2d7c6;
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.24em;
  color: var(--gold-2);
  font-size: 0.80rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}

.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-2), transparent);
}

/* CARDS E FORMULÁRIOS */
.search-card,
.lead-form,
.detail-box,
.auth-card,
.stat-card,
.text-block,
.admin-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(17, 19, 26, 0.86);
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.search-card,
.lead-form,
.auth-card,
.admin-form {
  padding: 26px;
}

.search-card {
  position: relative;
  overflow: hidden;
}

.search-card::before,
.detail-box::before,
.text-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 201, 146, 0.75), transparent);
}

.search-card label,
.admin-form label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.search-card input,
.search-card select,
.lead-form input,
.lead-form textarea,
.auth-card input,
.admin-form input,
.admin-form textarea,
.filter-bar input,
.filter-bar select {
  width: 100%;
  margin-top: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 14px 15px;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.search-card input:focus,
.search-card select:focus,
.lead-form input:focus,
.lead-form textarea:focus,
.auth-card input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(230, 201, 146, 0.6);
  box-shadow: 0 0 0 4px rgba(202, 161, 95, 0.08);
  transform: translateY(-1px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #bc9051, var(--gold-2));
  color: #111;
  box-shadow: 0 12px 28px rgba(202, 161, 95, 0.24);
}

.btn-gold:hover {
  box-shadow: 0 16px 34px rgba(202, 161, 95, 0.30);
}

.btn-outline {
  border-color: var(--line-gold);
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  border-color: rgba(230, 201, 146, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

/* SEÇÕES */
.section {
  padding: 84px 0;
}

.dark-section {
  background:
    radial-gradient(circle at top center, rgba(202, 161, 95, 0.14), transparent 20%),
    radial-gradient(circle at 50% 0%, rgba(230, 201, 146, 0.08), transparent 12%),
    linear-gradient(180deg, #101219 0%, #0c0d11 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2,
.about-grid h2 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
}

/* CARDS DE IMÓVEIS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-grid-list {
  grid-template-columns: repeat(3, 1fr);
}

.property-card {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(17, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.property-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 201, 146, 0.8), transparent);
  z-index: 1;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 201, 146, 0.30);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.property-image {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.property-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.72));
}

.property-body {
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(202, 161, 95, 0.12);
  border: 1px solid var(--line-gold);
  font-size: 12px;
  color: var(--gold-2);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-body h3 {
  margin: 0 0 10px;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

.property-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  color: #ddd2c2;
  font-size: 14px;
}

.property-meta span {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 999px;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.property-footer strong,
.big-price {
  font-size: 1.5rem;
  color: var(--gold-2);
  letter-spacing: -0.02em;
}

/* SOBRE */
.about-slice {
  background:
    radial-gradient(circle at left top, rgba(202, 161, 95, 0.16), transparent 20%),
    radial-gradient(circle at 18% 14%, rgba(230, 201, 146, 0.08), transparent 10%),
    #0a0a0c;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
  align-items: center;
}

.portrait-wrap {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #171a22, #09090b);
  box-shadow: var(--shadow);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 12, 0.55));
}

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

/* FOOTER */
.footer {
  padding: 56px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at bottom center, rgba(202, 161, 95, 0.06), transparent 35%),
    #09090b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-grid a {
  display: inline-block;
  color: var(--muted);
  margin: 8px 0;
  position: relative;
}

.footer-logo {
  height: 88px;
  margin-bottom: 10px;
}

.footer-title {
  font-size: 1.55rem;
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}

.footer h4 {
  font-size: 1.05rem;
  margin: 6px 0 18px;
  color: var(--gold-3);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 30px;
  padding-top: 22px;
  text-align: center;
}

.copyright {
  color: var(--muted-2);
  font-size: 14px;
}

.developer-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}

.developer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
}

.developer-brand img {
  height: 30px;
  width: auto;
}

.developer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* PÁGINAS INTERNAS */
.inner-hero {
  padding: 110px 0 54px;
  background:
    radial-gradient(circle at top left, rgba(202, 161, 95, 0.14), transparent 34%),
    linear-gradient(180deg, #0b0b0d 0%, #11131a 100%);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr) auto;
  gap: 12px;
  margin-bottom: 30px;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.detail-box {
  position: relative;
  padding: 28px;
}

.property-meta.mega span {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.charges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #ddd2c2;
  margin-top: 20px;
}

.gallery-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  height: 190px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* ALERTAS */
.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.alert.success {
  background: rgba(74, 140, 84, 0.18);
  border: 1px solid rgba(74, 140, 84, 0.4);
}

.alert.error {
  background: rgba(179, 72, 72, 0.14);
  border: 1px solid rgba(179, 72, 72, 0.35);
}

/* LOGIN / ADMIN */
.auth-page,
.admin-page {
  background:
    radial-gradient(circle at top left, rgba(202, 161, 95, 0.08), transparent 25%),
    linear-gradient(180deg, #0b0b0d, #13151c);
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}

.auth-card {
  width: min(460px, 92%);
  text-align: center;
}

.auth-card img {
  height: 76px;
  margin-bottom: 12px;
}

.center {
  text-align: center;
}

.admin-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  background: #0a0a0c;
}

.admin-container {
  padding: 30px 0 60px;
}

.admin-title {
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 26px;
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 6px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: #111216;
  margin-bottom: 24px;
}

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.admin-form {
  padding: 26px;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.check-row input {
  width: auto;
}

.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

/* RESPONSIVO */
@media (max-width: 980px) {
  .hero-content,
  .property-hero-content,
  .about-grid,
  .property-detail-grid,
  .footer-grid,
  .cards-grid,
  .cards-grid-list,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .menu {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-content {
    padding: 54px 0 40px;
  }

  .property-image {
    height: 240px;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .nav-wrap,
  .admin-nav,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    height: 74px;
    margin: 0;
  }

  .hero-copy h1,
  .property-hero h1,
  .inner-hero h1 {
    font-size: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    gap: 10px;
    padding-top: 18px;
  }

  .developer-inline {
    justify-content: center;
    gap: 8px;
  }

  .developer-brand img {
    height: 24px;
  }

  .developer-name {
    font-size: 14px;
  }

  .copyright {
    font-size: 13px;
  }

  .section {
    padding: 68px 0;
  }

  .property-card {
    border-radius: 22px;
  }

  .property-image {
    height: 220px;
  }
}
