/* Каталог недвижимости: список с фильтрами и карточка объекта. v1 */
.re-cat, .re-obj { max-width: 1180px; }

.re-filters {
  display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end;
  background: #f7f8fa; border: 1px solid #e6e8ec; border-radius: 10px;
  padding: 14px 16px; margin: 6px 0 18px;
}
.re-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #666; }
.re-f > span { font-weight: 600; }
.re-f input, .re-f select {
  height: 38px; padding: 0 10px; font-size: 15px; color: #222;
  border: 1px solid #d6d9e0; border-radius: 8px; background: #fff; min-width: 165px;
}
.re-f--num input { min-width: 120px; }
.re-f--btn { flex-direction: row; align-items: center; gap: 12px; }
.re-btn {
  display: inline-block; height: 38px; line-height: 38px; padding: 0 20px;
  border: 0; border-radius: 8px; background: #1a73e8; color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.re-btn:hover { background: #1663c7; color: #fff; }
.re-reset { font-size: 14px; color: #888; text-decoration: none; border-bottom: 1px dashed #bbb; }

.re-count { font-size: 14px; color: #777; margin: 0 0 12px; }
.re-empty {
  padding: 26px 20px; background: #f7f8fa; border: 1px solid #e6e8ec; border-radius: 10px;
  color: #555; font-size: 15px; line-height: 1.6;
}

.re-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.re-card {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid #e6e8ec; border-radius: 12px; overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.re-card:hover { box-shadow: 0 6px 20px rgba(20, 30, 60, .12); transform: translateY(-2px); }
.re-card__ph { position: relative; aspect-ratio: 4 / 3; background: #eef0f4; }
.re-card__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-card__badge {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 6px;
  background: rgba(17, 24, 39, .78); color: #fff; font-size: 12px; font-weight: 600;
}
.re-card__b { padding: 12px 14px 14px; }
.re-card__t { font-size: 15px; font-weight: 600; line-height: 1.35; color: #1b1f27; }
.re-card__w { margin-top: 4px; font-size: 13px; color: #7b8290; }
.re-card__m { margin-top: 6px; font-size: 13px; color: #7b8290; }
.re-card__p { margin-top: 8px; font-size: 17px; font-weight: 700; color: #14181f; }

.re-pages { display: flex; align-items: center; gap: 16px; margin: 22px 0 6px; font-size: 15px; }
.re-pages a { color: #1a73e8; text-decoration: none; }
.re-pages span { color: #888; }

/* карточка объекта */
.re-crumbs { font-size: 13px; margin: 4px 0 10px; }
.re-crumbs a { color: #888; text-decoration: none; }
.re-obj__h1 { font-size: 27px; line-height: 1.25; margin: 0 0 6px; }
.re-obj__where { font-size: 15px; color: #7b8290; }
.re-obj__price { font-size: 25px; font-weight: 700; margin: 10px 0 16px; }
.re-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 22px; }
.re-gal__i { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef0f4; }
.re-gal__i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-gal__i:first-child { grid-column: span 2; grid-row: span 2; }

.re-h2 { font-size: 20px; margin: 22px 0 10px; }
.re-tab { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 15px; }
.re-tab th, .re-tab td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eceef2; vertical-align: top; }
.re-tab th { width: 42%; color: #7b8290; font-weight: 500; }
.re-desc { font-size: 16px; line-height: 1.65; color: #222; max-width: 760px; }

.re-contact {
  margin: 24px 0 10px; padding: 16px 18px; max-width: 640px;
  background: #f7f8fa; border: 1px solid #e6e8ec; border-radius: 10px;
}
.re-contact__who { font-size: 15px; margin-bottom: 10px; color: #444; }
.re-contact__box { margin-top: 12px; font-size: 17px; line-height: 1.7; }
.re-contact__box a { color: #1a73e8; text-decoration: none; }
.re-note { font-size: 13px; color: #8a8f99; line-height: 1.6; max-width: 760px; margin-top: 16px; }
.re-px { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .re-filters { padding: 12px; gap: 10px; }
  .re-f input, .re-f select { min-width: 0; width: 100%; }
  .re-f { flex: 1 1 46%; }
  .re-f--btn { flex: 1 1 100%; }
  .re-obj__h1 { font-size: 22px; }
  .re-obj__price { font-size: 21px; }
  .re-gal__i:first-child { grid-column: span 2; grid-row: auto; }
}
