:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --card: #ffffff;
  --ink: #111817;
  --muted: #5e6864;
  --line: #ddd7cc;
  --red: #c83221;
  --red-dark: #9f2619;
  --green: #153d36;
  --soft-red: #fff1ee;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(17, 24, 23, 0.1);
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.language-nav a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.language-nav a:hover,
.language-nav a.active {
  border-color: #f0c8c0;
  background: var(--soft-red);
  color: var(--red);
}

.kicker {
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.address {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 850;
}

.subtitle {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 750;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.price,
.call-button,
.facts li,
.contact-strip {
  border-radius: 6px;
}

.price {
  padding: 14px 16px;
  background: var(--soft-red);
  border: 1px solid #f0c8c0;
}

.price span {
  display: block;
  color: var(--red);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.price small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.call-button:hover {
  background: var(--red-dark);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  position: relative;
  min-height: 48px;
  padding: 12px 12px 12px 38px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  font-weight: 800;
  line-height: 1.25;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 4px #fff;
}

.location-text,
.search-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.search-text {
  padding-top: 2px;
}

.top-media a,
.gallery a {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}

.top-media {
  display: grid;
  gap: 12px;
}

.lead-photo img {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.satellite-photo {
  justify-self: end;
  width: min(82%, 430px);
}

.satellite-photo img {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.maps-button {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px 0 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(17, 24, 23, 0.08);
}

.maps-button:hover {
  border-color: #f0c8c0;
  color: var(--red);
}

.maps-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc04 0 75%, #ea4335 0);
  transform: translateY(-50%);
  flex: 0 0 auto;
}

.maps-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.maps-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 9px;
  top: 9px;
  border-radius: 50%;
  background: #4285f4;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
  margin-top: 16px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.gallery img {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.gallery a,
.gallery .map-link {
  grid-column: 1 / -1;
}

.gallery .map-link img {
  height: auto;
  max-height: none;
  object-fit: cover;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: var(--green);
  color: #fff;
}

.contact-strip div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-strip span {
  color: rgba(255, 255, 255, 0.76);
}

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

  .lead-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 20px, 520px);
    margin: 10px auto;
  }

  .listing {
    gap: 16px;
    padding: 14px;
  }

  .price-row,
  .facts,
  .gallery {
    grid-template-columns: 1fr;
  }

  .satellite-photo {
    justify-self: stretch;
    width: 100%;
  }

  .maps-button {
    justify-self: stretch;
    justify-content: center;
  }

  .satellite-photo img {
    height: 300px;
  }

  .gallery img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery .map-link img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .call-button {
    width: 100%;
  }

  .contact-strip {
    align-items: stretch;
    flex-direction: column;
  }
}
