/* ════════════════════════════════
   DETAIL / OVERVIEW SECTION
════════════════════════════════ */
#how {
  margin-top: 88px;
}

/* ── Tabs ── */
#detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 26px;
  background: rgba(28, 26, 23, 0.07);
  color: #8B857A;
  border: none;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.28s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tab-btn.active {
  background: #1C1A17;
  color: #ffffff;
  font-weight: 500;
}

.tab-btn:hover:not(.active) {
  background: rgba(28, 26, 23, 0.12);
  color: #4A4540;
}

/* ── Two-column detail grid ── */
#detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Left: image card ── */
#detail-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 530px;
  background: #1A1917;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#detail-image:hover {
  transform: scale(1.008);
}

#detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease, transform 0.55s ease;
}

#detail-image:hover img {
  transform: scale(1.04);
}

.view360-btn {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1A1917;
  cursor: pointer;
  transition: all 0.22s ease;
}

.view360-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

.view360-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1C1A17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.carousel-arrows {
  position: absolute;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #1A1917;
  transition: all 0.22s ease;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.arrow-btn.left:hover  { transform: translateX(-2px); }
.arrow-btn.right:hover { transform: translateX(2px); }

/* ── Apartment dots ── */
#apt-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}

.apt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.40);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.apt-dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.35);
}

.apt-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
}

/* ── Apartment counter ── */
#apt-counter {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.10em;
  font-family: 'Manrope', sans-serif;
}

/* ── Right: info panel ── */
#detail-right {
  padding: 4px 0;
}

#detail-right-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.07;
  color: #1C1A17;
  margin-bottom: 20px;
  letter-spacing: -0.022em;
}

.detail-desc {
  font-size: 14px;
  color: #706860;
  line-height: 1.80;
  margin-bottom: 32px;
}

/* ── Animated detail content (title, tab panel, stats) ── */
#tab-panel,
#detail-right-h2,
.stats-row {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Dissolve: JS adds .dissolving to fade + soft-blur the content out, swaps the
   text while invisible, then removes the class to dissolve the new text in.
   Used for both tab switches and house switches. */
#tab-panel.dissolving,
#detail-right-h2.dissolving,
.stats-row.dissolving {
  opacity: 0;
  filter: blur(7px);
}

/* ── Feature bullets ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 38px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: rgba(28, 26, 23, 0.045);
  border-radius: 14px;
}

.feature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C4923A;
  flex-shrink: 0;
}

.feature-text {
  font-size: 13px;
  font-weight: 500;
  color: #1C1A17;
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 28px;
  border-top: 1px solid rgba(28, 26, 23, 0.10);
}

.stat {
  text-align: center;
  padding: 8px 0;
}

.stat + .stat {
  border-left: 1px solid rgba(28, 26, 23, 0.10);
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  color: #1C1A17;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: #9C9690;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 5px;
}
