.unit-detail-page {
  background: #f7f8fa;
  color: #111827;
  min-height: 100vh;
  padding-bottom: 64px;
}

.unit-detail-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.unit-detail-breadcrumb {
  padding-top: 12px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.unit-detail-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
}

.unit-detail-breadcrumb__inner a {
  color: #6b7280;
  text-decoration: none;
}

.unit-detail-breadcrumb__inner span:last-child {
  color: #111827;
  font-weight: 600;
}

.unit-detail-main {
  padding-top: 34px;
}

.unit-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 380px;
  gap: 28px;
  align-items: start;
}

.unit-detail-content {
  min-width: 0;
}

.unit-hero,
.detail-section,
.sidebar-price-card,
.contact-card,
.cta-card {
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.unit-hero {
  padding: 28px;
}

.unit-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.unit-hero__tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(239, 128, 37, 0.12);
  color: #ef8025;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.unit-hero__actions {
  display: flex;
  gap: 10px;
}

.unit-hero__actions button,
.unit-hero__actions a {
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.unit-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 1.45rem + 1.3vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
}

.unit-hero__location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 16px;
}

.unit-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
}

.hero-stat i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  color: #EF8025;
  font-size: 20px;
}

.hero-stat span {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.unit-gallery {
  margin-top: 24px;
}

.unit-gallery__stage {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.unit-gallery__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 42%, rgba(17, 24, 39, 0.48) 100%);
}

.unit-gallery__count,
.unit-gallery__overlay,
.unit-gallery__nav {
  position: absolute;
  z-index: 1;
}

.unit-gallery__count {
  top: 18px;
  right: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.unit-gallery__overlay {
  left: 22px;
  bottom: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.unit-gallery__nav {
  top: 50%;
  left: 18px;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.unit-gallery__nav button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.64);
  color: #fff;
  font-size: 24px;
  pointer-events: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.unit-gallery__nav button i {
  line-height: 1;
  display: block;
}

.unit-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.unit-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.unit-gallery__thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.unit-gallery__thumbs::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 999px;
}

.unit-gallery__thumb {
  flex: 0 0 168px;
  height: 104px;
  border: 2px solid transparent;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

.unit-gallery__thumb.is-active {
  border-color: #ef8025;
}

body.detail-lightbox-open {
  overflow: hidden;
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.detail-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.detail-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1400px, 100%);
  height: min(90vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-lightbox__dialog img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.detail-lightbox__close,
.detail-lightbox__nav {
  position: absolute;
  border: 0;
  color: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.detail-lightbox__close {
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.detail-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 26px;
}

.detail-lightbox__close i,
.detail-lightbox__nav i {
  line-height: 1;
  display: block;
}

.detail-lightbox__nav--prev {
  left: 16px;
}

.detail-lightbox__nav--next {
  right: 16px;
}

.detail-lightbox__count {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.detail-section {
  margin-top: 24px;
  padding: 28px;
}

.detail-section__header {
  margin-bottom: 22px;
}

.detail-section__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #ef8025;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detail-section__header h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
}

.detail-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.detail-overview__card {
  padding: 18px 20px;
  border-radius: 20px;
  background: #f8fafc;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-overview__card span {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.detail-overview__card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  min-width: 0;
}

.detail-copy,
.detail-description {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.detail-copy {
  margin-top: 22px;
}

.detail-description ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.detail-description li + li {
  margin-top: 10px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #edf1f5;
  background: #fbfcfd;
  color: #374151;
  font-weight: 600;
}

.amenity-item i {
  color: #ef8025;
  font-size: 18px;
}

.amenity-item span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  white-space: normal;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
}

.info-row span {
  color: #6b7280;
}

.info-row strong {
  color: #111827;
  font-weight: 800;
}

.location-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #edf1f5;
}

.location-card__map {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(239,128,37,.18), transparent 28%),
    linear-gradient(135deg, #e9eef5, #d8e1ed);
  text-align: center;
}

.location-card__pin {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef8025;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 34px rgba(239, 128, 37, 0.24);
}

.location-card__map strong {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.location-card__map span {
  color: #6b7280;
}

.location-card__map--embed {
  background: transparent;
  padding: 0;
  display: block;
}

.location-card__map--embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 18px;
  border: 0;
}

.location-card__copy {
  padding: 22px 24px;
  color: #4b5563;
  line-height: 1.8;
}

.location-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.location-card__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}

.location-card__directions:hover {
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.2);
}

.similar-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.similar-grid::-webkit-scrollbar {
  display: none;
}

.similar-grid::-webkit-scrollbar-track {
  background: transparent;
}

.similar-grid::-webkit-scrollbar-thumb {
  background: transparent;
}

.similar-card {
  flex: 0 0 min(360px, 100%);
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #edf1f5;
  background: #fff;
}

.similar-card__image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.similar-card__image--one {
  background-image: linear-gradient(180deg, rgba(17,24,39,.04), rgba(17,24,39,.28)), url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1200&q=80');
}

.similar-card__image--two {
  background-image: linear-gradient(180deg, rgba(17,24,39,.04), rgba(17,24,39,.28)), url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1200&q=80');
}

.similar-card__body {
  padding: 20px;
}

.similar-card__body strong {
  color: #EF8025;
  font-size: 22px;
  font-weight: 800;
}

.similar-card__body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.similar-card__body p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.similar-card__body a {
  display: inline-flex;
  margin-top: 16px;
  color: #EF8025;
  font-weight: 700;
  text-decoration: none;
}

.unit-detail-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-price-card,
.contact-card,
.cta-card {
  padding: 24px;
}

.sidebar-price-card__label {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar-price-card__value {
  display: block;
  margin-top: 8px;
  color: #EF8025;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
}

.sidebar-price-card__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.sidebar-price-card__actions a,
.sidebar-price-card__actions button {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: normal;
  word-break: break-word;
  flex-wrap: wrap;
  min-width: 0;
}

.sidebar-price-card__actions i {
  flex-shrink: 0;
}

.sidebar-price-card__actions .is-whatsapp {
  grid-column: 1 / -1;
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.sidebar-price-card__actions .is-dark {
  grid-column: 1 / -1;
  background: #EF8025;
  border-color: #EF8025;
  color: #fff;
}

.contact-card__agent {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(239,128,37,.18), rgba(17,28,102,.18)),
    url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=320&q=80') center/cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 25px 45px rgba(31, 27, 23, 0.09);
}

.contact-card__agent h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.contact-card__agent span {
  color: #6b7280;
  font-size: 14px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: block;
}

.contact-form__full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
  color: #111827;
  font-size: 15px;
  outline: 0;
}

.contact-form input {
  height: 52px;
  padding: 0 16px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  height: 56px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
}

.cta-card {
  background: #EF8025;
  color: #fff;
}

.cta-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
}

.cta-card p {
  margin: 0;
  color: #c7ceed;
  line-height: 1.7;
}

.cta-card button,
.cta-card a {
  width: 100%;
  height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #EF8025;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 1199px) {
  .unit-detail-layout {
    grid-template-columns: 1fr;
  }

  .unit-detail-sidebar {
    position: static;
  }

  .unit-hero__stats,
  .detail-overview,
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .unit-detail-shell {
    width: min(100% - 24px, 1320px);
  }

  .unit-detail-breadcrumb {
    padding-top: 0px;
  }

  .unit-hero,
  .detail-section,
  .sidebar-price-card,
  .contact-card,
  .cta-card {
    padding: 20px;
    border-radius: 22px;
  }

  .unit-hero__head,
  .unit-hero__actions,
  .detail-overview,
  .info-grid,
  .similar-grid,
  .contact-form,
  .sidebar-price-card__actions,
  .unit-gallery__thumbs {
    grid-template-columns: 1fr;
  }

  .unit-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unit-hero__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .unit-hero__actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

  .unit-gallery__stage {
    min-height: 360px;
    border-radius: 22px;
  }

  .unit-gallery__nav button,
  .detail-lightbox__nav,
  .detail-lightbox__close {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .detail-lightbox {
    padding: 12px;
  }

  .detail-lightbox__dialog {
    height: min(84vh, 720px);
  }

  .unit-gallery__thumb {
    height: 84px;
  }

  .hero-stat,
  .detail-overview__card {
    padding: 14px 16px;
  }

  .sidebar-price-card__value {
    font-size: 30px;
  }

  .unit-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .unit-gallery {
    order: 1;
  }

  .unit-hero__stats {
    order: 2;
  }
}
