:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647067;
  --line: #d7ded5;
  --field: #f6f8f2;
  --paper: #ffffff;
  --brand: #1f6b4a;
  --brand-dark: #154b36;
  --gold: #c89334;
  --sky: #dcecf3;
  --shadow: 0 18px 42px rgba(23, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.top-strip {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 8px clamp(18px, 4vw, 56px);
  background: #14231b;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.top-strip span {
  margin-right: auto;
  color: #d8bd6a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--brand);
  color: white;
  font-weight: 800;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: #2d3a31;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 19, 0.82), rgba(16, 26, 19, 0.26) 62%),
    linear-gradient(0deg, rgba(16, 26, 19, 0.62), rgba(16, 26, 19, 0.02) 46%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 4vw, 56px) clamp(60px, 12vh, 118px);
  color: white;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.hero-overlay p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

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

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

.primary,
button {
  background: var(--gold);
  color: #1d160a;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1100px, calc(100% - 36px));
  margin: 18px auto 54px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-stats article {
  padding: 22px;
  background: var(--paper);
}

.quick-stats strong {
  display: block;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.land-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -46px auto 18px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.land-types article {
  min-height: 104px;
  padding: 18px;
  background: var(--paper);
}

.land-types span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.land-types strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.05;
}

.toolbar,
.section-heading,
.lot-grid,
.map-section,
.services,
.notice,
.contact {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1fr 0.9fr;
  gap: 14px;
  margin-bottom: 44px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: #2d3a31;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d1c8;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.section-heading {
  margin-bottom: 20px;
}

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

.lot-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 33, 27, 0.08);
}

.lot-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7f8f4;
}

.lot-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.map-image-link:hover img,
.map-image-link:focus-visible img {
  filter: saturate(1.1) contrast(1.05);
}

.lot-media span {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #25342c;
  font-size: 12px;
  font-weight: 900;
}

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: white;
  border-radius: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.status.sold {
  background: #b3202f;
  color: white;
}

.status.pending {
  background: #f1d38a;
  color: #3e2c07;
}

.status.coming-up {
  background: #e7eef8;
  color: #193b66;
}

.lot-card.sold {
  opacity: 0.78;
}

.lot-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.lot-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.lot-title h3 {
  margin: 0;
  font-size: 20px;
}

.price {
  white-space: nowrap;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

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

.meta span {
  padding: 10px;
  background: var(--field);
  border-radius: 8px;
  color: #314039;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.restrictions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.restriction-title {
  display: block;
  margin-bottom: 8px;
  color: #25342c;
  font-size: 13px;
}

.restrictions li {
  padding: 7px 9px;
  background: #eef4ef;
  border: 1px solid #d9e5dc;
  border-radius: 8px;
  color: #33423a;
  font-size: 12px;
  font-weight: 800;
}

.lot-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: auto;
}

.lot-actions a,
.disabled-action {
  display: grid;
  min-height: 42px;
  padding: 8px 10px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.lot-actions a:first-child {
  background: var(--brand);
  color: white;
}

.lot-actions a:nth-child(2) {
  background: #edf2f4;
  color: #1e2c24;
}

.lot-actions a:last-child {
  background: #f6edd8;
  color: #38290e;
}

.disabled-action {
  background: #eef0eb;
  color: #79847b;
}

.map-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 76px;
}

.services {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 76px;
}

.services > div {
  padding-right: 20px;
}

.services article,
.notice {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.services h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.services p,
.notice p {
  color: var(--muted);
  line-height: 1.65;
}

.services a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 14px;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  font-weight: 900;
}

.notice {
  margin-bottom: 76px;
  border-left: 6px solid var(--gold);
}

.notice h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.map-section p:not(.eyebrow),
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.map-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(135deg, #d3e6d1, #9ebc87 45%, #d9c08d);
  background-size:
    48px 48px,
    48px 48px,
    auto;
}

.map-frame span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 12px;
  background: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 42%;
  width: 28px;
  height: 28px;
  background: #b3202f;
  border: 4px solid white;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
  transform: rotate(-45deg);
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 70px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

address {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: #304036;
  font-style: normal;
  line-height: 1.5;
}

address strong {
  margin-top: 8px;
  color: var(--ink);
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

form label:nth-child(3),
form label:nth-child(4),
form button {
  grid-column: 1 / -1;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .toolbar,
  .lot-grid,
  .map-section,
  .services,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .lot-grid {
    max-width: 640px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .top-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .top-strip span {
    margin-right: 0;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    margin-bottom: 44px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .land-types {
    grid-template-columns: 1fr;
  }

  .lot-title,
  footer {
    flex-direction: column;
  }

  .price {
    text-align: left;
    white-space: normal;
  }

  .lot-actions,
  .meta,
  form {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .contact {
    padding: 14px;
  }

  .lot-body {
    padding: 16px;
  }
}
