:root {
  --ink: #17211c;
  --muted: #647067;
  --line: #d8dfd6;
  --paper: #f4f1ea;
  --white: #ffffff;
  --forest: #1f3f36;
  --olive: #6e7f4f;
  --gold: #d7b96f;
  --brick: #a5523d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(244, 241, 234, 0.92);
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.btn.dark {
  color: var(--white);
  background: var(--ink);
}

.btn.primary {
  color: var(--ink);
  background: var(--gold);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 44px;
  align-items: end;
  padding: 92px clamp(18px, 5vw, 72px) 78px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.9) 0%, rgba(23, 33, 28, 0.62) 46%, rgba(23, 33, 28, 0.14) 100%),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.order-panel {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.panel-title {
  margin-bottom: 16px;
  color: var(--forest);
  font-weight: 800;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-grid div {
  min-height: 104px;
  padding: 16px;
  background: #f8f8f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-grid strong {
  font-size: 22px;
}

.filters-section,
.insight,
.lead-section {
  padding: 92px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading > p {
  color: var(--muted);
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) repeat(3, minmax(130px, 0.8fr)) auto;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(215, 185, 111, 0.42);
  border-color: var(--forest);
}

input[readonly] {
  background: #f6f6f2;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 18px;
}

.listing-toolbar p {
  margin: 0;
  color: var(--muted);
}

.listing-toolbar strong {
  color: var(--ink);
}

.listing-toolbar select {
  width: min(240px, 100%);
}

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

.property-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 63, 54, 0.35);
}

.property-image {
  position: relative;
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--brick);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.property-body {
  padding: 22px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.property-meta span {
  padding: 8px 10px;
  color: var(--forest);
  background: #eef2e8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.property-card p {
  color: var(--muted);
  line-height: 1.65;
}

.agent-line {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.property-price {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 24px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.card-actions .btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.btn.outline {
  color: var(--forest);
  border: 1px solid var(--line);
  background: var(--white);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 8px;
}

.insight {
  color: var(--white);
  background: var(--forest);
}

.insight {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 48px;
}

.insight-grid {
  display: grid;
  gap: 16px;
}

.insight article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.insight span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
}

.insight p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.62fr);
  gap: 42px;
  align-items: start;
}

.lead-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 15px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .section-heading,
  .insight,
  .lead-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .filters,
  .listing-grid,
  .status-grid,
  .card-actions,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-toolbar select {
    width: 100%;
  }

  .filters-section,
  .insight,
  .lead-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
