:root {
  color-scheme: light;
  --forest: #0f3329;
  --forest-2: #16483b;
  --ivory: #f8f3e9;
  --paper: #fffaf1;
  --charcoal: #252a27;
  --muted: #6b7069;
  --gold: #bd965a;
  --line: rgba(37, 42, 39, 0.12);
  --shadow: 0 24px 70px rgba(15, 51, 41, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.panel-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 243, 233, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--forest);
  color: var(--gold);
  border: 1px solid rgba(189, 150, 90, 0.55);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav a {
  padding: 8px 0;
}

.global-search {
  position: relative;
  display: grid;
  min-width: min(380px, 36vw);
}

.global-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.global-search input {
  min-height: 46px;
  padding: 0 44px 0 16px;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.98), rgba(255, 253, 248, 0.96)),
    #fffdf8;
  border-color: rgba(15, 51, 41, 0.2);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 51, 41, 0.08);
  font-size: 0.92rem;
}

.global-search::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.global-search::before {
  content: "";
  position: absolute;
  right: 14px;
  top: calc(50% + 7px);
  width: 8px;
  height: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: clamp(38px, 7vw, 84px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 58px);
  background:
    linear-gradient(120deg, rgba(15, 51, 41, 0.96), rgba(15, 51, 41, 0.82) 48%, rgba(248, 243, 233, 0.28)),
    var(--forest);
  color: var(--paper);
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-subhead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn-primary {
  background: var(--gold);
  color: #20180d;
}

.btn-primary:hover {
  background: #d6b16f;
}

.btn-secondary {
  border-color: rgba(189, 150, 90, 0.52);
  color: inherit;
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(189, 150, 90, 0.12);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 51, 41, 0) 45%, rgba(15, 51, 41, 0.68));
}

.market-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 176px;
  padding: 16px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(189, 150, 90, 0.38);
  border-radius: var(--radius);
  color: var(--forest);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.market-note span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.trust-strip a {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.trust-strip a:hover,
.trust-strip a.is-active {
  background: var(--forest);
  color: var(--gold);
}

.section,
.contact-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: end;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro-section p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.text-link,
.result-count {
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 850;
}

.listing-summary {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.db-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.db-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.db-status.is-live::before {
  background: #1f7a50;
}

.db-status.is-error::before {
  background: #9d2f27;
}

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

.property-grid.inventory-flash {
  animation: inventory-flash 900ms ease;
}

@keyframes inventory-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(189, 150, 90, 0);
  }

  35% {
    box-shadow: 0 0 0 8px rgba(189, 150, 90, 0.18);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(189, 150, 90, 0);
  }
}

.property-card {
  overflow: hidden;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(15, 51, 41, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.property-card:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 150, 90, 0.45);
  box-shadow: 0 22px 52px rgba(15, 51, 41, 0.13);
}

.property-grid.single-result {
  grid-template-columns: minmax(0, 760px);
}

.property-grid.single-result .property-card {
  border-color: rgba(189, 150, 90, 0.62);
  box-shadow: 0 24px 64px rgba(15, 51, 41, 0.16);
}

.property-grid.inventory-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.inventory-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(140px, 0.5fr) minmax(240px, 1fr) minmax(150px, 0.45fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 51, 41, 0.06);
}

.inventory-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.inventory-main h3 {
  font-size: 1.12rem;
}

.inventory-price {
  display: grid;
  gap: 4px;
}

.inventory-price span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-price strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.inventory-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inventory-actions {
  display: grid;
  gap: 8px;
}

.inventory-actions .btn {
  min-height: 40px;
  padding-inline: 12px;
  font-size: 0.8rem;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--forest);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(37, 42, 39, 0.1);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.sold,
.badge.reserved {
  background: rgba(37, 42, 39, 0.78);
  color: #fffaf1;
}

.badge.available {
  background: rgba(15, 51, 41, 0.92);
  color: var(--gold);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.price {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.listing-code {
  margin: -4px 0 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
}

.spec {
  min-height: 32px;
  padding: 7px 10px;
  background: rgba(15, 51, 41, 0.055);
  border-radius: 999px;
  color: #3d453f;
  font-size: 0.78rem;
  font-weight: 750;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.card-actions .btn {
  flex: 1;
  min-height: 42px;
  padding-inline: 12px;
  font-size: 0.82rem;
}

.database-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px;
  background: rgba(15, 51, 41, 0.96);
  border: 1px solid rgba(189, 150, 90, 0.36);
  border-radius: var(--radius);
  color: var(--paper);
}

.database-strip span,
.database-strip small {
  display: block;
}

.database-strip span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.database-strip strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.database-strip small {
  margin-top: 4px;
  color: rgba(255, 250, 241, 0.72);
}

.database-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: #fffdf8;
  border: 1px solid rgba(37, 42, 39, 0.16);
  border-radius: 6px;
  color: var(--charcoal);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(189, 150, 90, 0.45);
  border-color: var(--gold);
}

.btn-filter {
  background: var(--forest);
  color: var(--paper);
}

.state {
  padding: 22px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.state strong,
.state span {
  display: block;
}

.state strong {
  color: var(--forest);
  margin-bottom: 6px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  background: var(--forest);
  color: var(--paper);
}

.contact-section p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 250, 241, 0.78);
  line-height: 1.7;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(189, 150, 90, 0.38);
  border-radius: var(--radius);
}

.contact-card a,
.contact-card span {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.detail-panel.is-open {
  display: block;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(15, 51, 41, 0.64);
  cursor: pointer;
}

.detail-card {
  position: absolute;
  inset: 18px 18px 18px auto;
  display: grid;
  grid-template-rows: minmax(260px, 42svh) 1fr;
  width: min(820px, calc(100% - 36px));
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.5);
  border-radius: 50%;
  background: rgba(15, 51, 41, 0.82);
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.detail-media {
  position: relative;
  background: var(--forest);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-link {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-height: 40px;
  padding: 10px 14px;
  background: rgba(255, 250, 241, 0.92);
  border-radius: var(--radius);
  color: var(--forest);
  font-weight: 850;
}

.detail-content {
  padding: clamp(22px, 4vw, 38px);
}

.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.location {
  margin: 10px 0 22px;
  color: var(--muted);
  font-weight: 750;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.spec-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.spec-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.spec-card strong {
  display: block;
  margin-top: 4px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h3 {
  margin-bottom: 12px;
  color: var(--forest);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.description {
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #3f4741;
  line-height: 1.72;
  white-space: pre-line;
}

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

.record-item {
  min-width: 0;
  padding: 13px;
  background: rgba(15, 51, 41, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-item.wide {
  grid-column: 1 / -1;
}

.record-item span,
.record-item strong {
  display: block;
}

.record-item span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-item strong {
  margin-top: 5px;
  color: var(--charcoal);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (max-width: 1120px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-row {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.45fr);
  }

  .inventory-specs,
  .inventory-actions {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

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

  .global-search {
    width: 100%;
    min-width: 0;
  }

  .hero,
  .intro-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 330px;
  }

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

  .trust-strip a:last-child {
    grid-column: 1 / -1;
  }

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

  .listing-summary {
    justify-items: start;
  }

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

  .database-actions,
  .database-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand strong,
  .brand small {
    white-space: normal;
  }

  .property-grid,
  .spec-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .inventory-actions,
  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .inventory-row,
  .inventory-actions {
    grid-template-columns: 1fr;
  }

  .detail-card {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }

  .market-note {
    left: 14px;
    right: 14px;
  }
}
