:root {
  --ink: #10221f;
  --muted: #60706b;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #dfe4dd;
  --mint: #bde8d7;
  --gold: #d8b15f;
  --clay: #bb6f55;
  --blue: #376a8a;
  --shadow: 0 18px 50px rgba(16, 34, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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: 16px;
  padding: 12px 18px;
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(16, 34, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  background: #e9f6ef;
  border: 1px solid rgba(47, 107, 94, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(47, 107, 94, 0.12);
}

.top-nav {
  display: none;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  display: grid;
  gap: 22px;
  min-height: auto;
  padding: 34px 18px 24px;
  background:
    linear-gradient(135deg, rgba(189, 232, 215, 0.75), rgba(247, 245, 239, 0.2) 45%),
    linear-gradient(165deg, rgba(55, 106, 138, 0.15), transparent 55%);
}

.seo-hero {
  min-height: auto;
}

.hero-copy {
  align-self: center;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 11vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  color: #344641;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.42);
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.benefit-grid article,
.insight-list article,
.listing-card {
  border-radius: 8px;
}

.listing-meta,
.card-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.quick-panel button {
  min-height: 52px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 34, 31, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 34, 31, 0.08);
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.keyword-panel {
  align-content: start;
}

.keyword-panel span {
  min-height: 48px;
  padding: 13px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 34, 31, 0.14);
  border-radius: 8px;
  font-weight: 850;
}

.search-strip {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  background: var(--ink);
}

.search-strip a {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: #f8f5ed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.9rem;
}

.section {
  padding: 56px 18px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin-bottom: 24px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.benefit-grid,
.listing-grid,
.district-grid,
.insight-list {
  display: grid;
  gap: 14px;
}

.benefit-grid article {
  min-height: 210px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.benefit-grid p,
.listing-card p,
.site-footer p,
details p {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--clay);
  font-weight: 900;
}

.listings-section {
  background: #eef4f0;
}

.listing-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.toolbar {
  position: sticky;
  top: 59px;
  z-index: 15;
  display: grid;
  gap: 10px;
  margin: 0 -18px 18px;
  padding: 12px 18px;
  background: rgba(238, 244, 240, 0.94);
  border-top: 1px solid rgba(16, 34, 31, 0.08);
  border-bottom: 1px solid rgba(16, 34, 31, 0.08);
  backdrop-filter: blur(16px);
}

.toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  font: inherit;
}

.listing-card {
  display: grid;
  gap: 12px;
  min-height: 236px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgba(16, 34, 31, 0.1);
}

.listing-card.value-pick {
  border-color: rgba(187, 111, 85, 0.38);
  box-shadow: 0 14px 34px rgba(187, 111, 85, 0.12);
}

.listing-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.listing-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.price {
  white-space: nowrap;
  color: var(--clay);
  font-weight: 900;
}

.value-note {
  margin: -4px 0 0;
  color: var(--clay);
  font-size: 0.92rem;
  font-weight: 850;
}

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

.chips span {
  padding: 7px 9px;
  background: #edf2ed;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.listing-card .button {
  width: 100%;
  margin-top: auto;
}

.investor-band {
  display: grid;
  gap: 22px;
  color: #f9f5eb;
  background: var(--ink);
}

.investor-band .eyebrow,
.investor-band span {
  color: #b7c9c2;
}

.investor-band h2 {
  max-width: 840px;
}

.insight-list article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.insight-list strong,
.insight-list span {
  display: block;
}

.insight-list span {
  margin-top: 8px;
  line-height: 1.45;
}

.district-grid a {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.faq-section {
  padding-top: 18px;
}

.seo-copy {
  background: var(--paper);
}

details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 850;
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 28px 18px 40px;
  color: #f8f5ed;
  background: #0a1513;
}

.site-footer a {
  justify-self: start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

@media (min-width: 720px) {
  .site-header,
  .hero,
  .section,
  .search-strip,
  .site-footer {
    padding-left: 34px;
    padding-right: 34px;
  }

  .top-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    align-items: center;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 180px 220px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    border: 0;
  }

  .benefit-grid,
  .listing-grid,
  .district-grid,
  .insight-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .site-header,
  .hero,
  .section,
  .search-strip,
  .site-footer {
    padding-left: max(48px, calc((100vw - 1180px) / 2));
    padding-right: max(48px, calc((100vw - 1180px) / 2));
  }

  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }
}
