:root {
  --bg: #f4f7f9;
  --panel: #ffffff;
  --ink: #102033;
  --charcoal: #1d2b3a;
  --muted: #667789;
  --line: #d8e1e8;
  --soft-line: #e6edf2;
  --blue: #183b5b;
  --blue-dark: #0f2a42;
  --blue-soft: #dfeaf2;
  --blue-pale: #eef4f8;
  --accent: #6f91ad;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

main {
  overflow: hidden;
}

.page-width {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 28px 34px;
  background: var(--bg);
  color: var(--blue-dark);
  border-bottom: 1px solid var(--line);
}

.brand,
.site-nav a {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
}

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

/* Hero */

.hero {
  position: relative;
  background: var(--blue-pale);
}

.hero-image {
  margin: 0;
}

.hero-image img {
  width: 100%;
  height: 82vh;
  object-fit: cover;
}

.hero-image::after {
  content: none;
}

.hero-overlay {
  position: static;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 58px;
  color: var(--ink);
}

.kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 116px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--blue-dark);
}

.hero-overlay p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

/* Listing intro */

.listing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: end;
  padding: 74px 0 42px;
  border-bottom: 1px solid var(--line);
}

.listing-title h2,
.section-heading h2,
.appointment-copy h2,
.gallery-title h1 {
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--blue-dark);
}

.listing-price {
  min-width: 250px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.listing-price span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.listing-price strong {
  display: block;
  color: var(--blue-dark);
  font-size: 21px;
  font-weight: 400;
}

/* Stats */

.listing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.listing-stats div {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--line);
}

.listing-stats div + div {
  padding-left: 26px;
}

.listing-stats div:last-child {
  border-right: 0;
}

.listing-stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
  color: var(--blue-dark);
}

.listing-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons */

.listing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px 0 72px;
}

.button,
.contact-section a,
.appointment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.contact-section a:hover,
.appointment-form button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--blue-dark);
}

.button-secondary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* Story */

.property-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 76px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-meta dl {
  margin: 0;
}

.story-meta div {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.story-meta div:last-child {
  margin-bottom: 0;
}

.story-meta dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.story-copy {
  max-width: 820px;
}

.story-copy p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.story-copy p + p {
  margin-top: 34px;
  color: var(--muted);
}

/* Section headings */

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

/* Preview gallery */

.preview-gallery-section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.preview-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--blue-soft);
}

.preview-gallery img {
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 220ms ease, opacity 220ms ease;
}

.preview-gallery figure:hover img {
  transform: scale(1.018);
  opacity: 0.94;
}

.preview-large {
  grid-column: span 2;
  grid-row: span 2;
}

.preview-large img {
  aspect-ratio: 4 / 3;
}

.center-button {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* Details */

.details-section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-columns article {
  padding: 30px 28px 34px 0;
  border-right: 1px solid var(--line);
}

.detail-columns article + article {
  padding-left: 28px;
}

.detail-columns article:last-child {
  border-right: 0;
}

.detail-columns h3 {
  margin: 0 0 20px;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.detail-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-columns li + li {
  margin-top: 10px;
}

/* Appointment */

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.58fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.appointment-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.appointment-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  padding: 13px 14px;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 145, 173, 0.18);
}

.appointment-form textarea {
  resize: vertical;
  min-height: 140px;
}

.website-field {
  display: none;
}

.radio-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 4px;
  border: 0;
}

.radio-group legend {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
}

.radio-group input {
  width: auto;
  margin: 0;
}

/* Contact */

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

/* Gallery page */

.gallery-title {
  padding: 90px 0 54px;
  border-bottom: 1px solid var(--line);
}

.gallery-title p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.full-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 56px 0 78px;
  border-bottom: 1px solid var(--line);
}

.full-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--blue-soft);
}

.full-gallery img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.full-gallery a:hover img {
  transform: scale(1.018);
  opacity: 0.94;
}

/* Responsive */

@media (max-width: 980px) {
  .site-header {
    padding: 28px 24px;
  }

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

  .hero-overlay {
    width: min(100% - 48px, 1240px);
    padding: 34px 0 44px;
  }

  .listing-intro,
  .property-story,
  .appointment-section {
    grid-template-columns: 1fr;
  }

  .listing-price {
    width: 100%;
  }

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

  .listing-stats div:nth-child(2) {
    border-right: 0;
  }

  .listing-stats div:nth-child(3),
  .listing-stats div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .detail-columns {
    grid-template-columns: 1fr;
  }

  .detail-columns article,
  .detail-columns article + article {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-columns article:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 640px) {
  .page-width {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    display: block;
  }

  .site-nav {
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 14px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 72px);
    letter-spacing: -0.03em;
  }

  .listing-intro {
    padding-top: 54px;
  }

  .listing-actions {
    display: grid;
    justify-content: stretch;
  }

  .button,
  .contact-section a,
  .appointment-form button {
    width: 100%;
  }

  .listing-stats,
  .preview-gallery,
  .full-gallery {
    grid-template-columns: 1fr;
  }

  .listing-stats div,
  .listing-stats div + div {
    padding: 24px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .listing-stats div:first-child {
    border-top: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 14px;
  }

  .appointment-form {
    padding: 22px;
  }

  .contact-section {
    display: block;
  }

  .contact-section a {
    margin-top: 20px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

.availability-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.availability-grid legend {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.availability-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.availability-row > span {
  color: var(--blue-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-head {
  padding-top: 0;
}

.availability-head span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.availability-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}

.availability-row input {
  width: auto;
  margin: 0;
}

@media (max-width: 640px) {
  .availability-head {
    display: none;
  }

  .availability-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .availability-row > span {
    margin-bottom: 2px;
  }
.vertical-image {
  margin: 0;
  background: var(--blue-soft);
  overflow: hidden;
}

.vertical-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}}