/* Pagina listări V6/V7 — filtre + grid carduri */

/* Aliniere stânga/dreapta cu headerul — un singur .v6-wrap, fără padding pe .v6-list-layout */
body.theme-v6 .v6-list-layout,
body.theme-v6.theme-v7 .v6-list-layout {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.theme-v6 .v6-list-layout > .v6-wrap,
body.theme-v6 .v6-list-body-wrap.v6-wrap,
body.theme-v6 .v6-list-head .v6-wrap,
body.theme-v6 .v6-list-hero__inner.v6-wrap {
  width: 100%;
  max-width: var(--v6-max, 1180px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--v6-gutter, clamp(16px, 4vw, 32px));
  padding-right: var(--v6-gutter, clamp(16px, 4vw, 32px));
  box-sizing: border-box;
}

body.theme-v6 .v6-list-main,
body.theme-v6 .v6-list-grid,
body.theme-v6 .v6-list-grid > .v6-property-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.theme-v6 .v6-list-head {
  padding: clamp(12px, 2vw, 20px) 0 clamp(10px, 1.5vw, 16px) !important;
  border-bottom: 1px solid var(--v6-line, #e5e7eb);
  background: var(--v6-surface, #fff);
}

body.theme-v6 #v6-slot-header + #v6-slot-listari,
body.theme-v7 #v6-slot-header + #v6-slot-listari {
  padding-top: clamp(8px, 1.5vw, 16px) !important;
}

body.theme-v6 .v6-list-head h1,
body.theme-v6 .v6-list-hero__title {
  font-family: var(--v6-display, var(--v7-font-display, Georgia, serif));
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--v6-ink, #0f172a);
  text-transform: capitalize;
}

body.theme-v6 .v6-list-head__count,
body.theme-v6 .v6-list-hero__count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--v6-muted, #6b7280);
}

/* Hero listări cu fundal + filtre */
body.theme-v6 .v6-list-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 48px);
  background-color: var(--v6-ink, #1a2332);
  background-image: var(--v6-list-hero-image, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

body.theme-v6 .v6-list-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.72) 45%,
    rgba(15, 23, 42, 0.55) 100%
  );
  pointer-events: none;
}

body.theme-v6 .v6-list-hero__inner {
  position: relative;
  z-index: 2;
}

body.theme-v6 .v6-list-hero .v6-list-hero__title,
body.theme-v6 .v6-list-hero .v6-list-hero__count {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

body.theme-v6 .v6-list-hero .v6-filters {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

body.theme-v6 .v6-list-hero .v6-filters--hero .v6-filters-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(120px, 1fr)) auto;
  gap: 12px 14px;
  align-items: end;
}

@media (max-width: 900px) {
  body.theme-v6 .v6-list-hero .v6-filters--hero .v6-filters-form {
    grid-template-columns: 1fr 1fr;
  }
  body.theme-v6 .v6-list-hero .v6-filters-submit {
    grid-column: 1 / -1;
  }
}

/* Filtre — sidebar / top */
body.theme-v6 .v6-filters {
  background: var(--v6-surface, #fff);
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-lg, 14px);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--v6-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}

body.theme-v6 .v6-filters-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--v6-ink, #0f172a);
}

body.theme-v6 .v6-filters-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v6-muted, #6b7280);
  margin-bottom: 4px;
}

body.theme-v6 .v6-filters-form input[type="text"],
body.theme-v6 .v6-filters-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-md, 10px);
  font: inherit;
  color: var(--v6-ink, #0f172a);
  background: var(--v6-surface-2, #fafafa);
  box-sizing: border-box;
}

body.theme-v6 .v6-filters-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-v6 .v6-filters-submit {
  margin-top: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--v6-radius-md, 10px);
  background: var(--v6-primary, #b45309);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

body.theme-v6 .v6-filters-submit:hover {
  filter: brightness(1.06);
}

body.theme-v6 .v6-filters--top {
  margin-bottom: 0;
}

body.theme-v6 .v6-list-layout--filters-top .v6-wrap:first-of-type {
  padding-top: 1rem;
  padding-bottom: 0;
}

body.theme-v6 .v6-filters--top .v6-filters-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body.theme-v6 .v6-filters--top .v6-filters-form > * {
  flex: 1 1 160px;
  min-width: 140px;
}

body.theme-v6 .v6-filters--top .v6-filters-title {
  flex: 1 1 100%;
}

body.theme-v6 .v6-filters--top .v6-filters-submit {
  flex: 0 0 auto;
  min-width: 140px;
}

body.theme-v6 .v6-list-body-wrap {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

body.theme-v6 .v6-list-body--sidebar {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  width: 100%;
}

body.theme-v6 .v6-list-layout--filters-right .v6-list-body--sidebar {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

body.theme-v6 .v6-list-layout--filters-right .v6-list-main {
  order: -1;
}

body.theme-v6 .v6-list-layout--filters-left .v6-filters,
body.theme-v6 .v6-list-layout--filters-right .v6-filters {
  position: sticky;
  top: calc(var(--v6-header-h, 72px) + 16px);
}

/* Grid listări — prioritate față de align.css (3 col fixe) */
body.theme-v6 .v6-list-main > .v6-list-grid,
body.theme-v6.theme-v7 .v6-list-main > .v6-list-grid {
  display: grid !important;
  gap: clamp(18px, 2.5vw, 24px);
  align-items: stretch;
  width: 100%;
  grid-template-columns: 1fr !important;
}

body.theme-v6 .v6-list-grid > .v6-property-card {
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  grid-column: 1 / -1;
}

body.theme-v6 .v6-list-grid--card-15,
body.theme-v6 .v7-list-grid--5,
body.theme-v6 .v6-list-grid.v7-list-grid--5 {
  grid-template-columns: 1fr !important;
  gap: 16px;
}

/* Card orizontal (s15) în listă — imagine + text; nu lăsa coloana text la câțiva px */
body.theme-v6 .v6-list-grid .v6-property-card--s15,
body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  padding: 12px !important;
  width: 100% !important;
  box-sizing: border-box;
}

body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__media,
body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 .v6-property-card__media {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__body,
body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 .v6-property-card__body {
  min-width: 0;
  width: 100% !important;
  padding: 4px 2px 8px !important;
  overflow: visible;
}

body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__title,
body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 .v6-property-card__title,
body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__price,
body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 .v6-property-card__price {
  white-space: nowrap;
  word-break: normal;
  text-align: left;
}

body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-v6 .v6-list-grid .v6-property-card--s15 .v6-property-card__foot {
  display: flex;
  margin-top: 8px;
}

/* Card vertical standard în listă */
body.theme-v6 .v6-list-grid .v6-property-card:not(.v6-property-card--s15) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

body.theme-v6 .v6-list-grid .v6-property-card:not(.v6-property-card--s15) .v6-property-card__media {
  width: 100%;
  flex: 0 0 auto;
}

body.theme-v6 .v6-list-grid .v6-property-card:not(.v6-property-card--s15) .v6-property-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Desktop lat: 2 col doar fără sidebar și card vertical */
@media (min-width: 1200px) {
  body.theme-v6 .v6-list-layout--filters-top .v6-list-main > .v6-list-grid:not(.v7-list-grid--5):not(.v6-list-grid--card-15),
  body.theme-v6 .v6-list-layout--filters-off .v6-list-main > .v6-list-grid:not(.v7-list-grid--5):not(.v6-list-grid--card-15),
  body.theme-v6 .v6-list-layout--filters-hero .v6-list-main > .v6-list-grid:not(.v7-list-grid--5):not(.v6-list-grid--card-15) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.theme-v6 .v6-list-layout--filters-top .v6-list-main > .v6-list-grid:not(.v7-list-grid--5):not(.v6-list-grid--card-15) > .v6-property-card:not(.v6-property-card--s15),
  body.theme-v6 .v6-list-layout--filters-off .v6-list-main > .v6-list-grid:not(.v7-list-grid--5):not(.v6-list-grid--card-15) > .v6-property-card:not(.v6-property-card--s15),
  body.theme-v6 .v6-list-layout--filters-hero .v6-list-main > .v6-list-grid:not(.v7-list-grid--5):not(.v6-list-grid--card-15) > .v6-property-card:not(.v6-property-card--s15) {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  body.theme-v6 .v6-list-grid .v6-property-card--s15,
  body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 {
    grid-template-columns: minmax(200px, 36%) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px 22px !important;
  }
}

@media (max-width: 1023px) {
  body.theme-v6 .v6-list-body--sidebar {
    grid-template-columns: 1fr !important;
  }

  body.theme-v6 .v6-list-layout--filters-left .v6-filters,
  body.theme-v6 .v6-list-layout--filters-right .v6-filters {
    position: static;
  }

  body.theme-v6 .v6-list-main > .v6-list-grid,
  body.theme-v6.theme-v7 .v6-list-main > .v6-list-grid,
  body.theme-v6.theme-v7 .v6-list-main > .v7-list-grid--1,
  body.theme-v6.theme-v7 .v6-list-main > .v7-list-grid--2,
  body.theme-v6.theme-v7 .v6-list-main > .v7-list-grid--4 {
    grid-template-columns: 1fr !important;
  }

  body.theme-v6 .v6-list-grid .v6-property-card--s15,
  body.theme-v6.theme-v7 .v6-list-grid .v6-property-card--s15 {
    grid-template-columns: 1fr !important;
  }
}

/* Paginare */
body.theme-v6 .v6-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
  justify-content: center;
}

body.theme-v6 .v6-pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--v6-line, #e5e7eb);
  color: var(--v6-ink, #0f172a);
  text-decoration: none;
  font-weight: 600;
}

body.theme-v6 .v6-pager a.is-active,
body.theme-v6 .v6-pager a:hover {
  background: var(--v6-primary, #b45309);
  border-color: var(--v6-primary, #b45309);
  color: #fff;
}

/* Filtre clasice (filtre.php) în sidebar V6 */
body.theme-v6 .v6-filters--legacy,
body.theme-v6 .v6-filters--legacy .listari_left {
  --filtre_background: transparent;
  --filtre_input_background: transparent;
  --filtre_input_color: var(--v6-ink, #0f172a);
  --filtre_input_background_hover: var(--v6-soft, #f8fafc);
  --filtre_input_color_hover: var(--v6-ink, #0f172a);
  --filtre_li_background: transparent;
  --filtre_li_color: var(--v6-muted, #475569);
  --filtre_li_background_hover: var(--v6-soft, #f1f5f9);
  --filtre_li_color_hover: var(--v6-ink, #0f172a);
}

body.theme-v6 .v6-filters--legacy {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .listari_left,
body.theme-v6 .v6-filters--right.v6-filters--legacy .listari_left {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 12px !important;
  box-sizing: border-box;
  background: transparent !important;
}

body.theme-v6 .v6-filters--legacy .filtru_box_list {
  background: transparent !important;
  color: var(--v6-ink, #0f172a) !important;
}

body.theme-v6 .v6-filters--legacy .filtru_box_list:hover {
  background: var(--v6-soft, #f1f5f9) !important;
  color: var(--v6-ink, #0f172a) !important;
}

body.theme-v6 .v6-filters--legacy .pret_container,
body.theme-v6 .v6-filters--legacy .etaj_container {
  border-top-color: var(--v6-line, #e5e7eb) !important;
  background: transparent !important;
}

body.theme-v6 .v6-filters--legacy .pret_container_butoane .okfiltru,
body.theme-v6 .v6-filters--legacy .etaj_container_butoane .okfiltru {
  background: var(--v6-primary, #0369a1) !important;
  color: #fff !important;
}

body.theme-v6.v6-palette-dark .v6-filters--legacy,
body.theme-v6.v6-palette-dark .v6-filters--legacy .listari_left {
  --filtre_input_color: var(--v6-ink, #f8fafc);
  --filtre_li_color: var(--v6-muted, #cbd5e1);
}

body.theme-v6.v6-palette-dark .v6-filters--legacy .filtru_box_list {
  color: var(--v6-ink, #f8fafc) !important;
}

body.theme-v6.v6-palette-dark .v6-filters--legacy .filtru_box_list:hover {
  background: color-mix(in srgb, var(--v6-surface, #1e293b) 88%, #fff 12%) !important;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari[style*="display:none"],
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari[style*="display:none"] {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Sidebar stânga/dreapta — opțiuni vizibile direct */
body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_ascunse,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_ascunse {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  margin-top: 0;
  padding: 8px 0 4px;
  box-shadow: none !important;
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-md, 10px);
  background: var(--v6-surface, #fff);
  box-sizing: border-box;
}

/* Sidebar — titluri ca etichete de secțiune (nu dropdown) */
body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari_titlu,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari_titlu {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  min-height: 0;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--v6-ink, #0f172a);
  overflow: visible;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari_titlu_left,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari_titlu_left {
  float: none;
  width: auto;
  flex: 1 1 auto;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  color: inherit;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari_titlu_right,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari_titlu_right {
  display: none !important;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari--zona,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari--zona {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 18px !important;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari--zona .filtre_listari_termen,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari--zona .filtre_listari_termen,
body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari--zona #zonaa,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari--zona #zonaa {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--v6-line, #e5e7eb) !important;
  border-radius: var(--v6-radius-md, 10px) !important;
  background: var(--v6-surface, #fff) !important;
  color: var(--v6-ink, #0f172a) !important;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .filtre_listari--zona #zona_live,
body.theme-v6 .v6-filters--right.v6-filters--legacy .filtre_listari--zona #zona_live {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-height: 220px;
  margin-top: 8px;
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-md, 10px);
  background: var(--v6-surface, #fff);
  box-sizing: border-box;
}

body.theme-v6 .v6-filters--legacy .applyFilter {
  display: none !important;
}

body.theme-v6 .v6-filters--left.v6-filters--legacy .v6-filters-submit--legacy,
body.theme-v6 .v6-filters--right.v6-filters--legacy .v6-filters-submit--legacy {
  width: 100%;
  margin-top: 8px;
}

/* Bandă sus / hero — filtre închise (dropdown), layout compact orizontal */
body.theme-v6 .v6-filters--compact.v6-filters--legacy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
  max-width: none;
  position: static;
  top: auto;
  padding: 14px 16px;
  background: var(--v6-surface, #fff);
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-lg, 14px);
  box-shadow: var(--v6-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}

body.theme-v6 .v6-list-layout--filters-top > .v6-wrap > .v6-filters--compact,
body.theme-v6 .v6-list-hero .v6-filters--compact {
  width: 100%;
  max-width: none;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .listari_left {
  display: block !important;
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  width: 100%;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari {
  float: none !important;
  flex: 1 1 150px;
  min-width: 118px;
  max-width: 210px;
  width: auto !important;
  margin: 0 !important;
  position: relative;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari--zona {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 300px;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari:empty {
  display: none !important;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy > div:not(.listari_left) {
  display: none !important;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_listari_titlu,
body.theme-v6 .v6-filters--compact.v6-filters--legacy #zonaa,
body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_listari_termen {
  display: flex;
  align-items: center;
  min-height: 46px;
  height: auto !important;
  padding: 11px 14px !important;
  margin: 0;
  border: 1px solid var(--v6-line, #e5e7eb) !important;
  border-radius: var(--v6-radius-md, 10px) !important;
  background: var(--v6-surface, #fff) !important;
  color: var(--v6-ink, #0f172a) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  box-sizing: border-box;
  cursor: pointer;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy #zonaa {
  cursor: text;
  width: 100%;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_listari_titlu_left {
  float: none;
  width: auto;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_listari_titlu_right {
  float: none;
  flex: 0 0 auto;
  margin-left: 8px;
  color: var(--v6-muted, #6b7280);
  font-size: 0.75rem;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_ascunse {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(300px, 92vw) !important;
  max-height: min(320px, 50vh);
  overflow: auto;
  z-index: 80;
  background: var(--v6-surface, #fff);
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-md, 10px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_listari:has(.cuvinte_cheie),
body.theme-v6 .v6-filters--compact.v6-filters--legacy .cauta_listari.search-button,
body.theme-v6 .v6-filters--compact.v6-filters--legacy .filtre_listari:has(> .search-button) {
  display: none !important;
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy #zona_live {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto !important;
  height: auto !important;
  max-height: 220px;
  z-index: 85;
  background: var(--v6-surface, #fff);
  border: 1px solid var(--v6-line, #e5e7eb);
  border-radius: var(--v6-radius-md, 10px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-submit--legacy {
  flex: 0 0 auto;
  min-width: 120px;
  min-height: 46px;
  margin: 0;
  padding: 11px 20px;
  align-self: end;
  white-space: nowrap;
  border-radius: var(--v6-radius-md, 10px);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari {
    flex: 1 1 calc(33.333% - 12px);
    max-width: none;
  }

  body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari--zona {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 767px) {
  body.theme-v6 .v6-filters--compact.v6-filters--legacy {
    grid-template-columns: 1fr;
  }

  body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari,
  body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-legacy-band > .filtre_listari--zona {
    flex: 1 1 100%;
    max-width: none;
  }

  body.theme-v6 .v6-filters--compact.v6-filters--legacy .v6-filters-submit--legacy {
    width: 100%;
  }
}

body.theme-v6 .v6-hide-filtre-zona .filtre_listari--zona,
body.theme-v6 .v6-hide-filtre-zona .filtre_listari:has(#zonaa),
body.theme-v6 .v6-hide-filtre-zona .filtre_listari_termen,
body.theme-v6 .v6-hide-filtre-zona #zona_live,
body.theme-v6 .v6-hide-filtre-zona #zonaa {
  display: none !important;
}

body.theme-v6 .v6-hide-filtre-pret .filtre_listari:has(.filtre_listari_titlu[data-key="pret"]),
body.theme-v6 .v6-hide-filtre-pret .filtre_listari_titlu[data-key="pret"],
body.theme-v6 .v6-hide-filtre-pret .filtre_ascunse_pret {
  display: none !important;
}

body.theme-v6 .v6-hide-filtre-camere .filtre_listari:has(.filtre_listari_titlu[data-key="camere"]),
body.theme-v6 .v6-hide-filtre-camere .filtre_listari_titlu[data-key="camere"],
body.theme-v6 .v6-hide-filtre-camere .filtre_ascunse_camere {
  display: none !important;
}

body.theme-v6 .v6-hide-filtre-suprafata .filtre_listari:has(.filtre_listari_titlu[data-key="suprafata"]),
body.theme-v6 .v6-hide-filtre-suprafata .filtre_listari:has(.filtre_listari_titlu[data-key="tip_teren1"]),
body.theme-v6 .v6-hide-filtre-suprafata .filtre_listari:has(.filtre_listari_titlu[data-key="tip_teren2"]),
body.theme-v6 .v6-hide-filtre-suprafata .filtre_listari_titlu[data-key="suprafata"],
body.theme-v6 .v6-hide-filtre-suprafata .filtre_ascunse_suprafata,
body.theme-v6 .v6-hide-filtre-suprafata .filtre_listari_titlu[data-key="tip_teren1"],
body.theme-v6 .v6-hide-filtre-suprafata .filtre_ascunse_tip_teren1,
body.theme-v6 .v6-hide-filtre-suprafata .filtre_listari_titlu[data-key="tip_teren2"],
body.theme-v6 .v6-hide-filtre-suprafata .filtre_ascunse_tip_teren2 {
  display: none !important;
}

body.theme-v6 .v6-hide-filtre-extra .filtre_listari:has(.filtre_listari_titlu[data-key="etaj"]),
body.theme-v6 .v6-hide-filtre-extra .filtre_listari:has(.filtre_listari_titlu[data-key="an_constructie"]),
body.theme-v6 .v6-hide-filtre-extra .filtre_listari:has(.filtre_listari_titlu[data-key="compartimentare"]),
body.theme-v6 .v6-hide-filtre-extra .filtre_listari:has(.filtre_listari_titlu[data-key="nr_bai"]),
body.theme-v6 .v6-hide-filtre-extra .filtre_listari_titlu[data-key="etaj"],
body.theme-v6 .v6-hide-filtre-extra .filtre_ascunse_etaj,
body.theme-v6 .v6-hide-filtre-extra .filtre_listari_titlu[data-key="an_constructie"],
body.theme-v6 .v6-hide-filtre-extra .filtre_ascunse_an_constructie,
body.theme-v6 .v6-hide-filtre-extra .filtre_listari_titlu[data-key="compartimentare"],
body.theme-v6 .v6-hide-filtre-extra .filtre_ascunse_compartimentare,
body.theme-v6 .v6-hide-filtre-extra .filtre_listari_titlu[data-key="nr_bai"],
body.theme-v6 .v6-hide-filtre-extra .filtre_ascunse_nr_bai {
  display: none !important;
}
