:root {
  --ink: #21312d;
  --muted: #66716d;
  --paper: #f7f3eb;
  --white: #fffdf9;
  --accent: #b56f4b;
  --accent-dark: #925437;
  --sage: #dce4dc;
  --line: rgba(33, 49, 45, .14);
  --shadow: 0 18px 60px rgba(40, 51, 47, .10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { position: sticky; top: 0; z-index: 10; height: 76px; padding: 0 max(20px, calc((100% - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,249,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-size: .75rem; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 600; }
nav a:hover { color: var(--accent); }
.nav-cta { padding: 11px 18px; border-radius: 999px; background: var(--ink); color: white; }
.nav-cta:hover { color: white; background: var(--accent-dark); }
.menu-toggle { display: none; border: 0; background: none; font: inherit; font-weight: 700; }

.hero { width: var(--shell); min-height: 690px; margin: 24px auto 0; padding: clamp(30px, 5vw, 72px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(34px, 6vw, 78px); background: var(--paper); border-radius: 38px; overflow: hidden; }
.eyebrow { margin: 0 0 12px; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .15em; font-size: .74rem; font-weight: 700; }
h1, h2 { font-family: "Playfair Display", serif; line-height: 1.08; letter-spacing: -.035em; margin: 0; }
h1 { max-width: 650px; font-size: clamp(3.2rem, 6.5vw, 6rem); }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.25rem, 4.3vw, 4rem); }
h3 { margin: 0; font-size: 1.12rem; }
.hero-copy { max-width: 620px; margin: 24px 0 28px; color: var(--muted); font-size: 1.08rem; }
.hero-actions, .card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 10px 24px rgba(181,111,75,.22); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.6); }
.button-secondary:hover { border-color: var(--ink); }
.hero-facts { list-style: none; padding: 0; margin: 42px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-facts li { padding-top: 16px; border-top: 1px solid var(--line); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: .95rem; }
.hero-facts span { color: var(--muted); font-size: .78rem; }

.image-placeholder { min-height: 150px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--muted); background: linear-gradient(135deg, #e5ded2, #d9e0d8); border: 1px dashed rgba(33,49,45,.27); border-radius: var(--radius-md); }
.image-placeholder span { color: var(--ink); font-weight: 700; }
.image-placeholder small { max-width: 220px; }
.image-placeholder-hero { min-height: 530px; border-radius: 180px 180px 30px 30px; box-shadow: var(--shadow); }

.section-shell { width: var(--shell); margin-inline: auto; }
.intro { padding: 120px 0 80px; display: grid; grid-template-columns: 1fr .8fr; gap: 10vw; align-items: end; }
.intro > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.apartments { display: grid; gap: 64px; padding-bottom: 120px; }
.apartment-card { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 650px; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.apartment-card-reverse .apartment-gallery { order: 2; }
.apartment-card-reverse .apartment-content { order: 1; }
/* .apartment-gallery { padding: 24px; display: grid; grid-template-rows: 1fr 160px; gap: 14px; } */
.image-placeholder-main { min-height: 360px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apartment-content { padding: clamp(34px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.apartment-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.apartment-heading h2 { max-width: 500px; font-size: clamp(2.15rem, 3.5vw, 3.6rem); }
.price { min-width: 94px; text-align: right; }
.price span, .price strong { display: block; }
.price span { color: var(--muted); font-size: .74rem; }
.price strong { font-size: 1.7rem; }
.apartment-content > p { margin: 26px 0; color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; }
.specs span { padding: 8px 12px; border-radius: 999px; background: var(--sage); font-size: .82rem; font-weight: 600; }
.amenities { margin: 28px 0 32px; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; color: var(--muted); font-size: .9rem; }
.amenities li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 700; }
.text-link { color: var(--accent-dark); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.location { padding: 120px 0; color: white; background: var(--ink); }
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: center; }
.location .eyebrow { color: #e7ae8d; }
.location-copy > p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.68); }
.location-points { margin: 38px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.location-points div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.location-points strong, .location-points span { display: block; }
.location-points span { color: rgba(255,255,255,.55); font-size: .78rem; }
.button.light { color: white; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.button.light:hover { border-color: white; }
.map-placeholder { min-height: 480px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, #708077, #3f504a 58%, #30413b); border: 1px solid rgba(255,255,255,.15); }
.map-placeholder span { font-weight: 700; }
.map-placeholder small { color: rgba(255,255,255,.6); }

.details { padding: 120px 0; }
.section-title { max-width: 680px; }
.detail-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid article { padding: 34px 28px 40px 0; }
.detail-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.detail-number { display: block; margin-bottom: 48px; color: var(--accent); font-weight: 700; }
.detail-grid p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.contact { padding-bottom: 100px; }
.contact-card { padding: clamp(38px, 6vw, 76px); display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; background: var(--paper); border-radius: var(--radius-lg); }
.contact-card p:not(.eyebrow) { max-width: 660px; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
footer { min-height: 110px; padding: 28px max(20px, calc((100% - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-brand { color: var(--ink); }

@media (max-width: 960px) {
  .hero, .intro, .location-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .image-placeholder-hero { min-height: 420px; border-radius: 26px; }
  .intro { gap: 28px; }
  .apartment-card { grid-template-columns: 1fr; }
  .apartment-card-reverse .apartment-gallery, .apartment-card-reverse .apartment-content { order: initial; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .detail-grid article:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .site-header { height: 68px; padding-inline: 16px; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 68px; left: 12px; right: 12px; padding: 18px; display: none; flex-direction: column; align-items: stretch; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 10px 12px; }
  .hero { min-height: auto; margin-top: 12px; padding: 50px 24px 24px; border-radius: 26px; }
  h1 { font-size: clamp(2.85rem, 14vw, 4.3rem); }
  .hero-facts, .location-points { grid-template-columns: 1fr; }
  .intro, .details, .location { padding-top: 88px; padding-bottom: 88px; }
  .apartments { padding-bottom: 88px; gap: 34px; }
  /* .apartment-gallery { padding: 12px; grid-template-rows: 330px 110px; } */
  .apartment-gallery { padding: 12px; grid-template-rows: auto auto; }
  .apartment-content { padding: 34px 24px 42px; }
  .apartment-heading { display: block; }
  .price { margin-top: 18px; text-align: left; }
  .price span, .price strong { display: inline; margin-right: 4px; }
  .amenities { grid-template-columns: 1fr; }
  .map-placeholder { min-height: 350px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article, .detail-grid article + article, .detail-grid article:nth-child(3) { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .detail-grid article:first-child { border-top: 0; }
  .detail-number { margin-bottom: 22px; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; }
  .contact-actions { align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
}

.apartment-gallery {
    padding: 24px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 14px;
}

.apartment-gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand {
  font-size: x-large;
}