/* ==========================================================
   venta.css — listado y ficha de propiedades
   Cargar después de styles.css y upgrades.css
   ========================================================== */
:root {
  --ns-dark: #0c3a21;
  --ns-dark-2: #124a2c;
  --ns-lime: #6cc24a;
  --ns-soft: #eaf4ec;
  --ns-ink: #13261b;
  --ns-muted: #5d6b63;
  --ns-line: rgba(12, 58, 33, 0.1);
  --ns-amber: #b7791f;
  --ns-amber-soft: #fcf3e3;
  --v-radius: 22px;
}
.v-page { padding-top: 104px; }
.v-page .wrap { max-width: 1240px; }
.v-page *, .v-page *::before, .v-page *::after { box-sizing: border-box; }
.v-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- HERO DEL LISTADO ---------- */
.v-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 56px 48px;
  border-radius: 32px;
  background:
    radial-gradient(900px 400px at 110% -20%, rgba(108, 194, 74, 0.28), transparent 60%),
    radial-gradient(600px 300px at -10% 120%, rgba(108, 194, 74, 0.14), transparent 60%),
    linear-gradient(135deg, #0c3a21 0%, #124a2c 100%);
  color: #fff;
}
.v-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.v-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ns-lime);
}
.v-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.v-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}
.v-hero h1 em { font-style: normal; color: var(--ns-lime); }
.v-hero p { max-width: 540px; margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.v-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.v-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.v-stat b { font-size: 22px; font-weight: 600; color: #fff; }
.v-stat span { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* ---------- FILTROS ---------- */
.v-filters {
  position: relative;
  z-index: 5;
  margin: -34px 28px 0;
  padding: 14px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--ns-line);
  box-shadow: 0 30px 60px -30px rgba(12, 58, 33, 0.35), 0 2px 8px rgba(12, 58, 33, 0.04);
}
.v-filters-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: stretch;
}
.v-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 16px;
  background: #f6f8f6;
  transition: background 0.2s, box-shadow 0.2s;
}
.v-field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--ns-lime) inset; }
.v-field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ns-muted); }
.v-field input,
.v-field select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ns-ink);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.v-field input { cursor: text; }
.v-field input::placeholder { color: #9aa59f; font-weight: 400; }
.v-field.has-select::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 17px;
  width: 7px;
  height: 7px;
  border: solid var(--ns-muted);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.v-field.search { flex-direction: row; align-items: center; gap: 12px; }
.v-field.search .v-ico { color: var(--ns-dark); width: 20px; height: 20px; }
.v-field.search > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.v-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--ns-dark);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.v-reset:hover { background: var(--ns-dark-2); }
.v-reset[disabled] { background: #e9eeea; color: #9aa59f; cursor: default; }

.v-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 0 4px; }
.v-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--ns-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ns-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.v-chip:hover { border-color: rgba(12, 58, 33, 0.28); }
.v-chip[aria-pressed="true"] { background: var(--ns-dark); border-color: var(--ns-dark); color: #fff; }
.v-chip[aria-pressed="true"] .v-ico { color: var(--ns-lime); }
.v-chip .v-ico { width: 15px; height: 15px; }
.v-chips .sep { width: 1px; height: 22px; margin: 0 4px; background: var(--ns-line); }

/* ---------- BARRA DE RESULTADOS ---------- */
.v-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 20px;
}
.v-bar h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ns-ink); }
.v-bar h2 span { color: var(--ns-muted); font-weight: 400; }
.v-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--ns-line);
  border-radius: 999px;
  background: #fff;
}
.v-sort label { font-size: 13px; color: var(--ns-muted); white-space: nowrap; }
.v-sort select {
  padding: 9px 34px 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #f3f6f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235d6b63' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ns-ink);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ---------- GRILLA Y TARJETAS ---------- */
.v-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.v-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--v-radius);
  background: #fff;
  border: 1px solid var(--ns-line);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.v-card:hover { transform: translateY(-4px); border-color: rgba(12, 58, 33, 0.18); box-shadow: 0 28px 50px -30px rgba(12, 58, 33, 0.45); }
.v-card:focus-visible { outline: 3px solid var(--ns-lime); outline-offset: 3px; }
.v-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 8px 8px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e9eeea;
}
.v-media .track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v-media img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.v-media .nav-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ns-dark);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.v-media .nav-btn.prev { left: 10px; }
.v-media .nav-btn.next { right: 10px; }
.v-media .nav-btn:hover { transform: scale(1.08); }
.v-card:hover .nav-btn, .v-card:focus-within .nav-btn { opacity: 1; }
@media (hover: none) { .v-media .nav-btn { opacity: 1; width: 30px; height: 30px; margin-top: -15px; } }
.v-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 5px; }
.v-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: width 0.25s, background 0.25s; }
.v-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.v-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.v-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ns-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.v-badge.dark { background: var(--ns-dark); color: #fff; }
.v-badge.lime { background: var(--ns-lime); color: var(--ns-dark); }
.v-badge.amber { background: var(--ns-amber-soft); color: var(--ns-amber); }
.v-count {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 30, 20, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.v-count .v-ico { width: 14px; height: 14px; }
.v-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.v-price { display: flex; align-items: baseline; gap: 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ns-ink); }
.v-price small { font-size: 13px; font-weight: 500; color: var(--ns-muted); letter-spacing: 0; }
.v-price.consult { font-size: 19px; color: var(--ns-dark); }
.v-title {
  margin: 8px 0 8px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ns-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.v-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ns-muted); }
.v-loc .v-ico { width: 15px; height: 15px; color: var(--ns-lime); }
.v-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}
.v-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #f4f7f5;
  font-size: 13px;
  font-weight: 500;
  color: var(--ns-ink);
}
.v-spec .v-ico { width: 15px; height: 15px; color: var(--ns-muted); }
.v-card.is-reserved .v-media img { filter: saturate(0.85); }

.v-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 44px 0 0; }
.v-more p { margin: 0; font-size: 14px; color: var(--ns-muted); }
.v-progress { width: 220px; height: 4px; border-radius: 4px; background: #e6ece8; overflow: hidden; }
.v-progress i { display: block; height: 100%; border-radius: 4px; background: var(--ns-lime); transition: width 0.4s; }
.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ns-dark);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.v-btn:hover { background: var(--ns-dark-2); }
.v-btn.ghost { background: #fff; color: var(--ns-dark); border: 1px solid var(--ns-line); }
.v-btn.ghost:hover { border-color: rgba(12, 58, 33, 0.3); background: #fff; }
.v-btn.lime { background: var(--ns-lime); color: var(--ns-dark); }
.v-btn.lime:hover { background: #7bd059; }
.v-btn .v-ico { width: 18px; height: 18px; }

.v-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 24px;
  border: 1px dashed rgba(12, 58, 33, 0.2);
  border-radius: var(--v-radius);
  text-align: center;
}
.v-empty .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--ns-soft); color: var(--ns-dark); }
.v-empty .ic .v-ico { width: 28px; height: 28px; }
.v-empty h3 { margin: 6px 0 0; font-size: 20px; font-weight: 600; color: var(--ns-ink); }
.v-empty p { margin: 0 0 8px; max-width: 420px; color: var(--ns-muted); line-height: 1.55; }

/* ---------- CTA FINAL ---------- */
.v-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 88px 0 72px;
  padding: 36px 40px;
  border-radius: 28px;
  background: var(--ns-soft);
}
.v-cta h3 { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ns-ink); }
.v-cta p { margin: 0; color: var(--ns-muted); font-size: 16px; }
.v-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================
   FICHA DE PROPIEDAD
   ========================================================== */
.p-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13.5px; color: var(--ns-muted); }
.p-crumbs a { color: var(--ns-muted); text-decoration: none; }
.p-crumbs a:hover { color: var(--ns-dark); }
.p-crumbs .v-ico { width: 13px; height: 13px; }
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.p-head h1 { margin: 10px 0 10px; max-width: 820px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--ns-ink); }
.p-head .v-loc { font-size: 15px; }
.p-head .tools { display: flex; gap: 8px; flex-shrink: 0; }
.p-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--ns-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ns-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.p-icon-btn:hover { border-color: rgba(12, 58, 33, 0.3); }

/* mosaico */
.p-mosaic-wrap { position: relative; }
.p-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: 26px;
  overflow: hidden;
}
.p-mosaic button {
  position: relative;
  padding: 0;
  border: 0;
  background: #e9eeea;
  overflow: hidden;
  cursor: zoom-in;
}
.p-mosaic button:first-child { grid-row: 1 / 3; }
.p-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s; }
.p-mosaic button:hover img { transform: scale(1.04); filter: brightness(0.92); }
.p-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.p-mosaic.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 480px; }
.p-mosaic.n2 button:first-child, .p-mosaic.n1 button:first-child { grid-row: auto; }
.p-mosaic.n3 { grid-template-columns: 2fr 1fr; }
.p-mosaic.n4 { grid-template-columns: 2fr 1fr 1fr; }
.p-mosaic.n4 button:nth-child(4) { grid-column: 2 / 4; }
.p-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ns-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.p-all:hover { transform: translateY(-2px); }
.p-mosaic-wrap .p-badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }

/* layout ficha */
.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; margin-top: 40px; align-items: start; }
.p-section { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--ns-line); }
.p-section:last-child { border-bottom: 0; }
.p-section h2 { margin: 0 0 20px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ns-ink); }
.p-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.p-fact { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #f6f8f6; }
.p-fact .v-ico { width: 22px; height: 22px; color: var(--ns-dark); }
.p-fact b { font-size: 20px; font-weight: 600; color: var(--ns-ink); line-height: 1; }
.p-fact span { font-size: 13px; color: var(--ns-muted); }
.p-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 20px; }
.p-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--ns-line); font-size: 15px; }
.p-row span { color: var(--ns-muted); }
.p-row b { font-weight: 600; color: var(--ns-ink); text-align: right; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ns-soft); color: var(--ns-dark); font-size: 14px; font-weight: 500; }
.p-tag .v-ico { width: 16px; height: 16px; color: var(--ns-lime); stroke-width: 2.4; }
.p-desc { position: relative; font-size: 16px; line-height: 1.75; color: #34463b; }
.p-desc p { margin: 0 0 14px; }
.p-desc h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 600; color: var(--ns-ink); }
.p-desc ul { margin: 0 0 16px; padding-left: 20px; }
.p-desc li { margin: 4px 0; }
.p-desc.clamped { max-height: 360px; overflow: hidden; }
.p-desc.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.p-toggle { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--ns-dark); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.p-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-gallery button { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #e9eeea; cursor: zoom-in; }
.p-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.p-gallery button:hover img { transform: scale(1.05); }
.p-gallery button span { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(12, 30, 20, 0.6); color: #fff; font-size: 11.5px; font-weight: 600; }

.p-map { overflow: hidden; border-radius: 20px; border: 1px solid var(--ns-line); background: #eef2ef; }
.p-map iframe { display: block; width: 100%; height: 340px; border: 0; }
.p-map-note { margin: 10px 0 0; font-size: 13px; color: var(--ns-muted); }

/* tarjeta lateral */
.p-aside { position: sticky; top: 100px; }
.p-box {
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--ns-line);
  box-shadow: 0 30px 60px -36px rgba(12, 58, 33, 0.4);
}
.p-box .lbl { font-size: 13px; color: var(--ns-muted); }
.p-box .big { margin: 4px 0 4px; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--ns-ink); line-height: 1.1; }
.p-box .exp { font-size: 14px; color: var(--ns-muted); }
.p-box .v-btn { width: 100%; margin-top: 10px; }
.p-box .v-btn:first-of-type { margin-top: 22px; }
.p-box hr { margin: 22px 0; border: 0; border-top: 1px solid var(--ns-line); }
.p-offices { display: grid; gap: 10px; }
.p-office { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f6f8f6; color: var(--ns-ink); text-decoration: none; transition: background 0.2s; }
.p-office:hover { background: var(--ns-soft); }
.p-office .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--ns-dark); }
.p-office small { display: block; font-size: 12px; color: var(--ns-muted); }
.p-office b { font-size: 15px; font-weight: 600; }
.p-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ns-muted); }
.p-note a { color: var(--ns-dark); }
.p-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--ns-soft); color: var(--ns-dark); }
.p-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ns-lime); }
.p-status.res { background: var(--ns-amber-soft); color: var(--ns-amber); }
.p-status.res::before { background: #e0a43a; }

.p-related { margin: 24px 0 72px; }
.p-related .v-bar { margin-top: 0; }
.p-404 { padding: 120px 0; text-align: center; }

/* ---------- LIGHTBOX ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(8, 18, 12, 0.96);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.lb-top .t { min-width: 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-top .t b { color: #fff; font-weight: 600; margin-right: 10px; }
.lb-x, .lb-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.lb-x:hover, .lb-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 84px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; transition: opacity 0.2s; }
.lb-stage img.loading { opacity: 0.35; }
.lb-arrow { position: absolute; top: 50%; margin-top: -23px; }
.lb-arrow.prev { left: 20px; }
.lb-arrow.next { right: 20px; }
.lb-thumbs { display: flex; gap: 8px; padding: 16px 20px 20px; overflow-x: auto; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 88px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #222; opacity: 0.5; cursor: pointer; transition: opacity 0.2s, border-color 0.2s; }
.lb-thumbs button.on { opacity: 1; border-color: var(--ns-lime); }
.lb-thumbs button:hover { opacity: 0.9; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.lb-lock { overflow: hidden; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .v-filters-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-field.search { grid-column: 1 / -1; }
  .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-layout { grid-template-columns: 1fr; gap: 8px; }
  .p-aside { position: static; order: -1; margin-bottom: 36px; }
}
@media (max-width: 760px) {
  .v-page { padding-top: 96px; }
  .v-hero { padding: 36px 24px 64px; border-radius: 26px; }
  .v-filters { margin: -40px 10px 0; padding: 10px; }
  .v-filters-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-reset { grid-column: 1 / -1; padding: 14px; }
  .v-bar { flex-direction: column; align-items: flex-start; }
  .v-grid { grid-template-columns: 1fr; gap: 18px; }
  .v-cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .p-head { flex-direction: column; align-items: flex-start; }
  .p-mosaic, .p-mosaic.n2, .p-mosaic.n3, .p-mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; border-radius: 20px; }
  .p-mosaic button:first-child { grid-column: 1 / 3; grid-row: 1; }
  .p-mosaic button:nth-child(n + 4) { display: none; }
  .p-mosaic.n1 { grid-template-rows: 300px; }
  .p-mosaic.n2 { grid-template-rows: 260px; grid-template-columns: 1fr; }
  .p-mosaic.n2 button:nth-child(2) { display: none; }
  .p-facts { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .v-chips .sep { display: none; }
  .p-all { right: 10px; bottom: 10px; padding: 10px 14px; font-size: 13px; }
  .p-table { grid-template-columns: 1fr; }
  .p-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-stage { padding: 0 8px; }
  .lb-arrow { width: 40px; height: 40px; margin-top: -20px; background: rgba(0, 0, 0, 0.45); }
  .lb-arrow.prev { left: 12px; }
  .lb-arrow.next { right: 12px; }
  .lb-thumbs button { flex-basis: 64px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-card, .v-media .track, .p-mosaic img, .p-gallery img { transition: none !important; }
}
