/* Patch 01 — улучшение каталога и карточки объекта */

.catalog-hero {
  background: #181a20;
  color: #fff;
  padding: 54px 0;
}
.catalog-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 12px;
}
.catalog-hero p {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  margin: 0;
}

.catalog-page {
  padding-top: 34px;
}

.improved-filter {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow);
  margin-top: -62px;
  position: relative;
  z-index: 2;
}

.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 24px;
  gap: 18px;
}
.catalog-top h2 {
  margin: 0;
  font-size: 30px;
}
.catalog-top p {
  color: var(--muted-foreground);
  margin: 6px 0 0;
}

.improved-card {
  position: relative;
}
.improved-card .card-img {
  position: relative;
  height: 250px;
}
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.card-badges span {
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #181a20;
}
.improved-card .price {
  font-size: 24px;
}
.improved-card .location {
  min-height: 44px;
}
.card-bottom {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--primary);
  font-weight: 800;
}

.empty-box {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  background: #fff;
}

.detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.detail-title-row h1 {
  max-width: 850px;
  margin-bottom: 8px;
}
.detail-v2 .detail-price {
  white-space: nowrap;
}

.gallery-v2 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 10px;
}
.gallery-v2 img {
  transition: .2s;
}
.gallery-v2 img:hover {
  transform: scale(1.015);
}

.object-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}
.object-info-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}
.object-info-card h2:not(:first-child) {
  margin-top: 34px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.features-grid div {
  background: var(--muted);
  border-radius: 14px;
  padding: 16px;
}
.features-grid span {
  display: block;
  color: var(--muted-foreground);
  font-size: 13px;
  margin-bottom: 6px;
}
.features-grid b {
  font-size: 16px;
}

.contact-card-v2 p {
  color: var(--muted-foreground);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .detail-title-row {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .improved-filter {
    margin-top: -40px;
  }
}

@media (max-width: 560px) {
  .catalog-hero {
    padding: 38px 0 70px;
  }
  .catalog-top {
    display: block;
  }
  .catalog-top .btn {
    margin-top: 14px;
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .object-info-card {
    padding: 18px;
  }
}
