:root {
  color-scheme: light;
  --ink: #151923;
  --muted: #687080;
  --line: #dde2ea;
  --surface: #ffffff;
  --soft: #f6f7fb;
  --soft-2: #edf0f5;
  --accent: #1d4ed8;
  --accent-2: #f97316;
  --focus: #f5b841;
  --shadow: 0 18px 45px rgba(21, 25, 35, 0.12);
  --font-ui: "Inter", "SF Pro Text", "Roboto", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter", "SF Pro Display", "Roboto", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-ui);
  font-synthesis: none;
  font-synthesis-weight: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: #f3f5f9;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.43;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  flex: 1 0 auto;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

button[data-icon]::before {
  content: attr(data-icon);
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  font-weight: 900;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 7px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mobile-menu-button,
.mobile-menu-panel,
.mobile-top-controls,
.mobile-location-picker,
.mobile-bottom-nav {
  display: none;
}

.mobile-menu-panel[hidden] {
  display: none !important;
}

.mobile-location-panel[hidden] {
  display: none !important;
}

.mobile-menu-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 880;
}

.mobile-menu-head button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 22px;
  line-height: 1;
}

.mobile-menu-layout,
.mobile-menu-deals,
.mobile-menu-grid,
.mobile-menu-actions,
.mobile-menu-quick {
  display: grid;
  gap: 8px;
}

.mobile-menu-layout {
  grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr);
  align-items: stretch;
}

.mobile-menu-deals {
  grid-template-columns: 1fr;
}

.mobile-menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-menu-actions,
.mobile-menu-quick {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-menu-quick {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-menu-deals button,
.mobile-menu-grid button,
.mobile-menu-actions button,
.mobile-menu-quick button {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.mobile-menu-deals button {
  justify-content: start;
  color: #0f3b8f;
  background: #eef4ff;
  text-align: left;
}

.mobile-menu-grid button:hover,
.mobile-menu-grid button:focus-visible,
.mobile-menu-actions button:hover,
.mobile-menu-actions button:focus-visible,
.mobile-menu-deals button:hover,
.mobile-menu-deals button:focus-visible,
.mobile-menu-quick button:hover,
.mobile-menu-quick button:focus-visible {
  border-color: rgba(29, 78, 216, 0.32);
  background: #eef4ff;
  outline: none;
}

.mobile-menu-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.mobile-menu-selects label {
  gap: 4px;
}

.mobile-menu-selects select {
  min-height: 38px;
}

.mobile-top-controls {
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.mobile-top-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 10px;
  color: #1746b7;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.mobile-top-control::before {
  content: attr(data-value);
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  color: currentColor;
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1;
}

.mobile-top-control.currency {
  font-size: 12px;
}

.mobile-top-control.language {
  font-size: 12px;
}

.mobile-top-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mobile-top-control select {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 760;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8 62%, #0f172a);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-mark path,
.brand-mark text {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-display);
  font-size: 8.2px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-pin {
  fill: rgba(255, 255, 255, 0.08);
  stroke-width: 2.2;
}

.brand-roof {
  stroke: var(--focus);
  stroke-width: 2.4;
}

.brand-word {
  color: #111827;
  font-weight: 860;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: linear-gradient(135deg, #0f766e, #2563eb 52%, #f97316);
}

.brand:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.28);
  outline-offset: 4px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  overflow: visible;
  scrollbar-width: none;
}

.main-nav button,
.nav-dropdown summary,
.account button,
.quick-filters button,
.map-toolbar button,
.ghost,
.small-action {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}

.main-nav button:hover,
.nav-dropdown summary:hover,
.quick-filters button:hover,
.map-toolbar button:hover,
.ghost:hover,
.small-action:hover {
  background: var(--soft-2);
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown[open] summary {
  background: var(--soft-2);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mega-menu {
  left: 50%;
  grid-template-columns: repeat(4, minmax(154px, 1fr));
  gap: 12px;
  width: min(820px, calc(100vw - 112px));
  padding: 14px;
  transform: translateX(-50%);
}

.main-nav .mega-dropdown:last-child .mega-menu {
  right: 0;
  left: auto;
  transform: none;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.mega-column strong {
  padding: 0 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-menu button {
  justify-content: start;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
  font-weight: 680;
}

.nav-button {
  flex: 0 0 auto;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-content: end;
  color: var(--muted);
  font-size: 13px;
}

.account select {
  width: 70px;
  min-height: 32px;
  padding-inline: 8px;
}

.account .header-currency-select {
  width: 84px;
  color: var(--ink);
  border-color: rgba(29, 78, 216, 0.22);
  background: #fff;
  font-weight: 820;
}

#account {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: end;
}

.account button:not(.header-post-button):not(.account-name) {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 0;
}

.header-post-button {
  min-height: 32px;
  width: auto;
  padding: 0 11px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 7px;
  color: #8a3a00;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.header-post-button:hover {
  color: #fff;
  background: var(--accent-2);
}

.account-name {
  max-width: 180px;
  min-height: 32px;
  width: auto;
  overflow: hidden;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--accent);
  background: #eef4ff;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-name:hover {
  color: #fff;
  background: var(--accent);
}

.account button[data-icon]::before {
  min-width: 0;
  font-size: 13px;
}

.user-login {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.user-login-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.user-login-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.user-login-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.market-hero {
  position: relative;
  min-height: 126px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.78), rgba(11, 18, 32, 0.38) 54%, rgba(11, 18, 32, 0.1)),
    url("https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.market-hero-content {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.market-hero h1 {
  margin: 0;
}

.market-hero-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-hero-cities button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.market-hero h1 {
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 760;
}

.market-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-hero-tags button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 700;
  line-height: 1;
}

.market-hero-cities button:hover,
.market-hero-cities button:focus-visible,
.market-hero-tags button:hover,
.market-hero-tags button:focus-visible {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.promo-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 14px clamp(20px, 4vw, 56px) 2px;
}

.promo-carousel-head {
  display: none;
}

.promo-carousel-head > strong {
  color: #202736;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 78, 216, 0.48) transparent;
}

.promo-track::-webkit-scrollbar {
  height: 8px;
}

.promo-track::-webkit-scrollbar-track {
  background: transparent;
}

.promo-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.44);
}

.promo-banner {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 108px;
  flex: 0 0 clamp(238px, 24vw, 330px);
  overflow: hidden;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  scroll-snap-align: start;
}

.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.02), rgba(11, 18, 32, 0.78));
}

.promo-banner span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.promo-banner strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.08;
}

.promo-banner-flat {
  background-image: url("https://images.unsplash.com/photo-1648731009796-1b37953dd8c5?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-buy-metro {
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Apartment_building_in_Tashkent_%28Uzbekistan%29.jpg/1280px-Apartment_building_in_Tashkent_%28Uzbekistan%29.jpg");
}

.promo-banner-rent-flat {
  background-image: url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-house {
  background-image: url("https://images.unsplash.com/photo-1648472886578-b363a5cd6388?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-land {
  background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-dacha {
  background-image: url("https://images.unsplash.com/photo-1622030797403-fa221ce5d208?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-new {
  background-image: url("https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-commercial {
  background-image: url("https://images.unsplash.com/photo-1565008576549-57569a49371d?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-office {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-warehouse {
  background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-retail {
  background-image: url("https://images.unsplash.com/photo-1604719312566-8912e9227c6a?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-business {
  background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-commercial-land {
  background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-free-purpose {
  background-image: url("https://images.unsplash.com/photo-1771678040129-477a44bd37ea?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.promo-banner-house-buy {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1100&q=82");
  background-position: center 58%;
}

.promo-banner-dacha-buy {
  background-image: url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-townhouse-buy {
  background-image: url("https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?auto=format&fit=crop&w=1100&q=82");
  background-position: center 60%;
}

.promo-banner-house-rent {
  background-image: url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.promo-banner-dacha-daily {
  background-image: url("https://images.unsplash.com/photo-1523217582562-09d0def993a6?auto=format&fit=crop&w=1100&q=82");
  background-position: center 52%;
}

.promo-banner-townhouse-rent {
  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1100&q=82");
  background-position: center 58%;
}

.promo-banner-house-sell {
  background-image: url("https://images.unsplash.com/photo-1513584684374-8bab748fbf90?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.promo-banner-dacha-sell {
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Uzbek_house_in_Fergana_province_%28Uzbekistan%29.jpg/1280px-Uzbek_house_in_Fergana_province_%28Uzbekistan%29.jpg");
  background-position: center 56%;
}

.promo-banner-land-sell {
  background-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1100&q=82");
  background-position: center 52%;
}

.promo-banner-house-lease {
  background-image: url("https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=1100&q=82");
  background-position: center 58%;
}

.promo-banner-dacha-lease {
  background-image: url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.promo-banner-dacha-party {
  background-image: url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1100&q=82");
  background-position: center 52%;
}

.promo-banner-office-buy {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1100&q=82");
  background-position: center 58%;
}

.promo-banner-warehouse-buy {
  background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.promo-banner-business-buy {
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.promo-banner-office-rent {
  background-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-warehouse-rent {
  background-image: url("https://images.unsplash.com/photo-1565891741441-64926e441838?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-commercial-sell {
  background-image: url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-business-sell {
  background-image: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1100&q=82");
}

.promo-banner-warehouse-sell {
  background-image: url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1100&q=82");
  background-position: center 52%;
}

.promo-banner-office-lease {
  background-image: url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-warehouse-lease {
  background-image: url("https://images.unsplash.com/photo-1735020886196-bed638cc1809?auto=format&fit=crop&w=1100&q=82");
  background-position: center 54%;
}

.promo-banner-commercial-lease {
  background-image: url("https://images.unsplash.com/photo-1771678039697-be711cc352e0?auto=format&fit=crop&w=1100&q=82");
  background-position: center 56%;
}

.search-band {
  position: relative;
  z-index: 12;
  padding: 8px clamp(20px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-form {
  display: grid;
  grid-template-columns: 86px minmax(164px, 1.12fr) minmax(118px, 0.72fr) minmax(126px, 0.78fr) minmax(132px, 0.82fr) minmax(112px, 0.68fr) minmax(128px, 0.76fr) 42px 92px;
  gap: 8px;
  align-items: stretch;
}

.map-search-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 20px auto;
  place-items: center;
  gap: 7px;
  min-width: 86px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cdd8ee;
  border-radius: 8px;
  color: #1746b7;
  background:
    linear-gradient(180deg, #ffffff, #f3f7ff);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.05);
  font-size: 16px;
  font-weight: 900;
}

.map-toggle-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.map-search-toggle span {
  font-size: 13px;
  font-weight: 860;
  line-height: 1;
}

.map-search-toggle:hover,
.map-search-toggle.active {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(180deg, #2f63dd, var(--accent));
}

.mobile-filter-toggle {
  display: none;
}

.filter-clear-all {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.filter-clear-all:hover,
.filter-clear-all:focus-visible {
  color: var(--accent);
  border-color: rgba(29, 78, 216, 0.38);
  background: #eef3ff;
  outline: none;
}

.location-filter {
  min-width: 0;
}

.price-filter {
  min-width: 0;
}

.rooms-filter {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.primary {
  min-height: 40px;
  border-radius: 7px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 760;
}

.filter-menu {
  position: relative;
  min-width: 0;
}

.filter-menu[open] {
  z-index: 40;
}

.filter-menu summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  height: 44px;
  min-height: 44px;
  padding: 6px 48px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--accent);
  background: #eef3ff;
  font-size: 13px;
  font-weight: 900;
}

.filter-menu summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
}

.filter-menu[open] summary {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.filter-menu[open] summary::after {
  top: 21px;
  transform: rotate(225deg);
}

.filter-menu summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.filter-menu summary strong {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  position: absolute;
  right: 24px;
  top: 50%;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  line-height: 1;
  transform: translateY(-50%);
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  width: min(520px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.location-popover {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  width: min(760px, calc(100vw - 36px));
}

.quick-city-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  background: #f8fbff;
}

.quick-city-picker > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.quick-city-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-city-tiles button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 7px;
  color: #334155;
  background: #fff;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.quick-city-tiles button:hover,
.quick-city-tiles button:focus-visible,
.quick-city-tiles button.active {
  color: var(--accent);
  border-color: rgba(29, 78, 216, 0.42);
  background: #eef4ff;
  outline: none;
}

.price-popover,
.rooms-popover {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  width: min(560px, calc(100vw - 36px));
}

.price-popover {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.price-popover-head,
.price-market-suggestions {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}

.price-popover-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  background: #f8fbff;
}

.price-popover-head > span,
.price-market-suggestions > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.price-currency-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(46px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 9px;
  background: #fff;
}

.price-currency-switch button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 880;
}

.price-currency-switch button.active {
  color: #fff;
  background: var(--accent);
}

.price-input-field em {
  color: var(--accent);
  font-style: normal;
  font-weight: 860;
}

.price-suggestion-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.price-suggestion-tiles button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  justify-items: start;
  padding: 8px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.price-suggestion-tiles button:hover,
.price-suggestion-tiles button:focus-visible {
  border-color: rgba(29, 78, 216, 0.34);
  background: #eef4ff;
  outline: none;
}

.price-suggestion-tiles strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
}

.price-suggestion-tiles small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.more-filter .filter-popover {
  right: 0;
  left: auto;
}

.advanced-popover {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(1040px, calc(100vw - 36px));
  max-height: min(72vh, 680px);
  overflow: auto;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.filter-reset {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 760;
}

.filter-apply {
  display: none;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  color: var(--accent);
  border-color: rgba(29, 78, 216, 0.34);
  background: #eef3ff;
}

.compact-advanced-grid label,
.compact-advanced-grid .filter-field {
  display: grid;
  grid-template-rows: auto 40px;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 62px;
}

.field-label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.quick-input {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto;
  align-items: center;
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.quick-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.quick-input input {
  min-height: 38px;
  min-width: 42px;
  border: 0;
  padding: 0 8px;
  background: transparent;
  box-shadow: none;
}

.quick-input input:focus {
  box-shadow: none;
}

.quick-input .quick-tiles {
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  padding-right: 5px;
}

.quick-tiles button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(51, 65, 85, 0.86);
  background: #fff;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.quick-tiles button:hover,
.quick-tiles button:focus-visible,
.quick-tiles button.active {
  color: #0f172a;
  border-color: rgba(29, 78, 216, 0.46);
  background: #eff6ff;
  outline: none;
}

.filter-popover .wide {
  grid-column: 1 / -1;
}

.compact-advanced-grid {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  padding: 0;
  border: 0;
}

.option-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.search-submit {
  align-self: stretch;
  min-width: 0;
  padding-inline: 14px;
}

.sort-filter {
  min-width: 0;
}

.sort-filter span {
  display: none;
}

.sort-filter select {
  width: 100%;
  height: 100%;
  min-height: 42px;
  font-weight: 700;
}

.mobile-results-sort {
  display: none;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(20px, 4vw, 56px) 0;
}

.results-toolbar .status-line {
  min-width: 0;
  color: #465266;
  font-size: 14px;
  font-weight: 760;
}

.results-toolbar .sort-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(240px, 48vw);
}

.results-toolbar .sort-filter span {
  display: inline;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.results-toolbar .sort-filter select {
  height: 36px;
  min-height: 36px;
  padding: 0 32px 0 10px;
  border-radius: 8px;
  font-size: 13px;
}

.results-toolbar .mobile-results-sort {
  display: none;
}

.primary:hover {
  background: #173ea8;
}

.advanced-filters {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.advanced-filters summary {
  min-height: 46px;
  padding: 13px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.compact-advanced-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  padding: 0;
  border: 0;
}

.advanced-section-title {
  grid-column: 1 / -1;
  padding-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 18px clamp(20px, 4vw, 56px);
  align-items: start;
}

.content-grid.map-open {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.content-grid.map-expanded {
  grid-template-columns: minmax(760px, 1fr) minmax(280px, 340px);
}

.map-panel,
.workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  height: max-content;
  padding: 0;
  position: relative;
  top: auto;
  display: grid;
  gap: 8px;
}

.content-grid.map-open .filters,
.content-grid.map-expanded .filters {
  position: sticky;
  top: 58px;
}

.quick-filters {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-filters button,
.map-toggle {
  justify-content: start;
  text-align: left;
  background: var(--soft);
}

.status-line {
  padding: 0 2px;
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reset-hidden {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fff;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 20px;
  align-items: start;
}

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 438px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 37, 29, 0.07);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.listing-card.premium-listing {
  border-color: rgba(234, 179, 8, 0.72);
  background: linear-gradient(180deg, #fff7cf 0%, #fffdf4 42%, #fff 100%);
  box-shadow: 0 12px 32px rgba(202, 138, 4, 0.18);
}

.listing-card.premium-listing::before {
  content: "Премиум";
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(202, 138, 4, 0.34);
  border-radius: 999px;
  color: #713f12;
  background: rgba(254, 240, 138, 0.96);
  box-shadow: 0 8px 22px rgba(113, 63, 18, 0.12);
  font-size: 12px;
  font-weight: 860;
  line-height: 1;
}

.listing-card.premium-listing .card-gallery {
  padding-top: 34px;
  background: #fff9db;
}

.listing-card.premium-listing .card-gallery > img {
  height: calc(100% - 34px);
  min-height: 0;
}

.listing-card.premium-listing .price-main {
  color: #854d0e;
}

.listing-card:hover,
.listing-card:focus-visible {
  border-color: rgba(29, 78, 216, 0.55);
  box-shadow: 0 12px 32px rgba(21, 25, 35, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.listing-card.active {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(29, 78, 216, 0.16);
}

.listing-card img,
.detail-image,
.card-gallery > img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 7px;
  background: var(--soft-2);
}

.card-gallery {
  position: relative;
  aspect-ratio: 16 / 10.5;
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
}

.card-gallery > img {
  height: 100%;
}

.thumb-row {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.thumb-row button {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.thumb-row button.active {
  border-color: var(--focus);
}

.thumb-row span {
  display: block;
  width: 42px;
  height: 28px;
  border-radius: 3px;
  background-position: center;
  background-size: cover;
}

.gallery-step {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 7px;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-step:hover {
  background: rgba(15, 23, 42, 0.68);
}

.gallery-prev {
  left: 8px;
}

.gallery-next {
  right: 8px;
}

.listing-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 8px;
  padding-top: 11px;
}

.listing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(42px, auto);
  gap: 8px;
  align-items: start;
  min-height: 82px;
  max-height: 98px;
  overflow: hidden;
}

.listing-head > div {
  min-width: 0;
}

.price {
  display: grid;
  min-width: 0;
  gap: 2px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.18;
}

.price-main {
  color: var(--ink);
  font: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-converted {
  color: rgba(104, 112, 128, 0.68);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-inline {
  display: grid;
  gap: 1px;
}

.listing-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta,
.tags,
.seller-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.listing-card .meta {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  max-height: 44px;
  overflow: hidden;
}

.listing-card .meta span:not(.metro-pill) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-description {
  display: none;
  margin: 0;
  min-height: 0;
  line-height: 1.42;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-tags {
  display: flex;
  flex: 0 0 30px;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  max-height: 30px;
  overflow: hidden;
}

.filter-nudge {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.14)),
    #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-nudge span {
  display: block;
  margin-bottom: 5px;
  color: #047857;
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

.filter-nudge strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 840;
  line-height: 1.18;
}

.filter-nudge p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.filter-nudge button {
  min-width: 150px;
  border-color: rgba(29, 78, 216, 0.24);
  background: #fff;
}

.filter-nudge.smart {
  border-color: rgba(14, 116, 144, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.08)),
    #fff;
}

.filter-nudge.limit {
  border-color: rgba(220, 38, 38, 0.22);
  background:
    linear-gradient(135deg, rgba(254, 226, 226, 0.88), rgba(255, 247, 237, 0.92)),
    #fff;
}

.filter-nudge-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 430px;
}

.filter-nudge-links button {
  min-width: 112px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 820;
}

.filter-nudge-links button:hover,
.filter-nudge-links button:focus-visible {
  color: #fff;
  background: #1d4ed8;
  outline: none;
}

.listing-code-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.listing-code-row .listing-code {
  flex: 0 0 auto;
  color: rgba(100, 116, 139, 0.92);
  font-size: 11px;
  font-weight: 860;
}

.seller-listing-head .listing-code {
  margin-right: 8px;
}

.seller-compact {
  display: none;
}

.metro-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-weight: 800;
}

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
  width: min-content;
  max-width: 56px;
  min-width: 28px;
}

.status-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.status-docs {
  font-size: 0;
}

.status-docs.is-verified {
  color: #15803d;
  border-color: #86efac;
  background: #dcfce7;
}

.status-docs.is-muted {
  color: #64748b;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.status-docs::before,
.status-docs::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.18;
}

.status-docs::before {
  transform: translate(-3px, -2px);
}

.status-docs::after {
  background: transparent;
  opacity: 1;
  transform: translate(2px, 2px);
}

.status-top {
  color: #8a4b00;
  background: #ffedd5;
  border-color: #fed7aa;
}

.status-favorite {
  color: #be123c;
  background: #ffe4e6;
  border-color: #fecdd3;
}

.status-viewed {
  color: #475569;
  background: #e5e7eb;
  border-color: #cbd5e1;
}

.badge.verified {
  color: #173ea8;
  background: #e8efff;
}

.badge.premium {
  color: #6e3d00;
  background: #ffe7b0;
}

.badge.viewed-badge {
  color: #475569;
  background: #e5e7eb;
}

.badge.favorite-badge {
  color: #9f1239;
  background: #ffe4e6;
}

.card-tools {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  display: inline-flex;
  gap: 7px;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  font-size: 18px;
  font-weight: 900;
}

.icon-action:hover,
.icon-action.is-favorite,
.small-action.is-favorite {
  color: #be123c;
  background: #fff1f2;
}

.small-action.warning {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.small-action,
a.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.client-toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 36px));
}

.client-toast {
  padding: 11px 12px;
  border: 1px solid rgba(22, 101, 52, 0.22);
  border-radius: 8px;
  color: #14532d;
  background: rgba(240, 253, 244, 0.97);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  font-weight: 760;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-actions button,
.small-action {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.card-actions .contact {
  color: #fff;
  background: var(--accent-2);
}

.map-panel {
  position: relative;
  top: auto;
  overflow: hidden;
  height: min(780px, calc(100vh - 92px));
  min-height: 620px;
}

.content-grid.map-expanded .map-panel {
  height: min(860px, calc(100vh - 76px));
  min-height: 660px;
}

.map-panel.map-fullscreen {
  position: fixed;
  inset: var(--map-filter-offset, 58px) 0 0 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: calc(100dvh - var(--map-filter-offset, 58px));
  min-height: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.map-fullscreen-active {
  overflow: hidden;
}

body.map-fullscreen-active .topbar,
body.map-fullscreen-active .search-band {
  z-index: 1;
}

body.map-fullscreen-active .search-band {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1301;
  border-bottom-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.content-grid.map-fullscreen-open {
  display: block;
  padding: 0;
}

.content-grid.map-fullscreen-open .filters {
  position: static;
  display: block;
}

.content-grid.map-fullscreen-open .filters > :not(.map-panel),
.content-grid.map-fullscreen-open .results {
  display: none !important;
}

.content-grid.map-expanded .results {
  grid-template-columns: minmax(0, 1fr);
}

.map-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font: inherit;
}

.map-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.map-actions {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.map-close[hidden],
.map-collapse[hidden] {
  display: none;
}

.map-icon-button::before {
  display: none;
  content: none;
}

.map-mobile-brand {
  display: none;
}

#closeMap::before {
  content: none;
}

#expandMap::before {
  content: none;
}

#collapseMap::before {
  content: none;
}

#resetMap::before {
  content: none;
}

#mapBackLevel::before {
  content: none;
}

.map-panel.map-fullscreen .map-toolbar {
  flex: 0 0 auto;
}

.map-panel.map-fullscreen .map-canvas {
  flex: 1 1 auto;
  height: auto;
}

.map-toolbar button {
  min-height: 32px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.map-canvas {
  position: relative;
  height: calc(100% - 50px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(29, 78, 216, 0.07) 1px, transparent 1px),
    #f8fafc;
  background-size: 42px 42px;
  cursor: grab;
  user-select: none;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.map-canvas.dragging {
  cursor: grabbing;
}

.map-stage {
  position: absolute;
  inset: 0;
  transform-origin: center;
  transition: transform 160ms ease;
}

.map-canvas.has-map-card .map-stage {
  right: 310px;
}

.zillow-map-stage {
  background:
    radial-gradient(circle at 78% 27%, rgba(58, 132, 98, 0.12), transparent 18%),
    radial-gradient(circle at 26% 66%, rgba(189, 131, 61, 0.08), transparent 22%),
    linear-gradient(135deg, #e9f3fb 0%, #f7f8f1 46%, #edf5ec 100%);
}

.uz-map-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-water {
  fill: #d8ebfb;
}

.map-land {
  fill: rgba(245, 247, 239, 0.92);
}

.map-park {
  fill: #d8ead5;
  stroke: rgba(92, 141, 91, 0.26);
  stroke-width: 2;
}

.map-waterway {
  fill: none;
  stroke: #b8d9ef;
  stroke-linecap: round;
  stroke-width: 18;
  opacity: 0.9;
}

.city-minor-roads path {
  fill: none;
  stroke: #dfe5d8;
  stroke-linecap: round;
  stroke-width: 2;
}

.uz-region {
  fill: #f1f6ec;
  stroke: rgba(29, 78, 216, 0.24);
  stroke-width: 2.6;
}

.uz-region.center {
  fill: #f2f8ef;
}

.uz-region.east,
.uz-region.tashkent {
  fill: #eef7f9;
}

.uz-road {
  fill: none;
  stroke: rgba(100, 116, 139, 0.34);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 10 13;
}

.uz-road.secondary {
  stroke-width: 4;
  opacity: 0.7;
}

.map-road {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(130, 148, 118, 0.26));
}

.map-road.highway {
  stroke: #fffaf2;
  stroke-width: 16;
}

.map-road.arterial {
  stroke: #fff;
  stroke-width: 11;
}

.map-road.minor {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 6;
}

.map-road.transit {
  stroke: #f8b94b;
  stroke-dasharray: 12 12;
  stroke-width: 5;
}

.map-city-dot {
  fill: #1d4ed8;
  stroke: #fff;
  stroke-width: 4;
}

.metro-dot {
  fill: #fff;
  stroke: #226ad3;
  stroke-width: 4;
}

.uz-map-backdrop text {
  fill: rgba(25, 38, 31, 0.52);
  font-family: var(--font-ui);
  letter-spacing: 0;
  user-select: none;
}

.map-city-label {
  font-size: 24px;
  font-weight: 820;
}

.map-road-label,
.map-road-name {
  fill: rgba(79, 91, 75, 0.52);
  font-size: 13px;
  font-weight: 760;
}

.map-neighborhood {
  fill: rgba(31, 50, 43, 0.42);
  font-size: 22px;
  font-weight: 820;
}

.map-neighborhood.subtle,
.map-poi {
  fill: rgba(43, 92, 62, 0.48);
  font-size: 16px;
  font-weight: 760;
}

.map-scale {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 7px;
  color: rgba(51, 65, 85, 0.76);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.map-overlays {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.map-cluster,
.map-price-pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--map-marker-scale, 1));
  transform-origin: center;
  z-index: 4;
}

.map-cluster {
  display: grid;
  gap: 2px;
  min-width: 116px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 14px;
  color: #122033;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  text-align: left;
}

.map-cluster strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
}

.map-cluster span,
.map-cluster em {
  font-style: normal;
  font-size: 11px;
  font-weight: 720;
  opacity: 0.88;
}

.map-district-cluster {
  min-width: 92px;
  border-radius: 13px;
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(241, 253, 248, 0.96);
}

.map-area-dot {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.map-area-dot.map-city-cluster {
  background: #0f766e;
}

.map-area-dot.map-district-cluster {
  min-width: 0;
  background: #16a34a;
}

.map-area-dot:hover,
.map-area-dot:focus-visible {
  outline: none;
  transform: scale(1.18);
}

.map-cluster:hover,
.map-cluster:focus-visible {
  color: #fff;
  border-color: #111827;
  background: #111827;
  outline: none;
  transform: translate(-50%, -50%) scale(var(--map-marker-hover-scale, 1.04));
}

.map-price-pin {
  --map-pin-color: #2563eb;
  --map-pin-ring: rgba(37, 99, 235, 0.42);
  --map-pin-shadow: rgba(37, 99, 235, 0.24);
  display: grid;
  gap: 1px;
  min-width: 78px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #fff;
  background: var(--map-pin-color);
  box-shadow:
    0 0 0 1px var(--map-pin-ring),
    0 6px 16px var(--map-pin-shadow);
  line-height: 1.05;
}

.map-category-blue {
  --map-pin-color: #2563eb;
  --map-pin-ring: rgba(37, 99, 235, 0.44);
  --map-pin-shadow: rgba(37, 99, 235, 0.26);
}

.map-category-red {
  --map-pin-color: #dc2626;
  --map-pin-ring: rgba(220, 38, 38, 0.44);
  --map-pin-shadow: rgba(220, 38, 38, 0.25);
}

.map-category-green {
  --map-pin-color: #16a34a;
  --map-pin-ring: rgba(22, 163, 74, 0.44);
  --map-pin-shadow: rgba(22, 163, 74, 0.24);
}

.map-price-pin span:first-child {
  font-size: 12px;
  font-weight: 920;
}

.map-price-pin > small {
  overflow: hidden;
  max-width: 112px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-price-pin.map-price-pin-detailed {
  min-width: 122px;
}

.map-price-pin.map-price-pin-detailed > small {
  max-width: 116px;
}

.map-price-pin:hover,
.map-price-pin:focus,
.map-price-pin.active {
  z-index: 8;
  color: #fff;
  border-color: #111827;
  background: #111827;
  outline: none;
  transform: translate(-50%, -50%) scale(var(--map-marker-hover-scale, 1.04));
}

.map-price-pin:hover > small,
.map-price-pin:focus > small,
.map-price-pin.active > small {
  color: rgba(255, 255, 255, 0.78);
}

.map-preview {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  display: none;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  transform: translateX(-50%);
}

.map-price-pin:hover .map-preview,
.map-price-pin:focus .map-preview,
.map-price-pin.active .map-preview {
  display: grid;
  gap: 6px;
}

.map-preview img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}

.map-preview small {
  color: var(--muted);
  font-size: 12px;
}

.map-floating-card {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 8;
  display: grid;
  gap: 7px;
  width: min(280px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-floating-card img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--soft-2);
}

.map-floating-card span,
.map-floating-card small,
.map-hint {
  color: var(--muted);
  font-size: 12px;
}

.map-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: 300px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  opacity: 0.76;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.map-canvas:hover .map-hint {
  opacity: 1;
  transform: translateY(0);
}

.map-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.map-zoom button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  background: var(--soft);
  font-size: 18px;
}

.map-zoom output {
  min-height: 0;
  min-width: 48px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.map-canvas.real-map-canvas {
  background: #e6eef3;
  cursor: default;
}

.real-leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  font-family: var(--font-ui);
}

.real-leaflet-map .leaflet-map-pane {
  rotate: 0deg;
  scale: 1;
  transform-origin: center center;
}

.real-map-hint {
  z-index: 420;
  left: 12px;
  bottom: 12px;
  max-width: 360px;
}

.leaflet-container {
  font-family: var(--font-ui);
  background: #e6eef3;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.leaflet-boundary-label {
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  font-size: 11px;
  font-weight: 820;
}

.leaflet-price-icon,
.leaflet-cluster-icon,
.leaflet-area-dot-icon,
.leaflet-dot-icon {
  border: 0;
  background: transparent;
}

.leaflet-price-icon .map-price-pin,
.leaflet-cluster-icon .map-cluster,
.leaflet-area-dot-icon .map-area-dot,
.leaflet-dot-icon .map-listing-dot {
  position: static;
  transform: none;
  pointer-events: auto;
}

.leaflet-price-icon .map-price-pin:hover,
.leaflet-price-icon .map-price-pin:focus,
.leaflet-price-icon .map-price-pin.active,
.leaflet-cluster-icon .map-cluster:hover,
.leaflet-cluster-icon .map-cluster:focus-visible {
  transform: none;
}

.real-map-pin {
  min-width: 86px;
  text-align: left;
}

.real-map-cluster {
  width: max-content;
  min-width: 118px;
}

.map-city-cluster {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(239, 246, 255, 0.97);
}

.leaflet-area-dot-icon .map-area-dot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.98);
  color: #0f2d5c;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 10px 24px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.leaflet-area-dot-icon .map-region-cluster {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.leaflet-area-dot-icon .map-city-cluster,
.leaflet-area-dot-icon .map-district-cluster {
  min-width: 86px;
  height: 38px;
  border-radius: 999px;
  color: #10233f;
  background: rgba(255, 255, 255, 0.98);
}

.leaflet-area-dot-icon .map-district-cluster {
  border-color: rgba(15, 118, 110, 0.28);
  color: #064e3b;
}

.leaflet-area-dot-icon .map-area-dot strong {
  display: block;
  max-width: 78px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 940;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaflet-area-dot-icon .map-region-cluster strong {
  font-size: 17px;
}

.leaflet-area-dot-icon .map-area-dot small {
  display: block;
  max-width: 76px;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(51, 65, 85, 0.72);
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaflet-area-dot-icon .map-area-dot:hover,
.leaflet-area-dot-icon .map-area-dot:focus-visible {
  outline: none;
  transform: scale(1.08);
}

.map-listing-dot {
  --map-pin-color: #2563eb;
  --map-pin-ring: rgba(37, 99, 235, 0.42);
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--map-pin-color);
  box-shadow:
    0 0 0 1px var(--map-pin-ring),
    0 6px 14px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.map-listing-dot:hover,
.map-listing-dot:focus-visible,
.map-listing-dot.active {
  outline: none;
  transform: scale(1.72);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.96),
    0 0 0 5px var(--map-pin-ring),
    0 10px 18px rgba(15, 23, 42, 0.26);
}

.leaflet-listing-popup,
.leaflet-region-popup {
  display: grid;
  min-width: 210px;
  gap: 6px;
  font-family: var(--font-ui);
}

.leaflet-popup-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.leaflet-popup-copy .price-inline,
.leaflet-popup-copy .price,
.leaflet-popup-copy .price-converted {
  display: block;
}

.leaflet-popup-copy .price {
  font-size: 13px;
}

.leaflet-popup-copy .price-converted {
  font-size: 11px;
}

.leaflet-listing-popup img {
  width: 100%;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.leaflet-listing-popup strong,
.leaflet-region-popup strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.leaflet-listing-popup small,
.leaflet-region-popup span {
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.segmented button.active {
  color: #fff;
  background: var(--accent);
}

.district-map,
.metro-map {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.district-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.district-map button,
.metro-line button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 700;
}

.metro-line {
  display: grid;
  gap: 8px;
  padding-left: 12px;
  border-left: 5px solid var(--line);
  border-color: var(--line);
}

.metro-line[style] {
  border-left-color: var(--line);
}

.metro-line div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--muted);
  font-weight: 800;
}

.workspace {
  margin: 10px clamp(18px, 4vw, 56px) 48px;
  padding: 22px;
}

body[data-view="portal"] .workspace {
  margin: 8px 12px 48px;
  padding: 12px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.workspace-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workspace-panel.wide {
  grid-column: span 2;
}

.workspace-panel.full {
  grid-column: 1 / -1;
}

.portal-login-shell {
  display: grid;
  justify-items: center;
  min-height: min(560px, calc(100vh - 250px));
  padding: clamp(22px, 5vw, 46px);
  border-color: rgba(29, 78, 216, 0.12);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(20, 184, 166, 0.07)),
    #fff;
}

.portal-login-card {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(221, 226, 234, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(21, 25, 35, 0.12);
}

.portal-login-badge {
  justify-self: start;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(29, 78, 216, 0.08);
  font-size: 11px;
  font-weight: 860;
  line-height: 1.35;
  text-transform: uppercase;
}

.portal-login-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.portal-login-card p,
.portal-login-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.portal-login-form {
  display: grid;
  gap: 12px;
}

.portal-login-form label,
.auth-form label {
  display: grid;
  gap: 6px;
}

.portal-login-form label span,
.auth-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.required-label::after {
  content: " *";
  color: #dc2626;
  font-weight: 900;
}

.auth-dialog.auth-verify-mode .auth-form {
  gap: 14px;
}

.auth-form .verify-only:not([hidden]) {
  display: grid;
  padding: 10px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 8px;
  background: #f7faff;
}

.portal-login-form input,
.auth-form input {
  min-height: 44px;
  border-radius: 8px;
}

.portal-login-form .primary,
.auth-form .primary {
  width: 100%;
  min-height: 42px;
}

.portal-login-form output {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
  font-weight: 760;
}

.auth-result {
  min-height: 18px;
  color: #526070;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.phone-input-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.32fr) minmax(0, 1fr);
  gap: 8px;
}

.phone-input-row select,
.phone-input-row input {
  min-width: 0;
}

.portal-login-secondary {
  justify-self: stretch;
  min-height: 38px;
}

.account-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-sidebar-head {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.account-sidebar-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-sidebar-head span,
.account-menu-group > span,
.account-menu-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.account-menu-group {
  display: grid;
  gap: 6px;
}

.account-menu-group > span {
  font-weight: 860;
  text-transform: uppercase;
}

.account-menu-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 54px;
  justify-items: start;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}

.account-menu-item strong {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.staff-section-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #f97316;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.staff-section-badge[hidden] {
  display: none;
}

.account-menu-item:hover,
.account-menu-item:focus-visible,
.account-menu-item.active {
  border-color: rgba(29, 78, 216, 0.22);
  background: #eef4ff;
  outline: none;
}

.account-content {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.account-mobile-back {
  display: none;
}

.account-content > .workspace-panel.full,
.account-content > .workspace-panel.wide {
  grid-column: auto;
}

.workspace-grid:has(.staff-shell) {
  grid-template-columns: minmax(0, 1fr);
}

.account-shell.staff-shell {
  width: 100%;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100dvh - 156px);
  align-items: stretch;
}

.staff-shell .staff-content {
  display: grid;
  min-width: 0;
  width: 100%;
  align-content: stretch;
}

.account-post-cta {
  width: 100%;
}

.staff-shell .account-sidebar {
  border-color: rgba(29, 78, 216, 0.2);
}

.staff-content .workspace-panel {
  min-width: 0;
}

.staff-content .workspace-panel.staff-panel {
  min-height: calc(100dvh - 156px);
}

.staff-panel {
  display: flex;
  min-height: calc(100dvh - 156px);
  flex-direction: column;
}

.staff-panel .metric-grid {
  align-items: stretch;
}

.staff-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.staff-search-row input {
  min-height: 34px;
  font-size: 13px;
}

.staff-filter-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 780;
}

.staff-filter-tabs button:hover,
.staff-filter-tabs button:focus-visible,
.staff-filter-tabs button.active {
  color: var(--accent);
  border-color: rgba(29, 78, 216, 0.34);
  background: #eef4ff;
  outline: none;
}

.staff-listing-status-tabs {
  margin-top: -2px;
}

.staff-order-stack {
  gap: 6px;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.staff-moderation-preview,
.staff-ad-preview {
  background: #fbfcff;
}

.staff-note {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--focus);
  border-radius: 6px;
  color: #526070;
  background: #fff8e6;
  font-size: 12px;
  font-weight: 680;
}

.staff-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  padding-bottom: 2px;
}

.staff-listing-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 118px;
  padding: 10px;
  cursor: pointer;
}

.staff-listing-row:hover,
.staff-listing-row:focus-visible {
  border-color: rgba(29, 78, 216, 0.28);
  background: #f7faff;
  outline: none;
}

.staff-listing-row > img {
  width: 82px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
}

.staff-listing-row .seller-listing-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 210px);
  grid-template-areas:
    "head actions"
    "price actions"
    "meta actions"
    "docs actions"
    "note actions";
  gap: 6px 10px;
  align-items: start;
  min-width: 0;
}

.staff-listing-row .seller-listing-head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  min-width: 0;
}

.staff-listing-row .seller-listing-head strong {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
  line-height: 1.2;
  white-space: normal;
}

.listing-code {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 6px;
  color: var(--accent);
  background: #eef4ff;
  font-size: 10.5px;
  font-weight: 880;
  letter-spacing: 0;
}

.staff-listing-row .seller-status {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.staff-listing-row .seller-listing-price {
  grid-area: price;
  min-width: 0;
}

.staff-listing-row .seller-listing-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}

.staff-listing-row .seller-listing-meta span {
  flex: 0 1 auto;
  max-width: min(100%, 360px);
  min-height: 22px;
  padding: 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.staff-listing-row .staff-document-preview {
  grid-area: docs;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-height: 34px;
  overflow: hidden;
}

.staff-listing-row .staff-document-preview > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.staff-listing-row .staff-document-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.staff-listing-row .staff-document-card {
  flex: 0 0 42px;
  width: 42px;
  height: 30px;
  min-height: 30px;
  padding: 2px;
  border-radius: 6px;
  border-color: rgba(148, 163, 184, 0.42);
  color: #475569;
  background: #f8fafc;
}

.staff-listing-row .staff-document-card img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.staff-listing-row .staff-document-file {
  background: #e2e8f0;
  color: #475569;
}

.staff-listing-row .staff-document-card strong,
.staff-listing-row .staff-document-card small,
.staff-listing-row .staff-document-file,
.staff-listing-row .staff-document-card span:not(.staff-document-file) {
  display: none;
}

.staff-listing-row .staff-note {
  grid-area: note;
  min-width: 0;
  max-height: 30px;
  padding: 5px 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  white-space: normal;
}

.staff-listing-row .staff-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  align-content: center;
  width: 100%;
  min-width: 0;
  max-height: 94px;
  margin-top: 0;
  overflow: hidden;
  padding: 0;
  scrollbar-width: thin;
}

.staff-listing-row .staff-actions .small-action,
.staff-listing-row .staff-doc-check {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  padding: 0 7px;
  justify-content: center;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-listing-row .staff-actions .small-action {
  min-width: 58px;
  max-width: 96px;
}

.staff-listing-row .staff-doc-check {
  flex-basis: 58px;
  min-width: 58px;
  padding-right: 7px;
}

.staff-doc-check {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 7px;
  color: #14532d;
  background: #f0fdf4;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.staff-doc-check input {
  width: 16px;
  min-height: 16px;
  accent-color: #16a34a;
}

body[data-view="portal"][data-portal-mode="admin"] .workspace-header,
body[data-view="portal"][data-portal-mode="moderator"] .workspace-header {
  display: none;
}

body[data-view="portal"][data-portal-mode="admin"] .workspace-grid,
body[data-view="portal"][data-portal-mode="moderator"] .workspace-grid {
  padding-top: 0;
}

.account-shell.staff-shell {
  height: calc(100dvh - 112px);
  min-height: calc(100dvh - 112px);
  max-height: calc(100dvh - 112px);
  overflow: visible;
}

.staff-shell .account-sidebar {
  align-self: start;
  min-height: 0;
  gap: 6px;
  padding: 9px;
  overflow: visible;
}

.staff-shell .account-sidebar-head {
  gap: 2px;
  padding-bottom: 7px;
}

.staff-shell .account-sidebar-head strong {
  font-size: 13px;
}

.staff-shell .account-sidebar-head span {
  font-size: 10.5px;
}

.staff-shell .account-menu-group {
  gap: 3px;
}

.staff-shell .account-menu-group > span {
  font-size: 9.5px;
  line-height: 1.05;
}

.staff-shell .account-menu-item {
  min-height: 30px;
  padding: 5px 7px;
  gap: 0;
  border-radius: 6px;
}

.staff-shell .account-menu-item strong {
  font-size: 11.5px;
  line-height: 1.1;
}

.staff-shell .account-menu-item small {
  display: none;
}

.staff-shell .staff-content {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.staff-content .workspace-panel.staff-panel {
  min-height: 0;
}

.staff-listings-panel {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.staff-listings-panel .staff-order-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.staff-listing-row {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 9px;
  min-height: 154px;
  padding: 8px 9px;
}

.staff-listing-row > img {
  width: 78px;
  height: 62px;
}

.staff-listing-row .seller-listing-info {
  grid-template-columns: minmax(0, 1fr) minmax(390px, max-content);
  grid-template-areas:
    "head actions"
    "price actions"
    "meta actions"
    "docs actions"
    "note actions"
    "state state";
  gap: 4px 9px;
}

.staff-listing-row .seller-listing-head strong {
  flex-basis: auto;
  font-size: 13px;
  line-height: 1.18;
}

.staff-listing-row .seller-listing-price {
  font-size: 13px;
}

.staff-listing-row .staff-primary-meta {
  gap: 4px;
}

.staff-listing-row .staff-primary-meta span {
  max-width: min(100%, 420px);
  min-height: 20px;
  font-size: 10.5px;
}

.staff-listing-state-row {
  grid-area: state;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(203, 213, 225, 0.62);
}

.staff-listing-state-row span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 220px;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 6px;
  color: #526070;
  background: #f1f5f9;
  font-size: 10.5px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-listing-state-row .seller-status {
  color: #1746b7;
  background: #eef4ff;
}

.staff-promo-chip.base {
  color: #526070;
  background: #f1f5f9;
}

.staff-promo-chip.top {
  color: #475569;
  background: #f1f5f9;
}

.staff-promo-chip.premium {
  color: #1d4ed8;
  background: #eff6ff;
}

.staff-listing-row .staff-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-self: start;
  align-items: center;
  justify-content: flex-end;
  align-content: center;
  width: 100%;
  max-height: none;
  padding: 0;
  overflow-x: visible;
  overflow-y: hidden;
}

.staff-listing-row .staff-actions .small-action,
.staff-listing-row .staff-doc-check {
  flex: 0 0 auto;
  min-width: 48px;
  max-width: none;
  min-height: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
}

.staff-listing-row .staff-doc-check {
  min-width: 52px;
  gap: 4px;
  border-color: rgba(148, 163, 184, 0.42);
  color: #475569;
  background: #f8fafc;
}

.staff-listing-row .staff-doc-check input {
  width: 13px;
  min-height: 13px;
  accent-color: #2563eb;
}

.staff-listing-row .staff-actions .small-action.success,
.staff-listing-row .staff-actions .small-action.warning,
.staff-listing-row .staff-actions .small-action.boost,
.staff-listing-row .staff-actions .small-action.premium {
  color: #1d4ed8;
  background: #eff6ff;
}

.staff-listing-row .staff-actions .small-action.danger {
  color: #991b1b;
  background: #fff1f2;
}

.promo-settings-panel {
  overflow: hidden;
}

.promo-settings-table {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.promo-settings-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(92px, 0.55fr) 78px 116px 92px 118px 78px;
  gap: 7px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.promo-settings-row label {
  min-width: 0;
  gap: 4px;
}

.promo-settings-row label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.promo-settings-row input,
.promo-settings-row select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.promo-settings-row .promo-plan-description {
  grid-column: 1 / -1;
}

.promo-settings-row .promo-enabled {
  min-height: 32px;
  justify-content: center;
  padding: 0 8px;
}

.promo-settings-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-chart-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.admin-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.admin-chart-head h3 {
  margin: 0;
}

.admin-chart-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.admin-chart-tabs {
  flex: 0 0 auto;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-chart-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 8px;
  background: #fff;
}

.admin-chart-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-chart-card header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chart-card header span {
  color: var(--accent);
  font-weight: 900;
}

.admin-chart-bars {
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(3px, 1fr));
  align-items: end;
  gap: 3px;
  height: 92px;
  padding-top: 6px;
  border-bottom: 1px solid var(--line);
}

.admin-chart-bar {
  position: relative;
  display: block;
  min-height: 4px;
  height: var(--bar-height);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #2563eb, #16a34a);
}

.admin-chart-bar i {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 2px);
  display: none;
  transform: translateX(50%);
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 780;
}

.admin-chart-bar:hover i {
  display: block;
}

.admin-chart-labels {
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(3px, 1fr));
  gap: 3px;
  min-height: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-block-head h3 {
  margin: 0;
}

.admin-mini-row {
  display: grid;
  grid-template-columns: 10px minmax(140px, 0.9fr) minmax(180px, 1.1fr);
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
}

.admin-mini-row strong,
.admin-mini-row span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mini-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.admin-mini-row span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.admin-status-dot.active,
.admin-status-dot.paid {
  background: #16a34a;
}

.admin-status-dot.blocked,
.admin-status-dot.rejected {
  background: #dc2626;
}

.admin-status-dot.pending {
  background: #d97706;
}

.admin-role-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-table {
  display: grid;
  gap: 6px;
}

.admin-user-row {
  grid-template-columns: 24px minmax(118px, 1.05fr) minmax(118px, 0.95fr) repeat(7, minmax(72px, 0.7fr)) minmax(164px, auto);
  gap: 5px;
  align-items: center;
  padding: 7px 8px;
}

.admin-user-row label {
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.admin-user-row label span {
  display: none;
}

.admin-user-row input,
.admin-user-row select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  font-size: 11px;
}

.admin-user-main {
  display: grid;
  gap: 2px;
  align-self: center;
  min-width: 0;
}

.admin-user-main strong {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main span,
.admin-user-meta span,
.admin-user-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-meta {
  display: grid;
  min-width: 0;
  gap: 1px;
  color: var(--muted);
  font-size: 11px;
}

.admin-user-meta small {
  color: rgba(82, 96, 112, 0.78);
  font-size: 10px;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  gap: 5px;
  min-width: 0;
}

.admin-user-actions .small-action {
  width: 100%;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-chip,
.admin-status-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.role-chip {
  color: #1746b7;
  background: #eaf1ff;
}

.admin-status-icon {
  color: #334155;
  background: #eef2f7;
}

.admin-status-icon.status-active {
  color: #166534;
  background: #dcfce7;
}

.admin-status-icon.status-blocked,
.admin-status-icon.status-rejected,
.admin-status-icon.status-deleted {
  color: #991b1b;
  background: #fee2e2;
}

.admin-status-icon.status-pending {
  color: #713f12;
  background: #fef3c7;
}

.staff-transaction-row {
  border-left: 3px solid rgba(29, 78, 216, 0.42);
}

.admin-profile-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-profile-toolbar > .small-action {
  justify-self: start;
}

.admin-profile-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.admin-profile-toolbar-actions .small-action {
  min-width: 160px;
  justify-content: center;
}

.admin-user-profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.admin-user-profile-grid .account-block {
  min-width: 0;
}

.admin-profile-wide {
  grid-column: 1 / -1;
}

.admin-profile-wide .staff-order-stack {
  display: grid;
  gap: 7px;
}

.admin-profile-listing-row .seller-listing-info {
  grid-template-columns: minmax(0, 1fr) minmax(168px, 210px);
  grid-template-areas:
    "head actions"
    "meta actions"
    "docs actions";
}

.admin-profile-listing-row .staff-actions {
  display: flex;
  flex-wrap: wrap;
}

.admin-profile-edit .compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-profile-edit .compact-form label {
  min-width: 0;
}

.admin-profile-edit .compact-form input,
.admin-profile-edit .compact-form select {
  width: 100%;
  min-width: 0;
}

.staff-document-links {
  display: grid;
  gap: 7px;
  align-items: start;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.staff-document-links > span {
  font-weight: 850;
  color: var(--ink);
}

.staff-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  width: 100%;
  gap: 8px;
}

.staff-document-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  font-weight: 800;
  text-decoration: none;
}

.staff-document-card img,
.staff-document-file {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.staff-document-card img {
  object-fit: cover;
  background: #dcfce7;
}

.staff-document-file {
  display: inline-grid;
  place-items: center;
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 920;
}

.staff-document-card span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.staff-document-card strong,
.staff-document-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-document-card small {
  color: rgba(22, 101, 52, 0.72);
  font-size: 11px;
  font-weight: 760;
}

.profile-documents {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.staff-document-links.empty {
  color: rgba(100, 116, 139, 0.72);
}

.account-menu-item.has-pushes strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 999px;
  background: #f97316;
}

.staff-toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.staff-toast {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  pointer-events: auto;
}

.staff-toast span,
.staff-toast small {
  color: var(--muted);
  font-size: 12px;
}

.staff-toast.warning,
.staff-notification-row.warning {
  border-left-color: #f59e0b;
}

.staff-toast.danger,
.staff-notification-row.danger {
  border-left-color: #dc2626;
}

.staff-toast.success,
.staff-notification-row.success {
  border-left-color: #16a34a;
}

.staff-notification-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.staff-notification-list {
  display: grid;
  gap: 7px;
}

.staff-notification-row {
  display: grid;
  grid-template-columns: 104px minmax(170px, 1fr) minmax(180px, 1.2fr) 92px 72px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(29, 78, 216, 0.38);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.staff-notification-row.unread {
  background: #fffaf0;
}

.staff-notification-row strong,
.staff-notification-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-notification-row small,
.staff-notification-row time,
.staff-notification-row > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.staff-notification-kind {
  color: #1746b7;
  font-size: 12px;
  font-weight: 860;
}

.tech-card-grid,
.technical-grid {
  display: grid;
  gap: 12px;
}

.tech-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.technical-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.tech-card {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tech-card span {
  color: var(--muted);
  font-size: 12px;
}

.tech-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.tech-table {
  display: grid;
  gap: 7px;
}

.tech-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.9fr) minmax(110px, 0.9fr) 92px minmax(130px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px;
  border-radius: 7px;
  background: var(--soft);
}

.tech-row strong,
.tech-row span,
.tech-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-row small {
  color: var(--muted);
  font-size: 11px;
}

.tech-status {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #334155;
  background: #e2e8f0;
  font-size: 11px;
  font-weight: 900;
}

.tech-status.ok,
.tech-status.configured,
.tech-status.active {
  color: #166534;
  background: #dcfce7;
}

.tech-status.warning,
.tech-status.waiting_first_backup,
.tech-status.missing_bucket {
  color: #713f12;
  background: #fef3c7;
}

.tech-status.down,
.tech-status.disabled,
.tech-status.not_configured {
  color: #991b1b;
  background: #fee2e2;
}

.backup-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workspace-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.workspace-panel h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.workspace-panel h3 {
  margin: 4px 0 0;
  font-size: 14px;
  letter-spacing: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  min-height: 70px;
  padding: 10px;
  border-radius: 7px;
  background: var(--soft);
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span,
.list-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compact-form {
  display: grid;
  gap: 8px;
}

.inline-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
}

.compact-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.four-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seller-price-row {
  grid-template-columns:
    minmax(120px, 0.72fr)
    minmax(118px, 0.68fr)
    minmax(190px, 1fr)
    minmax(130px, 0.72fr)
    minmax(190px, 1fr);
  align-items: start;
}

.seller-price-row label,
.address-fields label {
  grid-template-rows: 16px 42px 18px;
  gap: 5px;
  min-height: 86px;
}

.address-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-price-row label:not(:has(.field-hint))::after,
.address-fields label:not(:has(.field-hint))::after {
  content: "";
  min-height: 18px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.panel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.seller-columns {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.seller-create-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.list-stack {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.staff-listings-panel .staff-order-stack {
  max-height: none;
  height: auto;
  flex: 1 1 auto;
}

.saved-listing-stack {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
}

.saved-listing-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 78px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.saved-listing-card:hover,
.saved-listing-card:focus-visible {
  border-color: rgba(29, 78, 216, 0.28);
  background: #f7faff;
  outline: none;
}

.saved-listing-card img {
  width: 84px;
  height: 62px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft-2);
}

.saved-listing-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.saved-listing-card strong,
.saved-listing-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-listing-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.saved-listing-card small {
  color: var(--muted);
  font-size: 11px;
}

.saved-listing-card em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 860;
}

.seller-listing-stack {
  max-height: 520px;
}

.seller-listings-summary {
  display: grid;
  gap: 12px;
}

.seller-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seller-status-tabs button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--soft);
  font-size: 12px;
  font-weight: 840;
}

.seller-status-tabs button.active {
  color: #fff;
  background: var(--accent);
}

.seller-status-tabs strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.seller-listing-table {
  display: grid;
  gap: 8px;
}

.seller-listing-table .seller-listing-preview {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  padding: 8px;
}

.seller-listing-table .seller-listing-preview img {
  width: 88px;
  height: 66px;
}

.seller-listing-table .seller-listing-info {
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  align-items: start;
  gap: 8px;
}

.seller-listing-table .seller-listing-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) minmax(130px, 0.68fr) minmax(190px, 1.1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.seller-listing-main {
  min-width: 0;
}

.seller-listing-table .seller-listing-main,
.seller-listing-table .seller-listing-head,
.seller-listing-table .seller-listing-price,
.seller-listing-table .seller-listing-meta,
.seller-listing-table .seller-boost-actions {
  min-width: 0;
}

.seller-listing-table .seller-listing-head {
  display: grid;
  gap: 5px;
}

.seller-listing-table .seller-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  max-height: 44px;
  overflow: hidden;
}

.seller-listing-table .seller-boost-actions {
  justify-content: flex-end;
}

.seller-listing-table .seller-moderation-note {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  gap: 3px;
  line-height: 1.35;
}

.seller-listing-table .seller-moderation-note span {
  overflow-wrap: anywhere;
}

.seller-listing-table .seller-moderation-note strong {
  color: #92400e;
  font-size: 11px;
}

.seller-locked-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 11px;
  font-weight: 840;
  white-space: nowrap;
}

.seller-leads-inline {
  display: grid;
  gap: 8px;
}

.list-line {
  padding: 10px;
  border-radius: 7px;
  background: var(--soft);
}

.seller-listing-preview {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seller-listing-preview img {
  width: 116px;
  height: 96px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft-2);
}

.seller-listing-info {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.seller-listing-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.seller-listing-head strong {
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #1746b7;
  background: #eaf1ff;
  font-size: 11px;
  font-weight: 860;
}

.seller-listing-price .price-main {
  font-size: 14px;
}

.seller-listing-price .price-secondary {
  font-size: 11px;
}

.seller-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.seller-boost-actions {
  margin-top: 2px;
}

.small-action.boost {
  color: #1d4ed8;
  background: #dbeafe;
}

.small-action.premium {
  color: #713f12;
  background: #fef3c7;
}

.compact-list {
  margin-top: 8px;
  max-height: 220px;
}

.as-button {
  width: 100%;
  border: 0;
  text-align: left;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.small-action.danger {
  color: #991b1b;
  background: #fee2e2;
}

.small-action.success {
  color: #14532d;
  background: #dcfce7;
}

.user-table {
  display: grid;
  gap: 8px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) minmax(140px, 180px);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.user-row.admin-user-row {
  grid-template-columns: 24px minmax(120px, 1.1fr) minmax(120px, 0.9fr) minmax(96px, 0.75fr) minmax(86px, 0.7fr) minmax(100px, 0.75fr) minmax(78px, 0.65fr) minmax(86px, 0.65fr) minmax(86px, 0.65fr) minmax(164px, 0.95fr);
  gap: 5px;
  align-items: center;
  padding: 7px 8px;
}

.user-row.admin-user-row .role-chip,
.user-row.admin-user-row .admin-status-icon {
  display: inline-grid;
  margin-top: 0;
}

.user-row.admin-user-row .admin-user-main span,
.user-row.admin-user-row .admin-user-meta span,
.user-row.admin-user-row .admin-user-meta small {
  margin-top: 0;
}

.user-row.admin-user-row .small-action {
  min-height: 30px;
  padding: 0 7px;
  font-size: 11px;
}

.account-form {
  gap: 12px;
}

.account-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.account-block {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workspace-panel .account-block h3,
.seller-photo-uploader h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
}

.account-status-block {
  align-content: start;
}

.account-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.account-status-row:last-child {
  border-bottom: 0;
}

.account-status-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.account-status-row strong {
  overflow: hidden;
  max-width: 60%;
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.seller-account-grid {
  grid-template-columns: minmax(260px, 0.82fr) minmax(260px, 0.92fr) minmax(240px, 0.72fr);
}

.seller-stats-block,
.seller-create-block {
  grid-column: 1 / -1;
}

.seller-create-form {
  background: #fbfcff;
}

.seller-post-panel .seller-create-form {
  padding: 14px;
  background: #fbfcff;
}

.seller-create-form label {
  min-width: 0;
}

.seller-create-form label:has([required]) > span::after,
.account-form label:has([required]) > span::after {
  content: " *";
  color: #dc2626;
  font-weight: 900;
}

.seller-create-form input:not([type="checkbox"]):not([type="file"]),
.seller-create-form select {
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
}

.seller-create-form textarea {
  min-height: 94px;
  resize: vertical;
}

.seller-submit-success {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.96), rgba(240, 253, 244, 0.96));
}

.seller-submit-success h2 {
  margin: 0 0 6px;
  color: #14532d;
  font-size: 24px;
  line-height: 1.18;
}

.success-check {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.field-hint {
  display: block;
  overflow: hidden;
  min-height: 15px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-photo-uploader {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(36, 89, 189, 0.42);
  border-radius: 8px;
  background: #f8fbff;
}

.seller-document-uploader {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(22, 163, 74, 0.42);
  border-radius: 8px;
  background: #f8fff9;
}

.seller-photo-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.seller-photo-head p,
.photo-dropzone small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.seller-photo-head strong {
  padding: 5px 8px;
  border-radius: 999px;
  color: #1746b7;
  background: #eaf1ff;
  font-size: 12px;
}

.photo-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}

.photo-dropzone:hover {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.08);
}

.photo-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-dropzone span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.document-dropzone span {
  color: #15803d;
}

.seller-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.seller-photo-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.seller-photo-tile {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e5e7eb;
}

.seller-photo-tile.main {
  border-color: #f2c94c;
  box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.18);
}

.seller-photo-tile img {
  width: 100%;
  height: 118px;
  display: block;
  object-fit: cover;
}

.seller-photo-index,
.seller-photo-remove,
.seller-photo-main {
  position: absolute;
  z-index: 2;
}

.seller-photo-index {
  top: 6px;
  left: 6px;
  min-width: 24px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.seller-photo-remove {
  top: 6px;
  right: 6px;
  width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 18px;
  line-height: 1;
}

.seller-photo-main {
  left: 6px;
  right: 6px;
  bottom: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 7px;
  color: #fff;
  background: rgba(15, 23, 42, 0.74);
  font-size: 11px;
  font-weight: 900;
}

.seller-photo-tile.main .seller-photo-main {
  color: #5f4200;
  background: #ffe46b;
}

#sellerPhotoResult,
#sellerDocumentResult {
  color: var(--muted);
  font-size: 12px;
}

.seller-document-list {
  display: grid;
  gap: 7px;
}

.seller-document-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid rgba(187, 211, 196, 0.94);
  border-radius: 8px;
  background: #fff;
}

.seller-document-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: 6px;
  color: #166534;
  background: #dcfce7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.seller-document-row strong,
.seller-document-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-document-row strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}

.seller-document-row small {
  color: var(--muted);
  font-size: 11px;
}

.seller-document-remove {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 18px;
  line-height: 1;
}

dialog {
  border: 0;
  padding: 0;
  max-width: min(920px, calc(100vw - 24px));
  width: 920px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(23, 33, 29, 0.38);
}

.close-dialog {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  font-size: 24px;
}

.detail-content {
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-content h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.contact-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.hidden {
  display: none !important;
}

.detail-page {
  padding: 22px clamp(18px, 4vw, 56px) 48px;
}

.category-page {
  display: grid;
  gap: 18px;
}

.category-hero {
  display: grid;
  gap: 6px;
  min-height: 168px;
  align-content: end;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.78), rgba(11, 18, 32, 0.28)),
    url("https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1800&q=82") center / cover;
}

body[data-view="category-houses"] .category-hero {
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.8), rgba(11, 18, 32, 0.24)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Uzbek_house_yard_in_Fergana_province_of_Uzbekistan.jpg/1280px-Uzbek_house_yard_in_Fergana_province_of_Uzbekistan.jpg") center 58% / cover;
}

body[data-view="category-commercial"] .category-hero {
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.8), rgba(11, 18, 32, 0.24)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/IBC_Tashkent_c.jpg/1280px-IBC_Tashkent_c.jpg") center 54% / cover;
}

.category-hero p,
.category-hero h1 {
  margin: 0;
}

.category-hero p {
  font-size: 13px;
  font-weight: 800;
}

.category-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.category-hero span {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-tile {
  width: 100%;
  min-height: 148px;
  flex: none;
}

.post-promo-page {
  display: grid;
  gap: 16px;
}

.post-promo-hero {
  display: grid;
  gap: 12px;
  min-height: 360px;
  align-content: end;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.86), rgba(21, 25, 35, 0.28)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.post-promo-hero p,
.post-promo-hero h1 {
  margin: 0;
}

.post-promo-hero p {
  font-size: 13px;
  font-weight: 860;
  text-transform: uppercase;
}

.post-promo-hero h1 {
  max-width: 780px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.post-promo-hero > span {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 680;
}

.post-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.post-promo-actions .ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.post-promo-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(8, 117, 82, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.post-promo-auth p,
.post-promo-auth h2,
.post-promo-auth span {
  margin: 0;
}

.post-promo-auth-copy {
  display: grid;
  gap: 6px;
}

.post-promo-auth p {
  color: #047857;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.post-promo-auth h2 {
  margin-top: 4px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
}

.post-promo-auth span {
  max-width: 720px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.post-promo-auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.post-promo-auth .ghost {
  border-color: rgba(4, 120, 87, 0.22);
  background: #fff;
  color: #065f46;
}

.post-promo-auth.signed-in {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.98)),
    #fff;
}

.post-promo-auth.signed-in p {
  color: #b45309;
}

.post-promo-auth.signed-in button {
  justify-self: end;
}

.post-promo-stats,
.post-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.post-promo-stats .metric {
  background: #fff;
  border: 1px solid var(--line);
}

.post-promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-promo-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-promo-grid strong {
  font-size: 16px;
}

.post-promo-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.detail-page-inner {
  display: grid;
  gap: 18px;
}

.back-button {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-gallery,
.detail-summary,
.detail-description,
.detail-section,
.similar-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 25, 35, 0.06);
}

.similar-section {
  overflow: hidden;
}

.detail-gallery {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.detail-gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: var(--soft-2);
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--soft-2);
  cursor: zoom-in;
}

.detail-gallery.zoomed .detail-main-image {
  aspect-ratio: 16 / 9;
  min-height: min(68vh, 620px);
  cursor: zoom-out;
}

.detail-gallery.zoomed .detail-gallery-frame {
  background: #0f172a;
}

.detail-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.56);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.detail-gallery-nav:hover,
.detail-gallery-nav:focus-visible {
  background: rgba(15, 23, 42, 0.78);
  outline: none;
}

.detail-gallery-nav.prev {
  left: 12px;
}

.detail-gallery-nav.next {
  right: 12px;
}

.detail-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.66);
  font-size: 12px;
  font-weight: 820;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.detail-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  background: transparent;
}

.detail-thumbs button.active {
  border-color: var(--accent);
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.detail-summary,
.detail-description,
.detail-section,
.similar-section {
  padding: 18px;
}

.detail-summary h1,
.detail-description h2,
.detail-section h2,
.similar-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

.detail-summary h1 {
  font-size: clamp(24px, 2vw, 30px);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-summary .meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.detail-summary .tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  max-height: 30px;
  overflow: hidden;
}

.detail-summary .tags .tag {
  flex: 0 0 auto;
}

.detail-summary {
  display: grid;
  position: relative;
  align-self: start;
  grid-template-rows: auto auto auto minmax(0, 30px) auto minmax(220px, 1fr);
  align-content: start;
  height: var(--detail-gallery-height, auto);
  max-height: var(--detail-gallery-height, none);
  min-height: 0;
  gap: 8px;
  padding: 22px 16px 14px;
  overflow: hidden;
}

.detail-top-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
}

.detail-top-actions .icon-action {
  border-color: rgba(203, 213, 225, 0.86);
  background: rgba(255, 255, 255, 0.98);
}

.contact-box {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  min-height: 0;
  max-height: 138px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-seller-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.seller-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #dbeafe;
}

.seller-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 900;
}

.detail-seller-row strong,
.detail-seller-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-seller-row small,
.contact-protected {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
}

.contact-protected {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-contact-actions button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-call-button {
  min-height: 38px;
  font-size: 15px;
  font-weight: 860;
}

.detail-message-button {
  min-height: 38px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: #fff;
  white-space: nowrap;
}

.contact-box output {
  min-height: 0;
  font-size: 13px;
}

.contact-box output:empty {
  display: none;
}

.detail-location-card {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  box-shadow: 0 8px 24px rgba(21, 25, 35, 0.06);
}

.detail-summary .detail-location-card {
  grid-template-rows: auto minmax(190px, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 6px;
}

.detail-location-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.detail-location-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail-location-head strong {
  font-size: 15px;
}

.detail-location-head span,
.detail-location-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
}

.detail-location-map {
  width: 100%;
  min-height: 220px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dbeafe;
}

.detail-location-map[role="button"] {
  cursor: pointer;
}

.detail-summary .detail-location-map {
  min-height: 190px;
  height: 100%;
  max-height: none;
}

.detail-summary .detail-location-meta {
  display: none;
}

.detail-location-map.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 760;
}

.detail-location-map .leaflet-container,
.detail-location-map.leaflet-container {
  border-radius: 8px;
}

.detail-location-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 12px;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-location-meta a {
  color: var(--accent);
  font-weight: 820;
}

body.detail-map-open {
  overflow: hidden;
}

.detail-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.detail-map-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.3);
}

.detail-map-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.detail-map-header span,
.detail-map-header small {
  display: grid;
  min-width: 0;
}

.detail-map-header small {
  color: var(--muted);
  font-size: 12px;
}

.detail-map-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  min-height: 0;
}

.detail-map-large {
  min-height: 540px;
  background: #dbeafe;
}

.detail-nearby-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border-left: 1px solid var(--line);
  background: #f8fafc;
}

.detail-nearby-resize {
  display: none;
}

.detail-nearby-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.nearby-listing-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.nearby-listing-row:hover,
.nearby-listing-row:focus-visible {
  border-color: rgba(29, 78, 216, 0.34);
  background: #eef4ff;
  outline: none;
}

.nearby-listing-row img {
  grid-row: span 2;
  width: 72px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.nearby-listing-row span {
  min-width: 0;
}

.nearby-listing-row strong,
.nearby-listing-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-listing-row small {
  color: var(--muted);
  font-size: 12px;
}

.nearby-listing-row em {
  grid-column: 2;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.detail-nearby-popup {
  width: 220px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.detail-description p {
  color: var(--muted);
  line-height: 1.6;
}

.detail-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.detail-table div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border-radius: 7px;
  background: var(--soft);
}

.detail-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-table strong {
  font-size: 14px;
}

.option-tags {
  margin-top: 12px;
}

.detail-id-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.detail-id-section strong {
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.similar-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, calc((100% - 36px) / 4));
  grid-template-columns: none;
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.similar-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  scroll-snap-align: start;
}

.similar-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.similar-card span {
  color: var(--accent);
  font-weight: 800;
}

.auth-dialog {
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.24);
}

.auth-dialog.staff-auth-dialog {
  width: min(400px, calc(100vw - 24px));
}

.auth-dialog .close-dialog {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: var(--soft);
  box-shadow: none;
  font-size: 20px;
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #fff;
}

.auth-form h2 {
  margin: 0;
  padding-right: 40px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-form .ghost {
  width: 100%;
  min-height: 38px;
  color: var(--accent);
  background: rgba(29, 78, 216, 0.08);
  font-weight: 760;
}

output {
  display: block;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
}

.staff-listings-panel #staffActionResult:empty {
  display: none;
  min-height: 0;
}

.site-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
  gap: 26px;
  width: min(1320px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 840;
  line-height: 1;
}

.footer-brand p {
  max-width: 360px;
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-nav div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-nav strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
}

.footer-nav button,
.footer-bottom button {
  justify-self: start;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.footer-nav button:hover,
.footer-nav button:focus-visible,
.footer-bottom button:hover,
.footer-bottom button:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(221, 226, 234, 0.72);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .search-form {
    grid-template-columns: 86px repeat(6, minmax(0, 1fr)) 42px 98px;
    align-items: stretch;
  }

  .location-filter,
  .more-filter {
    grid-column: span 2;
  }

  .advanced-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-advanced-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .option-checks {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .search-form .wide {
    grid-column: span 2;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-grid.map-open {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .content-grid.map-expanded {
    grid-template-columns: minmax(620px, 1fr) minmax(260px, 320px);
  }

  .results {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  }

  .map-panel {
    height: min(720px, calc(100vh - 92px));
    min-height: 520px;
  }

  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-panel.wide,
  .workspace-panel.full {
    grid-column: 1 / -1;
  }

  .panel-columns,
  .seller-columns,
  .account-shell,
  .inline-form,
  .account-block-grid,
  .seller-account-grid,
  .admin-user-profile-grid,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .tech-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-sidebar {
    position: static;
  }

  .detail-hero,
  .detail-info-grid,
  .category-grid,
  .post-promo-auth {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main-nav,
  .account {
    justify-content: start;
  }

  .search-form {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .location-filter {
    grid-column: auto;
  }

  .search-form .filter-menu:not(.location-filter),
  .more-filter,
  .sort-filter,
  .search-submit {
    grid-column: 1 / -1;
  }

  .filter-clear-all {
    grid-column: auto;
    justify-self: start;
  }

  .filter-menu {
    width: auto;
    min-width: 0;
  }

  .location-filter,
  .more-filter {
    width: auto;
  }

  .filter-popover,
  .location-popover,
  .price-popover,
  .rooms-popover,
  .more-filter .filter-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: 1fr 1fr;
    box-shadow: none;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) {
    display: block;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > :not(.filter-menu[open]) {
    display: none;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] {
    position: fixed;
    top: 58px;
    right: 8px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 1520;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: auto;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: 48px;
    min-height: 48px;
    padding: 6px 76px 6px 44px;
    border-color: rgba(29, 78, 216, 0.2);
    background: #f8fbff;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .filter-count {
    right: 44px;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary::before {
    content: "←";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    border-radius: 8px;
    color: var(--accent);
    background: #eaf1ff;
    font-size: 17px;
    font-weight: 920;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary::after {
    right: 14px;
    top: 21px;
    transform: rotate(135deg);
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > .filter-popover {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 12px 2px 76px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .advanced-grid,
  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .compact-advanced-grid,
  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .option-checks {
    grid-template-columns: 1fr;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .filter-actions {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding: 10px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 32%);
  }

  .advanced-popover {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .compact-advanced-grid,
  .option-checks {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .content-grid,
  .content-grid.map-open {
    grid-template-columns: 1fr;
  }

  .content-grid.map-expanded {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-card {
    height: 448px;
  }

  .filters {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 18px;
  }

  .brand {
    min-height: 34px;
  }

  .brand-word {
    display: none;
  }

  .mobile-location-picker {
    position: relative;
    display: block;
    min-width: 0;
    justify-self: stretch;
  }

  .mobile-location-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    justify-items: start;
    width: 100%;
    min-height: 38px;
    padding: 5px 30px 5px 10px;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 10px;
    color: #172033;
    background: #fff;
    text-align: left;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  }

  .mobile-location-trigger::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 16px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.58;
  }

  .mobile-location-trigger span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 760;
    line-height: 1;
  }

  .mobile-location-trigger strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    font-weight: 880;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-location-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 1320;
    display: grid;
    gap: 9px;
    min-width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  }

  .mobile-location-panel label {
    gap: 4px;
  }

  .mobile-location-panel select {
    min-height: 42px;
    font-size: 16px;
  }

  .mobile-location-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .mobile-top-controls {
    display: flex;
  }

  .mobile-menu-button {
    display: none !important;
    place-items: center;
    width: 34px;
    height: 34px;
    gap: 3px;
    justify-self: end;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .mobile-menu-button span {
    width: 23px;
    height: 3px;
    background: #172033;
  }

  .mobile-menu-panel {
    display: none !important;
    position: fixed;
    top: 58px;
    right: 12px;
    left: 12px;
    z-index: 1305;
    display: grid;
    gap: 10px;
    max-height: calc(100dvh - 74px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    overflow: auto;
  }

  .mobile-menu-layout {
    grid-template-columns: minmax(82px, 0.46fr) minmax(0, 1fr);
  }

  .mobile-menu-deals button,
  .mobile-menu-grid button,
  .mobile-menu-actions button,
  .mobile-menu-quick button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12.5px;
  }

  .mobile-menu-deals button {
    font-weight: 860;
  }

  .main-nav,
  .account {
    display: none;
  }

  .main-nav button,
  .nav-dropdown summary,
  .account button {
    min-height: 32px;
    padding: 0 9px;
  }

  .nav-menu {
    position: fixed;
    top: 92px;
    left: 18px;
    right: 18px;
    min-width: 0;
  }

  .mega-menu,
  .main-nav .mega-dropdown:last-child .mega-menu {
    left: 18px;
    right: 18px;
    width: auto;
    grid-template-columns: 1fr;
    transform: none;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1510;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav button {
    display: grid;
    grid-template-rows: 20px auto;
    place-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 4px 3px;
    border-radius: 10px;
    color: #334155;
    background: transparent;
    font-size: 10.5px;
    font-weight: 820;
    line-height: 1.05;
    text-align: center;
  }

  .mobile-bottom-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 20px;
    font-size: 0;
    font-weight: 920;
    line-height: 1;
  }

  .mobile-bottom-icon::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background: currentColor;
    -webkit-mask: var(--mobile-nav-icon) center / contain no-repeat;
    mask: var(--mobile-nav-icon) center / contain no-repeat;
  }

  .mobile-bottom-nav [data-mobile-action="home"] {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 11.5 12 5l8 6.5V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1v-8.5Z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .mobile-bottom-nav [data-mobile-action="favorites"] {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 20s-7-4.4-9-9.2C1.5 7.3 3.6 4.5 6.8 4.5c1.8 0 3.1.9 4.2 2.2 1.1-1.3 2.4-2.2 4.2-2.2 3.2 0 5.3 2.8 3.8 6.3C19 15.6 12 20 12 20Z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .mobile-bottom-nav [data-mobile-action="filters"] {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h6M14 7h6M4 12h11M19 12h1M4 17h3M11 17h9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7' r='2' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='17' cy='12' r='2' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='9' cy='17' r='2' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E");
  }

  .mobile-bottom-nav [data-mobile-action="map"] {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 5-2 6 2 5-2v14l-5 2-6-2-5 2V6Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 4v14M15 6v14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .mobile-bottom-nav [data-mobile-action="profile"] {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 21V4.5A1.5 1.5 0 0 1 8.5 3H18v18H7Z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M7 21H4M11 12h.01' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .mobile-bottom-nav button:hover,
  .mobile-bottom-nav button:focus-visible {
    color: var(--accent);
    background: #eef4ff;
    outline: none;
  }

  body.map-fullscreen-active .mobile-bottom-nav {
    display: grid;
    z-index: 1600;
  }

  body.mobile-filters-open {
    overflow: hidden;
  }

  body.mobile-filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1490;
    background: rgba(15, 23, 42, 0.34);
  }

  body.mobile-filters-open .search-band {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 1500;
    max-height: calc(100dvh - 94px);
    padding: 10px;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 68px rgba(15, 23, 42, 0.32);
    overflow: auto;
  }

  body.mobile-filters-open .search-form {
    padding: 0;
    background: transparent;
  }

  body[data-view="home"]:not(.mobile-filters-open):not(.map-fullscreen-active) .search-band {
    display: none;
  }

  body.mobile-filters-open .search-band,
  body.map-fullscreen-active.mobile-map-filters-open .search-band {
    display: block;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .content-grid,
  .detail-hero,
  .detail-info-grid,
  .post-promo-auth,
  .detail-table,
  .workspace-grid,
  .account-shell,
  .account-block-grid,
  .seller-account-grid,
  .admin-user-profile-grid,
  .admin-profile-edit .compact-form,
  .compact-form .two,
  .four-fields,
  .check-grid,
  .metric-grid.three,
  .metric-grid.four,
  .user-row {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: start;
  }

  .account-sidebar {
    position: static;
  }

  .account-shell:not(.staff-shell)[data-account-mobile-subpage="false"] .account-content {
    display: none;
  }

  .account-shell:not(.staff-shell)[data-account-mobile-subpage="true"] .account-sidebar {
    display: none;
  }

  .account-shell:not(.staff-shell)[data-account-mobile-subpage="true"] .account-content {
    display: grid;
  }

  .account-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    text-align: left;
  }

  .account-mobile-back span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--accent);
    background: #eaf1ff;
    font-weight: 920;
  }

  .account-mobile-back strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-search-toggle {
    display: none !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 8px;
  }

  .map-search-toggle span {
    font-size: 12px;
  }

  .map-toggle-icon {
    width: 18px;
    height: 18px;
  }

  .staff-search-row,
  .user-row.admin-user-row,
  .staff-notification-row,
  .tech-row,
  .backup-settings-grid {
    grid-template-columns: 1fr;
  }

  .staff-notification-toolbar {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .staff-notification-toolbar .small-action {
    width: 100%;
  }

  .staff-notification-row strong,
  .staff-notification-row small,
  .staff-notification-row time,
  .staff-notification-row > span:last-child,
  .tech-row strong,
  .tech-row span,
  .tech-row small {
    white-space: normal;
  }

  .tech-card-grid {
    grid-template-columns: 1fr;
  }

  .staff-toast-root {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .location-filter {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
  }

  .search-form > .filter-menu:not(.location-filter):not(.price-filter):not(.rooms-filter):not(.more-filter) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    width: calc(50% - 3px);
  }

  .search-form > .price-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    width: calc(50% - 3px);
  }

  .search-form > .rooms-filter {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    width: calc(50% - 3px);
  }

  .search-form > .more-filter {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    width: calc(50% - 3px);
  }

  .filter-clear-all {
    display: none !important;
  }

  .sort-filter {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: stretch;
    width: 100%;
    padding-left: 0;
  }

  .search-submit {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    min-height: 48px;
  }

  .filter-menu {
    width: 100%;
    min-width: 0;
  }

  .search-form > .sort-filter {
    width: 100%;
    min-width: 0;
  }

  .search-form > .search-sort {
    display: none;
  }

  .filter-menu summary {
    height: 48px;
    min-height: 48px;
    padding: 6px 66px 6px 11px;
  }

  .filter-menu summary::before {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 13px;
  }

  .filter-menu summary::after {
    right: 12px;
    top: 20px;
  }

  .filter-menu[open] summary::after {
    top: 23px;
  }

  .filter-count {
    right: 34px;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.18);
    font-size: 11px;
  }

  .advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-popover,
  .location-popover,
  .price-popover,
  .rooms-popover,
  .more-filter .filter-popover {
    position: static;
    width: 100%;
    margin-top: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    box-shadow: none;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]),
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) {
    display: block;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > :not(.filter-menu[open]),
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > :not(.filter-menu[open]) {
    display: none;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open],
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] {
    position: fixed;
    top: auto;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 1520;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    justify-self: stretch;
    width: auto;
    min-width: 0;
    height: min(75dvh, calc(100dvh - 90px));
    max-height: min(75dvh, calc(100dvh - 90px));
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    overflow: hidden;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: 52px;
    min-height: 52px;
    padding: 7px 78px 7px 46px;
    border-color: rgba(29, 78, 216, 0.2);
    background: #f8fbff;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .filter-count,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .filter-count {
    right: 44px;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary::before,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary::before {
    content: "←";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    border-radius: 8px;
    color: var(--accent);
    background: #eaf1ff;
    font-size: 17px;
    font-weight: 920;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary::after,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > summary::after {
    right: 14px;
    top: 23px;
    transform: rotate(135deg);
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > .filter-popover,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] > .filter-popover {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    padding: 12px 2px 112px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .advanced-grid,
  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .compact-advanced-grid,
  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .option-checks,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .advanced-grid,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .compact-advanced-grid,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .option-checks {
    grid-template-columns: 1fr;
  }

  body.mobile-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .compact-advanced-grid,
  body.mobile-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .option-checks,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .compact-advanced-grid,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .option-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.mobile-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .transit-filter,
  body.mobile-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .option-checks,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .transit-filter,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .option-checks {
    grid-column: 1 / -1;
  }

  body.mobile-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .check-row,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.more-filter[open]) > .more-filter[open] .check-row {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 11px;
  }

  body.mobile-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .filter-actions,
  body.map-fullscreen-active.mobile-map-filters-open .search-form:has(.filter-menu[open]) > .filter-menu[open] .filter-actions {
    position: fixed;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 1535;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding: 10px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
  }

  .filter-actions {
    gap: 8px;
  }

  .filter-reset,
  .filter-apply {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    overflow: hidden;
    border-radius: 9px;
    font-size: 0;
    text-indent: -999px;
  }

  .filter-reset::before,
  .filter-apply::before {
    text-indent: 0;
    font-size: 18px;
    line-height: 1;
  }

  .filter-reset::before {
    content: "🧹";
  }

  .filter-apply {
    width: 56px;
    min-width: 56px;
    border: 1px solid rgba(29, 78, 216, 0.34);
    color: #1746b7;
    background: #eef4ff;
  }

  .filter-apply::before {
    content: "✓";
    font-size: 22px;
    font-weight: 920;
  }

  .compact-advanced-grid,
  .option-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .compact-advanced-grid label,
  .compact-advanced-grid .filter-field {
    grid-template-rows: auto 38px;
    min-height: 58px;
    gap: 5px;
  }

  .quick-input {
    min-height: 38px;
    grid-template-columns: minmax(38px, 1fr) auto;
  }

  .quick-input input {
    min-height: 36px;
    padding-inline: 7px;
  }

  .quick-tiles button {
    min-height: 22px;
    padding: 0 5px;
    font-size: 10px;
  }

  .check-row {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  .search-form .wide {
    grid-column: 1 / -1;
  }

  .filters {
    position: relative;
    top: auto;
  }

  .content-grid.map-open {
    grid-template-columns: 1fr;
  }

  .site-footer {
    gap: 12px;
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .footer-brand {
    gap: 8px;
  }

  .footer-brand p {
    max-width: none;
    font-size: 11px;
    line-height: 1.35;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-nav div {
    gap: 5px;
    min-width: 0;
  }

  .footer-nav strong {
    font-size: 11px;
  }

  .footer-nav button,
  .footer-bottom button {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 10.5px;
    line-height: 1.2;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
    justify-content: stretch;
    padding-top: 10px;
  }

  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .market-hero {
    min-height: 154px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .promo-banner {
    flex-basis: min(82vw, 280px);
    min-height: 108px;
  }

  .detail-contact-actions,
  .detail-location-head,
  .detail-map-body {
    grid-template-columns: 1fr;
  }

  .similar-section {
    overflow: hidden;
  }

  .similar-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 10px) / 2);
    grid-template-columns: none;
    grid-template-rows: 1fr;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .similar-card {
    min-width: 0;
    scroll-snap-align: start;
  }

  .saved-listing-stack {
    max-height: none;
  }

  .saved-listing-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 72px;
  }

  .saved-listing-card img {
    width: 78px;
    height: 58px;
  }

  .detail-map-overlay {
    padding: 8px;
  }

  .detail-map-panel {
    --detail-nearby-height: 32vh;
    height: calc(100dvh - 16px);
  }

  .detail-map-panel.nearby-expanded {
    --detail-nearby-height: 62vh;
  }

  .detail-map-body {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .detail-map-large {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .detail-nearby-panel {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 550;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: var(--detail-nearby-height);
    max-height: none;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 -16px 42px rgba(15, 23, 42, 0.2);
    transition: height 180ms ease;
  }

  .detail-map-panel.nearby-dragging .detail-nearby-panel {
    transition: none;
  }

  .detail-map-panel.nearby-expanded .detail-nearby-panel {
    height: min(62dvh, calc(100dvh - 132px));
  }

  .detail-nearby-resize {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 52px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    touch-action: none;
  }

  .detail-nearby-resize::before {
    content: "";
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.48);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .post-promo-auth-actions {
    justify-content: flex-start;
  }

  .listing-card {
    height: 318px;
    padding: 7px;
  }

  .card-gallery {
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
  }

  .listing-card.premium-listing .card-gallery {
    padding-top: 0;
  }

  .listing-card.premium-listing .card-gallery > img {
    height: 100%;
  }

  .listing-card.premium-listing::before {
    top: 12px;
    left: 12px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .card-tools {
    top: 12px;
    right: 12px;
    gap: 4px;
  }

  .icon-action {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .listing-body {
    gap: 5px;
    padding-top: 7px;
  }

  .price {
    font-size: 13.5px;
  }

  .price-converted {
    font-size: 10px;
  }

  .listing-card h2 {
    font-size: 13px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .listing-card .meta {
    gap: 3px;
    max-height: 31px;
    font-size: 11px;
  }

  .listing-card .card-tags {
    flex-wrap: nowrap;
    flex-basis: auto;
    min-height: 22px;
    max-height: 22px;
    gap: 4px;
  }

  .listing-card .tag {
    flex: 0 0 auto;
    min-height: 20px;
    padding: 0 5px;
    font-size: 9.5px;
  }

  .thumb-row {
    display: none;
  }

  .filter-nudge {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .filter-nudge button {
    width: 100%;
  }

  .filter-nudge-links {
    justify-content: stretch;
    max-width: none;
  }

  .filter-nudge-links button {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
  }

  .workspace-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .listing-head {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    max-height: none;
    gap: 4px;
  }

  .status-icons {
    justify-content: end;
    width: min-content;
    max-width: 44px;
  }

  .status-icon {
    width: 19px;
    height: 19px;
    font-size: 11px;
    border-radius: 6px;
  }

  .status-docs::before,
  .status-docs::after {
    width: 8px;
    height: 10px;
    border-width: 1.4px;
  }

  .detail-image {
    min-height: 220px;
  }

  .map-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
  }

  .map-toolbar .segmented {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .map-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
  }

  body.mobile-map-mode #expandMap,
  body.mobile-map-mode #collapseMap {
    display: none !important;
  }

  .map-icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
    font-size: 0;
  }

  .map-icon-button::before {
    display: grid;
    place-items: center;
    text-indent: 0;
    font-size: 18px;
    font-weight: 900;
  }

  #closeMap::before {
    content: "×";
  }

  #expandMap::before {
    content: "⛶";
  }

  #collapseMap::before {
    content: "↙";
  }

  #resetMap::before {
    content: "↺";
  }

  #mapBackLevel::before {
    content: "←";
  }

  .map-zoom {
    width: 78px;
    min-width: 78px;
    justify-content: center;
    gap: 2px;
  }

  .map-zoom output {
    display: none;
  }

  body.map-fullscreen-active .map-panel.map-fullscreen {
    inset: 0 0 calc(64px + env(safe-area-inset-bottom)) 0;
    height: auto;
  }

  body.map-fullscreen-active .map-panel.map-fullscreen .map-toolbar {
    position: relative;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: 38px 36px;
    min-height: 92px;
    padding: 8px 10px 7px;
  }

  body.map-fullscreen-active .map-mobile-brand {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
  }

  body.map-fullscreen-active .map-mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  body.map-fullscreen-active .map-title {
    display: none;
  }

  body.map-fullscreen-active .map-toolbar .segmented {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 5px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 1px;
    scrollbar-width: none;
  }

  body.map-fullscreen-active .map-toolbar .segmented::-webkit-scrollbar {
    display: none;
  }

  body.map-fullscreen-active .map-toolbar .segmented button {
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    white-space: nowrap;
  }

  body.map-fullscreen-active .map-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: end;
    max-width: calc(100vw - 62px);
    overflow: hidden;
  }

  body.map-fullscreen-active .map-zoom {
    position: fixed;
    top: 104px;
    right: 10px;
    z-index: 1302;
    display: grid;
    grid-template-columns: 1fr;
    width: 38px;
    min-width: 38px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  }

  body.map-fullscreen-active .map-zoom button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
  }

  body.map-fullscreen-active .search-band {
    top: 10px;
    right: auto;
    left: 10px;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  body.map-fullscreen-active:not(.mobile-map-filters-open) .search-band {
    display: none;
  }

  body.map-fullscreen-active .search-form {
    grid-template-columns: 42px;
    gap: 0;
    padding: 0;
    background: transparent;
  }

  body.map-fullscreen-active:not(.mobile-map-filters-open) .search-form > :not(.mobile-filter-toggle) {
    display: none !important;
  }

  body.map-fullscreen-active .mobile-filter-toggle {
    display: none !important;
    place-items: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(29, 78, 216, 0.24);
    border-radius: 9px;
    color: #1746b7;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    text-indent: -999px;
    pointer-events: auto;
  }

  body.map-fullscreen-active .mobile-filter-toggle::before {
    content: "mh";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid currentColor;
    border-radius: 8px;
    text-indent: 0;
    font-size: 12px;
    font-weight: 920;
    line-height: 1;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-band {
    top: auto;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-height: min(66dvh, calc(100dvh - 150px));
    padding: 10px;
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    overflow: auto;
    pointer-events: auto;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.28);
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-items: start;
  }

  body.map-fullscreen-active.mobile-map-filters-open #countrySelect,
  body.map-fullscreen-active.mobile-map-filters-open .map-search-toggle {
    display: none !important;
  }

  body.map-fullscreen-active.mobile-map-filters-open .mobile-filter-toggle {
    display: none !important;
  }

  body.map-fullscreen-active.mobile-map-filters-open .location-filter {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-form > .filter-menu:not(.location-filter):not(.price-filter):not(.rooms-filter):not(.more-filter),
  body.map-fullscreen-active.mobile-map-filters-open .search-form > .price-filter,
  body.map-fullscreen-active.mobile-map-filters-open .search-form > .rooms-filter,
  body.map-fullscreen-active.mobile-map-filters-open .search-form > .more-filter {
    grid-column: 1 / -1;
    width: calc(50% - 4px);
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-form > .filter-menu:not(.location-filter):not(.price-filter):not(.rooms-filter):not(.more-filter) {
    grid-row: 2;
    justify-self: start;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-form > .price-filter {
    grid-row: 2;
    justify-self: end;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-form > .rooms-filter {
    grid-row: 3;
    justify-self: start;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-form > .more-filter {
    grid-row: 3;
    justify-self: end;
  }

  body.map-fullscreen-active.mobile-map-filters-open .filter-clear-all {
    display: none !important;
  }

  body.map-fullscreen-active.mobile-map-filters-open .sort-filter {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    padding-left: 0;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-submit {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
  }

  body.map-fullscreen-active.mobile-map-filters-open .mobile-filter-toggle {
    background: var(--accent);
    color: #fff;
  }

  body.map-fullscreen-active.mobile-map-filters-open .search-band:has(.filter-menu[open]) {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .map-canvas.has-map-card .map-stage {
    right: 0;
    bottom: 214px;
  }

  .map-floating-card {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .map-floating-card img {
    grid-row: span 4;
    height: 92px;
  }

  .map-preview {
    left: -80px;
    bottom: 44px;
  }

  .leaflet-popup.listing-popup .leaflet-popup-content {
    width: min(300px, calc(100vw - 52px)) !important;
    margin: 10px;
  }

  .leaflet-listing-popup {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    min-width: 0;
    max-width: calc(100vw - 52px);
    gap: 8px;
  }

  .leaflet-listing-popup img {
    width: 96px;
    height: 86px;
  }

  .leaflet-popup-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .leaflet-popup-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .results-toolbar {
    gap: 8px;
    padding: 10px 18px 0;
  }

  .results-toolbar .status-line {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.2;
  }

  .results-toolbar .sort-filter {
    display: inline-grid;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    width: auto;
    min-width: 132px;
    max-width: 46vw;
    padding-left: 0;
  }

  .results-toolbar .sort-filter span {
    display: none;
  }

  .results-toolbar .sort-filter select {
    height: 36px;
    min-height: 36px;
    padding: 0 28px 0 9px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 14px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 9px 12px;
  }

  .brand {
    justify-self: start;
  }

  .mobile-menu-panel {
    top: 54px;
    right: 8px;
    left: 8px;
    max-height: calc(100dvh - 68px);
    padding: 10px;
  }

  .mobile-menu-layout {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .mobile-menu-deals,
  .mobile-menu-actions,
  .mobile-menu-grid,
  .mobile-menu-quick,
  .mobile-menu-selects {
    gap: 6px;
  }

  .search-band,
  .results-toolbar,
  .listing-head,
  .content-grid,
  .workspace,
  .site-footer,
  .market-hero,
  .promo-carousel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-form {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .map-search-toggle {
    width: 76px;
  }

  .filter-summary span,
  .sort-filter select,
  .filter-menu summary {
    font-size: 12px;
  }

  .sort-filter select {
    font-size: 15px;
  }

  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .listing-card {
    height: 304px;
    min-height: 0;
  }

  .seller-listing-preview,
  .map-floating-card {
    grid-template-columns: 1fr;
  }

  .seller-listing-table .seller-listing-preview,
  .seller-listing-table .seller-listing-info,
  .seller-listing-table .seller-listing-main {
    grid-template-columns: 1fr;
  }

  .seller-listing-table .seller-listing-preview img {
    width: 100%;
    height: 150px;
  }

  .seller-listing-table .seller-boost-actions {
    justify-content: flex-start;
  }

  .seller-listing-preview img,
  .map-floating-card img {
    width: 100%;
  }

  .admin-overview-grid,
  .metric-grid,
  .metric-grid.three,
  .metric-grid.four {
    grid-template-columns: 1fr;
  }

  .post-promo-hero {
    min-height: 300px;
  }

  .post-promo-actions,
  .post-promo-auth-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-promo-auth.signed-in button {
    justify-self: stretch;
  }
}
