:root {
  color: #17211d;
  background: #f7f9f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f9f4;
  color: #17211d;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0));
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 88px) 64px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2) 54%, rgba(0, 0, 0, 0.08)),
    url("assets/apartment/apartment-24.jpg") center / cover;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c94f38;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c15a;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p {
  font-size: 1.03rem;
  line-height: 1.72;
}

.hero p {
  max-width: 620px;
  font-size: 1.14rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__facts span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 2px solid #f0c15a;
  border-radius: 8px;
  background: #f0c15a;
  color: #17211d;
  font-weight: 900;
  text-decoration: none;
}

.button--light {
  border-color: #fff;
  background: #fff;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d3ddd4;
}

.quick-facts div {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 24px;
  background: #fff;
}

.quick-facts strong {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
}

.quick-facts span {
  color: #53625a;
  font-weight: 800;
}

.section {
  padding: clamp(68px, 9vw, 132px) clamp(20px, 6vw, 88px);
}

.split,
.map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: start;
}

.copy-stack {
  max-width: 780px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: #1b4d45;
  color: #fff;
}

.feature-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.feature-grid span {
  display: block;
  margin-bottom: 46px;
  color: #f0c15a;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid p {
  color: #e9f3ed;
}

.reviews {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.score-card {
  position: sticky;
  top: 96px;
  padding: 30px;
  border: 1px solid #d3ddd4;
  border-radius: 8px;
  background: #f7f9f4;
}

.score-card strong {
  display: block;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
}

.score-card span {
  display: block;
  margin-top: 14px;
  color: #53625a;
  font-weight: 900;
}

.rating-bars {
  display: grid;
  gap: 14px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(160px, 1fr) 48px;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #d3ddd4;
  font-weight: 900;
}

meter {
  width: 100%;
  height: 10px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 8px;
  background: #d3ddd4;
}

meter::-webkit-meter-optimum-value {
  border-radius: 8px;
  background: #c94f38;
}

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

.testimonials article {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #d3ddd4;
  background: #f7f9f4;
  color: #17211d;
}

.testimonials p {
  font-size: 1.18rem;
  line-height: 1.5;
}

.testimonials span {
  color: #c94f38;
  font-weight: 900;
}

.gallery-section {
  background: #f7f9f4;
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 64px);
}

.gallery-intro p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery img {
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  background: #d3ddd4;
}

.gallery img:nth-child(1),
.gallery img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
  height: 654px;
}

.gallery img:nth-child(2),
.gallery img:nth-child(3),
.gallery img:nth-child(5),
.gallery img:nth-child(6),
.gallery img:nth-child(7),
.gallery img:nth-child(8) {
  grid-column: span 2;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.image-story--reverse {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.05fr);
}

.image-story--reverse figure {
  order: 2;
}

figure {
  margin: 0;
}

figure img {
  height: min(72vh, 720px);
  object-fit: cover;
  border-radius: 8px;
}

figcaption {
  margin-top: 10px;
  color: #53625a;
  font-size: 0.92rem;
}

.map-section {
  align-items: center;
  background: #fff;
}

.map-section h2 {
  max-width: 15ch;
}

.map-section p:not(.eyebrow) {
  max-width: 520px;
}

.map-section iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
  border-radius: 8px;
  filter: saturate(0.88) contrast(1.02);
}

.booking-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  background: #17211d;
  color: #fff;
}

.booking-band .eyebrow {
  color: #ffe6a0;
}

.booking-band h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.booking-copy {
  max-width: 560px;
}

.booking-copy p:not(.eyebrow) {
  color: #d7e1d9;
}

.house-rules {
  width: 100%;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  text-align: left;
}

.house-rules summary {
  cursor: pointer;
  padding: 22px 0;
  color: #ffe6a0;
  font-weight: 900;
  list-style: none;
}

.house-rules summary::-webkit-details-marker {
  display: none;
}

.house-rules summary::after {
  content: "+";
  float: right;
  color: #fff;
}

.house-rules[open] summary::after {
  content: "-";
}

.house-rules ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.26);
}

.house-rules li {
  min-height: 150px;
  padding: 18px;
  background: #17211d;
  color: #fff7e2;
  font-weight: 800;
  line-height: 1.45;
}

.house-rules li span {
  display: block;
  margin-bottom: 18px;
  color: #ffe6a0;
  font-size: 0.9rem;
  font-weight: 900;
}

footer {
  display: grid;
  gap: 10px;
  padding: 34px clamp(20px, 6vw, 88px);
  background: #17211d;
  color: #d7e1d9;
}

footer p {
  max-width: 980px;
  margin: 0;
  font-size: 0.92rem;
}

footer a {
  color: #f0c15a;
}

@media (max-width: 960px) {
  .quick-facts,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .map-section,
  .booking-band,
  .reviews,
  .gallery-intro,
  .image-story,
  .image-story--reverse {
    grid-template-columns: 1fr;
  }

  .score-card {
    position: static;
  }

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

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

  .gallery img,
  .gallery img:nth-child(1),
  .gallery img:nth-child(2),
  .gallery img:nth-child(3),
  .gallery img:nth-child(4),
  .gallery img:nth-child(5),
  .gallery img:nth-child(6),
  .gallery img:nth-child(7),
  .gallery img:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
    height: 320px;
  }

  .image-story--reverse figure {
    order: 0;
  }

  .house-rules ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h2 {
    max-width: 16ch;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 18px 20px;
  }

  nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 82vh;
    padding: 112px 20px 46px;
  }

  .hero__content {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.4rem);
  }

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

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

  .testimonials,
  .house-rules ul {
    grid-template-columns: 1fr;
  }

  .rating-bars div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery img,
  .gallery img:nth-child(1),
  .gallery img:nth-child(2),
  .gallery img:nth-child(3),
  .gallery img:nth-child(4),
  .gallery img:nth-child(5),
  .gallery img:nth-child(6),
  .gallery img:nth-child(7),
  .gallery img:nth-child(8) {
    height: 62vw;
    min-height: 260px;
    max-height: 420px;
  }

  .quick-facts div {
    min-height: 110px;
  }

  .section {
    padding: 58px 20px;
  }

  figure img {
    height: 58vh;
  }

  .map-section iframe {
    min-height: 360px;
  }
}
