/* ============================================================
   apartment.css — apartment detail page composition
   Load order: tokens → base → grid → components → apartment.css
   Reusable pieces (.icon-btn, .chev, .lightbox, .grid-aside, .row)
   live in components.css / grid.css. Desktop-first; steps down
   at 1120px (md) and 620px (sm).
   ============================================================ */

/* -------------------------------------------------- Book buttons (side card + CTA) */
.book-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.book-btn .btn__label { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }

/* -------------------------------------------------- Hero slider */
/* Exactly one screen tall. svh = the visible height with the mobile browser
   bars shown, so the photo ends at the bottom edge instead of under the
   address bar; vh is the fallback for older browsers. min-height only kicks
   in on very short screens (e.g. phones in landscape). */
.apt-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--dark);
}
.apt-hero__slide {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.apt-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.apt-hero__img { width: 100%; height: 100%; object-fit: cover; }

.apt-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 22, 29, 0.45), rgba(11, 22, 29, 0.05) 38%, rgba(11, 22, 29, 0.78));
}

.apt-hero__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--section-pad-x) clamp(34px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  color: var(--cream-2);
  pointer-events: none;           /* clicks fall through to the slide (lightbox) */
}
.apt-hero__intro { max-width: 720px; animation: rise 1s var(--ease-out) both; }
.apt-hero__eyebrow { color: var(--cream-2); opacity: 0.9; margin-bottom: 18px; }
.apt-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.015em;
}
.apt-hero__meta {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(246, 241, 233, 0.88);
  margin-top: 16px;
}
.apt-hero__controls { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.apt-hero__count {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(246, 241, 233, 0.85);
  min-width: 64px;
}
.apt-hero__all { padding: 15px 24px; white-space: nowrap; }
.apt-hero__all .btn__label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* -------------------------------------------------- Overview (content + sticky card) */
.apt-overview { max-width: var(--maxw); margin: 0 auto; }
.apt-overview__title { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; }
.apt-overview__lede { font-size: 18px; line-height: 1.75; color: var(--ink-70); margin-top: 24px; max-width: 620px; }

/* Spec cards: laid out by the shared .row / .col-* grid */
.spec-grid { margin-top: clamp(40px, 5vw, 60px); }
.spec-card {
  padding: 26px 24px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(11, 22, 29, 0.08);
}
.spec-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  margin-bottom: 8px;
}
.spec-card__list { margin: 0; }
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid rgba(11, 22, 29, 0.1);
  font-size: 15.5px;
}
.spec-row__label { display: flex; align-items: center; gap: 13px; flex: 1; color: rgba(11, 22, 29, 0.75); }
.spec-row__icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent-strong); }
.spec-row__value { margin: 0; text-align: right; }

/* Sticky booking card */
.apt-overview__side { position: sticky; top: 120px; }
.book-card {
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--sh-panel);
}
.book-card__name { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; }
.book-card__sub { font-size: 14px; color: var(--accent-strong); margin-top: 6px; letter-spacing: 0.06em; }
.book-card__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 26px 0 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(11, 22, 29, 0.12);
  border-bottom: 1px solid rgba(11, 22, 29, 0.12);
}
.fact { display: flex; align-items: center; gap: 11px; font-size: 15px; line-height: 1.2; }
.fact__icon { flex: 0 0 22px; width: 22px; height: 22px; }
.book-card .book-btn { padding: 17px; }
.book-card__note {
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-60);
  text-align: center;
  margin-top: 12px;
}

/* -------------------------------------------------- Highlight grid */
.apt-highlights__title { margin-bottom: clamp(34px, 4vw, 54px); }
.apt-highlights__row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);   /* wide | narrow */
  gap: clamp(16px, 2vw, 26px);
}
.apt-highlights__row + .apt-highlights__row { margin-top: clamp(26px, 3vw, 40px); }
.apt-highlights__row--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); } /* narrow | wide */
.highlight__media {
  height: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: #e7dccb;
  box-shadow: 0 20px 50px rgba(11, 22, 29, 0.1);
}
.highlight__media img { width: 100%; height: 100%; object-fit: cover; }
.highlight__caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.highlight__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.highlight__text { font-size: 15px; color: var(--ink-60); }

/* -------------------------------------------------- Dark CTA */
.apt-cta {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 24px;
  text-align: center;
  background: var(--dark);
  color: var(--cream-2);
  overflow: hidden;
}
.apt-cta__bg { position: absolute; inset: 0; opacity: 0.2; filter: grayscale(0.3); }
.apt-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.apt-cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 29, 0.55), rgba(11, 22, 29, 0.35) 50%, rgba(11, 22, 29, 0.7));
}
.apt-cta__inner { position: relative; z-index: 1; }
.apt-cta__eyebrow { color: #cbbb9c; margin-bottom: 18px; }
.apt-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  margin-bottom: 32px;
}
.apt-cta__title em { font-style: italic; font-weight: 400; }
.apt-cta .btn--glass { background-color: rgba(255, 255, 255, 0.9); }

/* -------------------------------------------------- Coming soon (apartments not live yet)
   Full-height variant of the dark CTA band; reuses the hero title/meta type. */
.apt-soon {
  min-height: 100vh;
  min-height: 100svh;               /* one screen tall, like the hero */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 140px;               /* clear the fixed nav */
}
.apt-soon__inner { max-width: 720px; }
.apt-soon .apt-hero__meta { margin-top: 18px; }
.apt-soon__badge {
  display: inline-block;
  margin-top: 34px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(203, 187, 156, 0.6);
  color: #cbbb9c;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.apt-soon__text {
  margin: 22px auto 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(246, 241, 233, 0.8);
}
.apt-soon__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* -------------------------------------------------- md ≤ 1120px */
@media (max-width: 1120px) {
  .apt-overview__side { position: relative; top: auto; }
  .apt-highlights__row,
  .apt-highlights__row--rev { grid-template-columns: 1fr; }
  .highlight__media { height: 380px; }
}

/* -------------------------------------------------- sm ≤ 620px */
@media (max-width: 620px) {
  .apt-hero__controls { width: 100%; gap: 10px; }
  .apt-hero__count { min-width: 0; }
  .apt-hero .icon-btn { width: 46px; height: 46px; }
  .apt-hero__all { margin-left: auto; padding: 13px 16px; }
  .apt-hero__all .btn__label { font-size: 12px; letter-spacing: 0.08em; }
  .highlight__media { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .apt-hero__slide { transition: none; }
}
