/* ── Apartment detail page ──────────────────────────────────── */
.apt-hero {
  position: relative;
  height: 80svh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

/* Carousel slides */
.apt-hero__carousel { position: absolute; inset: 0; }
.apt-hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}
.apt-hero__slide.is-active { opacity: 1; }
.apt-hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.apt-hero__slide.is-active img {
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .apt-hero__slide            { transition: none; }
  .apt-hero__slide.is-active img { animation: none; }
}

/* Overlay + content */
.apt-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,24,21,.8) 0%, rgba(28,24,21,.15) 60%);
}
.apt-hero__content {
  position: relative; z-index: 2;
  padding: 0 clamp(20px, 5vw, 80px) 80px;
}

/* Prev / next arrows */
.apt-hero__arrow {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  background: rgba(0,0,0,.3);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
}
.apt-hero__arrow:hover        { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.5); }
.apt-hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.apt-hero__arrow--prev { left:  clamp(16px, 3vw, 40px); }
.apt-hero__arrow--next { right: clamp(16px, 3vw, 40px); }

/* Dot indicators */
.apt-hero__dots {
  position: absolute; bottom: 24px; left: 50%; z-index: 3;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.apt-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.apt-hero__dot.is-active      { background: #fff; border-color: #fff; transform: scale(1.3); }
.apt-hero__dot:focus-visible  { outline: 2px solid #fff; outline-offset: 3px; }
/* Hero CTA */
.apt-hero__cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.apt-hero__cta-btn {
  font-size: 14px;
  padding: 14px 30px;
}
.apt-hero__cta-other {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}
.apt-hero__cta-other:hover { color: #fff; }

.apt-hero__tag {
  font-family: var(--hand);
  font-size: 26px;
  color: rgba(241,231,211,.7);
  margin-bottom: 8px;
}
.apt-hero__name {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.025em;
  color: var(--bone);
}

/* ── Section rhythm (Gallery / Details / Tiny details, stacked) ── */
.apt-section {
  padding-block: 44px;
}
.apt-section + .apt-section {
  border-top: 1px solid var(--bone-2);
}
.apt-section__eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.apt-section__heading {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 28px;
  color: var(--ink);
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.gallery-grid__item:hover img { transform: scale(1.05); }

/* ── Details list ───────────────────────────────────────────── */
.details-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--bone-2);
  border: 1px solid var(--bone-2);
}
.details-list__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  font-size: 15px;
}
.details-list__key { color: var(--muted); font-weight: 500; }
.details-list__val { font-weight: 600; color: var(--ink); }

/* ── Quirks ─────────────────────────────────────────────────── */
.quirks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quirks-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.quirks-list__item::before {
  content: "—";
  color: var(--terracotta);
  font-family: var(--serif);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .details-list__item { grid-template-columns: 140px 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
