/* Property presentation — editorial scroll + fullscreen slideshow deck.
   Mobile-first, dependency-free. Brand values fall back when public design
   tokens aren't loaded on this page. */

.pres {
  --pres-navy: var(--color-primary, #0c2340);
  --pres-gold: var(--color-accent, #d4af37);
  --pres-ink: #1a2433;
  --pres-muted: #5b6b7f;
  --pres-bg: #ffffff;
  --pres-surface: #f6f8fa;
  color: var(--pres-ink);
  background: var(--pres-bg);
}

/* ── Hero ─────────────────────────────────────────────── */
.pres-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.pres-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.pres-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,35,64,.25) 0%, rgba(12,35,64,.55) 60%, rgba(12,35,64,.85) 100%);
}
.pres-hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  color: #fff;
}
.pres-hero__back {
  display: inline-flex; align-items: center; gap: .45rem;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .9rem; margin-bottom: 1rem;
}
.pres-hero__back:hover { color: #fff; }
.pres-hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.pres-hero__loc {
  margin: .6rem 0 0; font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255,255,255,.9);
}
.pres-hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  margin-top: 1rem; font-size: .95rem; color: rgba(255,255,255,.85);
}
.pres-hero__meta i { color: var(--pres-gold); margin-right: .35rem; }
.pres-hero__cta {
  margin-top: 1.6rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--pres-gold); color: var(--pres-navy);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pres-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
.pres-hero__cue {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 1.2rem;
  animation: pres-bounce 1.8s ease-in-out infinite;
}
@keyframes pres-bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ── Sticky space nav ─────────────────────────────────── */
.pres-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(12,35,64,.08);
}
.pres-nav__list {
  display: flex; gap: .5rem; list-style: none;
  max-width: 1200px; margin: 0 auto; padding: .6rem clamp(.75rem, 3vw, 2rem);
  overflow-x: auto; scrollbar-width: none;
}
.pres-nav__list::-webkit-scrollbar { display: none; }
.pres-nav__link {
  display: inline-block; white-space: nowrap;
  padding: .4rem .9rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  color: var(--pres-muted); background: var(--pres-surface);
  transition: background .15s ease, color .15s ease;
}
.pres-nav__link:hover { color: var(--pres-navy); }
.pres-nav__link.is-active { background: var(--pres-navy); color: #fff; }

/* ── Space sections ───────────────────────────────────── */
.pres-main { max-width: 1200px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(.75rem, 3vw, 2rem); }
.pres-space { padding: clamp(1.5rem, 4vw, 3rem) 0; scroll-margin-top: 64px; }
.pres-space + .pres-space { border-top: 1px solid rgba(12,35,64,.07); }
.pres-space__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pres-space__name { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
.pres-space__floor {
  display: inline-block; margin-top: .3rem;
  font-size: .78rem; font-weight: 600; color: var(--pres-muted);
  background: var(--pres-surface); padding: .2rem .6rem; border-radius: 999px;
}
.pres-space__count {
  flex: 0 0 auto; min-width: 28px; text-align: center;
  font-size: .85rem; font-weight: 700; color: var(--pres-navy);
  background: var(--pres-surface); border-radius: 999px; padding: .2rem .55rem;
}
.pres-space__notes { margin: .6rem 0 0; color: var(--pres-muted); max-width: 60ch; }

.pres-grid {
  margin-top: 1.2rem;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.pres-grid__item {
  display: block; padding: 0; border: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden; background: var(--pres-surface);
  aspect-ratio: 4 / 3;
}
.pres-grid__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.pres-grid__item:hover img { transform: scale(1.05); }
/* First photo of each space spans wider on large screens for an editorial feel. */
@media (min-width: 760px) {
  .pres-grid__item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}

.pres-empty { text-align: center; color: var(--pres-muted); padding: 4rem 1rem; }

/* ── Fullscreen slideshow deck ────────────────────────── */
.pres-deck {
  position: fixed; inset: 0; z-index: 9999;
  background: #07101f; color: #fff;
  display: none; flex-direction: column;
}
.pres-deck.is-open { display: flex; }
.pres-deck__stage {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: env(safe-area-inset-top) 0 0;
}
.pres-deck__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.pres-deck__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
}
.pres-deck__space { font-size: 1.15rem; font-weight: 700; }
.pres-deck__floor { font-size: .8rem; color: rgba(255,255,255,.7); margin-left: .5rem; font-weight: 500; }
.pres-deck__desc { margin: .4rem 0 0; max-width: 70ch; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.88); }
.pres-deck__close, .pres-deck__nav {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  width: 48px; height: 48px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: background .15s ease;
}
.pres-deck__close:hover, .pres-deck__nav:hover { background: rgba(255,255,255,.28); }
.pres-deck__close { top: calc(env(safe-area-inset-top) + 1rem); right: 1rem; }
.pres-deck__counter {
  position: absolute; top: calc(env(safe-area-inset-top) + 1rem); left: 1.25rem;
  font-size: .9rem; color: rgba(255,255,255,.8); z-index: 2;
}
.pres-deck__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pres-deck__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.pres-deck__dots {
  display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap;
  padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom));
}
.pres-deck__dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.3);
}
.pres-deck__dot.is-active { background: var(--pres-gold, #d4af37); transform: scale(1.25); }

@media (max-width: 560px) {
  .pres-deck__nav { width: 42px; height: 42px; }
  .pres-deck__caption { padding-bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pres-hero__cue { animation: none; }
  .pres-grid__item img { transition: none; }
}

/* ── Residence showcase — apartment cards ─────────────── */
.pres-units {
  margin-top: 1.2rem;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.pres-unit {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--pres-bg, #fff); border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(12,35,64,.08);
  box-shadow: 0 6px 24px rgba(12,35,64,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pres-unit:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(12,35,64,.14); }
.pres-unit__media { position: relative; aspect-ratio: 16 / 10; background: var(--pres-surface, #f6f8fa); }
.pres-unit__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pres-unit__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #b6c0cc; font-size: 2rem; }
.pres-unit__badge {
  position: absolute; left: .75rem; bottom: .75rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(12,35,64,.78); color: #fff; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.pres-unit__badge i { color: var(--pres-gold, #d4af37); }
.pres-unit__body { padding: 1rem 1.1rem 1.2rem; }
.pres-unit__title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.pres-unit__loc { margin: .35rem 0 0; font-size: .85rem; color: var(--pres-muted, #5b6b7f); }
.pres-unit__meta { display: flex; gap: 1rem; margin-top: .7rem; font-size: .85rem; color: var(--pres-muted, #5b6b7f); }
.pres-unit__meta i { color: var(--pres-gold, #d4af37); margin-right: .3rem; }
