/* ── Breadcrumb ── */
.breadcrumb {
  padding: 0.9rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.82rem;
  color: var(--gray-600);
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--navy); font-weight: 500; }

/* ── Apartment Hero ── */
.apt-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 2.5rem 1.5rem 0;
}
.apt-hero-inner { max-width: 1100px; margin: 0 auto; }
.apt-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.apt-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.apt-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.apt-hero-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.apt-hero-tag {
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.apt-hero-price-card {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  min-width: 220px;
  text-align: center;
  flex-shrink: 0;
}
.apt-hero-price { font-size: 2rem; font-weight: 800; line-height: 1; }
.apt-hero-price-mo { font-size: 0.85rem; opacity: 0.75; margin-bottom: 0.4rem; }
.apt-hero-price-note { font-size: 0.75rem; opacity: 0.65; margin-bottom: 1rem; }
.apt-avail-pill {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── Photo Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.4rem;
  border-radius: 12px;
  overflow: hidden;
  max-height: 520px;
}
.gallery-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-main { max-height: 520px; }
.gallery-thumb { max-height: 260px; }
.gallery-grid .gallery-main img,
.gallery-grid .gallery-thumb img { height: 100%; }
.gallery-main:hover img,
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.gallery-thumb:hover .gallery-overlay,
.gallery-main:hover .gallery-overlay { background: rgba(0,0,0,0.18); }
.gallery-more-badge {
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Gallery: extra thumbs row when more than 3 photos */
.gallery-strip {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.gallery-strip-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-strip-thumb:hover img { transform: scale(1.06); }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}
.lightbox-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.lightbox-dot.active { background: #fff; }

/* ── Detail Layout ── */
.apt-detail-section {
  padding: 4rem 1.5rem;
}
.apt-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
  align-items: start;
}
.apt-content-col {}
.apt-sidebar-col {
  position: sticky;
  top: 80px;
}

/* Key Details Card */
.detail-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
.detail-card-header {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}
.detail-card-price { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.detail-card-mo { font-size: 0.9rem; opacity: 0.75; margin-bottom: 0.25rem; }
.detail-card-incl { font-size: 0.75rem; opacity: 0.6; }
.detail-card-body { padding: 1.5rem; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}
.detail-row:last-of-type { border-bottom: none; }
.detail-row-label { color: var(--gray-600); }
.detail-row-value { font-weight: 600; color: var(--navy); text-align: right; }
.detail-card-cta { padding: 0 1.5rem 1.5rem; }
.detail-card-cta .btn { width: 100%; text-align: center; }
.detail-card-note { font-size: 0.76rem; color: var(--gray-500); text-align: center; margin-top: 0.6rem; }

/* Section titles within detail */
.apt-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gray-100);
}
.apt-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.apt-description p + p { margin-top: 0.75rem; }

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.amenity-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gray-900);
  border: 1px solid var(--gray-100);
}
.amenity-row.included { border-color: #d1fae5; background: #f0fdf4; color: #166534; }
.amenity-icon { font-size: 1.05rem; flex-shrink: 0; }

/* Floor Plan */
.floorplan-wrap {
  background: var(--gray-50);
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.floorplan-wrap svg {
  max-width: 340px;
  width: 100%;
  display: block;
  margin: 0 auto;
}
.floorplan-note {
  font-size: 0.76rem;
  color: var(--gray-500);
  margin-top: 1rem;
}
.floorplan-upload-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #92400e;
  text-align: left;
}

/* Location section in detail */
.apt-dist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.apt-dist-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  font-size: 0.88rem;
}
.apt-dist-icon { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
.apt-dist-info strong { color: var(--navy); font-weight: 600; }
.apt-dist-info span { display: block; color: var(--gray-600); font-size: 0.8rem; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.back-link:hover { color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .apt-detail-inner {
    grid-template-columns: 1fr;
  }
  .apt-sidebar-col {
    position: static;
    order: -1;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    max-height: none;
  }
  .gallery-main {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: 320px;
  }
  .gallery-thumb { max-height: 180px; }
}
@media (max-width: 640px) {
  .apt-hero-top { flex-direction: column; }
  .apt-hero-price-card { width: 100%; }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-thumb:last-child { display: none; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
}
