/**
 * V6 — mod întunecat complet (Obsidian, Midnight + v6-palette-dark)
 * Încărcat după premium / v7; suprascrie fundaluri albe hardcodate.
 */

body.theme-v6.v6-palette-dark {
  --v6-ink: #ffffff;
  --v6-muted: #ffffff;
  --v5-palette-ink: #ffffff;
  --v5-palette-muted: #ffffff;
  --v5-palette-footer-ink: #ffffff;
  --v6-line: rgba(255, 255, 255, 0.1);
  --v6-border: rgba(255, 255, 255, 0.1);
  --v6-surface-2: color-mix(in srgb, var(--v6-surface) 82%, var(--v6-canvas));
  --v6-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.28);
  --v6-shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  --v6-shadow-header: 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #ffffff;
  color-scheme: dark;
}

body.theme-v6.theme-v7.v6-palette-dark {
  --v7-ink: #ffffff;
  --v7-muted: #ffffff;
  --v7-surface: var(--v6-surface, #1e293b);
  --v7-canvas: var(--v6-canvas, #0b1220);
  --v7-line: rgba(255, 255, 255, 0.1);
  --v7-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --v7-shadow: 0 8px 30px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.28);
  --v7-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Obsidian — accente ardezie, contrast fin */
body.theme-v6.palette-obsidian.v6-palette-dark {
  --v6-primary: var(--v5-palette-primary, #94a3b8);
  --v6-primary-soft: var(--v5-palette-soft, #0f172a);
}

body.theme-v6.v6-palette-dark,
body.theme-v6.v6-palette-dark #wrapper {
  background: var(--v6-canvas) !important;
  color: var(--v6-ink);
}

/* —— Header V6 —— */
body.theme-v6.v6-palette-dark .v6-site-header,
body.theme-v6.v6-palette-dark .v6-site-header--glass,
body.theme-v6.v6-palette-dark .v6-site-header--bar,
body.theme-v6.v6-palette-dark .v6-site-header--minimal,
body.theme-v6.v6-palette-dark .v6-site-header--centered,
body.theme-v6.v6-palette-dark .v6-site-header--split {
  background: color-mix(in srgb, var(--v6-surface) 92%, #000);
  border-bottom-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-brand,
body.theme-v6.v6-palette-dark .v6-brand__text,
body.theme-v6.v6-palette-dark .v6-nav a,
body.theme-v6.v6-palette-dark .v6-header-phone {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-nav a:hover {
  color: var(--v6-primary);
}

body.theme-v6.v6-palette-dark .v6-nav__sub,
body.theme-v6.v6-palette-dark .v6-nav--drawer {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-nav-toggle {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-nav-toggle span {
  background: var(--v6-ink);
}

/* —— Header V7 —— */
body.theme-v7.v6-palette-dark .v7-header,
body.theme-v7.v6-palette-dark header.v7-header {
  background: color-mix(in srgb, var(--v7-surface) 94%, #000);
  border-bottom-color: var(--v7-line);
}

body.theme-v7.v6-palette-dark .v7-header--prestige,
body.theme-v7.v6-palette-dark .v7-header--concierge,
body.theme-v7.v6-palette-dark .v7-header--metro,
body.theme-v7.v6-palette-dark .v7-header--studio {
  background: color-mix(in srgb, var(--v7-surface) 94%, #000);
}

body.theme-v7.v6-palette-dark .v7-header__brand .v6-brand__text,
body.theme-v7.v6-palette-dark .v7-header__nav .v6-nav a,
body.theme-v7.v6-palette-dark .v7-header__tel,
body.theme-v7.v6-palette-dark .v7-header__link {
  color: var(--v7-ink);
}

body.theme-v7.v6-palette-dark .v7-header__nav .v6-nav a:hover {
  color: var(--v6-primary);
}

body.theme-v7.v6-palette-dark .v7-header__nav .v6-nav__sub,
body.theme-v7.v6-palette-dark .v7-header__nav .v6-nav__item--nested > .v6-nav__sub {
  background: var(--v7-surface);
  border-color: var(--v7-line);
}

body.theme-v7.v6-palette-dark .v7-header__nav .v6-nav__sub a,
body.theme-v7.v6-palette-dark .v7-header__nav .v6-nav__sub > li > .v6-nav__trigger {
  color: var(--v7-ink) !important;
}

body.theme-v7.v6-palette-dark .v7-header--metro {
  background: var(--v7-surface);
}

body.theme-v7.v6-palette-dark .v7-header--metro .v7-header__searchbar,
body.theme-v7.v6-palette-dark .v7-header__searchbar {
  background: color-mix(in srgb, var(--v7-surface) 80%, #000);
  border-color: var(--v7-line);
}

/* —— Hero —— */
body.theme-v6.v6-palette-dark .v6-hero--no-photo,
body.theme-v6.v6-palette-dark .v7-hero--no-media {
  background: var(--v6-canvas) !important;
  border-bottom-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-hero--no-photo .v6-hero__title,
body.theme-v6.v6-palette-dark .v6-hero--no-photo .v7-hero__title,
body.theme-v6.v6-palette-dark .v7-hero--no-media .v7-hero__title {
  color: var(--v6-ink) !important;
}

body.theme-v6.v6-palette-dark .v6-hero--no-photo .v6-hero__lead,
body.theme-v6.v6-palette-dark .v7-hero--no-media .v7-hero__lead {
  color: var(--v6-muted) !important;
}

body.theme-v6.v6-palette-dark .v6-hero-bento__copy,
body.theme-v6.v6-palette-dark .v6-hero:not(.v6-hero--no-photo) .v6-hero-bento__copy {
  background: color-mix(in srgb, var(--v6-surface) 88%, transparent);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v7-hero__bento-copy,
body.theme-v6.v6-palette-dark .v7-hero__residence-aside .v7-search {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v7.v6-palette-dark .v7-hero--atelier.v7-hero--no-media,
body.theme-v7.v6-palette-dark .v7-hero--residence.v7-hero--no-media {
  background: linear-gradient(180deg, var(--v7-canvas) 0%, color-mix(in srgb, var(--v7-surface) 70%, var(--v7-canvas)) 100%) !important;
}

/* —— Căutare / formulare —— */
body.theme-v6.v6-palette-dark .v6-search-panel,
body.theme-v6.v6-palette-dark .v6-search-hero,
body.theme-v7.v6-palette-dark .v7-search {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-search-panel input,
body.theme-v6.v6-palette-dark .v6-search-panel select {
  background: color-mix(in srgb, var(--v6-surface) 75%, #000);
  border-color: var(--v6-line);
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-search-panel input:focus,
body.theme-v6.v6-palette-dark .v6-search-panel select:focus {
  background: color-mix(in srgb, var(--v6-surface) 90%, #000);
  border-color: var(--v6-primary);
}

body.theme-v7.v6-palette-dark .v7-search__field input,
body.theme-v7.v6-palette-dark .v7-search__field select,
body.theme-v6.v6-palette-dark .v7-search__field input,
body.theme-v6.v6-palette-dark .v7-search__field select {
  background: color-mix(in srgb, var(--v7-surface) 78%, #000) !important;
  border-color: var(--v7-line) !important;
  color: var(--v7-ink) !important;
}

body.theme-v7.v6-palette-dark .v7-search__field input:focus,
body.theme-v7.v6-palette-dark .v7-search__field select:focus {
  background: color-mix(in srgb, var(--v7-surface) 92%, #000) !important;
}

body.theme-v7.v6-palette-dark .v7-search__tabs,
body.theme-v7.v6-palette-dark .v7-search__tab span {
  background: color-mix(in srgb, var(--v7-surface) 70%, #000);
  border-color: var(--v7-line);
  color: var(--v7-muted);
}

body.theme-v7.v6-palette-dark .v7-search__tab input:checked + span {
  background: color-mix(in srgb, var(--v6-primary) 22%, var(--v7-surface));
  color: var(--v7-ink);
}

body.theme-v6.v6-palette-dark .v6-btn--outline {
  color: var(--v6-ink);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-btn--outline:hover {
  background: color-mix(in srgb, var(--v6-primary) 12%, var(--v6-surface));
  border-color: color-mix(in srgb, var(--v6-primary) 40%, var(--v6-line));
}

/* —— Secțiuni & carduri —— */
body.theme-v6.v6-palette-dark .v6-section,
body.theme-v6.v6-palette-dark .v6-featured,
body.theme-v6.v6-palette-dark .v6-list-layout,
body.theme-v6.v6-palette-dark .v6-list-head,
body.theme-v7.v6-palette-dark .v7-list-layout {
  background: var(--v6-canvas);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-property-card,
body.theme-v7.v6-palette-dark .v6-property-card {
  background: var(--v6-surface);
  border-color: var(--v6-line);
  box-shadow: var(--v6-shadow-card);
}

body.theme-v6.v6-palette-dark .v6-property-card__body,
body.theme-v7.v6-palette-dark .v6-property-card__body {
  background: var(--v6-surface);
}

body.theme-v6.v6-palette-dark .v6-property-card__title,
body.theme-v6.v6-palette-dark .v6-property-card__location,
body.theme-v7.v6-palette-dark .v6-property-card__title {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-property-card__price,
body.theme-v7.v6-palette-dark .v6-property-card__price {
  color: var(--v6-primary);
}

body.theme-v6.v6-palette-dark .v6-filters,
body.theme-v7.v6-palette-dark .v6-filters {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-filters input,
body.theme-v6.v6-palette-dark .v6-filters select,
body.theme-v6.v6-palette-dark .v6-filters label,
body.theme-v6.v6-palette-dark .v6-filters--left.v6-filters--legacy .filtre_listari_titlu,
body.theme-v6.v6-palette-dark .v6-filters--right.v6-filters--legacy .filtre_listari_titlu,
body.theme-v6.v6-palette-dark .v6-filters--left.v6-filters--legacy .filtre_listari_titlu_left,
body.theme-v6.v6-palette-dark .v6-filters--right.v6-filters--legacy .filtre_listari_titlu_left {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-filters input,
body.theme-v6.v6-palette-dark .v6-filters select {
  background: color-mix(in srgb, var(--v6-surface) 75%, #000);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-list-head h1,
body.theme-v6.v6-palette-dark .v6-section-head h2,
body.theme-v7.v6-palette-dark .v6-list-head h1 {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-section-head p,
body.theme-v6.v6-palette-dark .v6-list-head__count {
  color: var(--v6-muted);
}

body.theme-v6.v6-palette-dark .v6-pager a {
  background: var(--v6-surface);
  border-color: var(--v6-line);
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-pager a.is-active {
  background: var(--v6-primary);
  border-color: var(--v6-primary);
  color: #fff;
}

/* —— Homepage blocks —— */
body.theme-v6.v6-palette-dark .v6-home-block {
  background: var(--v6-canvas);
  border-top-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-home-services__card,
body.theme-v6.v6-palette-dark .v6-home-faq__item {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-home-faq {
  background: color-mix(in srgb, var(--v6-canvas) 88%, var(--v6-surface));
}

body.theme-v6.v6-palette-dark .v6-home-services__card h3,
body.theme-v6.v6-palette-dark .v6-home-faq__question {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-home-services__card p,
body.theme-v6.v6-palette-dark .v6-home-faq__answer p {
  color: var(--v6-muted);
}

body.theme-v6.v6-palette-dark .v6-home-partners__track {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

/* —— Ofertă —— */
body.theme-v6.v6-palette-dark .v6-offer,
body.theme-v7.v6-palette-dark .v6-offer {
  background: var(--v6-canvas);
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-offer__card,
body.theme-v7.v6-palette-dark .v6-offer__card,
body.theme-v7.v6-palette-dark .v6-offer--showcase .v6-offer__card,
body.theme-v7.v6-palette-dark .v6-offer--brochure .v6-offer__fact {
  background: var(--v6-surface);
  border-color: var(--v6-line);
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-offer__title,
body.theme-v6.v6-palette-dark .v6-offer__prose,
body.theme-v6.v6-palette-dark .v6-offer__desc {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-offer__gallery-main {
  background: color-mix(in srgb, var(--v6-surface) 72%, #000);
}

body.theme-v6.v6-palette-dark .v6-offer__thumb {
  background: var(--v6-surface);
  border-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-list-hero {
  background: color-mix(in srgb, var(--v6-canvas) 70%, #000);
}

body.theme-v6.v6-palette-dark .v6-list-hero__title,
body.theme-v6.v6-palette-dark .v6-list-hero__count {
  color: var(--v6-ink);
}

body.theme-v7.v6-palette-dark .v6-offer--brochure .v6-offer__facts {
  background: color-mix(in srgb, var(--v6-primary) 10%, var(--v6-surface));
  border-color: var(--v6-line);
}

body.theme-v7.v6-palette-dark .v6-offer--magazine .v6-offer__prose {
  color: var(--v6-muted);
}

/* —— Footer —— */
body.theme-v6.v6-palette-dark .v6-site-footer {
  background: var(--v5-palette-footer-bg, linear-gradient(180deg, color-mix(in srgb, var(--v6-surface) 90%, #000) 0%, var(--v6-canvas) 100%));
  color: var(--v5-palette-footer-ink, var(--v6-ink));
  border-top-color: var(--v6-line);
}

body.theme-v6.v6-palette-dark .v6-site-footer--minimal,
body.theme-v6.v6-palette-dark .v6-site-footer--glass {
  background: color-mix(in srgb, var(--v6-surface) 88%, var(--v6-canvas));
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-site-footer__brand {
  color: var(--v6-ink);
}

body.theme-v6.v6-palette-dark .v6-site-footer__nav a {
  color: var(--v5-palette-footer-link, var(--v6-primary));
}

/* —— Immersive header fallback —— */
body.theme-v6.v6-palette-dark.v6-hero-immersive .v6-site-header,
body.theme-v6.v6-palette-dark.v6-hero-immersive .v7-header {
  background: color-mix(in srgb, var(--v6-canvas) 88%, transparent);
}
