:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #111111;
  --text: #181818;
  --muted: #6c655d;
  --line: #ded6ca;
  --gold: #b28a4b;
  --gold-dark: #8a672f;
  --green: #1e7d45;
  --yellow: #a36b00;
  --red: #aa2f2f;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 16, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 214, 202, 0.75);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 74px;
  height: 54px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  letter-spacing: -0.02em;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #37332d;
  font-size: 0.94rem;
}

.nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-color: var(--gold);
}

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.94rem;
}

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

.primary {
  background: var(--surface-2);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.secondary {
  background: var(--gold);
  color: #fff;
}

.ghost {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 5rem);
  max-width: 780px;
  margin-top: 22px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.62;
  max-width: 680px;
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: var(--surface-2);
  color: #fff;
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 138, 75, 0.45), transparent 64%);
  top: -72px;
  right: -62px;
}

.hero-logo {
  background: #fff;
  border-radius: 28px;
  padding: 18px;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.hero-card h3 {
  margin-top: 22px;
  color: #fff;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

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

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
}

.metric span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.85rem;
  margin-top: 4px;
}

.section {
  padding: 76px 0;
}

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

.section-head p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 12px 0 0;
}

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

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

.info-card,
.card-item,
.form-card,
.admin-box,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-card span.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f4ead9;
  color: var(--gold-dark);
  border-radius: 14px;
  font-weight: 900;
  margin-bottom: 18px;
}

.info-card p,
.content-card p,
.form-card p {
  color: var(--muted);
  line-height: 1.65;
}

.dark-band {
  background: #111;
  color: #fff;
  border-radius: 36px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.dark-band p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.step strong:first-child {
  background: var(--gold);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.chip,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.chip {
  background: #f4ead9;
  color: var(--gold-dark);
}

.status {
  background: #eeeeee;
  color: #333;
}

.status.disponivel {
  background: rgba(30, 125, 69, 0.12);
  color: var(--green);
}

.status.reservada {
  background: rgba(163, 107, 0, 0.14);
  color: var(--yellow);
}

.status.vendida {
  background: rgba(170, 47, 47, 0.12);
  color: var(--red);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.price-grid div,
.card-line {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.price-grid span,
.card-line span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.price-grid strong,
.card-line strong {
  display: block;
  line-height: 1.35;
}

.card-line {
  margin-top: 12px;
}

.note {
  color: var(--muted);
  line-height: 1.55;
  margin: 16px 0 0;
}

.legal-small {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.78rem;
  margin: 14px 0 0;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr) auto;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #34302a;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.page-title {
  padding: 64px 0 22px;
}

.page-title p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.footer {
  padding: 42px 0;
  background: #111;
  color: #fff;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer p,
.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer strong {
  color: #fff;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary div {
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 18px;
}

.admin-summary strong,
.admin-summary span {
  display: block;
}

.admin-summary strong {
  font-size: 1.5rem;
}

.admin-summary span {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 3px;
  font-size: 0.84rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f4ead9;
  font-size: 0.85rem;
}

td small {
  color: var(--muted);
}

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

.table-actions button,
.admin-tools button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

[hidden] {
  display: none !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: auto;
}

@media (max-width: 980px) {
  .hero-grid,
  .dark-band,
  .grid-2,
  .grid-3,
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .filters,
  .form-grid,
  .price-grid,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .dark-band {
    padding: 28px;
    border-radius: 26px;
  }

  .brand-text span {
    display: none;
  }
}

/* Logo atualizada em PNG transparente */

.logo-box {
  width: 58px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 auto;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  font-size: 1.08rem;
}

.brand-text span {
  font-size: 0.8rem;
}

.hero-logo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 22px;
  min-height: 240px;
}

.hero-logo img {
  max-height: 220px;
  margin: 0 auto;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 5px;
  flex: 0 0 auto;
}

.footer-legal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-legal p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .logo-box {
    width: 52px;
    height: 38px;
  }

  .hero-logo {
    min-height: 190px;
  }

  .hero-logo img {
    max-height: 175px;
  }
}

/* Ajuste do cabeçalho para manter a logo sempre visível */
.header-inner {
  padding: 10px 0;
  flex-wrap: wrap;
}

.logo-wrap {
  min-width: max-content;
  flex: 0 0 auto;
}

.nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 1080px) and (min-width: 761px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 12px 0 10px;
  }

  .logo-wrap {
    justify-content: center;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(222, 214, 202, 0.75);
  }

  .nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 0;
  }

  .logo-wrap {
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .nav {
    flex-wrap: nowrap;
  }
}



/* Correção mobile do cabeçalho e hero */
.header {
  overflow: visible;
}

.logo-wrap {
  min-width: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text strong,
.brand-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric strong {
  overflow-wrap: normal;
  word-break: keep-all;
}

@media (max-width: 760px) {
  .header {
    position: sticky;
  }

  .header-inner {
    min-height: 88px;
    padding: 10px 0;
  }

  .logo-wrap {
    max-width: calc(100% - 118px);
    gap: 10px;
  }

  .logo-box {
    width: 78px;
    height: 58px;
  }

  .brand-text strong {
    font-size: 1.28rem;
    line-height: 1.1;
  }

  .hero {
    padding: 34px 0 48px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-card {
    margin-top: 4px;
    padding: 24px;
    border-radius: 28px;
  }

  .hero-card h3 {
    margin-top: 0;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-logo {
    display: none;
  }

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

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .metric {
    padding: 14px 10px;
    border-radius: 18px;
  }

  .metric strong {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .metric span {
    font-size: 0.82rem;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .brand-text strong {
    font-size: 1.18rem;
  }

  .logo-box {
    width: 70px;
    height: 52px;
  }

  .menu-button {
    padding: 13px 16px;
  }

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

  .metric {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 8px;
  }

  .metric span {
    margin-top: 0;
  }
}


.contact-emoji {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}


/* Correção dos ícones na área de contato */
.contact-list {
  align-items: start;
}

.contact-item {
  min-height: 28px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  object-fit: contain;
  object-position: center;
  display: inline-block;
}

.footer .contact-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
}

@media (max-width: 760px) {
  .content-card .contact-list {
    gap: 14px;
  }

  .content-card .contact-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
}


/* Correção stack métricas mobile v3 */
@media (max-width: 760px) {
  .metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric {
    display: block;
    padding: 16px 14px;
    min-height: auto;
  }

  .metric strong {
    display: block;
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .metric span {
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    display: block;
  }
}


/* Melhorias v6 */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e7d45;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.floating-whatsapp img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.card-item.highlight-reserved {
  border-color: rgba(163, 107, 0, 0.38);
  background: linear-gradient(180deg, #fff, #fff8eb);
}

.card-actions.compact {
  margin-top: 12px;
}

.detail-shell {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 22px;
  align-items: start;
}

.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.detail-list span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-bottom: 5px;
}

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

.admin-filters {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 10px;
  margin: 14px 0;
}

.inline-edit {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.inline-edit select,
.inline-edit input {
  padding: 9px 10px;
  border-radius: 11px;
  font-size: .9rem;
}

.admin-note {
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f4ead9;
  color: var(--gold-dark);
  font-weight: 900;
  font-size: .78rem;
}

.status.arquivada {
  background: rgba(108,101,93,.14);
  color: var(--muted);
}

.sell-success {
  border: 1px solid rgba(30, 125, 69, .22);
  background: rgba(30, 125, 69, .08);
  color: var(--green);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .detail-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .floating-whatsapp {
    left: 16px;
    right: 16px;
    justify-content: center;
    bottom: 14px;
  }

  body {
    padding-bottom: 74px;
  }

  .detail-title-row,
  .admin-section-title {
    display: block;
  }
}


/* Correção da logo do WhatsApp v6.1 */
.contact-item .contact-icon[alt="WhatsApp"],
.floating-whatsapp img[alt="WhatsApp"] {
  border-radius: 0;
  background: transparent;
}

.contact-item .contact-icon[alt="WhatsApp"] {
  width: 24px;
  height: 24px;
}

.floating-whatsapp img[alt="WhatsApp"] {
  width: 22px;
  height: 22px;
}


/* Botão flutuante WhatsApp somente ícone v6.2 */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: #1e7d45;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.floating-whatsapp img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .floating-whatsapp {
    left: auto;
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  body {
    padding-bottom: 0;
  }
}
