/* V6 — design system (izolat sub body.theme-v6) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

body.theme-v6 {
  --v6-font: "DM Sans", system-ui, sans-serif;
  --v6-display: "Fraunces", Georgia, serif;
  --v6-radius: 16px;
  --v6-radius-sm: 10px;
  --v6-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  --v6-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --v6-primary: var(--v5-palette-primary, #b45309);
  --v6-primary-soft: var(--v5-palette-soft, #fffbeb);
  --v6-ink: var(--v5-palette-ink, #0f172a);
  --v6-muted: var(--v5-palette-muted, #64748b);
  --v6-surface: var(--v5-palette-surface, #ffffff);
  --v6-canvas: var(--v5-palette-canvas, #f8fafc);
  --v6-border: var(--v5-palette-border, #e2e8f0);
  font-family: var(--v6-font);
  color: var(--v6-ink);
  background: var(--v6-canvas) !important;
  -webkit-font-smoothing: antialiased;
}

/* Nu rescrie tokenii V5 pe body când sloturile legacy își setează profilul în .v6-legacy-scope */
body.theme-v6[class*="palette-"]:not(.v6-force-v5-palette-body) {
  --v6-primary: var(--v5-palette-primary, var(--v6-primary));
  --v6-ink: var(--v5-palette-ink, var(--v6-ink));
  --v6-muted: var(--v5-palette-muted, var(--v6-muted));
  --v6-surface: var(--v5-palette-surface, var(--v6-surface));
  --v6-canvas: var(--v5-palette-canvas, var(--v6-canvas));
  --v6-border: var(--v5-palette-border, var(--v6-border));
}

body.theme-v6 .topbar,
body.theme-v6 .header-topbar {
  display: none !important;
}

body.theme-v6 #wrapper {
  background: transparent !important;
}

body.theme-v6 .v6-wrap {
  width: min(92%, 1200px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
}

/* Header */
body.theme-v6 .v6-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v6-border);
}

body.theme-v6 .v6-site-header--glass {
  background: rgba(255, 255, 255, 0.78);
}

body.theme-v6 .v6-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

body.theme-v6 .v6-site-header__inner--stack {
  flex-direction: column;
  padding: 18px 0;
  min-height: auto;
}

body.theme-v6 .v6-site-header__inner--split {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

body.theme-v6 .v6-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--v6-ink);
  font-weight: 700;
  font-size: 1.05rem;
}

body.theme-v6 .v6-brand__img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

body.theme-v6 .v6-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

body.theme-v6 .v6-nav a {
  color: var(--v6-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

body.theme-v6 .v6-nav a:hover {
  color: var(--v6-primary);
}

body.theme-v6 .v6-nav--center {
  justify-content: center;
}

body.theme-v6 .v6-site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.theme-v6 .v6-site-header__actions .v6-lang-switch {
  order: 10;
  margin-left: 2px;
}

body.theme-v6 .v6-header-tel {
  font-weight: 600;
  color: var(--v6-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

body.theme-v6 .v6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--v6-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--v6-shadow-sm);
  transition: transform 0.15s ease, filter 0.15s ease;
}

body.theme-v6 .v6-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body.theme-v6 .v6-btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

body.theme-v6 .v6-btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

body.theme-v6 .v6-btn--outline {
  background: transparent;
  color: var(--v6-primary);
  border: 1px solid var(--v6-border);
  box-shadow: none;
}

/* Hero */
body.theme-v6 .v6-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0;
  overflow: hidden;
}

body.theme-v6 .v6-hero--editorial,
body.theme-v6 .v6-hero--statement {
  display: flex;
  align-items: center;
}

body.theme-v6 .v6-hero--no-photo {
  background: linear-gradient(135deg, var(--v6-primary-soft) 0%, var(--v6-canvas) 55%, var(--v6-surface) 100%);
}

body.theme-v6 .v6-hero--no-photo .v6-hero__title {
  color: var(--v6-ink);
}

body.theme-v6 .v6-hero--no-photo .v6-hero__lead {
  color: var(--v6-muted);
}

body.theme-v6 .v6-hero__bg {
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}

body.theme-v6 .v6-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

body.theme-v6 .v6-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--v6-primary);
  margin: 0 0 12px;
}

body.theme-v6 .v6-hero__title {
  font-family: var(--v6-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 600;
}

body.theme-v6 .v6-hero__title--xl {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
}

body.theme-v6 .v6-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--v6-muted);
  max-width: 52ch;
}

body.theme-v6 .v6-hero--statement .v6-hero__statement {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

body.theme-v6 .v6-hero--statement .v6-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

body.theme-v6 .v6-search-panel {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius);
  padding: 22px;
  box-shadow: var(--v6-shadow);
}

body.theme-v6 .v6-search-panel__label {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

body.theme-v6 .v6-search-panel__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
}

body.theme-v6 .v6-search-panel input,
body.theme-v6 .v6-search-panel select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-sm);
  font: inherit;
  background: #fff;
}

body.theme-v6 .v6-hero--search-focus {
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 88px) 0;
}

body.theme-v6 .v6-hero__search-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

body.theme-v6 .v6-hero__copy--center .v6-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

body.theme-v6 .v6-search-hero {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--v6-shadow);
  border: 1px solid var(--v6-border);
}

body.theme-v6 .v6-search-hero__input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font: inherit;
  background: transparent;
  outline: none;
}

/* Featured */
body.theme-v6 .v6-section {
  padding: clamp(40px, 6vw, 72px) 0;
}

body.theme-v6 .v6-section-head h2 {
  font-family: var(--v6-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}

body.theme-v6 .v6-section-head p {
  margin: 0 0 28px;
  color: var(--v6-muted);
}

body.theme-v6 .v6-section-title {
  font-family: var(--v6-display);
  font-size: 1.75rem;
  margin: 0 0 24px;
}

body.theme-v6 .v6-property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.theme-v6 .v6-property-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-v6 .v6-property-card {
  position: relative;
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius);
  overflow: hidden;
  box-shadow: var(--v6-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-v6 .v6-property-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
  color: transparent;
}

body.theme-v6 .v6-property-card__media,
body.theme-v6 .v6-property-card__body {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

body.theme-v6 .v6-property-card [data-v5-edit] {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}

body.theme-v6 .v6-property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v6-shadow);
}

body.theme-v6 .v6-property-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8eaed;
}

body.theme-v6 .v6-property-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

body.theme-v6 .v6-property-card:hover .v6-property-card__media img {
  transform: scale(1.04);
}

body.theme-v6 .v6-property-card__body {
  padding: 16px 18px 18px;
}

body.theme-v6 .v6-property-card__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: inherit;
}

body.theme-v6 .v6-property-card__title a {
  color: inherit;
  text-decoration: none;
}

body.theme-v6 .v6-property-card__loc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--v6-muted);
}

body.theme-v6 .v6-property-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.theme-v6 .v6-property-card__price {
  font-weight: 700;
  color: var(--v6-primary);
  font-size: 1.05rem;
}

body.theme-v6 .v6-property-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--v6-primary);
  text-decoration: none;
}

body.theme-v6 .v6-property-card--s4 {
  border-radius: 4px;
  box-shadow: none;
}

body.theme-v6 .v6-empty {
  padding: 32px;
  text-align: center;
  color: var(--v6-muted);
  background: var(--v6-surface);
  border-radius: var(--v6-radius);
  border: 1px dashed var(--v6-border);
}

/* Listari */
body.theme-v6 .v6-list-head {
  padding-top: 40px !important;
}

body.theme-v6 .v6-list-head h1 {
  font-family: var(--v6-display);
  font-size: 2rem;
  margin: 0 0 6px;
}

body.theme-v6 .v6-list-body--sidebar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}

body.theme-v6 .v6-list-layout--filters-right .v6-list-body--sidebar {
  grid-template-columns: minmax(0, 1fr) 280px;
}

body.theme-v6 .v6-list-layout--filters-right .v6-list-main {
  order: -1;
}

body.theme-v6 .v6-filters {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius);
  padding: 20px;
  box-shadow: var(--v6-shadow-sm);
}

body.theme-v6 .v6-filters-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-v6 .v6-filters--top {
  margin-bottom: 24px;
}

body.theme-v6 .v6-filters--top .v6-filters-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

body.theme-v6 .v6-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Footer */
body.theme-v6 .v6-site-footer {
  margin-top: 48px;
  background: var(--v5-palette-footer-bg, var(--v6-surface));
  border-top: 1px solid var(--v6-border);
  color: var(--v5-palette-footer-ink, var(--v6-ink));
}

body.theme-v6 .v6-site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 40px 0 24px;
}

body.theme-v6 .v6-site-footer__brand {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

body.theme-v6 .v6-site-footer__muted {
  color: var(--v6-muted);
  font-size: 0.9rem;
}

body.theme-v6 .v6-site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-v6 .v6-site-footer__nav a {
  color: var(--v5-palette-footer-link, var(--v6-primary));
  text-decoration: none;
}

body.theme-v6 .v6-site-footer__copy {
  padding: 16px 0 28px;
  border-top: 1px solid var(--v6-border);
  color: var(--v6-muted);
}

body.theme-v6 .v6-site-footer--minimal .v6-site-footer__minimal {
  text-align: center;
  padding: 32px 0;
}

body.theme-v6 .v6-site-footer--minimal nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

/* Mobile header */
body.theme-v6 .v6-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--v6-border);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

body.theme-v6 .v6-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--v6-ink);
  border-radius: 1px;
}

@media (max-width: 991px) {
  body.theme-v6 .v6-hero__grid {
    grid-template-columns: 1fr;
  }
  body.theme-v6 .v6-search-panel__row {
    grid-template-columns: 1fr;
  }
  body.theme-v6 .v6-property-grid,
  body.theme-v6 .v6-property-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.theme-v6 .v6-list-body--sidebar {
    grid-template-columns: 1fr;
  }
  body.theme-v6 .v6-site-header--glass .v6-nav-toggle {
    display: flex;
  }
  body.theme-v6 .v6-site-header--glass .v6-nav--drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--v6-border);
  }
  body.theme-v6 .v6-site-header--glass .v6-nav--drawer.is-open {
    display: flex;
  }
  body.theme-v6 .v6-site-header__actions .v6-header-tel {
    display: none;
  }
}

@media (max-width: 640px) {
  body.theme-v6 .v6-property-grid,
  body.theme-v6 .v6-list-grid {
    grid-template-columns: 1fr;
  }
  body.theme-v6 .v6-site-footer__grid {
    grid-template-columns: 1fr;
  }
  body.theme-v6 .v6-search-hero {
    flex-direction: column;
    border-radius: var(--v6-radius);
  }
}

/* —— V6 polish: aliniere calitate V5 —— */
body.theme-v6.theme-v5.v5-site-content-scope {
  letter-spacing: -0.01em;
}

body.theme-v6 .inner-pages,
body.theme-v6 #wrapper {
  padding-top: 0 !important;
}

body.theme-v6 .v6-section-head {
  margin-bottom: 8px;
}

body.theme-v6 .v6-property-grid--masonry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

body.theme-v6 .v6-property-grid--masonry .v6-property-card {
  grid-column: span 4;
}

body.theme-v6 .v6-property-grid--masonry .v6-property-card:nth-child(1) {
  grid-column: span 6;
  grid-row: span 2;
}

body.theme-v6 .v6-property-grid--masonry .v6-property-card:nth-child(1) .v6-property-card__media {
  aspect-ratio: 4/5;
}

body.theme-v6 .v6-property-card--s2 {
  border-radius: var(--v6-radius-sm);
  box-shadow: none;
  border: 1px solid var(--v6-border);
}

body.theme-v6 .v6-property-card--s2 .v6-property-card__media {
  aspect-ratio: 16/10;
}

body.theme-v6 .v6-property-card--s2 .v6-property-card__price {
  font-size: 1.15rem;
}

body.theme-v6 .v6-property-card--s3 {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--v6-border);
  box-shadow: none;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

body.theme-v6 .v6-property-card--s3 .v6-property-card__media {
  aspect-ratio: 1;
  border-radius: var(--v6-radius-sm);
}

body.theme-v6 .v6-property-card--s3 .v6-property-card__body {
  padding: 12px 0;
}

body.theme-v6 .v6-property-card--s4 {
  border: 2px solid var(--v6-ink);
  border-radius: 6px;
  box-shadow: none;
}

body.theme-v6 .v6-property-card--s4 .v6-property-card__cta {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

body.theme-v6 .v6-property-card--s5 {
  border-radius: 999px 999px var(--v6-radius) var(--v6-radius);
}

body.theme-v6 .v6-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.theme-v6 .v6-list-layout--v2 .v6-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.theme-v6 .v6-site-header--centered {
  box-shadow: var(--v6-shadow-sm);
}

body.theme-v6 .v6-site-header--split {
  border-bottom-width: 2px;
}

body.theme-v6.palette-midnight .v6-site-header,
body.theme-v6.palette-midnight .v6-site-header--glass,
body.theme-v6.v6-palette-dark .v6-site-header,
body.theme-v6.v6-palette-dark .v6-site-header--glass {
  background: rgba(15, 23, 42, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-v6.palette-midnight .v6-brand,
body.theme-v6.palette-midnight .v6-nav a,
body.theme-v6.v6-palette-dark .v6-brand,
body.theme-v6.v6-palette-dark .v6-nav a {
  color: #ffffff;
}

body.theme-v6.palette-midnight .v6-nav a:hover,
body.theme-v6.v6-palette-dark .v6-nav a:hover {
  color: var(--v6-primary);
}

body.theme-v6 .v6-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 991px) {
  body.theme-v6 .v6-property-grid--masonry,
  body.theme-v6 .v6-property-grid--masonry .v6-property-card,
  body.theme-v6 .v6-property-grid--masonry .v6-property-card:nth-child(1) {
    grid-column: span 6;
    grid-row: auto;
  }
  body.theme-v6 .v6-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.theme-v6 .v6-property-card--s3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.theme-v6 .v6-property-grid--masonry,
  body.theme-v6 .v6-property-grid--masonry .v6-property-card,
  body.theme-v6 .v6-property-grid--masonry .v6-property-card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

body.theme-v6 .v6-hero--meridian .v6-hero-meridian {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

body.theme-v6 .v6-hero-meridian__visual {
  border-radius: var(--v6-radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.theme-v6 .v6-hero-meridian__panel {
  background: var(--v6-surface);
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.theme-v6 .v6-scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

body.theme-v6 .v6-scroll-row .v6-property-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
}

body.theme-v6 .v6-row-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.theme-v6 .v6-row-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--v6-border);
  border-radius: var(--v6-radius-sm);
  background: var(--v6-surface);
  text-decoration: none;
  color: inherit;
}

body.theme-v6 .v6-row-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

body.theme-v6 .v6-row-card__title {
  font-weight: 700;
}

body.theme-v6 .v6-row-card__loc {
  font-size: 0.85rem;
  color: var(--v6-muted);
}

body.theme-v6 .v6-row-card__price {
  font-weight: 700;
  color: var(--v6-primary);
}

body.theme-v6 .v6-property-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 991px) {
  body.theme-v6 .v6-hero--meridian .v6-hero-meridian {
    grid-template-columns: 1fr;
  }
}

/* Hero compact + bento */
body.theme-v6 .v6-hero--compact:not(.v6-hero--compact-centered) .v6-hero__grid--compact {
  grid-template-columns: 1fr;
  max-width: 720px;
}

body.theme-v6 .v6-search-panel--compact .v6-search-panel__row {
  grid-template-columns: 1fr auto;
}

/* Featured layouts */
body.theme-v6 .v6-property-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-v6 .v6-property-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.theme-v6 .v6-property-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.theme-v6 .v6-zigzag {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

body.theme-v6 .v6-zigzag__item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--v6-border);
}

body.theme-v6 .v6-zigzag__item--flip {
  direction: rtl;
}

body.theme-v6 .v6-zigzag__item--flip > * {
  direction: ltr;
}

body.theme-v6 .v6-zigzag__media {
  display: block;
  border-radius: var(--v6-radius);
  overflow: hidden;
}

body.theme-v6 .v6-zigzag__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

body.theme-v6 .v6-zigzag__body h3 {
  margin: 0 0 8px;
  font-family: var(--v6-display);
  font-size: 1.35rem;
}

body.theme-v6 .v6-zigzag__body h3 a {
  color: inherit;
  text-decoration: none;
}

body.theme-v6 .v6-zigzag__loc {
  margin: 0 0 10px;
  color: var(--v6-muted);
  font-size: 0.9rem;
}

body.theme-v6 .v6-zigzag__price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--v6-primary);
  margin: 0 0 12px;
}

/* Card stiluri V5 */
body.theme-v6 .v6-property-card--s6 .v6-property-card__price {
  font-size: 1.2rem;
  font-weight: 800;
}

body.theme-v6 .v6-property-card--s7 {
  border-left: 4px solid var(--v6-primary);
}

body.theme-v6 .v6-property-card--s8 {
  background: var(--v6-primary-soft);
  border-color: transparent;
}

body.theme-v6 .v6-property-card--s9 {
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--v6-ink);
}

body.theme-v6 .v6-property-card--s10 .v6-property-card__media {
  border-radius: var(--v6-radius) var(--v6-radius) 0 0;
}

/* Legacy V5/V4 în V6 — layout minim; stilurile complete sunt în set-theme-v6-v5-bridge.css */
body.theme-v6 .v6-legacy-scope {
  padding: 0;
  background: transparent;
  color: var(--v5-ink, inherit);
  font-family: var(--v5-font-body, inherit);
  isolation: isolate;
}

/* set-theme.css: header { background: var(--header...) } — nu aplica pe V5/V6 */
body.theme-v6 header.v5-header,
body.theme-v6 .v6-legacy-scope header.v5-header {
  background: unset;
}

body.theme-v6 .v6-legacy-scope.theme-v4-legacy {
  color: inherit;
}

body.theme-v6 .v6-legacy-scope .container.container-header {
  width: min(92%, 1280px);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

body.theme-v6 .v6-legacy-scope--listari {
  padding-top: 8px;
}

@media (max-width: 991px) {
  body.theme-v6 .v6-property-grid--wide,
  body.theme-v6 .v6-property-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.theme-v6 .v6-zigzag__item,
  body.theme-v6 .v6-zigzag__item--flip {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 640px) {
  body.theme-v6 .v6-property-grid--wide,
  body.theme-v6 .v6-property-grid--2,
  body.theme-v6 .v6-property-grid--4 {
    grid-template-columns: 1fr;
  }
}
