/* ==========================================================================
   TZ35 — OmniEstate Sandbox Visual Architecture in DEV (Light & Dark Themes)
   Light Default: #F3F6FA canvas, #FFFFFF cards, #D9E2EC borders, #0F172A text
   Dark Mode:     #09111F canvas, #111E31 cards, #293D58 borders, #F8FAFC text
   ========================================================================== */

:root,
html[data-theme="light"],
body[data-theme="light"] {
  --oe-bg: #F3F6FA;
  --oe-surface: #FFFFFF;
  --oe-surface-soft: #F8FAFC;
  --oe-surface-pill: #EEF2F7;
  --oe-text: #0F172A;
  --oe-text-muted: #475569;
  --oe-text-subtle: #64748B;
  --oe-border: #D9E2EC;
  --oe-border-strong: #CBD5E1;
  --oe-accent: #0284C7;
  --oe-accent-hover: #0369A1;
  --oe-accent-soft: #E0F2FE;
  --oe-emerald: #059669;
  --oe-emerald-soft: #DCFCE7;
  --oe-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --oe-shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
  --oe-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.11);
  --oe-placeholder-bg: linear-gradient(135deg, #E2E8F0 0%, #F1F5F9 55%, #E0F2FE 100%);
  --oe-placeholder-text: #334155;
  /* Legacy vars synced for modals & style.css */
  --bg-dark: #F3F6FA;
  --bg-card: #FFFFFF;
  --bg-input: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border: #D9E2EC;
  --primary: #0284C7;
}

html[data-theme="dark"],
body[data-theme="dark"] {
  --oe-bg: #09111F;
  --oe-surface: #111E31;
  --oe-surface-soft: #0D1829;
  --oe-surface-pill: #182942;
  --oe-text: #F8FAFC;
  --oe-text-muted: #CBD5E1;
  --oe-text-subtle: #94A3B8;
  --oe-border: #293D58;
  --oe-border-strong: #365073;
  --oe-accent: #38BDF8;
  --oe-accent-hover: #0EA5E9;
  --oe-accent-soft: rgba(56, 189, 248, 0.16);
  --oe-emerald: #10B981;
  --oe-emerald-soft: rgba(16, 185, 129, 0.16);
  --oe-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --oe-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
  --oe-shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.52);
  --oe-placeholder-bg: linear-gradient(135deg, #0F1D33 0%, #162944 55%, #0C253A 100%);
  --oe-placeholder-text: #CBD5E1;
  --bg-dark: #09111F;
  --bg-card: #111E31;
  --bg-input: #0D1829;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #293D58;
  --primary: #38BDF8;
}

html,
body {
  background-color: var(--oe-bg) !important;
  color: var(--oe-text) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  overflow-x: hidden !important;
}

.main-container,
.sidebar,
#sidebarContainer {
  background-color: var(--oe-bg) !important;
  color: var(--oe-text) !important;
}

/* ==========================================================================
   1. HEADER — LOGO + CATEGORY TABS + SEO LINKS + LANG / THEME / FAVORITES
   ========================================================================== */
.app-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 0 24px !important;
  height: 66px !important;
  min-height: 66px !important;
  flex-wrap: nowrap !important;
  background: var(--oe-surface) !important;
  border-bottom: 1px solid var(--oe-border) !important;
  box-shadow: var(--oe-shadow-sm) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.app-header .header-left {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
}

.app-header .logo-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.app-header .logo-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0284C7, #0EA5E9) !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28) !important;
}

.app-header .logo-title {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--oe-text) !important;
  white-space: nowrap !important;
}

.app-header .logo-title span {
  color: var(--oe-accent) !important;
}

.app-header .logo-subtitle {
  display: none !important;
}

/* Category Tabs in Header */
html body #categorySegmentedControl,
html body .operation-segmented-control#categorySegmentedControl {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 3px !important;
  border-radius: 11px !important;
  background: var(--oe-surface-pill) !important;
  border: 1px solid var(--oe-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  flex-shrink: 0 !important;
}

html body #categorySegmentedControl .cat-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--oe-text-muted) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

html body #categorySegmentedControl .cat-btn:hover:not(.active) {
  color: var(--oe-text) !important;
  background: var(--oe-surface) !important;
}

html body #categorySegmentedControl .cat-btn.active {
  background: var(--oe-accent) !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border-color: var(--oe-accent) !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28) !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] body #categorySegmentedControl .cat-btn.active {
  color: #09111F !important;
}

/* SEO Section Links in Header (Договоры, Практические советы) */
.header-content-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

html body .app-header .header-content-nav .header-nav-link,
html body.theme-light .app-header .header-content-nav .header-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 11px !important;
  border-radius: 9px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  color: var(--oe-text-muted) !important;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

html body .app-header .header-content-nav .header-nav-link:hover {
  color: var(--oe-text) !important;
  background: var(--oe-surface-pill) !important;
}

html body .app-header .header-content-nav .header-nav-link i {
  font-size: 0.78rem !important;
  opacity: 0.8;
}

/* Right Header Actions: RU | ES | EN + Theme Toggle + Favorites */
.header-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
}

/* TZ72.1: Компактный зелёный бейдж живой базы + защита шапки от наложения при 1280-1440px */
.app-header {
  padding: 0 14px !important;
  gap: 8px !important;
}
.header-left {
  gap: 10px !important;
  min-width: 0 !important;
}
.header-right {
  gap: 7px !important;
  flex-shrink: 0 !important;
}
.header-nav-link,
.app-header .header-nav-link {
  padding: 5px 10px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
}
.live-pulse-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(6, 78, 59, 0.85) !important;
  border: 1.5px solid #10b981 !important;
  color: #ecfdf5 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.live-pulse-container .live-text {
  color: #ecfdf5 !important;
}
html[data-theme="light"] .live-pulse-container,
body.theme-light .live-pulse-container {
  background: #ecfdf5 !important;
  border: 1.5px solid #0d9488 !important;
  color: #065f46 !important;
}
html[data-theme="light"] .live-pulse-container .live-text,
body.theme-light .live-pulse-container .live-text {
  color: #065f46 !important;
}
@media (max-width: 1200px) {
  .live-pulse-container { display: none !important; }
}

html body #langSwitcher,
html body .lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 3px !important;
  border-radius: 10px !important;
  background: var(--oe-surface-pill) !important;
  border: 1px solid var(--oe-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#langSwitcher .lang-sep,
#langSwitcher .lang-name {
  display: none !important;
}

html body #langSwitcher .lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  min-height: 28px !important;
  min-width: 30px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: var(--oe-text-muted) !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html body #langSwitcher .lang-btn.active,
html body.theme-light #langSwitcher .lang-btn.active {
  background: var(--oe-accent) !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.28) !important;
}

html[data-theme="dark"] body #langSwitcher .lang-btn.active {
  background: var(--oe-accent) !important;
  color: #09111F !important;
}

/* Remove legacy green border on .main-bar-types */
.primary-quick-controls.tz35-row-1 .main-bar-types {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#btnThemeToggle,
.btn-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

#btnThemeToggle:hover {
  border-color: var(--oe-accent) !important;
  background: var(--oe-accent-soft) !important;
}

#btnHeaderFavorites {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#btnHeaderFavorites:hover {
  border-color: #EF4444 !important;
}

#btnHeaderFavorites .fav-count-pill {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
}

html[data-theme="dark"] #btnHeaderFavorites .fav-count-pill {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #FCA5A5 !important;
}

/* ==========================================================================
   2. SEARCH BLOCK: ROW 1 (5 FIELDS) + ROW 2 (QUICK PILLS) + ROW 3 (SOURCES)
   ========================================================================== */
.quick-filter-bar {
  background: var(--oe-surface) !important;
  border-bottom: 1px solid var(--oe-border) !important;
  padding: 14px 24px 12px !important;
  position: relative !important;
  z-index: 900 !important;
  box-shadow: var(--oe-shadow-sm) !important;
}

.tz35-search-shell {
  max-width: 1392px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Row 1: 5 Fields in a crisp row */
.primary-quick-controls.tz35-row-1 {
  display: grid !important;
  grid-template-columns: 1.05fr 1.35fr 1.25fr 0.9fr 0.9fr !important;
  gap: 10px !important;
  align-items: end !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
}

.tz35-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.tz35-field .item-label {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--oe-text-subtle) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
}

.tz35-field .item-label i {
  display: none !important;
}

.quick-filter-bar select,
.quick-filter-bar .custom-select,
.quick-filter-bar input[type="number"],
#quickFilterCountry,
#quickFilterZone,
#quickFilterPropertyType,
#quickMinPrice,
#quickMaxPrice,
#quickCurrency,
#quickFilterSeller,
#quickFilterRentalType,
#quickFilterMaxAge,
#quickFilterPets {
  background: var(--oe-surface-soft) !important;
  background-image: none !important;
  color: var(--oe-text) !important;
  border: 1px solid var(--oe-border) !important;
  border-radius: 10px !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  height: 40px !important;
  padding: 0 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.quick-filter-bar select:focus,
.quick-filter-bar input[type="number"]:focus {
  outline: none !important;
  border-color: var(--oe-accent) !important;
  box-shadow: 0 0 0 3px var(--oe-accent-soft) !important;
}

#quickFilterPropertyType {
  display: block !important;
}

/* Row 2: Quick Pills (Rooms + Barrio + All Filters + Map + Reset) */
.tz35-row-2 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding-top: 2px !important;
}

.tz35-row-2 .rooms-pill-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.tz35-row-2 .rooms-pill-group .item-label {
  display: none !important;
}

.tz35-row-2 .rooms-pill-group .pill-options {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

.tz35-row-2 .pill-btn {
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text-muted) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.tz35-row-2 .pill-btn:hover {
  border-color: var(--oe-accent) !important;
  color: var(--oe-text) !important;
}

.tz35-row-2 .pill-btn.active {
  background: var(--oe-accent) !important;
  border-color: var(--oe-accent) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .tz35-row-2 .pill-btn.active {
  color: #09111F !important;
}

/* Barrio multiselect pill in Row 2 */
.tz35-row-2 .multiselect-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  min-width: 145px !important;
  max-width: 210px !important;
}

.tz35-row-2 .multiselect-wrapper .item-label {
  display: none !important;
}

.tz35-row-2 .multiselect-trigger {
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.tz35-row-2 .multiselect-trigger:hover {
  border-color: var(--oe-accent) !important;
}

.multiselect-menu {
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  box-shadow: var(--oe-shadow-lg) !important;
  border-radius: 14px !important;
  z-index: 2000 !important;
}

.multiselect-menu .ms-search {
  background: var(--oe-surface-soft) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
}

.multiselect-menu .ms-item {
  color: var(--oe-text) !important;
}

.multiselect-menu .ms-item:hover {
  background: var(--oe-surface-pill) !important;
}

/* Action pills in Row 2 */
#btnToggleMoreFilters,
#btnToggleMap,
#btnQuickResetFilters {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

#btnToggleMoreFilters:hover,
body.tz32-more-open #btnToggleMoreFilters {
  border-color: var(--oe-accent) !important;
  color: var(--oe-accent) !important;
  background: var(--oe-accent-soft) !important;
}

#btnToggleMap {
  margin-left: auto !important;
  border-color: var(--oe-accent) !important;
  color: var(--oe-accent) !important;
  background: var(--oe-accent-soft) !important;
  font-weight: 700 !important;
}

#btnToggleMap:hover {
  background: var(--oe-accent) !important;
  color: #FFFFFF !important;
}

#btnQuickResetFilters {
  color: var(--oe-text-muted) !important;
}

#btnQuickResetFilters:hover {
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

.tz33-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--oe-surface-pill);
  color: var(--oe-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.tz33-filter-badge.has-active {
  background: var(--oe-accent);
  color: #FFFFFF;
}

/* Secondary Expandable Filters Tray */
.secondary-filters-tray {
  margin-top: 8px !important;
  padding: 14px 16px !important;
  background: var(--oe-surface-soft) !important;
  border: 1px solid var(--oe-border) !important;
  border-radius: 14px !important;
  flex-wrap: wrap !important;
  gap: 12px 16px !important;
  align-items: flex-end !important;
}

.secondary-filters-tray .filter-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 165px;
}

.secondary-filters-tray .item-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--oe-text-subtle) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.secondary-filters-tray select {
  height: 36px !important;
  font-size: 0.82rem !important;
}

.btn-furnished-chip,
.quick-chip-toggle {
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text-muted) !important;
  border-radius: 8px !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
}

.btn-furnished-chip.active {
  background: var(--oe-accent) !important;
  border-color: var(--oe-accent) !important;
  color: #FFFFFF !important;
}

/* Row 3: Horizontal Sources Bar (ALWAYS VISIBLE!) */
#sourcePillsBar,
.source-pills-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  background: var(--oe-bg) !important;
  border-bottom: 1px solid var(--oe-border) !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.source-pills-bar .source-pills-label {
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--oe-text-subtle) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.source-pills-bar .source-pills-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.source-pills-bar .source-pills-scroll::-webkit-scrollbar {
  display: none !important;
}

.source-pills-bar .btn-source-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

.source-pills-bar .btn-source-pill .pill-cnt {
  background: var(--oe-surface-pill) !important;
  color: var(--oe-text-muted) !important;
  font-size: 0.71rem !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
}

.source-pills-bar .btn-source-pill:hover {
  border-color: var(--oe-accent) !important;
}

.source-pills-bar .btn-source-pill.active {
  background: var(--oe-accent) !important;
  border-color: var(--oe-accent) !important;
  color: #FFFFFF !important;
}

.source-pills-bar .btn-source-pill.active .pill-cnt {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .source-pills-bar .btn-source-pill.active {
  color: #09111F !important;
}

html[data-theme="dark"] .source-pills-bar .btn-source-pill.active .pill-cnt {
  background: rgba(9, 17, 31, 0.22) !important;
  color: #09111F !important;
}

.source-pills-nav-btn {
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text-muted) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
}

/* Hide redundant bars (TZ72: keep #topBarriosScrollWrap visible for direct internal linking!) */
#quickZoneScrollWrap,
#btnOpenMegaFilter,
#propertyTypePills {
  display: none !important;
}

/* TZ72: Visible compact Top Barrios bar + 1-line Promo Slot + Niche Links (Dark & Light >= 4.5:1) */
#topBarriosScrollWrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  margin: 0 20px 6px !important;
  border-radius: 10px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  width: auto !important;
}
#topBarriosScrollWrap .top-barrios-label {
  color: #fbbf24 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
}
#topBarriosScrollWrap .btn-barrio-pill {
  background: rgba(30, 41, 59, 0.92) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
}
#topBarriosScrollWrap .btn-barrio-pill .barrio-cnt {
  color: #7dd3fc !important;
  font-weight: 700 !important;
}
html[data-theme="light"] #topBarriosScrollWrap,
body.theme-light #topBarriosScrollWrap {
  background: #e6f4f1 !important;
  border: 1.5px solid #0d9488 !important;
}
html[data-theme="light"] #topBarriosScrollWrap .top-barrios-label,
body.theme-light #topBarriosScrollWrap .top-barrios-label {
  color: #064e3b !important;
}
html[data-theme="light"] #topBarriosScrollWrap .btn-barrio-pill,
body.theme-light #topBarriosScrollWrap .btn-barrio-pill {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #0d9488 !important;
}
html[data-theme="light"] #topBarriosScrollWrap .btn-barrio-pill .barrio-cnt,
body.theme-light #topBarriosScrollWrap .btn-barrio-pill .barrio-cnt {
  color: #0f766e !important;
}
.tz72-niche-links-bar {
  margin: 0 20px 8px !important;
}
#tz37PromoSlot.promo-slot {
  margin: 8px 20px 4px !important;
  padding: 0 !important;
}
#tz37PromoSlot .promo-slot-card {
  padding: 5px 11px !important;
  min-height: 34px !important;
}
#tz37PromoSlot .promo-slot-desc {
  display: none !important;
}
html[data-theme="light"] #tz37PromoSlot .promo-slot-cta,
body.theme-light #tz37PromoSlot .promo-slot-cta {
  background: #0f766e !important;
  color: #ffffff !important;
}

/* ==========================================================================
   3. FEED HEADER & PROPERTY CARDS (TZ35 CLEAN AGGREGATOR CARDS)
   ========================================================================== */
.feed-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 18px 24px 12px !important;
  background: transparent !important;
  border-bottom: none !important;
}

.feed-header-bar .feed-heading,
.feed-header-bar h1 {
  font-size: 1.32rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--oe-text) !important;
  margin: 0 !important;
}

.feed-header-bar .feed-sub {
  font-size: 0.84rem !important;
  color: var(--oe-text-subtle) !important;
  margin-top: 3px !important;
  display: block !important;
}

.feed-header-bar .feed-sort-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* TZ72.1: Компактная кнопка «Показать на карте» рядом с сортировкой */
#btnToggleMapFeed {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  background: #0369a1 !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  transition: filter 0.15s ease, transform 0.12s ease !important;
}
#btnToggleMapFeed:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}
html[data-theme="light"] #btnToggleMapFeed,
body.theme-light #btnToggleMapFeed {
  background: #0f766e !important;
  color: #ffffff !important;
  border: 1px solid #0d9488 !important;
}

#feedSortSelect {
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  color: var(--oe-text) !important;
  border-radius: 10px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  height: 38px !important;
  padding: 0 12px !important;
  cursor: pointer !important;
}

.property-feed,
#propertyFeed {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important;
  gap: 18px !important;
  padding: 4px 24px 28px !important;
}

.property-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: var(--oe-shadow-sm) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
  cursor: pointer !important;
}

.property-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--oe-shadow-lg) !important;
  border-color: var(--oe-accent) !important;
}

/* Photo Container */
.property-card .card-image-wrap {
  position: relative !important;
  aspect-ratio: 16 / 10 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  background: var(--oe-surface-soft) !important;
}

.property-card img.card-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Branded No-Photo Placeholder (Telegram / listings without photo) */
.oe-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--oe-placeholder-bg);
  color: var(--oe-placeholder-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  box-sizing: border-box;
}

.oe-photo-placeholder-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oe-accent);
}

.oe-photo-placeholder-barrio {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--oe-text);
  line-height: 1.2;
}

.oe-photo-placeholder-note {
  font-size: 0.74rem;
  color: var(--oe-text-subtle);
  font-weight: 500;
}

/* Neutral Status + Freshness Badge (Top-Left of Photo) — TZ49 clean ellipsis */
.tz35-status-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-block !important;
  padding: 4px 9px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  font-size: 0.69rem !important;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 54px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box;
}

html[data-theme="dark"] .tz35-status-pill {
  background: rgba(17, 30, 49, 0.92);
  color: #F8FAFC;
  border-color: rgba(148, 163, 184, 0.25);
}

.tz35-status-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.tz35-time-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  color: #F8FAFC;
  font-size: 0.70rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Favorite Heart Button (Top-Right of Photo) */
.property-card .btn-favorite {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 5 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.property-card .btn-favorite i {
  color: #475569 !important;
  font-size: 0.92rem !important;
}

.property-card .btn-favorite.active i {
  color: #EF4444 !important;
}

/* Hide legacy noisy overlays */
.property-card .card-badge-eval,
.property-card .card-date-badge,
.property-card .card-sources-preview,
.property-card .zone-tag,
.property-card .card-amenities-tags {
  display: none !important;
}

/* Card Body */
.property-card .card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 14px 16px 14px !important;
  background: var(--oe-surface) !important;
  color: var(--oe-text) !important;
  gap: 6px !important;
}

.property-card .tz35-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.property-card .tz35-price-main {
  font-size: 1.24rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--oe-text) !important;
  line-height: 1.2 !important;
}

.property-card .tz35-price-equiv {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: var(--oe-text-subtle) !important;
}

.property-card .card-expensas-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 2px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--oe-text-muted) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.property-card .card-expensas-tag.zero {
  color: var(--oe-emerald) !important;
}

/* Title BELOW photo, between price and address */
.property-card .card-title {
  margin: 4px 0 0 !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--oe-text) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.property-card .tz35-location-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--oe-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card .tz35-location-line i {
  color: var(--oe-accent);
  font-size: 0.76rem;
  flex-shrink: 0;
}

/* Specs Row */
.property-card .card-specs-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

.property-card .prop-type-pill,
.property-card .spec-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 7px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  background: var(--oe-surface-pill) !important;
  color: var(--oe-text-muted) !important;
  border: 1px solid var(--oe-border) !important;
}

/* Card Footer: Source left | Details + Original right */
.property-card .card-footer-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--oe-border) !important;
  background: transparent !important;
}

.tz35-footer-source {
  font-size: 0.74rem;
  color: var(--oe-text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tz35-footer-source strong {
  color: var(--oe-text);
  font-weight: 700;
}

.tz35-footer-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tz35-btn-details {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  background: var(--oe-accent) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.15s ease !important;
}

.tz35-btn-details:hover {
  background: var(--oe-accent-hover) !important;
}

html[data-theme="dark"] .tz35-btn-details {
  color: #09111F !important;
}

.tz35-link-original {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: var(--oe-text-muted) !important;
  text-decoration: none !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.tz35-link-original:hover {
  color: var(--oe-accent) !important;
  background: var(--oe-accent-soft) !important;
}

/* Load More Button (Full Grid Span) */
#btnFeedLoadMoreWrap {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: 16px 0 8px !important;
}

/* ==========================================================================
   4. OMNIESTATE · KNOW-HOW — PRACTICAL RENTAL GUIDES SECTION
   ========================================================================== */
.tz35-knowhow-section {
  margin: 12px 24px 24px;
  padding: 24px;
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: 18px;
  box-shadow: var(--oe-shadow-sm);
}

.tz35-knowhow-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tz35-knowhow-eyebrow {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oe-accent);
  margin-bottom: 4px;
}

.tz35-knowhow-title {
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--oe-text);
  margin: 0;
  letter-spacing: -0.02em;
}

.tz35-knowhow-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--oe-accent);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--oe-accent-soft);
  white-space: nowrap;
}

.tz35-knowhow-all:hover {
  background: var(--oe-accent);
  color: #FFFFFF;
}

.tz35-knowhow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tz35-knowhow-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: var(--oe-surface-soft);
  border: 1px solid var(--oe-border);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tz35-knowhow-card:hover {
  transform: translateY(-2px);
  border-color: var(--oe-accent);
  box-shadow: var(--oe-shadow-md);
}

.tz35-knowhow-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--oe-accent-soft);
  color: var(--oe-accent);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tz35-knowhow-card h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--oe-text);
}

.tz35-knowhow-card p {
  margin: 0;
  font-size: 0.80rem;
  line-height: 1.45;
  color: var(--oe-text-muted);
}

.tz35-knowhow-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--oe-accent);
}

/* SEO Footer */
.catalog-seo-footer {
  margin: 0 24px 32px !important;
  padding: 18px 20px !important;
  background: var(--oe-surface) !important;
  border: 1px solid var(--oe-border) !important;
  border-radius: 16px !important;
  color: var(--oe-text-muted) !important;
}

.catalog-seo-footer a {
  color: var(--oe-text-muted) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.catalog-seo-footer a:hover {
  color: var(--oe-accent) !important;
  text-decoration: underline !important;
}

/* Modal Light/Dark Theme Harmonization */
.modal-card,
.mega-modal-card {
  background: var(--oe-surface) !important;
  color: var(--oe-text) !important;
  border: 1px solid var(--oe-border) !important;
}

.modal-card h2,
.modal-card h3,
.modal-card h4,
.modal-title {
  color: var(--oe-text) !important;
}

.modal-desc-box,
.modal-sources-section {
  background: var(--oe-surface-soft) !important;
  border-color: var(--oe-border) !important;
  color: var(--oe-text) !important;
}

/* Hide mobile-only controls on desktop */
.tz32-mobile-bar,
.tz32-drawer-header,
.tz32-drawer-backdrop {
  display: none !important;
}

/* ==========================================================================
   5. MEDIUM DESKTOP (<= 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  .app-header {
    padding: 0 14px !important;
    gap: 10px !important;
  }
  .app-header .header-left {
    gap: 10px !important;
  }
  html body #categorySegmentedControl .cat-btn {
    padding: 0 8px !important;
    font-size: 0.75rem !important;
  }
  html body .app-header .header-content-nav .header-nav-link {
    padding: 6px 8px !important;
    font-size: 0.76rem !important;
  }
  #btnHeaderFavorites .fav-label {
    display: none !important;
  }
  .quick-filter-bar,
  #sourcePillsBar,
  .feed-header-bar,
  #propertyFeed {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .tz35-knowhow-section,
  .catalog-seo-footer {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* ==========================================================================
   6. MOBILE RESPONSIVE (<= 768px — 390x844 ZERO HORIZONTAL SCROLL)
   ========================================================================== */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .app-header {
    height: auto !important;
    min-height: auto !important;
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    position: relative !important;
  }

  .app-header .header-left {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  html body #categorySegmentedControl,
  html body .operation-segmented-control#categorySegmentedControl {
    order: 3 !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
  }

  .header-content-nav {
    display: inline-flex !important;
    order: 2 !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  html body .app-header .header-content-nav .header-nav-link {
    display: inline-flex !important;
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    background: var(--oe-surface-pill) !important;
    border: 1px solid var(--oe-border) !important;
    color: var(--oe-text) !important;
  }

  html body .app-header .header-content-nav .header-nav-link span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body .app-header .header-content-nav .header-nav-link i {
    display: none !important;
  }

  .header-actions {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* Sticky Mobile Search + Filters Bar */
  .tz32-mobile-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    background: var(--oe-surface) !important;
    border-bottom: 1px solid var(--oe-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 950 !important;
    box-shadow: var(--oe-shadow-sm) !important;
  }

  .tz32-mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--oe-surface-soft);
    border: 1px solid var(--oe-border);
    border-radius: 10px;
    padding: 0 10px;
    height: 40px;
  }

  .tz32-mobile-search-wrap i {
    color: var(--oe-text-subtle);
    font-size: 0.84rem;
  }

  .tz32-mobile-search-wrap input {
    border: none !important;
    background: transparent !important;
    color: var(--oe-text) !important;
    font-size: 0.85rem !important;
    width: 100%;
    outline: none;
  }

  .tz32-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--oe-accent);
    background: var(--oe-accent);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Sources bar compact on mobile */
  #sourcePillsBar,
  .source-pills-bar {
    padding: 8px 12px !important;
  }

  .source-pills-bar .source-pills-label,
  .source-pills-nav-btn {
    display: none !important;
  }

  /* Desktop filter bar becomes Mobile Drawer */
  .quick-filter-bar {
    display: none !important;
  }

  body.tz32-drawer-open .tz32-drawer-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(9, 17, 31, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9990;
  }

  body.tz32-drawer-open .quick-filter-bar {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 6vh !important;
    z-index: 9999 !important;
    background: var(--oe-surface) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 16px 14px 32px !important;
    overflow-y: auto !important;
    max-width: 100vw !important;
  }

  body.tz32-drawer-open .tz32-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--oe-border) !important;
  }

  body.tz32-drawer-open .tz32-drawer-header strong {
    color: var(--oe-text) !important;
    font-size: 1rem !important;
  }

  .tz32-drawer-close-btn {
    background: var(--oe-accent) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }

  body.tz32-drawer-open .primary-quick-controls.tz35-row-1 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.tz32-drawer-open .secondary-filters-tray {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Feed header & cards mobile */
  .feed-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px 12px 8px !important;
  }

  .feed-header-bar .feed-heading,
  .feed-header-bar h1 {
    font-size: 1.06rem !important;
    line-height: 1.25 !important;
  }

  .feed-header-bar .feed-sub {
    display: none !important;
  }

  .feed-header-bar .feed-sort-wrap {
    width: 100% !important;
    justify-content: space-between !important;
  }

  #btnToggleMapFeed {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: var(--oe-surface) !important;
    border: 1px solid var(--oe-border) !important;
    color: var(--oe-text) !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    flex: 1 1 46% !important;
  }

  .feed-header-bar .sort-label {
    display: none !important;
  }

  #feedSortSelect {
    flex: 1 1 50% !important;
    height: 36px !important;
    font-size: 0.80rem !important;
  }

  .property-feed,
  #propertyFeed {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 4px 12px 24px !important;
  }

  .tz35-knowhow-section {
    margin: 8px 12px 16px;
    padding: 16px;
  }

  .tz35-knowhow-grid {
    grid-template-columns: 1fr !important;
  }

  .catalog-seo-footer {
    margin: 0 12px 24px !important;
    padding: 14px !important;
  }
}

/* ==========================================================================
   7. TZ36 — AIRBNB-STYLE DENSE 4–5 COLUMN SHOWCASE (8–10 CARDS ON 1440x900)
      + LOADING SKELETONS
   ========================================================================== */
@media (min-width: 1024px) {
  .app-header {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 20px !important;
  }

  .quick-filter-bar {
    padding: 8px 20px 8px !important;
  }

  .tz35-search-shell {
    gap: 6px !important;
    max-width: 1440px !important;
  }

  .quick-filter-bar select,
  .quick-filter-bar .custom-select,
  .quick-filter-bar input[type="number"],
  #quickFilterCountry,
  #quickFilterZone,
  #quickFilterPropertyType,
  #quickMinPrice,
  #quickMaxPrice {
    height: 34px !important;
    font-size: 0.82rem !important;
    padding: 0 10px !important;
  }

  .tz35-row-2 .pill-btn,
  .tz35-row-2 .multiselect-trigger,
  #btnToggleMoreFilters,
  #btnToggleMap,
  #btnQuickResetFilters {
    height: 30px !important;
    font-size: 0.76rem !important;
    padding: 0 10px !important;
  }

  #sourcePillsBar,
  .source-pills-bar {
    padding: 6px 20px !important;
  }

  .source-pills-bar .btn-source-pill {
    height: 28px !important;
    font-size: 0.74rem !important;
    padding: 0 9px !important;
  }

  .feed-header-bar {
    padding: 10px 20px 6px !important;
  }

  .feed-header-bar .feed-heading,
  .feed-header-bar h1 {
    font-size: 1.12rem !important;
  }

  .feed-header-bar .feed-sub {
    display: none !important;
  }

  #feedSortSelect {
    height: 32px !important;
    font-size: 0.80rem !important;
  }

  /* 4 columns on 1024-1359px, 5 columns on >= 1360px (10 cards visible in 2 rows on 1440x900) */
  .property-feed,
  #propertyFeed {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 4px 20px 20px !important;
  }

  .property-card {
    border-radius: 13px !important;
  }

  .property-card .card-image-wrap {
    aspect-ratio: auto !important;
    height: 158px !important;
  }

  .property-card .card-content {
    padding: 9px 11px 10px !important;
    gap: 4px !important;
  }

  .property-card .tz35-price-main {
    font-size: 1.04rem !important;
  }

  .property-card .tz35-price-equiv,
  .property-card .card-expensas-tag {
    font-size: 0.71rem !important;
  }

  .property-card .card-title {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 1 !important;
    margin-top: 2px !important;
  }

  .property-card .tz35-location-line {
    font-size: 0.73rem !important;
  }

  .property-card .card-specs-row {
    gap: 4px !important;
    margin-top: 2px !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .property-card .prop-type-pill,
  .property-card .spec-item {
    padding: 2px 6px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .property-card .card-footer-actions {
    padding-top: 7px !important;
    gap: 5px !important;
  }

  .tz35-footer-source {
    font-size: 0.68rem !important;
  }

  .tz35-btn-details {
    height: 26px !important;
    padding: 0 9px !important;
    font-size: 0.71rem !important;
    border-radius: 7px !important;
  }

  .tz35-link-original {
    font-size: 0.71rem !important;
    padding: 3px 4px !important;
  }
}

@media (min-width: 1360px) {
  .property-feed,
  #propertyFeed {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Shimmer Loading Skeletons */
.oe-skeleton-card {
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.oe-sk-img {
  height: 158px;
  background: linear-gradient(90deg, var(--oe-surface-pill) 25%, var(--oe-surface-soft) 50%, var(--oe-surface-pill) 75%);
  background-size: 200% 100%;
  animation: oeShimmer 1.3s infinite linear;
}

.oe-sk-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oe-sk-line {
  height: 12px;
  border-radius: 6px;
  background: var(--oe-surface-pill);
}

.oe-sk-line.lg { width: 68%; height: 16px; }
.oe-sk-line.md { width: 88%; }
.oe-sk-line.sm { width: 52%; }

@keyframes oeShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   8. TZ37 — MAXIMUM LIGHT-THEME CONTRAST (#0B1220 / #334155 / #94A3B8),
      FULL-WIDTH SEARCH PANEL, PROMINENT HEADER BADGES & .promo-slot BANNER
   ========================================================================== */

:root,
html[data-theme="light"],
body[data-theme="light"] {
  --oe-text: #0B1220;
  --oe-text-muted: #334155;
  --oe-text-subtle: #334155;
  --oe-border: #94A3B8;
  --oe-border-strong: #64748B;
  --oe-surface-pill: #E8EEF5;
  --text-main: #0B1220;
  --text-muted: #334155;
  --border: #94A3B8;
}

html[data-theme="light"] body,
html[data-theme="light"] .app-header,
html[data-theme="light"] .quick-filter-bar,
html[data-theme="light"] .property-card .card-title,
html[data-theme="light"] .property-card .tz35-price-main,
html[data-theme="light"] .feed-header-bar .feed-heading,
html[data-theme="light"] .feed-header-bar h1,
html[data-theme="light"] .quick-filter-bar select,
html[data-theme="light"] .quick-filter-bar input[type="number"],
html[data-theme="light"] #feedSortSelect,
html[data-theme="light"] .tz35-row-2 .pill-btn,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger,
html[data-theme="light"] #btnToggleMoreFilters,
html[data-theme="light"] #btnQuickResetFilters,
html[data-theme="light"] .source-pills-bar .btn-source-pill,
html[data-theme="light"] #categorySegmentedControl .cat-btn {
  color: #0B1220 !important;
}

html[data-theme="light"] .tz35-field .item-label,
html[data-theme="light"] .source-pills-bar .source-pills-label,
html[data-theme="light"] .property-card .tz35-price-equiv,
html[data-theme="light"] .property-card .tz35-location-line,
html[data-theme="light"] .property-card .tz35-footer-source,
html[data-theme="light"] .property-card .tz35-link-original,
html[data-theme="light"] .property-card .prop-type-pill,
html[data-theme="light"] .property-card .spec-item,
html[data-theme="light"] .quick-filter-bar input::placeholder {
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .quick-filter-bar select,
html[data-theme="light"] .quick-filter-bar input[type="number"],
html[data-theme="light"] .tz35-row-2 .pill-btn,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger,
html[data-theme="light"] #btnToggleMoreFilters,
html[data-theme="light"] #btnQuickResetFilters,
html[data-theme="light"] .source-pills-bar .btn-source-pill,
html[data-theme="light"] #feedSortSelect,
html[data-theme="light"] #btnThemeToggle,
html[data-theme="light"] #btnHeaderFavorites,
html[data-theme="light"] #langSwitcher,
html[data-theme="light"] #categorySegmentedControl {
  border-color: #94A3B8 !important;
}

html[data-theme="light"] .quick-filter-bar select,
html[data-theme="light"] .quick-filter-bar input[type="number"] {
  background-color: #FFFFFF !important;
  font-weight: 600 !important;
}

html[data-theme="light"] #categorySegmentedControl .cat-btn.active,
html[data-theme="light"] .tz35-row-2 .pill-btn.active,
html[data-theme="light"] .source-pills-bar .btn-source-pill.active,
html[data-theme="light"] #langSwitcher .lang-btn.active {
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

html[data-theme="light"] .source-pills-bar .btn-source-pill .pill-cnt {
  background: #0F172A !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] .source-pills-bar .btn-source-pill.active .pill-cnt {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* 2. Full-Width Search Panel (Zero Empty Side Margins) */
.tz35-search-shell {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.app-header,
.quick-filter-bar,
#sourcePillsBar,
.source-pills-bar,
.feed-header-bar,
.property-feed,
#propertyFeed {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 3. Prominent High-Contrast Header Badges: Шаблоны договоров & Практические советы */
html body .app-header .header-content-nav {
  gap: 8px !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-legal {
  background: #EEF2FF !important;
  color: #3730A3 !important;
  border: 1px solid #818CF8 !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(55, 48, 163, 0.08) !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-legal:hover {
  background: #E0E7FF !important;
  border-color: #4F46E5 !important;
  color: #1E1B4B !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-blog {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #34D399 !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(6, 95, 70, 0.08) !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-blog:hover {
  background: #D1FAE5 !important;
  border-color: #059669 !important;
  color: #064E3B !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-legal {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #C7D2FE !important;
  border: 1px solid rgba(129, 140, 248, 0.55) !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-legal:hover {
  background: rgba(99, 102, 241, 0.30) !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-blog {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #A7F3D0 !important;
  border: 1px solid rgba(52, 211, 153, 0.55) !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-blog:hover {
  background: rgba(16, 185, 129, 0.30) !important;
  color: #FFFFFF !important;
}

/* 4. Compact 2-Column Showcase / Partner Slot (.promo-slot) */
.promo-slot {
  position: relative;
  padding: 8px 20px 2px;
  background: var(--oe-bg);
}

.promo-slot.is-hidden {
  display: none !important;
}

.promo-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding-right: 28px;
  box-sizing: border-box;
}

.promo-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  box-shadow: var(--oe-shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.promo-slot-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--oe-shadow-md);
}

.promo-slot-card.promo-legal {
  border-left: 4px solid #4F46E5;
}

.promo-slot-card.promo-legal:hover {
  border-color: #4F46E5;
}

.promo-slot-card.promo-guides {
  border-left: 4px solid #059669;
}

.promo-slot-card.promo-guides:hover {
  border-color: #059669;
}

.promo-slot-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.promo-slot-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.promo-legal .promo-slot-icon {
  background: #EEF2FF;
  color: #4338CA;
}

.promo-guides .promo-slot-icon {
  background: #ECFDF5;
  color: #047857;
}

html[data-theme="dark"] .promo-legal .promo-slot-icon {
  background: rgba(99, 102, 241, 0.22);
  color: #A5B4FC;
}

html[data-theme="dark"] .promo-guides .promo-slot-icon {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
}

.promo-slot-copy {
  min-width: 0;
}

.promo-slot-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--oe-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-slot-desc {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--oe-text-muted);
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-slot-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-legal .promo-slot-cta {
  background: #4F46E5;
  color: #FFFFFF;
}

.promo-guides .promo-slot-cta {
  background: #059669;
  color: #FFFFFF;
}

.promo-slot-close {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--oe-border);
  background: var(--oe-surface);
  color: var(--oe-text-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-slot-close:hover {
  color: #EF4444;
  border-color: #EF4444;
}

/* Light-theme contrast fix for SSG intro banner on /ar/alquiler/* and /es/alquiler/* */
html[data-theme="light"] .sidebar div[style*="rgba(16, 185, 129"],
html[data-theme="light"] .sidebar div[style*="rgba(56, 189, 248"],
html[data-theme="light"] .ssg-intro-banner {
  background: #ECFDF5 !important;
  border-color: #34D399 !important;
  color: #0B1220 !important;
}

html[data-theme="light"] .sidebar div[style*="rgba(16, 185, 129"] *,
html[data-theme="light"] .sidebar div[style*="rgba(56, 189, 248"] *,
html[data-theme="light"] .ssg-intro-banner * {
  color: #0B1220 !important;
}

html[data-theme="light"] .sidebar div[style*="rgba(16, 185, 129"] strong {
  color: #065F46 !important;
}

/* ==========================================================================
   9. TZ43 — DIRECT OWNER (0%) QUICK PILL, EMERALD BANNER & PHOTO BADGE
   ========================================================================== */
.tz43-direct-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #0B1220 !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.tz43-direct-pill:hover {
  background: #F1F5F9 !important;
  border-color: #64748B !important;
}

.tz43-direct-pill.active,
html[data-theme="light"] .tz43-direct-pill.active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

html[data-theme="dark"] .tz43-direct-pill {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .tz43-direct-pill:hover {
  background: #1E293B !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html[data-theme="dark"] .tz43-direct-pill.active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

/* TZ47: Emerald active state for selected neighborhood pill */
.tz35-row-2 .multiselect-trigger.active,
.tz35-row-2 .multiselect-trigger.tz47-barrio-active,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger.active,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger.tz47-barrio-active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

html[data-theme="dark"] .tz35-row-2 .multiselect-trigger.active,
html[data-theme="dark"] .tz35-row-2 .multiselect-trigger.tz47-barrio-active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

.tz35-row-2 .multiselect-trigger.active *,
.tz35-row-2 .multiselect-trigger.tz47-barrio-active * {
  color: #FFFFFF !important;
}

/* Emerald Direct-Owner Info Banner under H1 */
.tz43-direct-banner {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 20px 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-left: 4px solid #059669;
  color: #064E3B;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.tz43-direct-banner.is-visible {
  display: flex !important;
}

html[data-theme="dark"] .tz43-direct-banner {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.5);
  border-left-color: #10B981;
  color: #D1FAE5;
}

/* Vivid Emerald Badge on Card Photo for Direct Owner listings */
.tz43-owner-photo-badge {
  position: absolute;
  bottom: 34px;
  left: 8px;
  right: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .promo-slot {
    padding: 8px 12px 2px;
  }
  .promo-slot-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 0;
  }
  .promo-slot-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
    min-height: auto;
  }
  .promo-slot-left {
    width: 100%;
    padding-right: 22px;
    box-sizing: border-box;
  }
  .promo-slot-title,
  .promo-slot-desc {
    white-space: normal;
  }
  .promo-slot-cta {
    align-self: flex-start;
  }
  .promo-slot-close {
    top: 12px;
    right: 16px;
  }
}

/* ==========================================================================
   8. TZ37 — MAXIMUM LIGHT-THEME CONTRAST (#0B1220 / #334155 / #94A3B8),
      FULL-WIDTH SEARCH PANEL, PROMINENT HEADER BADGES & .promo-slot BANNER
   ========================================================================== */

/* 1. High-Contrast Light Theme Tokens (WCAG AAA) */
:root,
html[data-theme="light"],
body[data-theme="light"] {
  --oe-text: #0B1220;
  --oe-text-muted: #334155;
  --oe-text-subtle: #334155;
  --oe-border: #94A3B8;
  --oe-border-strong: #64748B;
  --oe-surface-pill: #E8EEF5;
  --text-main: #0B1220;
  --text-muted: #334155;
  --border: #94A3B8;
}

html[data-theme="light"] body,
html[data-theme="light"] .app-header,
html[data-theme="light"] .quick-filter-bar,
html[data-theme="light"] .property-card .card-title,
html[data-theme="light"] .property-card .tz35-price-main,
html[data-theme="light"] .feed-header-bar .feed-heading,
html[data-theme="light"] .feed-header-bar h1,
html[data-theme="light"] .quick-filter-bar select,
html[data-theme="light"] .quick-filter-bar input[type="number"],
html[data-theme="light"] #feedSortSelect,
html[data-theme="light"] .tz35-row-2 .pill-btn,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger,
html[data-theme="light"] #btnToggleMoreFilters,
html[data-theme="light"] #btnQuickResetFilters,
html[data-theme="light"] .source-pills-bar .btn-source-pill,
html[data-theme="light"] #categorySegmentedControl .cat-btn {
  color: #0B1220 !important;
}

html[data-theme="light"] .tz35-field .item-label,
html[data-theme="light"] .source-pills-bar .source-pills-label,
html[data-theme="light"] .property-card .tz35-price-equiv,
html[data-theme="light"] .property-card .tz35-location-line,
html[data-theme="light"] .property-card .tz35-footer-source,
html[data-theme="light"] .property-card .tz35-link-original,
html[data-theme="light"] .property-card .prop-type-pill,
html[data-theme="light"] .property-card .spec-item,
html[data-theme="light"] .quick-filter-bar input::placeholder {
  color: #334155 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .quick-filter-bar select,
html[data-theme="light"] .quick-filter-bar input[type="number"],
html[data-theme="light"] .tz35-row-2 .pill-btn,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger,
html[data-theme="light"] #btnToggleMoreFilters,
html[data-theme="light"] #btnQuickResetFilters,
html[data-theme="light"] .source-pills-bar .btn-source-pill,
html[data-theme="light"] #feedSortSelect,
html[data-theme="light"] #btnThemeToggle,
html[data-theme="light"] #btnHeaderFavorites,
html[data-theme="light"] #langSwitcher,
html[data-theme="light"] #categorySegmentedControl {
  border-color: #94A3B8 !important;
}

html[data-theme="light"] .quick-filter-bar select,
html[data-theme="light"] .quick-filter-bar input[type="number"] {
  background-color: #FFFFFF !important;
  font-weight: 600 !important;
}

/* Keep active buttons crisp white text on accent */
html[data-theme="light"] #categorySegmentedControl .cat-btn.active,
html[data-theme="light"] .tz35-row-2 .pill-btn.active,
html[data-theme="light"] .source-pills-bar .btn-source-pill.active,
html[data-theme="light"] #langSwitcher .lang-btn.active {
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

html[data-theme="light"] .source-pills-bar .btn-source-pill .pill-cnt {
  background: #0F172A !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] .source-pills-bar .btn-source-pill.active .pill-cnt {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

/* 2. Full-Width Search Panel (Zero Empty Side Margins) */
.tz35-search-shell {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.app-header,
.quick-filter-bar,
#sourcePillsBar,
.source-pills-bar,
.feed-header-bar,
.property-feed,
#propertyFeed {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 3. Prominent High-Contrast Header Badges: Шаблоны договоров & Практические советы */
html body .app-header .header-content-nav {
  gap: 8px !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-legal {
  background: #EEF2FF !important;
  color: #3730A3 !important;
  border: 1px solid #818CF8 !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(55, 48, 163, 0.08) !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-legal:hover {
  background: #E0E7FF !important;
  border-color: #4F46E5 !important;
  color: #1E1B4B !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-blog {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #34D399 !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(6, 95, 70, 0.08) !important;
}

html body .app-header .header-content-nav .header-nav-link.nav-blog:hover {
  background: #D1FAE5 !important;
  border-color: #059669 !important;
  color: #064E3B !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-legal {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #C7D2FE !important;
  border: 1px solid rgba(129, 140, 248, 0.55) !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-legal:hover {
  background: rgba(99, 102, 241, 0.30) !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-blog {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #A7F3D0 !important;
  border: 1px solid rgba(52, 211, 153, 0.55) !important;
}

html[data-theme="dark"] body .app-header .header-content-nav .header-nav-link.nav-blog:hover {
  background: rgba(16, 185, 129, 0.30) !important;
  color: #FFFFFF !important;
}

/* 4. Compact 2-Column Showcase / Partner Slot (.promo-slot) */
.promo-slot {
  position: relative;
  padding: 8px 20px 2px;
  background: var(--oe-bg);
}

.promo-slot.is-hidden {
  display: none !important;
}

.promo-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding-right: 28px;
  box-sizing: border-box;
}

.promo-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  box-shadow: var(--oe-shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.promo-slot-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--oe-shadow-md);
}

.promo-slot-card.promo-legal {
  border-left: 4px solid #4F46E5;
}

.promo-slot-card.promo-legal:hover {
  border-color: #4F46E5;
}

.promo-slot-card.promo-guides {
  border-left: 4px solid #059669;
}

.promo-slot-card.promo-guides:hover {
  border-color: #059669;
}

.promo-slot-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.promo-slot-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.promo-legal .promo-slot-icon {
  background: #EEF2FF;
  color: #4338CA;
}

.promo-guides .promo-slot-icon {
  background: #ECFDF5;
  color: #047857;
}

html[data-theme="dark"] .promo-legal .promo-slot-icon {
  background: rgba(99, 102, 241, 0.22);
  color: #A5B4FC;
}

html[data-theme="dark"] .promo-guides .promo-slot-icon {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
}

.promo-slot-copy {
  min-width: 0;
}

.promo-slot-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--oe-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-slot-desc {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--oe-text-muted);
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-slot-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-legal .promo-slot-cta {
  background: #4F46E5;
  color: #FFFFFF;
}

.promo-guides .promo-slot-cta {
  background: #059669;
  color: #FFFFFF;
}

.promo-slot-close {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--oe-border);
  background: var(--oe-surface);
  color: var(--oe-text-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-slot-close:hover {
  color: #EF4444;
  border-color: #EF4444;
}

/* Light-theme contrast fix for SSG intro banner on /ar/alquiler/* and /es/alquiler/* */
html[data-theme="light"] .sidebar div[style*="rgba(16, 185, 129"],
html[data-theme="light"] .sidebar div[style*="rgba(56, 189, 248"],
html[data-theme="light"] .ssg-intro-banner {
  background: #ECFDF5 !important;
  border-color: #34D399 !important;
  color: #0B1220 !important;
}

html[data-theme="light"] .sidebar div[style*="rgba(16, 185, 129"] *,
html[data-theme="light"] .sidebar div[style*="rgba(56, 189, 248"] *,
html[data-theme="light"] .ssg-intro-banner * {
  color: #0B1220 !important;
}

html[data-theme="light"] .sidebar div[style*="rgba(16, 185, 129"] strong {
  color: #065F46 !important;
}

/* ==========================================================================
   9. TZ43 — DIRECT OWNER (0%) QUICK PILL, EMERALD BANNER & PHOTO BADGE
   ========================================================================== */
.tz43-direct-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #0B1220 !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.tz43-direct-pill:hover {
  background: #F1F5F9 !important;
  border-color: #64748B !important;
}

.tz43-direct-pill.active,
html[data-theme="light"] .tz43-direct-pill.active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

html[data-theme="dark"] .tz43-direct-pill {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .tz43-direct-pill:hover {
  background: #1E293B !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html[data-theme="dark"] .tz43-direct-pill.active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

/* TZ47: Emerald active state for selected neighborhood pill */
.tz35-row-2 .multiselect-trigger.active,
.tz35-row-2 .multiselect-trigger.tz47-barrio-active,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger.active,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger.tz47-barrio-active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

html[data-theme="dark"] .tz35-row-2 .multiselect-trigger.active,
html[data-theme="dark"] .tz35-row-2 .multiselect-trigger.tz47-barrio-active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

.tz35-row-2 .multiselect-trigger.active *,
.tz35-row-2 .multiselect-trigger.tz47-barrio-active * {
  color: #FFFFFF !important;
}

/* Emerald Direct-Owner Info Banner under H1 */
.tz43-direct-banner {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 20px 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-left: 4px solid #059669;
  color: #064E3B;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.tz43-direct-banner.is-visible {
  display: flex !important;
}

html[data-theme="dark"] .tz43-direct-banner {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.5);
  border-left-color: #10B981;
  color: #D1FAE5;
}

/* Vivid Emerald Badge on Card Photo for Direct Owner listings */
.tz43-owner-photo-badge {
  position: absolute;
  bottom: 34px;
  left: 8px;
  right: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .promo-slot {
    padding: 8px 12px 2px;
  }
  .promo-slot-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 0;
  }
  .promo-slot-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
    min-height: auto;
  }
  .promo-slot-left {
    width: 100%;
    padding-right: 22px;
    box-sizing: border-box;
  }
  .promo-slot-title,
  .promo-slot-desc {
    white-space: normal;
  }
  .promo-slot-cta {
    align-self: flex-start;
  }
  .promo-slot-close {
    top: 12px;
    right: 16px;
  }
}


/* ==========================================================================
   TZ49 — HIGH-CONTRAST LIGHT THEME FOR PROPERTY DETAIL MODAL (#propertyModal)
   ========================================================================== */
:root:not([data-theme="dark"]) #propertyModal .modal-card,
html[data-theme="light"] #propertyModal .modal-card {
  background: #FFFFFF !important;
  color: #0B1220 !important;
  border: 1px solid #CBD5E1 !important;
}

:root:not([data-theme="dark"]) #propertyModal .modal-title,
html[data-theme="light"] #propertyModal .modal-title,
:root:not([data-theme="dark"]) #propertyModal .modal-price,
html[data-theme="light"] #propertyModal .modal-price,
:root:not([data-theme="dark"]) #propertyModal .box-title,
html[data-theme="light"] #propertyModal .box-title,
:root:not([data-theme="dark"]) #propertyModal .sources-title,
html[data-theme="light"] #propertyModal .sources-title {
  color: #0B1220 !important;
}

:root:not([data-theme="dark"]) #propertyModal .modal-desc-box,
html[data-theme="light"] #propertyModal .modal-desc-box,
:root:not([data-theme="dark"]) #propertyModal .modal-sources-section,
html[data-theme="light"] #propertyModal .modal-sources-section {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}

:root:not([data-theme="dark"]) #propertyModal .desc-text,
html[data-theme="light"] #propertyModal .desc-text,
:root:not([data-theme="dark"]) #propertyModal #modalDesc,
html[data-theme="light"] #propertyModal #modalDesc,
:root:not([data-theme="dark"]) #propertyModal .sources-sub,
html[data-theme="light"] #propertyModal .sources-sub {
  color: #1E293B !important;
}

:root:not([data-theme="dark"]) #propertyModal .modal-specs-grid > *,
html[data-theme="light"] #propertyModal .modal-specs-grid > *,
:root:not([data-theme="dark"]) #propertyModal .source-item-card,
html[data-theme="light"] #propertyModal .source-item-card,
:root:not([data-theme="dark"]) #propertyModal .source-row,
html[data-theme="light"] #propertyModal .source-row,
:root:not([data-theme="dark"]) #propertyModal .sources-list *,
html[data-theme="light"] #propertyModal .sources-list * {
  color: #0B1220 !important;
}

:root:not([data-theme="dark"]) #propertyModal .sources-list a.btn-source-go,
html[data-theme="light"] #propertyModal .sources-list a.btn-source-go,
:root:not([data-theme="dark"]) #propertyModal .sources-list .btn-primary,
html[data-theme="light"] #propertyModal .sources-list .btn-primary {
  color: #FFFFFF !important;
}


/* ==========================================================================
   TZ51 — NO-PHOTO PLACEHOLDER PADDING + COMPACT FOOTER SOURCE BADGE
   ========================================================================== */
.card-image-wrap.is-photo-placeholder .oe-photo-placeholder {
  justify-content: flex-start !important;
  padding-top: 40px !important;
  padding-bottom: 62px !important;
  box-sizing: border-box !important;
}

.tz35-footer-source.tz51-source-badge {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex-shrink: 0 !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  padding: 2px 7px !important;
  max-width: none !important;
}

html[data-theme="dark"] .tz35-footer-source.tz51-source-badge {
  color: #E2E8F0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}


/* ==========================================================================
   TZ53 — BRIGHT BLUE-CYAN ACCENT FOR "ПОКАЗАТЬ НА КАРТЕ" (#btnToggleMap)
   ========================================================================== */
#btnToggleMap,
#toggleMapBtn,
.tz35-row-2 #btnToggleMap,
.tz35-row-2 .btn-toggle-map,
html[data-theme="dark"] #btnToggleMap,
html[data-theme="light"] #btnToggleMap {
  background: linear-gradient(135deg, #2563EB, #0EA5E9) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.32) !important;
  font-weight: 600 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

#btnToggleMap *,
#toggleMapBtn *,
.tz35-row-2 .btn-toggle-map * {
  color: #FFFFFF !important;
}

#btnToggleMap:hover,
#toggleMapBtn:hover,
.tz35-row-2 #btnToggleMap:hover,
.tz35-row-2 .btn-toggle-map:hover {
  background: linear-gradient(135deg, #1D4ED8, #0284C7) !important;
  border-color: rgba(125, 211, 252, 0.85) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.48) !important;
  transform: translateY(-1px) !important;
}

#btnToggleMap.active,
#toggleMapBtn.active,
.tz35-row-2 .btn-toggle-map.active {
  background: linear-gradient(135deg, #1D4ED8, #0369A1) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5), 0 4px 16px rgba(14, 165, 233, 0.45) !important;
}


/* ==========================================================================
   TZ54 — [USD | ARS] TOGGLE, RATE NOTE, DELICATE BORDERS FOR SORT & FAVORITES
   ========================================================================== */
.tz54-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
}

.tz54-curr-toggle {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(148, 163, 184, 0.14) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 6px !important;
  padding: 1px !important;
  gap: 1px !important;
}

.tz54-curr-btn {
  border: none !important;
  background: transparent !important;
  color: #94A3B8 !important;
  font-size: 0.63rem !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  line-height: 1.35 !important;
  transition: all 0.14s ease !important;
}

html[data-theme="light"] .tz54-curr-btn {
  color: #475569 !important;
}

.tz54-curr-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

.tz54-rate-note {
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
  white-space: nowrap !important;
  letter-spacing: 0.01em !important;
}

html[data-theme="light"] .tz54-rate-note {
  color: #475569 !important;
}

.tz54-orig-curr-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 4px;
  vertical-align: middle;
  background: rgba(148, 163, 184, 0.18);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

html[data-theme="light"] .tz54-orig-curr-tag {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1;
}

/* Delicate outline for #feedSortSelect (no colored fill) */
#feedSortSelect,
.feed-header-bar #feedSortSelect,
html[data-theme="dark"] #feedSortSelect {
  background-color: rgba(15, 23, 42, 0.55) !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  color: #F1F5F9 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
}

#feedSortSelect:hover,
html[data-theme="dark"] #feedSortSelect:hover {
  border-color: rgba(203, 213, 225, 0.65) !important;
}

html[data-theme="light"] #feedSortSelect {
  background-color: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #0B1220 !important;
}

html[data-theme="light"] #feedSortSelect:hover {
  border-color: #475569 !important;
}

/* Delicate outline for Header Favorites button when count == 0; warm ruby accent only when count > 0 */
#btnHeaderFavorites:not(.has-favs),
html[data-theme="dark"] #btnHeaderFavorites:not(.has-favs) {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #E2E8F0 !important;
  box-shadow: none !important;
}

#btnHeaderFavorites:not(.has-favs):hover,
html[data-theme="dark"] #btnHeaderFavorites:not(.has-favs):hover {
  border-color: rgba(203, 213, 225, 0.6) !important;
  background: rgba(148, 163, 184, 0.08) !important;
}

html[data-theme="light"] #btnHeaderFavorites:not(.has-favs) {
  background: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #0B1220 !important;
}

#btnHeaderFavorites.has-favs {
  background: rgba(225, 29, 72, 0.16) !important;
  border: 1px solid rgba(244, 63, 94, 0.65) !important;
  color: #FFF1F2 !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.22) !important;
}

html[data-theme="light"] #btnHeaderFavorites.has-favs {
  background: #FFF1F2 !important;
  border: 1px solid #F43F5E !important;
  color: #9F1239 !important;
}


/* ==========================================================================
   TZ55 — HIGH CONTRAST LABELS/PLACEHOLDERS/RATE + PIXEL-ALIGNED PRICE ROW
   ========================================================================== */
.tz35-field > .item-label,
.tz35-field > .tz54-label-row {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.tz35-field > .tz54-label-row > .item-label {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* Dark theme high contrast */
html[data-theme="dark"] .tz35-field .item-label,
.theme-dark .tz35-field .item-label {
  color: #CBD5E1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

html[data-theme="dark"] #quickFilterCountry,
html[data-theme="dark"] #quickFilterZone,
html[data-theme="dark"] #quickFilterPropertyType,
html[data-theme="dark"] #quickMinPrice,
html[data-theme="dark"] #quickMaxPrice,
.theme-dark #quickMinPrice,
.theme-dark #quickMaxPrice {
  color: #F8FAFC !important;
  border: 1px solid rgba(148, 163, 184, 0.38) !important;
}

html[data-theme="dark"] #quickFilterCountry:focus,
html[data-theme="dark"] #quickFilterZone:focus,
html[data-theme="dark"] #quickFilterPropertyType:focus,
html[data-theme="dark"] #quickMinPrice:focus,
html[data-theme="dark"] #quickMaxPrice:focus {
  border-color: #38BDF8 !important;
  outline: none !important;
}

html[data-theme="dark"] #quickMinPrice::placeholder,
html[data-theme="dark"] #quickMaxPrice::placeholder,
.theme-dark #quickMinPrice::placeholder,
.theme-dark #quickMaxPrice::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .tz54-curr-toggle,
.theme-dark .tz54-curr-toggle {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  height: 22px !important;
  box-sizing: border-box !important;
}

html[data-theme="dark"] .tz54-curr-btn,
.theme-dark .tz54-curr-btn {
  color: #CBD5E1 !important;
  padding: 0 6px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
}

html[data-theme="dark"] .tz54-curr-btn.active,
.theme-dark .tz54-curr-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .tz54-rate-note,
.theme-dark .tz54-rate-note {
  color: #93C5FD !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

/* Light theme high contrast */
html[data-theme="light"] .tz35-field .item-label {
  color: #1E293B !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

html[data-theme="light"] .tz54-curr-toggle {
  background: #E2E8F0 !important;
  border: 1px solid #94A3B8 !important;
  height: 22px !important;
  box-sizing: border-box !important;
}

html[data-theme="light"] .tz54-curr-btn {
  color: #334155 !important;
  padding: 0 6px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
}

html[data-theme="light"] .tz54-curr-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] .tz54-rate-note {
  color: #1E40AF !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}


/* ==========================================================================
   TZ56 — MAX CONTRAST FILTER BAR (DARK & LIGHT) + CYAN SORT BORDER
   ========================================================================== */
.tz54-rate-note {
  white-space: nowrap !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

/* Dark theme */
html[data-theme="dark"] .tz35-field .item-label,
.theme-dark .tz35-field .item-label {
  color: #F1F5F9 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

html[data-theme="dark"] #quickFilterCountry,
html[data-theme="dark"] #quickFilterZone,
html[data-theme="dark"] #quickFilterPropertyType,
html[data-theme="dark"] #quickMinPrice,
html[data-theme="dark"] #quickMaxPrice,
.theme-dark #quickFilterCountry,
.theme-dark #quickFilterZone,
.theme-dark #quickFilterPropertyType,
.theme-dark #quickMinPrice,
.theme-dark #quickMaxPrice {
  border: 1.5px solid rgba(148, 163, 184, 0.52) !important;
  background: #0F172A !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] #quickMinPrice::placeholder,
html[data-theme="dark"] #quickMaxPrice::placeholder,
.theme-dark #quickMinPrice::placeholder,
.theme-dark #quickMaxPrice::placeholder {
  color: #CBD5E1 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

html[data-theme="dark"] .tz54-rate-note,
.theme-dark .tz54-rate-note {
  color: #7DD3FC !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] #feedSortSelect,
.theme-dark #feedSortSelect {
  border: 1.5px solid #38BDF8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.16) !important;
  color: #F8FAFC !important;
  font-weight: 600 !important;
}

/* Light theme */
html[data-theme="light"] .tz35-field .item-label,
.theme-light .tz35-field .item-label {
  color: #0F172A !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html[data-theme="light"] #quickFilterCountry,
html[data-theme="light"] #quickFilterZone,
html[data-theme="light"] #quickFilterPropertyType,
html[data-theme="light"] #quickMinPrice,
html[data-theme="light"] #quickMaxPrice,
html[data-theme="light"] .tz35-row-2 .pill-btn,
html[data-theme="light"] .tz35-row-2 .multiselect-trigger,
html[data-theme="light"] .tz43-direct-pill:not(.active) {
  border: 1.5px solid #94A3B8 !important;
}

html[data-theme="light"] #quickMinPrice::placeholder,
html[data-theme="light"] #quickMaxPrice::placeholder,
.theme-light #quickMinPrice::placeholder,
.theme-light #quickMaxPrice::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .tz54-rate-note,
.theme-light .tz54-rate-note {
  color: #1D4ED8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html[data-theme="light"] #feedSortSelect,
.theme-light #feedSortSelect {
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12) !important;
  color: #0F172A !important;
  font-weight: 600 !important;
}


/* ==========================================================================
   TZ61 — PRICE DROP QUICK PILL & CARD SAVINGS BADGE
   ========================================================================== */
.tz61-drop-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  color: #0B1220 !important;
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

html[data-theme="dark"] .tz61-drop-pill {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #E2E8F0 !important;
}

.tz61-drop-pill.active,
html[data-theme="dark"] .tz61-drop-pill.active,
html[data-theme="light"] .tz61-drop-pill.active {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.38) !important;
}

.tz61-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  width: fit-content;
}

html[data-theme="light"] .tz61-drop-badge {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}


/* TZ72.1 Final Header Fit Override (Zero overlap at 1280px–1440px) */
html body .app-header {
  padding: 0 12px !important;
  gap: 8px !important;
}
html body .app-header .header-left {
  gap: 8px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
}
html body .app-header .header-right {
  gap: 6px !important;
  flex-shrink: 0 !important;
}
html body .app-header .logo-container {
  gap: 6px !important;
}
html body .app-header .logo-title {
  font-size: 0.98rem !important;
}
html body #categorySegmentedControl .cat-btn {
  padding: 0 8px !important;
  font-size: 0.75rem !important;
}
html body .app-header .header-nav-link,
html body .app-header a.header-nav-link {
  padding: 5px 7px !important;
  font-size: 0.74rem !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
html body .app-header #btnHeaderFavorites {
  padding: 5px 8px !important;
  font-size: 0.74rem !important;
  gap: 4px !important;
}
html body .app-header #langSwitcher .lang-btn {
  padding: 4px 6px !important;
  font-size: 0.72rem !important;
}
html body .app-header .live-pulse-container {
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
  gap: 4px !important;
}


/* ==========================================================================
   TZ72.2: Компактная 3-рядная панель фильтров (эталон 18.11) + шрифты >= 14px
   ========================================================================== */
html body .quick-filter-bar {
  padding: 10px 16px !important;
}
html body .tz35-search-shell.tz722-compact-shell {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
  max-width: 100% !important;
}
.tz722-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
}
.tz722-field {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
}
.tz722-field > .item-label,
.tz722-compact-shell .item-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.tz722-country select { width: 155px !important; min-width: 140px !important; max-width: 170px !important; }
.tz722-city select { width: 235px !important; min-width: 200px !important; max-width: 260px !important; }
.tz722-currency select { width: 195px !important; min-width: 170px !important; max-width: 215px !important; }
.tz722-seller select { width: 245px !important; min-width: 210px !important; max-width: 270px !important; }
.tz722-compact-shell select.custom-select {
  height: 36px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 10px !important;
}
.tz722-compact-shell #barrioDropdownWrapper {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  width: auto !important;
}
.tz722-compact-shell #barrioDropdownTrigger {
  height: 36px !important;
  min-width: 175px !important;
  max-width: 220px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 12px !important;
}

/* Встроенные кнопки ТИП (Ряд 1) */
.tz722-type-pills {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.tz722-type-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  background: rgba(30, 41, 59, 0.92) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.tz722-type-pill.active {
  background: #0369a1 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}
html[data-theme="light"] .tz722-type-pill,
body.theme-light .tz722-type-pill {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}
html[data-theme="light"] .tz722-type-pill.active,
body.theme-light .tz722-type-pill.active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

/* Компактная группа ЦЕНА (От — До) */
.tz722-price-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.tz722-price-group .tz54-label-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}
.tz722-price-inputs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.tz722-price-inputs input.price-input {
  width: 92px !important;
  min-width: 82px !important;
  max-width: 105px !important;
  height: 36px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 9px !important;
}
.tz722-price-dash {
  color: #94a3b8 !important;
  font-weight: 700 !important;
}

/* Ряд 3: Комнаты + действия + бейдж Найдено */
.tz722-row-3 {
  justify-content: space-between !important;
}
.tz722-row-3 .rooms-pill-group {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.tz722-row-3 .rooms-pill-group .item-label {
  display: inline-block !important;
}
.tz722-actions-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.tz722-found-badge,
html body #quickResultsCount {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: rgba(6, 78, 59, 0.85) !important;
  color: #ecfdf5 !important;
  border: 1.5px solid #10b981 !important;
  white-space: nowrap !important;
}
html[data-theme="light"] .tz722-found-badge,
body.theme-light .tz722-found-badge,
html[data-theme="light"] #quickResultsCount,
body.theme-light #quickResultsCount {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1.5px solid #0d9488 !important;
}

/* Укрупнение шрифта ВСЕХ пилюль и чипов >= 14px (font-weight: 600, padding: 7px 14px) */
html body .rooms-pill-group .pill-btn,
html body #sourcePillsBar .btn-source-pill,
html body #topBarriosScrollWrap .btn-barrio-pill,
html body #tz72NicheLinksBar .tz72-niche-pill {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  line-height: 1.25 !important;
}
html body #btnToggleMap,
html body #btnToggleMoreFilters,
html body #btnQuickResetFilters {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  height: auto !important;
}
html body #sourcePillsBar .pill-cnt,
html body #topBarriosScrollWrap .barrio-cnt {
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Чёткие 4 колонки карточек на десктопе (>= 1280px) */
@media (min-width: 1280px) {
  html body .property-feed {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}


/* ==========================================================================
   TZ72.3: Крупная шапка (логотип + Жилая/Коммерческая/Гаражи 15-16px)
           и перенос блока USD/ARS + Blue: ~1700 ARS вправо (14px)
   ========================================================================== */
html body .app-header .logo-title {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
html body #categorySegmentedControl {
  padding: 4px !important;
  gap: 5px !important;
}
html body #categorySegmentedControl .cat-btn {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 0 11px !important;
  height: 36px !important;
  min-height: 36px !important;
}
@media (max-width: 1560px) {
  html body .app-header #btnHeaderFavorites .fav-label {
    display: none !important;
  }
}
html body #categorySegmentedControl .cat-btn.active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35) !important;
}
html[data-theme="light"] #categorySegmentedControl .cat-btn,
body.theme-light #categorySegmentedControl .cat-btn {
  color: #0f172a !important;
}
html[data-theme="light"] #categorySegmentedControl .cat-btn.active,
body.theme-light #categorySegmentedControl .cat-btn.active {
  background: #0f766e !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3) !important;
}

/* Правый кластер USD/ARS + Blue: ~1700 ARS рядом с «Найдено: X объектов» */
.tz723-rate-cluster {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  margin-left: auto !important;
}
.tz723-rate-cluster .tz54-curr-btn {
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
}
.tz723-rate-cluster #tz54BlueRateNote {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #7dd3fc !important;
  white-space: nowrap !important;
}
html[data-theme="light"] .tz723-rate-cluster,
body.theme-light .tz723-rate-cluster {
  background: #f0f9ff !important;
  border: 1.5px solid #0284c7 !important;
}
html[data-theme="light"] .tz723-rate-cluster #tz54BlueRateNote,
body.theme-light .tz723-rate-cluster #tz54BlueRateNote {
  color: #0369a1 !important;
}


/* ==========================================================================
   TZ72.4: Точная 3-рядная раскладка 16.11 — Район в 1-й ряд,
           USD/ARS+Blue справа во 2-м ряду строго над «Найдено» в 3-м ряду
   ========================================================================== */
.tz722-row-1,
.tz722-row-2,
.tz722-row-3 {
  display: flex !important;
  align-items: center !important;
  gap: 8px 10px !important;
  width: 100% !important;
}
.tz722-row-1 {
  flex-wrap: wrap !important;
}
.tz722-row-1 .tz722-country select { width: 138px !important; min-width: 125px !important; }
.tz722-row-1 .tz722-city select { width: 215px !important; min-width: 185px !important; }
.tz722-row-1 #barrioDropdownWrapper {
  margin-left: auto !important;
}
.tz722-row-1 #barrioDropdownTrigger {
  min-width: 195px !important;
  max-width: 245px !important;
}

.tz722-row-2 {
  flex-wrap: wrap !important;
}
.tz722-row-2 .tz722-currency select { width: 185px !important; min-width: 165px !important; }
.tz722-row-2 .tz722-seller select { width: 245px !important; min-width: 205px !important; }
.tz722-row-2 .tz723-rate-cluster {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.tz722-row-3 {
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}
.tz722-row-3 .tz722-actions-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
}
.tz722-row-3 #quickResultsCount {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
@media (min-width: 1360px) {
  .tz722-row-1,
  .tz722-row-2,
  .tz722-row-3 {
    flex-wrap: nowrap !important;
  }
  .tz722-row-3 .rooms-pill-group .pill-btn {
    padding: 6px 11px !important;
  }
  .tz722-row-3 #btnToggleMap,
  .tz722-row-3 #btnToggleMoreFilters,
  .tz722-row-3 #btnQuickResetFilters {
    padding: 6px 11px !important;
    white-space: nowrap !important;
  }
}


/* ==========================================================================
   TZ72.5: Чистка дублей над карточками (эталон 16.11) + компактные отступы
   ========================================================================== */
html body #btnToggleMapFeed,
html body #tz43DirectBanner,
html body .tz43-direct-banner,
html body #activeFiltersNotice,
html body .active-filters-notice,
html body #tz72NicheLinksBar {
  display: none !important;
}

html body .quick-filter-bar {
  padding: 8px 16px !important;
}
html body .tz35-search-shell.tz722-compact-shell {
  gap: 6px !important;
}
html body #sourcePillsBar {
  padding: 5px 16px !important;
}
html body .feed-header-bar {
  padding: 10px 20px 6px !important;
}
html body #topBarriosScrollWrap {
  margin: 0 20px 8px !important;
  padding: 5px 10px !important;
}
html body #propertyFeed {
  padding-top: 4px !important;
}


/* ==========================================================================
   TZ72.6: USD|ARS слева у Валюты + Цена (От—До) с подсветкой справа у Blue
   ========================================================================== */
.tz722-row-2 .tz722-currency .tz54-curr-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 8px !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}
html[data-theme="light"] .tz722-row-2 .tz722-currency .tz54-curr-toggle,
body.theme-light .tz722-row-2 .tz722-currency .tz54-curr-toggle {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
}
.tz726-price-right-cluster {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
.tz726-price-right-cluster .tz723-rate-cluster {
  margin-left: 0 !important;
}
html body #tz726PriceRightCluster #quickMinPrice,
html body #tz726PriceRightCluster #quickMaxPrice {
  background: rgba(14, 116, 144, 0.22) !important;
  border: 1.5px solid #38bdf8 !important;
  color: #f8fafc !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22) !important;
  font-weight: 700 !important;
}
html body #tz726PriceRightCluster #quickMinPrice:focus,
html body #tz726PriceRightCluster #quickMaxPrice:focus {
  border-color: #7dd3fc !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.30) !important;
}
html[data-theme="light"] body #tz726PriceRightCluster #quickMinPrice,
html[data-theme="light"] body #tz726PriceRightCluster #quickMaxPrice,
body.theme-light #tz726PriceRightCluster #quickMinPrice,
body.theme-light #tz726PriceRightCluster #quickMaxPrice {
  background: #f0fdfa !important;
  border: 1.5px solid #0d9488 !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.18) !important;
}
html[data-theme="light"] body #tz726PriceRightCluster #quickMinPrice:focus,
html[data-theme="light"] body #tz726PriceRightCluster #quickMaxPrice:focus,
body.theme-light #tz726PriceRightCluster #quickMinPrice:focus,
body.theme-light #tz726PriceRightCluster #quickMaxPrice:focus {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.26) !important;
}


/* ==========================================================================
   TZ72.7: USD|ARS в правом блоке цены + широкие поля От — До под суммы ARS
   ========================================================================== */
html body #tz726PriceRightCluster .tz54-curr-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 8px !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  background: rgba(15, 23, 42, 0.85) !important;
}
html[data-theme="light"] body #tz726PriceRightCluster .tz54-curr-toggle,
body.theme-light #tz726PriceRightCluster .tz54-curr-toggle {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
}
html body #tz726PriceRightCluster #quickMinPrice,
html body #tz726PriceRightCluster #quickMaxPrice {
  min-width: 115px !important;
  width: 118px !important;
  max-width: 126px !important;
  padding: 0 10px !important;
}


/* ==========================================================================
   TZ72.8: Архитектурная обложка для карточек без фото + чистый футер 14px
   ========================================================================== */
.tz728-cover-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 180px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 18px 14px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f766e 100%) !important;
  color: #f8fafc !important;
}
.tz728-cover-card.cover-house {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0284c7 100%) !important;
}
.tz728-cover-card.cover-ph {
  background: linear-gradient(135deg, #064e3b 0%, #0f766e 55%, #0284c7 100%) !important;
}
.tz728-cover-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 20px;
  color: #ffffff;
}
.tz728-cover-type {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.tz728-cover-barrio {
  font-size: 13px;
  font-weight: 600;
  color: #e0f2fe;
}
.tz728-cover-badge {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
}
html[data-theme="light"] .tz728-cover-card,
body.theme-light .tz728-cover-card {
  background: linear-gradient(135deg, #e6f4f1 0%, #ccfbf1 55%, #e0f2fe 100%) !important;
  color: #0f172a !important;
  border-bottom: 1px solid #99f6e4 !important;
}
html[data-theme="light"] .tz728-cover-icon,
body.theme-light .tz728-cover-icon {
  background: #ffffff !important;
  border: 1.5px solid #0d9488 !important;
  color: #0f766e !important;
}
html[data-theme="light"] .tz728-cover-type,
body.theme-light .tz728-cover-type {
  color: #064e3b !important;
}
html[data-theme="light"] .tz728-cover-barrio,
body.theme-light .tz728-cover-barrio {
  color: #0f172a !important;
}
html[data-theme="light"] .tz728-cover-badge,
body.theme-light .tz728-cover-badge {
  background: #ffffff !important;
  border: 1px solid #0d9488 !important;
  color: #065f46 !important;
}

/* Удаление пустой серой полосы вверху футера (#seoBarrioOverview без дочерних элементов) + шрифт ссылок футера 14px */
#seoBarrioOverview:empty,
#seoBarrioOverview:not(:has(*)) {
  display: none !important;
}
html body .catalog-seo-footer {
  font-size: 14px !important;
  line-height: 1.75 !important;
}
html body #seoFooterTitle,
html body #seoFooterCitiesTitle,
html body #seoFooterLandingsTitle,
html body #seoFooterCategoriesTitle {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #e2e8f0 !important;
  margin-bottom: 8px !important;
}
html body #seoFooterNav a,
html body #seoFooterCitiesNav a,
html body #seoFooterLandingsNav a,
html body #seoFooterCategoriesNav a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #93c5fd !important;
}
html body #seoFooterNav a:hover,
html body #seoFooterCitiesNav a:hover,
html body #seoFooterLandingsNav a:hover,
html body #seoFooterCategoriesNav a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}
html[data-theme="light"] body #seoFooterTitle,
html[data-theme="light"] body #seoFooterCitiesTitle,
html[data-theme="light"] body #seoFooterLandingsTitle,
html[data-theme="light"] body #seoFooterCategoriesTitle,
body.theme-light #seoFooterTitle,
body.theme-light #seoFooterCitiesTitle,
body.theme-light #seoFooterLandingsTitle,
body.theme-light #seoFooterCategoriesTitle {
  color: #0f172a !important;
}
html[data-theme="light"] body #seoFooterNav a,
html[data-theme="light"] body #seoFooterCitiesNav a,
html[data-theme="light"] body #seoFooterLandingsNav a,
html[data-theme="light"] body #seoFooterCategoriesNav a,
body.theme-light #seoFooterNav a,
body.theme-light #seoFooterCitiesNav a,
body.theme-light #seoFooterLandingsNav a,
body.theme-light #seoFooterCategoriesNav a {
  color: #0f766e !important;
}


/* ==========================================================================
   TZ72.9: Адаптивная вёрстка без обрезки справа на ноутбуках 1280px–1440px (1366x768)
   ========================================================================== */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
@media (max-width: 1420px) and (min-width: 1180px) {
  html body .app-header {
    padding: 0 10px !important;
    gap: 6px !important;
  }
  html body .app-header .logo-title {
    font-size: 1.08rem !important;
  }
  html body #categorySegmentedControl .cat-btn {
    font-size: 14px !important;
    padding: 0 9px !important;
  }
  html body .app-header .header-nav-link,
  html body .app-header a.header-nav-link {
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
  }
  html body .app-header .live-pulse-container {
    padding: 4px 7px !important;
    font-size: 0.70rem !important;
  }

  html body .quick-filter-bar {
    padding: 8px 10px !important;
  }
  .tz722-row-1,
  .tz722-row-2,
  .tz722-row-3 {
    gap: 6px 8px !important;
    flex-wrap: nowrap !important;
  }
  .tz722-field > .item-label,
  .tz722-compact-shell .item-label {
    font-size: 11px !important;
  }
  .tz722-row-1 .tz722-country select { width: 122px !important; min-width: 115px !important; font-size: 13px !important; }
  .tz722-row-1 .tz722-city select { width: 185px !important; min-width: 170px !important; font-size: 13px !important; }
  .tz722-row-1 .tz722-type-pill { padding: 5px 10px !important; font-size: 13px !important; }
  .tz722-row-1 #barrioDropdownTrigger { min-width: 155px !important; max-width: 185px !important; font-size: 13px !important; padding: 0 9px !important; }

  .tz722-row-2 .tz722-currency select { width: 162px !important; min-width: 150px !important; font-size: 13px !important; }
  .tz722-row-2 .tz722-seller select { width: 215px !important; min-width: 195px !important; font-size: 13px !important; }
  html body #tz726PriceRightCluster #quickMinPrice,
  html body #tz726PriceRightCluster #quickMaxPrice {
    min-width: 108px !important;
    width: 112px !important;
    font-size: 13px !important;
  }
  .tz723-rate-cluster { padding: 4px 9px !important; }
  .tz723-rate-cluster #tz54BlueRateNote { font-size: 13px !important; }

  .tz722-row-3 .rooms-pill-group .pill-btn {
    padding: 5px 9px !important;
    font-size: 13px !important;
  }
  .tz722-row-3 #btnToggleMap,
  .tz722-row-3 #btnToggleMoreFilters,
  .tz722-row-3 #btnQuickResetFilters {
    padding: 5px 9px !important;
    font-size: 13px !important;
  }
  .tz722-row-3 #quickResultsCount {
    padding: 5px 10px !important;
    font-size: 13px !important;
  }
}


/* ==========================================================================
   TZ74.3: Эстетичные архитектурные фото-заглушки вместо сине-зелёных коробок
   ========================================================================== */
.tz743-photo-fallback {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.tz743-photo-fallback .tz743-fallback-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: brightness(0.92) saturate(0.95) !important;
}
.tz743-fallback-note {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  z-index: 3 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #f8fafc !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  pointer-events: none !important;
}

/* ==========================================================================
   TZ76.1 + TZ76.2: Цепочка 1-го ряда (СТРАНА -> ГОРОД -> РАЙОН -> ТИП без разрыва),
   nowrap у кнопки района и подсвеченные контуры шапки и 1-го ряда фильтров
   ========================================================================== */
.tz722-row-1 #barrioDropdownWrapper {
  margin-left: 0 !important;
}
.tz722-row-1 .tz722-types {
  margin-left: 6px !important;
}
.tz722-row-2 .tz722-currency {
  display: none !important;
}
.tz722-row-2 #tz726PriceRightCluster {
  margin-left: auto !important;
}

/* TZ76.2: Запрет переноса текста в 2 строки на кнопке выбора района */
.tz722-row-1 #barrioDropdownTrigger,
#barrioDropdownTrigger,
#barrioDropdownBtn {
  white-space: nowrap !important;
}
#barrioDropdownTrigger #barrioTriggerText,
#barrioDropdownBtn #barrioTriggerText {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  max-width: 100% !important;
}

/* TZ76.2: Чёткие подсвеченные контуры для 1-го ряда фильтров (СТРАНА, ГОРОД, РАЙОН, неактивные ТИП) */
html:not([data-theme="light"]) .tz722-row-1 #quickFilterCountry,
html:not([data-theme="light"]) .tz722-row-1 #quickCountry,
html:not([data-theme="light"]) .tz722-row-1 #quickFilterZone,
html:not([data-theme="light"]) .tz722-row-1 #barrioDropdownTrigger,
html:not([data-theme="light"]) .tz722-row-1 #barrioDropdownBtn,
html:not([data-theme="light"]) .tz722-row-1 .tz722-type-pill:not(.active),
html:not([data-theme="light"]) .tz722-row-1 .tz722-type-btn:not(.active) {
  border: 1px solid rgba(148, 185, 235, 0.42) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}
html:not([data-theme="light"]) .tz722-row-1 #quickFilterCountry:hover,
html:not([data-theme="light"]) .tz722-row-1 #quickCountry:hover,
html:not([data-theme="light"]) .tz722-row-1 #quickFilterZone:hover,
html:not([data-theme="light"]) .tz722-row-1 #barrioDropdownTrigger:hover,
html:not([data-theme="light"]) .tz722-row-1 #barrioDropdownBtn:hover,
html:not([data-theme="light"]) .tz722-row-1 .tz722-type-pill:not(.active):hover,
html:not([data-theme="light"]) .tz722-row-1 .tz722-type-btn:not(.active):hover {
  border-color: rgba(148, 185, 235, 0.78) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18) !important;
}

/* TZ76.2: Чёткие контуры в верхней шапке (Коммерческая, Гаражи, Шаблоны договоров, Практические советы) */
html:not([data-theme="light"]) #categorySegmentedControl .cat-btn:not(.active) {
  border: 1px solid rgba(148, 185, 235, 0.42) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}
html:not([data-theme="light"]) #categorySegmentedControl .cat-btn:not(.active):hover {
  border-color: rgba(148, 185, 235, 0.78) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-legal,
html:not([data-theme="light"]) #navLegalLink {
  border: 1px solid rgba(129, 140, 248, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-legal:hover,
html:not([data-theme="light"]) #navLegalLink:hover {
  border-color: rgba(165, 180, 252, 0.92) !important;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.28) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-blog,
html:not([data-theme="light"]) #navBlogLink {
  border: 1px solid rgba(52, 211, 153, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-blog:hover,
html:not([data-theme="light"]) #navBlogLink:hover {
  border-color: rgba(110, 231, 183, 0.92) !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.28) !important;
}

/* Светлая тема: чёткие контрастные контуры без тёмных фонов */
html[data-theme="light"] .tz722-row-1 #quickFilterCountry,
html[data-theme="light"] .tz722-row-1 #quickFilterZone,
html[data-theme="light"] .tz722-row-1 #barrioDropdownTrigger,
html[data-theme="light"] .tz722-row-1 .tz722-type-pill:not(.active),
html[data-theme="light"] #categorySegmentedControl .cat-btn:not(.active) {
  border: 1.5px solid rgba(13, 148, 136, 0.45) !important;
}
html[data-theme="light"] #navLegalLink {
  border: 1.5px solid rgba(79, 70, 229, 0.55) !important;
}
html[data-theme="light"] #navBlogLink {
  border: 1.5px solid rgba(5, 150, 105, 0.55) !important;
}

/* ==========================================================================
   TZ77: Обмен ТИП (во 2-й ряд слева) и ПРОДАВЕЦ (в 1-й ряд после РАЙОН)
         + расширение селекта ГОРОД под полные длинные названия (Salta & Jujuy)
   ========================================================================== */
.tz722-row-1 .tz722-city select,
.tz722-row-1 #quickFilterZone {
  width: 335px !important;
  min-width: 315px !important;
  max-width: 365px !important;
}
.tz722-row-1 .tz722-seller {
  margin-left: 6px !important;
}
.tz722-row-1 .tz722-seller select,
.tz722-row-1 #quickFilterSeller {
  width: 245px !important;
  min-width: 215px !important;
}
.tz722-row-2 .tz722-types {
  margin-left: 0 !important;
}
.tz722-row-2 #tz726PriceRightCluster {
  margin-left: auto !important;
}

/* Контуры TZ76.2 для перенесённых элементов (ПРОДАВЕЦ в 1-м ряду, неактивные ТИП во 2-м ряду) */
html:not([data-theme="light"]) .tz722-row-1 #quickFilterSeller,
html:not([data-theme="light"]) .tz722-row-2 .tz722-type-pill:not(.active),
html:not([data-theme="light"]) .tz722-row-2 .tz722-type-btn:not(.active) {
  border: 1px solid rgba(148, 185, 235, 0.42) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}
html:not([data-theme="light"]) .tz722-row-1 #quickFilterSeller:hover,
html:not([data-theme="light"]) .tz722-row-2 .tz722-type-pill:not(.active):hover,
html:not([data-theme="light"]) .tz722-row-2 .tz722-type-btn:not(.active):hover {
  border-color: rgba(148, 185, 235, 0.78) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18) !important;
}
html[data-theme="light"] .tz722-row-1 #quickFilterSeller,
html[data-theme="light"] .tz722-row-2 .tz722-type-pill:not(.active) {
  border: 1.5px solid rgba(13, 148, 136, 0.45) !important;
}

@media (max-width: 1420px) and (min-width: 1180px) {
  .tz722-row-1 .tz722-city select,
  .tz722-row-1 #quickFilterZone {
    width: 315px !important;
    min-width: 300px !important;
    max-width: 340px !important;
    font-size: 13px !important;
  }
  .tz722-row-1 .tz722-seller select,
  .tz722-row-1 #quickFilterSeller {
    width: 225px !important;
    min-width: 205px !important;
    font-size: 13px !important;
  }
  .tz722-row-2 .tz722-type-pill {
    padding: 5px 10px !important;
    font-size: 13px !important;
  }
}

/* ==========================================================================
   TZ78: ПРОДАВЕЦ во 2-м ряду сразу после ТИП (1-й ряд — чистая география)
         + усиленная чёткая подсветка контуров всех кнопок и селектов
   ========================================================================== */
.tz722-row-2 .tz722-seller {
  margin-left: 6px !important;
}
.tz722-row-2 .tz722-seller select,
.tz722-row-2 #quickFilterSeller {
  width: 225px !important;
  min-width: 195px !important;
}
.tz722-row-2 #tz726PriceRightCluster {
  margin-left: auto !important;
}

@media (max-width: 1420px) and (min-width: 1180px) {
  .tz722-row-2 .tz722-type-pill {
    padding: 5px 8px !important;
    font-size: 12.5px !important;
  }
  .tz722-row-2 .tz722-seller select,
  .tz722-row-2 #quickFilterSeller {
    width: 192px !important;
    min-width: 175px !important;
    font-size: 12.5px !important;
  }
  html body #tz726PriceRightCluster #quickMinPrice,
  html body #tz726PriceRightCluster #quickMaxPrice {
    min-width: 96px !important;
    width: 100px !important;
    font-size: 12.5px !important;
  }
  .tz723-rate-cluster {
    padding: 4px 8px !important;
  }
  .tz723-rate-cluster #tz54BlueRateNote {
    font-size: 12.5px !important;
  }
}

/* Усиленный чёткий контур rgba(148, 185, 235, 0.58) для всех селектов и неактивных кнопок (тёмная тема) */
html:not([data-theme="light"]) .tz722-row-1 #quickFilterCountry,
html:not([data-theme="light"]) .tz722-row-1 #quickFilterZone,
html:not([data-theme="light"]) .tz722-row-1 #barrioDropdownTrigger,
html:not([data-theme="light"]) .tz722-row-2 #quickFilterSeller,
html:not([data-theme="light"]) .tz722-row-1 #quickFilterSeller,
html:not([data-theme="light"]) .tz722-row-2 .tz722-type-pill:not(.active),
html:not([data-theme="light"]) .tz722-type-pill:not(.active),
html:not([data-theme="light"]) .tz722-row-3 .rooms-pill-group .pill-btn:not(.active),
html:not([data-theme="light"]) #langSwitcher .lang-btn:not(.active),
html:not([data-theme="light"]) .lang-switcher .lang-btn:not(.active),
html:not([data-theme="light"]) #categorySegmentedControl .cat-btn:not(.active) {
  border: 1px solid rgba(148, 185, 235, 0.58) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}
html:not([data-theme="light"]) .tz722-row-1 #quickFilterCountry:hover,
html:not([data-theme="light"]) .tz722-row-1 #quickFilterZone:hover,
html:not([data-theme="light"]) .tz722-row-1 #barrioDropdownTrigger:hover,
html:not([data-theme="light"]) .tz722-row-2 #quickFilterSeller:hover,
html:not([data-theme="light"]) .tz722-row-1 #quickFilterSeller:hover,
html:not([data-theme="light"]) .tz722-row-2 .tz722-type-pill:not(.active):hover,
html:not([data-theme="light"]) .tz722-type-pill:not(.active):hover,
html:not([data-theme="light"]) .tz722-row-3 .rooms-pill-group .pill-btn:not(.active):hover,
html:not([data-theme="light"]) #langSwitcher .lang-btn:not(.active):hover,
html:not([data-theme="light"]) .lang-switcher .lang-btn:not(.active):hover,
html:not([data-theme="light"]) #categorySegmentedControl .cat-btn:not(.active):hover {
  border-color: rgba(148, 185, 235, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22) !important;
}

/* Яркие фирменные контуры Шаблоны договоров и Практические советы */
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-legal,
html:not([data-theme="light"]) #navLegalLink {
  border: 1px solid rgba(129, 140, 248, 0.78) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-legal:hover,
html:not([data-theme="light"]) #navLegalLink:hover {
  border-color: rgba(165, 180, 252, 0.96) !important;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.34) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-blog,
html:not([data-theme="light"]) #navBlogLink {
  border: 1px solid rgba(52, 211, 153, 0.78) !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2) !important;
}
html:not([data-theme="light"]) .app-header a.header-nav-link.nav-blog:hover,
html:not([data-theme="light"]) #navBlogLink:hover {
  border-color: rgba(110, 231, 183, 0.96) !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.34) !important;
}

/* Светлая тема: чёткие контрастные рамки */
html[data-theme="light"] .tz722-row-1 #quickFilterCountry,
html[data-theme="light"] .tz722-row-1 #quickFilterZone,
html[data-theme="light"] .tz722-row-1 #barrioDropdownTrigger,
html[data-theme="light"] .tz722-row-2 #quickFilterSeller,
html[data-theme="light"] .tz722-type-pill:not(.active),
html[data-theme="light"] .tz722-row-3 .rooms-pill-group .pill-btn:not(.active),
html[data-theme="light"] #langSwitcher .lang-btn:not(.active),
html[data-theme="light"] #categorySegmentedControl .cat-btn:not(.active) {
  border: 1.5px solid rgba(13, 148, 136, 0.55) !important;
}

/* ==========================================================================
   TZ79: Устранение перекрытия «Índice de precios 2026» и «RU/ES/EN» в шапке на 1366px
   ========================================================================== */
@media (max-width: 1440px) and (min-width: 1180px) {
  html body .app-header {
    padding: 0 8px !important;
    gap: 4px !important;
  }
  html body .app-header .header-left,
  html body .app-header .brand-group {
    gap: 6px !important;
  }
  html body .app-header .logo-title {
    font-size: 0.96rem !important;
  }
  html body #categorySegmentedControl {
    gap: 2px !important;
    padding: 2px !important;
  }
  html body #categorySegmentedControl .cat-btn {
    padding: 0 6px !important;
    font-size: 12.5px !important;
  }
  html body .app-header .header-content-nav {
    gap: 4px !important;
    min-width: 0 !important;
  }
  html body .app-header .header-nav-link,
  html body .app-header a.header-nav-link {
    padding: 4px 5px !important;
    font-size: 0.67rem !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }
  html body .app-header .header-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  html body .app-header #langSwitcher .lang-btn {
    padding: 0 6px !important;
    font-size: 12px !important;
  }
  html body .app-header .live-pulse-container {
    padding: 3px 6px !important;
    font-size: 0.66rem !important;
  }
}


/* ==========================================================================
   TZ12 — SLEEK 1px SKY-BLUE NEON GLOW IN DARK THEME (NO THICK 2px BORDERS)
   Matches Desde USD / Hasta USD & Consejos prácticos aesthetic across all controls
   ========================================================================== */
html[data-theme="dark"],
body[data-theme="dark"] {
  --oe-border: rgba(56, 189, 248, 0.28);
  --oe-border-strong: rgba(56, 189, 248, 0.48);
}

/* Remove heavy outer container frames / double inner frames */
html[data-theme="dark"] body .app-header #categorySegmentedControl,
html[data-theme="dark"] body .app-header .operation-segmented-control,
html[data-theme="dark"] body .app-header #langSwitcher,
html[data-theme="dark"] body .app-header .lang-switcher,
html[data-theme="dark"] body .quick-filter-bar #tz722PropTypePills,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group.main-bar-rooms,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group .pill-options,
html[data-theme="dark"] body #topBarriosScrollWrap,
html[data-theme="dark"] body .top-barrios-scroll-wrap {
  border: 1px solid rgba(56, 189, 248, 0.14) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group.main-bar-rooms,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group .pill-options {
  border: none !important;
  box-shadow: none !important;
}

/* Sleek 1px sky-blue border + soft neon glow on all interactive controls */
html[data-theme="dark"] body .app-header #categorySegmentedControl .cat-btn,
html[data-theme="dark"] body .app-header #categorySegmentedControl .cat-btn:not(.active),
html[data-theme="dark"] body .app-header #langSwitcher .lang-btn,
html[data-theme="dark"] body .app-header #langSwitcher .lang-btn:not(.active),
html[data-theme="dark"] body .app-header .theme-toggle-btn,
html[data-theme="dark"] body .app-header #btnThemeToggle,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #quickFilterCountry,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #quickFilterZone,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #barrioDropdownTrigger,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-2 #quickFilterSeller,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #quickFilterSeller,
html[data-theme="dark"] body .quick-filter-bar .multiselect-trigger,
html[data-theme="dark"] body .quick-filter-bar .custom-select,
html[data-theme="dark"] body .quick-filter-bar select,
html[data-theme="dark"] body .quick-filter-bar .tz722-type-pills .tz722-type-pill,
html[data-theme="dark"] body .quick-filter-bar .tz722-type-pills .tz722-type-pill:not(.active),
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group .pill-btn,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group .pill-btn:not(.active),
html[data-theme="dark"] body .quick-filter-bar #btnToggleMoreFilters,
html[data-theme="dark"] body .quick-filter-bar .btn-toggle-more-filters,
html[data-theme="dark"] body .quick-filter-bar #btnQuickResetFilters,
html[data-theme="dark"] body .quick-filter-bar .btn-quick-reset,
html[data-theme="dark"] body .quick-filter-bar #btnToggleMap,
html[data-theme="dark"] body .quick-filter-bar .btn-toggle-map,
html[data-theme="dark"] body .quick-filter-bar #tz54BlueRateNote,
html[data-theme="dark"] body .quick-filter-bar .tz54-rate-note,
html[data-theme="dark"] body .source-pills-bar .btn-source-pill,
html[data-theme="dark"] body .source-pills-bar .source-pills-nav-btn,
html[data-theme="dark"] body #topBarriosScrollWrap #topBarriosPills button,
html[data-theme="dark"] body #topBarriosScrollWrap #topBarriosPills a,
html[data-theme="dark"] body #topBarriosScrollWrap .top-barrios-pills .top-barrio-pill,
html[data-theme="dark"] body #topBarriosScrollWrap .top-barrios-nav-btn {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease !important;
}

/* Sleek 1px emerald accent for Индекс цен 2026 (TZ23) */
html[data-theme="dark"] body .app-header #navIndexLink,
html[data-theme="dark"] body .app-header .nav-index {
  border: 1px solid rgba(52, 211, 153, 0.52) !important;
  box-shadow: none !important;
}

/* Hover: clean crisp 1px border without neon glow */
html[data-theme="dark"] body .app-header #categorySegmentedControl .cat-btn:hover,
html[data-theme="dark"] body .app-header #langSwitcher .lang-btn:hover,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #quickFilterCountry:hover,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #quickFilterZone:hover,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-1 #barrioDropdownTrigger:hover,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-2 #quickFilterSeller:hover,
html[data-theme="dark"] body .quick-filter-bar .custom-select:hover,
html[data-theme="dark"] body .quick-filter-bar select:hover,
html[data-theme="dark"] body .quick-filter-bar .tz722-type-pills .tz722-type-pill:hover,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group .pill-btn:hover,
html[data-theme="dark"] body .quick-filter-bar #btnToggleMoreFilters:hover,
html[data-theme="dark"] body .quick-filter-bar #btnQuickResetFilters:hover,
html[data-theme="dark"] body .quick-filter-bar #btnToggleMap:hover,
html[data-theme="dark"] body .source-pills-bar .btn-source-pill:hover,
html[data-theme="dark"] body #topBarriosScrollWrap #topBarriosPills button:hover,
html[data-theme="dark"] body #topBarriosScrollWrap #topBarriosPills a:hover,
html[data-theme="dark"] body #topBarriosScrollWrap .top-barrios-pills .top-barrio-pill:hover {
  border-color: rgba(56, 189, 248, 0.78) !important;
  box-shadow: none !important;
}

/* Active state: crisp 1px #38BDF8 without neon halo */
html[data-theme="dark"] body .app-header #categorySegmentedControl .cat-btn.active,
html[data-theme="dark"] body .app-header #langSwitcher .lang-btn.active,
html[data-theme="dark"] body .quick-filter-bar .tz722-type-pills .tz722-type-pill.active,
html[data-theme="dark"] body .quick-filter-bar .tz722-row-3 .rooms-pill-group .pill-btn.active,
html[data-theme="dark"] body .source-pills-bar .btn-source-pill.active,
html[data-theme="dark"] body #topBarriosScrollWrap #topBarriosPills button.active,
html[data-theme="dark"] body #topBarriosScrollWrap .top-barrios-pills .top-barrio-pill.active {
  border-width: 1px !important;
  border-color: rgba(56, 189, 248, 0.85) !important;
  box-shadow: none !important;
}

/* === TZ23: Unified Sleek 1px Control Style (Header Nav, Found Badge, Filter Bar Pills — No Heavy Neon Glow) === */
html[data-theme="dark"] body .app-header #navLegalLink,
html[data-theme="dark"] body .app-header #navBlogLink,
html[data-theme="dark"] body .app-header #navIndexLink,
html[data-theme="light"] body .app-header #navLegalLink,
html[data-theme="light"] body .app-header #navBlogLink,
html[data-theme="light"] body .app-header #navIndexLink,
header .header-nav-link,
header .header-nav-link.nav-legal,
header .header-nav-link.nav-blog,
header .header-nav-link.nav-index,
#navLegalLink,
#navBlogLink,
#navIndexLink {
  border-width: 1px !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#navLegalLink,
.header-nav-link.nav-legal {
  background: rgba(99, 102, 241, 0.14) !important;
  border: 1px solid rgba(129, 140, 248, 0.5) !important;
  color: #e0e7ff !important;
}
#navLegalLink:hover,
.header-nav-link.nav-legal:hover {
  background: rgba(99, 102, 241, 0.24) !important;
  border-color: rgba(165, 180, 252, 0.72) !important;
}

#navBlogLink,
.header-nav-link.nav-blog {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.52) !important;
  color: #d1fae5 !important;
}
#navBlogLink:hover,
.header-nav-link.nav-blog:hover {
  background: rgba(16, 185, 129, 0.24) !important;
  border-color: rgba(110, 231, 183, 0.75) !important;
}

#navIndexLink,
.header-nav-link.nav-index {
  background: rgba(56, 189, 248, 0.13) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #e0f2fe !important;
}
#navIndexLink:hover,
.header-nav-link.nav-index:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: rgba(125, 211, 252, 0.72) !important;
}

body .lang-btn,
body .lang-btn.active,
body #btnThemeToggle,
body .btn-theme-toggle,
body .cat-btn,
body .cat-btn.active,
body .tz722-type-pill,
body .tz722-type-pill.active,
body .pill-btn,
body .pill-btn.active,
body .btn-source-pill,
body .btn-source-pill.active,
body #btnToggleMap,
body .btn-toggle-map,
body #btnToggleMoreFilters,
body .btn-toggle-more-filters,
body #btnQuickResetFilters,
body .btn-quick-reset,
body #quickResultsCount,
body .quick-results-count,
body .tz722-found-badge,
body #topBarriosPills .btn-barrio-pill:not(.deal-barrio-below-avg):not(.deal-barrio-price-drop) {
  border-width: 1px !important;
  box-shadow: none !important;
}

/* Light theme overrides for TZ23 */
html[data-theme="light"] #navLegalLink,
body.theme-light #navLegalLink,
body.light-theme #navLegalLink {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.42) !important;
  color: #3730a3 !important;
}
html[data-theme="light"] #navBlogLink,
body.theme-light #navBlogLink,
body.light-theme #navBlogLink {
  background: rgba(5, 150, 105, 0.09) !important;
  border: 1px solid rgba(5, 150, 105, 0.45) !important;
  color: #065f46 !important;
}
html[data-theme="light"] #navIndexLink,
body.theme-light #navIndexLink,
body.light-theme #navIndexLink {
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.42) !important;
  color: #075985 !important;
}
