:root {
  color-scheme: light;
  --ink: #21312d;
  --muted: #66736f;
  --line: #d9e2de;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --sea: #216b78;
  --sea-dark: #164f59;
  --leaf: #5f7f59;
  --sun: #d99b4a;
  --shadow: 0 22px 70px rgba(34, 49, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 248, 241, 0.92);
  border-bottom: 1px solid rgba(33, 49, 45, 0.12);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav,
.phone-link,
.hero-actions,
.site-footer,
.date-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--sea);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-header nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
}

.site-header nav a,
.phone-link,
.site-footer a {
  text-decoration: none;
}

.site-header nav a:hover,
.phone-link:hover,
.site-footer a:hover {
  color: var(--sea);
}

.phone-link {
  justify-content: flex-end;
  min-height: 40px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 68px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 35, 31, 0.78), rgba(20, 35, 31, 0.34) 48%, rgba(20, 35, 31, 0.08));
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 80px) clamp(42px, 9vw, 92px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-section h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7.3rem);
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--sea-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-facts div {
  padding: 22px clamp(18px, 4vw, 54px);
  background: var(--surface);
}

.quick-facts strong,
.quick-facts span,
.site-footer span {
  display: block;
}

.quick-facts strong {
  font-size: 1.16rem;
}

.quick-facts span,
.section-heading p,
.split-section p,
.map-details p,
.apartment-card p,
.site-footer span,
.dialog-meta {
  color: var(--muted);
}

.section,
.split-section {
  padding: clamp(54px, 9vw, 108px) clamp(18px, 5vw, 70px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading p,
.split-section p {
  margin: 14px 0 0;
  font-size: 1.06rem;
}

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

.apartment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(33, 49, 45, 0.07);
}

.apartment-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.apartment-card-link:hover h3 {
  color: var(--sea);
}

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

.apartment-card-content {
  padding: 16px;
}

.apartment-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.apartment-card p {
  min-height: 48px;
  margin: 8px 0 14px;
  font-size: 0.94rem;
}

.apartment-card .button {
  width: 100%;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.fact-chips li {
  padding: 5px 8px;
  border: 1px solid #cbdad5;
  border-radius: 999px;
  color: var(--sea-dark);
  background: #f4f8f6;
  font-size: 0.82rem;
  font-weight: 700;
}

.occupancy-section {
  background: #f4f8f6;
}

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

.occupancy-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.occupancy-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.occupancy-card img,
.occupancy-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 6vw, 76px);
  align-items: start;
  background: #eef4f1;
}

.map-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
}

.map-details {
  padding: 20px;
}

.map-details h3,
.map-details p {
  margin: 0;
}

.map-details a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sea);
  font-weight: 700;
  text-decoration: none;
}

.inquiry-section {
  background: var(--surface);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf9;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #c9d6d1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.date-row {
  gap: 14px;
}

.date-row label {
  flex: 1;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: #fff;
  background: #20322e;
}

.site-footer div:last-child {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.apartment-dialog {
  width: min(920px, calc(100% - 26px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.apartment-dialog::backdrop {
  background: rgba(16, 25, 23, 0.62);
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-layout > img,
.dialog-main-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.dialog-hero {
  position: relative;
  background: #10201d;
}

.dialog-main-image {
  cursor: pointer;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 35, 31, 0.72);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-arrow:hover {
  background: rgba(20, 35, 31, 0.92);
}

.gallery-arrow.previous {
  left: 14px;
}

.gallery-arrow.next {
  right: 14px;
}

.gallery-counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 35, 31, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.dialog-body {
  padding: clamp(18px, 4vw, 34px);
}

.dialog-body h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.dialog-meta {
  margin: 8px 0 18px;
}

.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.dialog-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.dialog-gallery img.is-active {
  border-color: var(--sea);
}

.occupancy-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #cbdad5;
  border-radius: 8px;
  background: #f4f8f6;
}

.occupancy-panel h3 {
  margin: 0 0 12px;
}

.detail-hero {
  position: relative;
  min-height: min(680px, calc(100vh - 68px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 35, 31, 0.78), rgba(20, 35, 31, 0.28) 58%, rgba(20, 35, 31, 0.08));
}

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

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 80px) clamp(42px, 9vw, 92px);
  color: #fff;
}

.detail-hero-content h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.02;
}

.detail-hero-content p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.detail-facts li {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.detail-section h2,
.legal-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.detail-gallery {
  margin-top: 24px;
}

.detail-main-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #10201d;
}

.detail-main-image {
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: pointer;
}

.detail-aside,
.legal-content {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-aside h2,
.detail-aside h3,
.legal-content h2 {
  margin: 0 0 12px;
}

.detail-aside h3,
.legal-content h2 {
  margin-top: 24px;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-occupancy {
  width: min(920px, 100%);
}

.legal-page {
  min-height: 70vh;
}

.legal-content {
  max-width: 860px;
  margin-top: 26px;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

.legal-content a {
  color: var(--sea);
  font-weight: 700;
}

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

  .split-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .quick-facts,
  .apartment-grid,
  .occupancy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(20, 35, 31, 0.82), rgba(20, 35, 31, 0.16));
  }

  .detail-hero {
    min-height: 620px;
  }

  .detail-hero::after {
    background: linear-gradient(0deg, rgba(20, 35, 31, 0.82), rgba(20, 35, 31, 0.16));
  }

  .date-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
