/* ============================================================
   VILLAS CATALOG — shop / каталог ЖК (desktop)
   Builds on villas-home.css (shared header/footer/consult/chips).
   node 2936:4319 — "Новостройки Москвы — каталог ЖК"
   ============================================================ */

/* ---------- BANNER ---------- */
.v-cat-hero {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0e0e0e;
  overflow: hidden;
}

.v-cat-hero__bg {
  position: absolute;
  inset: 0;
}

.v-cat-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-cat-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(42deg, #0e0e0e 30%, rgba(14, 14, 14, .2) 62%);
}

.v-cat-hero__top {
  position: relative;
  padding: 160px 80px 48px;
}

.v-cat-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.v-cat-crumb a {
  color: rgba(255, 255, 255, .4);
}

.v-cat-crumb a:hover {
  color: var(--v-gold);
}

.v-cat-crumb span {
  color: rgba(255, 255, 255, .4);
}

.v-cat-crumb .v-cat-crumb__cur {
  color: rgba(255, 255, 255, .6);
}

.v-cat-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 24px;
}

.v-cat-hero__title {
  font-family: var(--v-serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.v-cat-hero__title .v-i {
  color: #e8d4a8;
}

.v-cat-hero__sub {
  margin-top: 16px;
  font-size: 24px;
  color: rgba(255, 255, 255, .6);
  max-width: 720px;
}

.v-cat-stats {
  display: flex;
  gap: 40px;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.v-cat-stat__num {
  font-family: var(--v-serif);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--v-gold);
}

.v-cat-stat__label {
  display: block;
  margin-top: 14px;
  font-weight: 500;
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
}

/* ---------- FILTER BAR ---------- */
.v-cat-filters {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 0 32px;
  min-height: 61px;
}

.v-cat-filters button {
  background: none;
  border: none;
}

.v-cat-fgroup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.v-cat-fgroup:last-child {
  border-right: 0;
}



.v-cat-flabel {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .66px;
  text-transform: uppercase;
  color: #9a9a9a;
  white-space: nowrap;
}

/* market tabs */
.v-cat-markets {
  padding: 0;
}

.v-cat-market {
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  color: #a6a6a6;
  border-bottom: 2px solid transparent !important;
  transition: color .15s ease;
}

.v-cat-market.is-active {
  color: var(--v-gold);
  border-bottom-color: var(--v-gold) !important;
}

.v-cat-market:hover {
  color: #fff;
}

/* room buttons */
.v-cat-rooms {
  display: flex;
  gap: 4px;
}

.v-cat-room {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 4px;
  font-size: 12px;
  color: #a6a6a6;
  transition: all .12s ease;
}

.v-cat-room--wide {
  width: auto;
  padding: 0 11px;
  font-size: 11px;
}

.v-cat-room:hover {
  border-color: var(--v-gold);
  color: #fff;
}

.v-cat-room.is-active {
  background: var(--v-gold);
  border-color: var(--v-gold);
  color: var(--v-dark);
  font-weight: 600;
}

/* price mode toggle */
.v-cat-seg {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  overflow: hidden;
}

.v-cat-seg button {
  padding: 4px 8px;
  font-weight: 500;
  font-size: 11px;
  color: #9a9a9a;
  height: 32px;
}

.v-cat-seg button.is-active {
  background: var(--v-gold);
  color: var(--v-dark);
  border-radius: 4px;
}

.v-cat-range {
  display: flex;
  align-items: center;
  gap: 4px;
}

.v-cat-range .v-cat-dash {
  color: #9a9a9a;
  font-size: 12px;
}

.v-cat-num {
  width: 124px;
  height: 32px;
  padding: 6px 10px;
  background: #2f2f2f;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
}

.v-cat-num--sm {
  width: 72px;
}

.v-cat-num::placeholder {
  color: #757575;
}

.v-cat-num:focus {
  outline: none;
  border-color: var(--v-gold);
}

/* deadline pills */
.v-cat-pills {
  display: flex;
  gap: 6px;
}

.v-cat-pill {
  height: 29px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 100px;
  font-size: 12px;
  color: #a6a6a6;
  transition: all .12s ease;
}

.v-cat-pill:hover {
  border-color: var(--v-gold);
  color: #fff;
}

.v-cat-pill.is-active {
  background: var(--v-gold);
  border-color: var(--v-gold);
  color: var(--v-dark);
  font-weight: 600;
}

.v-cat-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.v-cat-more svg {
  width: 16px;
  height: 16px;
}

.v-cat-more:hover {
  color: var(--v-gold);
}

/* ---------- TOOLBAR ---------- */
.v-cat-body {
  padding-bottom: 40px;
}

.v-cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 24px;
}

.v-cat-found {
  font-size: 18px;
  color: #fff;
  white-space: nowrap;
}

.v-cat-found b {
  color: var(--v-gold);
  font-weight: 600;
}

.v-cat-search {
  position: relative;
  flex: 0 1 444px;
}

.v-cat-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, .4);
}

.v-cat-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
}

.v-cat-search input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.v-cat-search input:focus {
  outline: none;
  border-color: var(--v-gold);
}

.v-cat-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v-cat-sortlabel {
  font-size: 14px;
  color: #9a9a9a;
  white-space: nowrap;
}

.v-cat-sort-wrap {
  position: relative;
}

.v-cat-sort {
  appearance: none;
  height: 38px;
  padding: 0 38px 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.v-cat-sort:focus {
  outline: none;
  border-color: var(--v-gold);
}

.v-cat-sort-wrap svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #a6a6a6;
  pointer-events: none;
}

.v-cat-sort option {
  background: #1a1a1a;
  color: #fff;
}

.v-cat-view {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 8px;
  overflow: hidden;
}

.v-cat-view button {
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a6a6a6;
  border: none;
  background: none;
}

.v-cat-view button svg {
  width: 16px;
  height: 16px;
}

.v-cat-view button.is-active {
  background: var(--v-gold);
  color: var(--v-dark);
}

/* ---------- GRID + CARDS ---------- */
.v-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.v-nov {
  display: flex;
  flex-direction: column;
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.v-nov:hover {
  border-color: rgba(255, 222, 163, .35);
  transform: translateY(-4px);
}

.v-nov__media {
  position: relative;
  height: 330px;
  background: #edeae3;
  overflow: hidden;
}

.v-nov__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-nov__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(14, 14, 14, .75);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  line-height: 16px;
}

.v-nov__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
  border: none;
  color: #1a1a1a;
}

.v-nov__fav svg {
  width: 16px;
  height: 16px;
}

.v-nov__fav:hover {
  background: var(--v-gold);
}

.v-nov__fav.is-active {
  color: #d23;
}

.v-nov__fav.is-active svg {
  fill: #d23;
}

.v-nov__body {
  padding: 19px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.v-nov__name {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.v-nov__dev {
  font-size: 12px;
  color: #a6a6a6;
}

/* ЖК card: район, тип, факты (застройщик / сдача) */
.v-nov__district {
  font-size: 14px;
  color: var(--v-dim);
}

.v-nov__type {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.v-nov__facts {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--v-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.v-nov__fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v-nov__fact span {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}

.v-nov__fact b {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.v-nov__price {
  font-family: var(--v-serif);
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  font-feature-settings: "case" 1;
}

.v-nov__area {
  font-family: var(--v-sans);
  font-weight: 400;
  font-size: 13px;
  color: #a6a6a6;
}

.v-nov__rooms {
  display: flex;
  gap: 6px;
}

.v-nov__room {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 100px;
  background: #edeae3;
  color: #5a5a5a;
  font-size: 11px;
  line-height: 1.6;
}

.v-nov__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.v-nov__loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #a6a6a6;
}

.v-nov__loc svg {
  width: 13px;
  height: 13px;
  color: #a6a6a6;
}

.v-nov__deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--v-gold);
}

.v-nov__deadline svg {
  width: 16px;
  height: 16px;
  opacity: .6;
}

/* auto-match chips (Похожие комплексы on the apartment page) */
.v-nov__match {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.v-nov__matchtag {
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--v-gold);
  background: rgba(193, 154, 91, .12);
  border: 1px solid rgba(193, 154, 91, .35);
  white-space: nowrap;
}

/* list view */
.v-cat-grid.is-list {
  grid-template-columns: 1fr;
  gap: 16px;
}

.v-cat-grid.is-list .v-nov {
  flex-direction: row;
}

.v-cat-grid.is-list .v-nov__media {
  width: 420px;
  height: 280px;
  flex-shrink: 0;
}

.v-cat-grid.is-list .v-nov__body {
  flex: 1;
  justify-content: center;
}

/* empty */
.v-cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--v-dim);
}

.v-cat-empty svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--v-gold);
}

.v-cat-empty h3 {
  font-family: var(--v-serif);
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}

/* ---------- PAGINATION ---------- */
.v-cat-pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.v-cat-pag button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: transparent;
  color: #a6a6a6;
  font-size: 14px;
  transition: all .12s ease;
}

.v-cat-pag button:hover:not(:disabled) {
  border-color: var(--v-gold);
  color: #fff;
}

.v-cat-pag button.is-active {
  background: var(--v-gold);
  border-color: var(--v-gold);
  color: var(--v-dark);
  font-weight: 600;
}

.v-cat-pag button:disabled {
  opacity: .35;
  cursor: default;
}

.v-cat-pag .v-cat-dots {
  color: #a6a6a6;
  padding: 0 4px;
}

/* ============================================================
   "Ещё фильтры" dropdown + Комплекс (ЖК) chip
   ============================================================ */
.v-cat-morewrap {
  position: relative;
}

.v-cat-more.is-open {
  color: var(--v-gold);
}

.v-cat-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: #1d1d1d;
  border: 1px solid var(--v-line-2);
  border-radius: 14px;
  padding: 16px;
  z-index: 60;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
  display: none;
}

.v-cat-dropdown.is-open {
  display: block;
}

.v-cat-dropdown__label {
  font-size: 11px;
  letter-spacing: .66px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 12px;
}

.v-cat-jk-search {
  width: 100%;
  height: 40px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: #2f2f2f;
  border: 1px solid var(--v-line-2);
  color: #fff;
  font-size: 14px;
}

.v-cat-jk-search::placeholder {
  color: #757575;
}

.v-cat-jk-search:focus {
  outline: none;
  border-color: var(--v-gold);
}

.v-cat-jk-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
}

.v-cat-jk-item {
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  transition: background .12s ease, color .12s ease;
}

.v-cat-jk-item:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.v-cat-jk-item.is-active {
  background: rgba(201, 169, 110, .12);
  color: var(--v-gold);
}

.v-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 100px;
  background: rgba(201, 169, 110, .12);
  border: 1px solid var(--v-gold);
  color: var(--v-gold);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.v-cat-chip__x {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 222, 163, .15);
  cursor: pointer;
}

.v-cat-chip__x:hover {
  background: var(--v-gold);
  color: var(--v-dark);
}

.v-cat-chip__x svg {
  width: 12px;
  height: 12px;
}

/* ============================================================
   PLAN CARDS (планировки catalog)
   ============================================================ */
.v-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.v-plan-card {
  display: flex;
  flex-direction: column;
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.v-plan-card:hover {
  border-color: rgba(255, 222, 163, .4);
  transform: translateY(-4px);
}

.v-plan-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f4f2ec;
  padding: 16px;
}

.v-plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.v-plan-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(14, 14, 14, .82);
  color: #fff;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.v-plan-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.v-plan-card__type {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
}

.v-plan-card__jk {
  font-size: 13px;
  color: var(--v-gold);
}

.v-plan-card__spec {
  font-size: 13px;
  color: var(--v-dim);
}

.v-plan-card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.v-plan-card__price {
  font-family: var(--v-serif);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
}

.v-plan-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--v-gold);
}

.v-plan-card__more svg {
  width: 16px;
  height: 16px;
}

/* plan lightbox */
.v-plan-modal .v-modal__box {
  max-width: 760px;
}

.v-plan-modal__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f4f2ec;
  border-radius: 14px;
  padding: 24px;
}

.v-plan-modal__type {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 30px;
  color: #fff;
  margin-top: 22px;
}

.v-plan-modal__jk {
  font-size: 14px;
  color: var(--v-gold);
  margin-top: 6px;
}

.v-plan-modal__spec {
  font-size: 15px;
  color: var(--v-dim);
  margin-top: 14px;
}

.v-plan-modal__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--v-dim-2);
  margin-top: 14px;
}

.v-plan-modal .v-btn-gold {
  margin-top: 24px;
  height: 56px;
  font-size: 15px;
}

/* ============================================================
   SHOP CATALOG (каталог ЖК) — responsive: tablet / mobile
   The detailed inline filter groups collapse into the "Ещё фильтры"
   popup; the bar keeps just market tabs + the popup button.
   ============================================================ */
/* The full inline filter bar needs ~1834px to fit all six groups. As the
   viewport narrows, fold the widest groups into the "Ещё фильтры" popup so the
   bar always fits the window (every filter is still reachable via the popup). */
@media (max-width: 1840px) {
  .v-cat-filters { justify-content: space-between; }
  .v-cat-filters .v-cat-fgroup:nth-child(4),  /* Площадь */
  .v-cat-filters .v-cat-fgroup:nth-child(5) { /* Сдача */
    display: none;
  }
}

@media (max-width: 1200px) {
  .v-cat-filters .v-cat-fgroup:nth-child(2),  /* Комнат */
  .v-cat-filters .v-cat-fgroup:nth-child(3) { /* Цена */
    display: none;
  }
}

@media (max-width: 1280px) {
  .v-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .v-cat-hero__top { padding: 130px 40px 36px; }
  .v-cat-hero__title { font-size: 48px; }
  .v-cat-hero__sub { font-size: 18px; margin-top: 12px; }
  .v-cat-hero__row { gap: 28px; }
  .v-cat-stats { gap: 32px; }
  .v-cat-stat__num { font-size: 38px; }

  /* slim filter bar: hide the inline detail groups (they live in the popup) */
  .v-cat-filters { padding: 0 24px; justify-content: space-between; }
  .v-cat-fgroup:has(.v-cat-flabel) { display: none; }
  .v-cat-fgroup.v-cat-markets { border-right: 0; }

  /* toolbar wraps: count + sort/view on row 1, search full-width on row 2 */
  .v-cat-toolbar { flex-wrap: wrap; gap: 14px; padding-top: 24px; }
  .v-cat-found { order: 1; }
  .v-cat-toolbar__right { order: 2; }
  .v-cat-search { order: 3; flex: 1 1 100%; }
}

@media (max-width: 760px) {
  .v-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .v-cat-hero__row { flex-direction: column; align-items: flex-start; }
  .v-cat-hero__title { font-size: 40px; }
  .v-cat-hero__sub { font-size: 16px; }
  .v-cat-stats { gap: 26px; }

  /* list view → stacked cards (the 420px side image won't fit) */
  .v-cat-grid.is-list .v-nov { flex-direction: column; }
  .v-cat-grid.is-list .v-nov__media { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .v-cat-hero__top { padding: 120px 20px 26px; }
  .v-cat-filters { padding: 0 16px; }
  .v-cat-market { padding: 0 12px; font-size: 12px; }
  .v-cat-grid { grid-template-columns: 1fr; }
  .v-cat-stats { gap: 20px; }
  .v-cat-stat__num { font-size: 30px; }
  .v-cat-toolbar__right { flex-wrap: wrap; }
}

@media (max-width: 1280px) {
  .v-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .v-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .v-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
.v-cat-fgroup{
  padding-left: 0;
  padding-right: 0 ;
}

}

@media (max-width: 480px) {
  .v-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   APARTMENT (LOT) CARDS — каталог квартир (screenshot 1)
   ============================================================ */
.v-flat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.v-flat-card {
  display: flex;
  flex-direction: column;
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.v-flat-card:hover {
  border-color: rgba(255, 222, 163, .45);
  transform: translateY(-4px);
}

/* plan media — light dotted panel (the SVG plans are dark-on-light) */
.v-flat-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(rgba(0, 0, 0, .14) 1px, transparent 1.5px) 0 0 / 16px 16px,
    #f4f2ec;
  padding: 30px 28px;
}

.v-flat-card__plan {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* compass */
.v-flat-card__compass {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #4a4a4a;
}

.v-flat-card__compass svg {
  width: 34px;
  height: 34px;
}

/* body */
.v-flat-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.v-flat-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.v-flat-card__addr {
  font-size: 14px;
  color: var(--v-dim);
}

.v-flat-card__title {
  font-family: var(--v-serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.05;
  color: var(--v-gold);
}

.v-flat-card__loc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
}

.v-flat-card__district {
  font-weight: 700;
  color: #fff;
}

.v-flat-card__metro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v-dim);
}

.v-flat-card__metro svg {
  width: 16px;
  height: 16px;
  color: #4a7dff;
}

.v-flat-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--v-line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v-flat-card__price b {
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  white-space: nowrap;
}

.v-flat-card__specs {
  display: flex;
  gap: 18px;
}

.v-flat-spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v-flat-spec span {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}

.v-flat-spec b {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 1280px) {
  .v-flat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .v-flat-grid {
    grid-template-columns: 1fr;
  }

  .v-flat-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   SINGLE APARTMENT PAGE — страница квартиры (screenshot 2)
   ============================================================ */
.v-flatp {
  padding: 160px 0 90px;
}

.v-flatp__crumb {
  margin-bottom: 34px;
}

.v-flatp__crumb span {
  color: rgba(255, 255, 255, .3);
}

.v-flatp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 1fr;
  gap: 56px;
  align-items: start;
}

.v-flatp__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(rgba(0, 0, 0, .12) 1px, transparent 1.5px) 0 0 / 18px 18px,
    #f4f2ec;
  border: 1px solid var(--v-line-2);
  border-radius: 4px;
  padding: 44px;
}

.v-flatp__plan {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.v-flatp__media .v-flat-card__compass {
  top: 22px;
  right: 24px;
}

.v-flatp__media .v-flat-card__compass svg {
  width: 42px;
  height: 42px;
}

.v-flatp__info {
  padding-top: 6px;
}

.v-flatp__title {
  font-family: var(--v-serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.04;
  color: var(--v-gold);
}

.v-flatp__metro {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 16px;
  color: var(--v-dim);
}

.v-flatp__metro-ic svg {
  width: 22px;
  height: 22px;
  color: #4a7dff;
}

.v-flatp__walk svg {
  width: 16px;
  height: 16px;
  color: var(--v-dim);
}

.v-flatp__specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 30px;
}

.v-flatp__price {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.v-flatp__spec {
  font-size: 18px;
  color: var(--v-dim);
}

.v-flatp__spec b {
  color: #fff;
  font-weight: 600;
}

.v-flatp__desc {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--v-dim-2);
  max-width: 540px;
}

.v-flatp__addr {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: 14px;
  color: var(--v-dim);
}

.v-flatp__addr span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.v-flatp__addr svg {
  width: 16px;
  height: 16px;
  color: var(--v-gold);
}

.v-flatp__lot {
  color: rgba(255, 255, 255, .4);
}

.v-flatp__cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.v-flatp__cta .v-btn-gold {
  height: 64px;
  font-size: 15px;
}

.v-flatp__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 34px;
  border-radius: 16px;
  border: 1px solid var(--v-gold-line);
  color: var(--v-gold);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.v-flatp__ghost:hover {
  background: rgba(201, 169, 110, .08);
}

.v-flatp__back {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  color: var(--v-dim);
}

.v-flatp__back:hover {
  color: var(--v-gold);
}

@media (max-width: 1024px) {
  .v-flatp__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .v-flatp__title {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .v-flatp {
    padding: 120px 0 60px;
  }

  .v-flatp__cta {
    flex-direction: column;
  }

  .v-flatp__cta>* {
    width: 100%;
  }
}

/* ============================================================
   WISHLIST PAGE — Избранное
   ============================================================ */
.v-wish {
  padding: 160px 0 90px;
}

.v-wish__crumb {
  margin-bottom: 28px;
}

.v-wish__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.v-wish__count {
  font-size: 18px;
  color: var(--v-dim-2);
}

.v-wish__clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--v-line-2);
  color: var(--v-dim);
  font-weight: 600;
  font-size: 14px;
  background: none;
  transition: color .15s ease, border-color .15s ease;
}

.v-wish__clear:hover {
  color: #fff;
  border-color: var(--v-gold);
}

.v-wish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.v-wish-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 50px 20px 80px;
}

.v-wish-empty__ic {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--v-surface-2);
  border: 1px solid var(--v-line-2);
  display: grid;
  place-items: center;
  color: var(--v-gold);
  margin-bottom: 8px;
}

.v-wish-empty__ic svg {
  width: 38px;
  height: 38px;
}

.v-wish-empty__title {
  font-family: var(--v-serif);
  font-size: 34px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.v-wish-empty__text {
  font-size: 16px;
  color: var(--v-dim-2);
  max-width: 420px;
  line-height: 1.55;
}

.v-wish-empty .v-btn-gold {
  margin-top: 14px;
  height: 60px;
  font-size: 15px;
}

@media (max-width: 1280px) {
  .v-wish-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .v-wish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .v-wish-grid {
    grid-template-columns: 1fr;
  }

  .v-wish__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   FILTERS POPUP  (.v-fmodal) — "Все фильтры" / "Ещё фильтры"
   + active-filter chips bar + reset link
   ============================================================ */
.v-cat-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.v-cat-reset {
  flex-shrink: 0;
  background: none;
  color: var(--v-dim);
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, .3);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}

.v-cat-reset:hover {
  color: var(--v-gold);
  border-color: var(--v-gold);
}

.v-cat-more__n {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--v-gold);
  color: var(--v-dark);
  font-size: 11px;
  font-weight: 700;
}

.v-cat-more__n[hidden] {
  display: none;
}

.v-fmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.v-fmodal.is-open {
  display: flex;
}

.v-fmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.v-fmodal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid var(--v-line-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
}

.v-fmodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--v-line);
}

.v-fmodal__title {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 28px;
  text-transform: uppercase;
  color: #fff;
}

.v-fmodal__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--v-line-2);
  color: var(--v-dim);
  font-size: 20px;
  line-height: 1;
  transition: color .15s, border-color .15s;
  background: none;
}

.v-fmodal__close:hover {
  color: #fff;
  border-color: var(--v-gold);
}

.v-fmodal__body {
  overflow-y: auto;
  padding: 24px 28px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.v-fmodal__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v-fmodal__group--full {
  grid-column: 1 / -1;
}

.v-fmodal__label {
  font-size: 11px;
  letter-spacing: .66px;
  text-transform: uppercase;
  color: #9a9a9a;
}

.v-fmodal__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v-fopt {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 100px;
  background: transparent;
  color: #cfcfcf;
  font-size: 13px;
  transition: all .12s ease;
}

.v-fopt:hover {
  border-color: var(--v-gold);
  color: #fff;
}

.v-fopt.is-active {
  background: var(--v-gold);
  border-color: var(--v-gold);
  color: var(--v-dark);
  font-weight: 600;
}

.v-fmodal .v-cat-range {
  gap: 8px;
}

.v-fmodal .v-cat-num {
  width: 100%;
  height: 42px;
}

.v-fmodal__range2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

/* complexes checklist */
.v-fmodal__jksearch {
  width: 100%;
  height: 42px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: #2f2f2f;
  border: 1px solid var(--v-line-2);
  color: #fff;
  font-size: 13px;
}

.v-fmodal__jksearch:focus {
  outline: none;
  border-color: var(--v-gold);
}

.v-fmodal__jklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  max-height: 168px;
  overflow-y: auto;
}

.v-fmodal__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cfcfcf;
  cursor: pointer;
  padding: 5px 0;
}

.v-fmodal__check input {
  accent-color: var(--v-gold);
  width: 16px;
  height: 16px;
}

.v-fmodal__check:hover {
  color: #fff;
}

.v-fmodal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-top: 1px solid var(--v-line);
}

.v-fmodal__reset {
  border: none;
  background: none;
  color: var(--v-dim);
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, .3);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}

.v-fmodal__reset:hover {
  color: var(--v-gold);
  border-color: var(--v-gold);
}

.v-fmodal__apply {
  height: 56px;
  padding: 0 32px;
  font-size: 15px;
}

@media (max-width: 680px) {
  .v-fmodal__body {
    grid-template-columns: 1fr;
  }

  .v-fmodal__jklist {
    grid-template-columns: 1fr;
  }

  .v-fmodal__title {
    font-size: 22px;
  }
}