:root {
  --ink: #17211d;
  --muted: #5c6861;
  --line: #dbe3dd;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --sea: #146c78;
  --pine: #2e6b4f;
  --coral: #d86545;
  --sand: #f1eadc;
  --shadow: 0 18px 50px rgba(18, 32, 28, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.58), rgba(0,0,0,.12));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sea);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.custom-logo-wrap,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img,
.custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: .86;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav a { opacity: .92; }

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.header-cta {
  background: #fff;
  color: var(--ink);
}

.btn:hover,
.header-cta:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 116px clamp(18px, 4vw, 56px) 28px;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.34) 48%, rgba(0,0,0,.18)),
    url("../images/apartment-1/20250422_114949(1).jpg") center / cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,0));
  z-index: -1;
}

.subpage-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 4vw, 56px) 54px;
  color: #fff;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.36) 52%, rgba(0,0,0,.2)),
    var(--hero-image, url("../images/apartment-1/20250422_114949(1).jpg")) center / cover;
  z-index: -2;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0));
  z-index: -1;
}

.apartment-one-hero {
  --hero-image: url("../images/apartment-1/20240520_171827.jpg");
}

.apartment-two-hero {
  --hero-image: url("../images/apartment-2/20250617_134934.jpg");
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .56fr);
  gap: 34px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(18px, 2.1vw, 23px);
  color: rgba(255,255,255,.9);
}

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

.booking-panel {
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(12px);
}

.booking-panel h2 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.booking-panel p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input, select {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.booking-panel .btn {
  width: 100%;
  margin-top: 12px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -1px auto 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.quick-fact {
  background: var(--surface);
  padding: 18px;
}

.quick-fact strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
}

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

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section.alt { background: var(--sand); }

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

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

.apartment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(18,32,28,.06);
}

.apartment-media {
  aspect-ratio: 16 / 11;
  background: #d5ddd7;
}

.apartment-body { padding: 20px; }

.apartment-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.apartment h3 {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.15;
}

.price {
  color: var(--sea);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.apartment p {
  color: var(--muted);
  margin-bottom: 16px;
}

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

.amenities li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8faf7;
  font-size: 13px;
  font-weight: 750;
  color: #33423b;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-template-rows: 230px 230px;
  gap: 12px;
}

.gallery-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9e2dc;
}

.gallery-strip figure:first-child { grid-row: span 2; }

.apartment-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 12px;
}

.apartment-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9e2dc;
}

.apartment-gallery figure.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.apartment-video {
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}

.apartment-video video {
  display: block;
  width: 100%;
  max-height: 720px;
  background: #111;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.location-copy {
  display: grid;
  align-content: center;
}

.location-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.nearby {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.nearby li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23,33,29,.16);
  font-weight: 800;
}

.nearby span {
  color: var(--muted);
  font-weight: 700;
}

.map-card {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(20,108,120,.15), rgba(20,108,120,.15)),
    url("../images/apartment-1/20250422_115021(1)(1).jpg") center / cover;
  position: relative;
}

.map-card .pin {
  position: absolute;
  left: 34px;
  bottom: 34px;
  max-width: 300px;
  padding: 16px;
  background: rgba(255,255,255,.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pin strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: start;
}

.detail-layout h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.detail-layout p {
  color: var(--muted);
  font-weight: 650;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(18,32,28,.06);
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) 1fr;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
}

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

.review strong {
  display: block;
  margin-bottom: 8px;
}

.review p {
  color: var(--muted);
  margin-bottom: 0;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--sea);
  color: #fff;
}

.final-cta h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

.final-cta p {
  margin-bottom: 0;
  color: rgba(255,255,255,.86);
  max-width: 660px;
}

.final-cta .btn {
  background: #fff;
  color: var(--ink);
}

footer {
  padding: 28px clamp(18px, 4vw, 56px) 92px;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.mobile-book {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.mobile-book .btn {
  min-height: 46px;
  padding: 0 10px;
}

.mobile-book.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 940px) {
  .nav { display: none; }
  .hero { min-height: auto; padding-top: 92px; }
  .hero-inner,
  .location,
  .detail-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(44px, 8vw, 64px); }
  .booking-panel { max-width: 520px; }
  .quick-facts,
  .apartment-grid,
  .reviews { grid-template-columns: 1fr 1fr; }
  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .gallery-strip figure:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .apartment-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }
}

@media (max-width: 640px) {
  body { padding-bottom: 78px; }
  .site-header { padding: 12px 16px; }
  .brand strong { font-size: 15px; }
  .brand span { display: none; }
  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .hero {
    padding: 82px 16px 22px;
    align-items: start;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(0,0,0,.66), rgba(0,0,0,.32) 42%, rgba(0,0,0,.68)),
      url("../images/apartment-1/20250422_114949(1).jpg") center / cover;
  }
  .hero-inner { gap: 20px; }
  .subpage-hero { padding: 94px 16px 38px; min-height: 58vh; }
  h1 { font-size: clamp(34px, 10.5vw, 42px); line-height: 1; }
  .eyebrow {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }
  .hero-copy {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.45;
  }
  .hero-actions .btn { flex: 1 1 150px; }
  .booking-panel {
    width: 100%;
    margin-bottom: 88px;
    padding: 16px;
  }
  .booking-panel h2 { font-size: 19px; }
  .booking-panel p { margin-bottom: 12px; }
  .booking-grid,
  .quick-facts,
  .apartment-grid,
  .reviews,
  .final-cta { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 10px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .gallery-strip {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 210px);
  }
  .gallery-strip figure:first-child { grid-column: span 1; }
  .apartment-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .apartment-gallery figure.featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  .apartment-top { display: block; }
  .price { text-align: left; }
  .map-card { min-height: 360px; }
  .map-card .pin {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .mobile-book {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    padding: 7px;
  }
  .mobile-book .btn {
    min-height: 44px;
    font-size: 13px;
  }
}
