/* Страница объекта (лота) в ЖК */
.property-page-body {
  --skel-base: #f5f5f7;
  --skel-highlight: #ffffff;
  background: var(--c-bg);
  color: var(--c-text);
  padding-top: var(--header-h, 80px);
}

.property-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.property-breadcrumbs {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--c-muted);
}

.property-breadcrumbs a {
  color: var(--c-muted);
  text-decoration: none;
}
.property-breadcrumbs a:hover {
  color: var(--c-text);
}

.property-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  height: 400px;
}

.property-main-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--skel-base);
  overflow: hidden;
}

.property-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.property-thumb {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: var(--skel-base);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
}
.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-thumb.is-active {
  border-color: var(--c-accent);
}

.property-sticky {
  position: sticky;
  top: 20px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30, 30, 36, 0.08);
}

.property-sticky h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}

.property-address {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.property-price-block {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.property-price-m2 {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.property-btn-primary,
.property-btn-secondary {
  display: block;
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}
.property-btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.property-btn-primary:hover {
  opacity: 0.92;
}
.property-btn-secondary {
  background: #f5f5f7;
  color: var(--c-text);
  margin-bottom: 0;
}
.property-btn-secondary:hover {
  opacity: 0.9;
}

.property-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.property-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.property-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.property-feature-val {
  font-size: 18px;
  font-weight: 600;
}
.property-feature-lbl {
  font-size: 13px;
  color: var(--c-muted);
}

.property-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.property-desc {
  margin-bottom: 48px;
  line-height: 1.6;
  color: var(--c-text);
  font-size: 15px;
}

/* Описание из CRM: безопасные <br>, без raw HTML из фида */
.property-description--rich {
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.property-map-wrap {
  margin-bottom: 40px;
}
.property-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.property-map-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: var(--c-text);
}
.property-map-chip.is-active {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.property-map-box {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--skel-base);
}

.property-fatal {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .property-hero {
    grid-template-columns: 1fr;
  }
  .property-gallery {
    height: 320px;
  }
  .property-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .property-sticky {
    position: static;
  }
}

@media (max-width: 520px) {
  .property-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }
  .property-main-img {
    height: 220px;
  }
  .property-thumbs {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    height: 72px;
  }
}
