:root {
  --bg: #F2EEE5;
  --card: #FFFFFF;
  --ink: #16120E;
  --muted: #6E695F;
  --muted-2: #9A958B;
  --red: #F5333A;
  --red-hover: #D92F35;
  --red-soft: #FDE8E6;
  --red-line: #F3C5C1;
  --line: #E7E1D5;
  --line-strong: #DED7C8;
  --shadow: 0 1px 2px rgba(22, 18, 14, .04), 0 12px 30px rgba(22, 18, 14, .07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

/* Пропорционально увеличиваем весь интерфейс на ноутбуках и компьютерах. */
@media (min-width: 1024px) and (pointer: fine) {
  html { zoom: 1.06; }
}
@media (min-width: 1200px) and (pointer: fine) {
  html { zoom: 1.1; }
}

a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(110, 105, 95, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(22, 18, 14, .07);
}
.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: "Golos Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.language-switcher button:hover { color: var(--ink); background: var(--bg); }
.language-switcher button.is-active { color: #fff; background: var(--red); }
.language-switcher button:focus-visible { outline: 3px solid rgba(245, 51, 58, .3); outline-offset: 2px; }
.home-page .language-switcher { background: rgba(255, 255, 255, .94); }
.submission-page-nav .language-switcher { margin-left: auto; }
body > .language-switcher { position: fixed; top: 12px; right: 12px; z-index: 11000; }
.header-utility-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  min-width: 0;
}
.header-utility-controls .language-switcher {
  margin: 0;
  order: 1;
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-header .language-switcher { order: 3; margin-left: auto; margin-right: 2px; }
  .language-switcher button { min-width: 29px; min-height: 32px; padding-inline: 4px; }
  html[data-language="zh"] body { word-break: normal; }
}

.site-header {
  background: rgba(242, 238, 229, .94);
  border-bottom: 1px solid var(--line);
}
.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: linear-gradient(180deg, rgba(22, 18, 14, .48), rgba(22, 18, 14, 0));
  border-bottom: 0;
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  padding: 0;
}
.brand-logo {
  width: min(252px, 34vw);
  height: 52px;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

/* На странице объекта в шапке больше действий, поэтому ей нужен широкий контейнер. */
.object-detail-page .site-header .wrap {
  width: min(1600px, calc(100% - 48px));
}
.object-detail-page .header-inner {
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.object-detail-page .header-controls {
  flex-wrap: wrap;
  row-gap: 8px;
}
.object-detail-page .agent-access-button,
.object-detail-page .header-action {
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 1180px) {
  .object-detail-page .header-phone {
    display: none;
  }
}
.home-page.agent-access-expanded .header-inner {
  min-height: 0;
  align-items: flex-start;
  padding-top: 16px;
}
.home-page.agent-access-expanded .header-controls {
  width: auto;
  max-width: 860px;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: max-content max-content minmax(170px, 1fr);
  align-items: center;
  gap: 10px 12px;
}
.home-page.agent-access-expanded .header-utility-controls {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.home-page.agent-access-expanded .agent-access-slot-expanded {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  flex: none;
}
.home-page.agent-access-expanded .header-action {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.agent-access-slot {
  min-width: 0;
  display: flex;
  align-items: center;
}
.agent-approved-controls {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(22, 18, 14, .09);
}
.home-page.agent-access-expanded .agent-approved-controls {
  width: 100%;
}
.home-page.agent-access-expanded .agent-complete-copy {
  align-self: center;
}
.home-page.agent-access-expanded .agent-status-approved {
  justify-self: start;
}
.agent-access-slot-expanded {
  width: min(520px, 100%);
  flex: 1 1 420px;
}
.agent-next-step-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(22, 18, 14, .12);
}
.agent-next-step-top,
.agent-complete-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agent-next-step-card h2,
.agent-complete-copy strong {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.2;
}
.agent-next-step-card p,
.agent-complete-copy span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.agent-complete-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.agent-approved-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 1180px) {
  .home-page.agent-access-expanded .agent-approved-controls {
    grid-template-columns: minmax(190px, .65fr) auto minmax(500px, 1.35fr);
    align-items: center;
    gap: 16px;
  }
  .home-page.agent-access-expanded .agent-approved-actions {
    min-width: 500px;
  }
}
.agent-next-step-button,
.agent-catalog-button,
.agent-cabinet-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--red);
  border-radius: 13px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 51, 58, .22);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.agent-next-step-button:hover,
.agent-next-step-button:focus-visible,
.agent-catalog-button:hover,
.agent-catalog-button:focus-visible {
  border-color: var(--red-hover);
  background: var(--red-hover);
}
.agent-cabinet-button {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
}
.agent-cabinet-button:hover,
.agent-cabinet-button:focus-visible {
  border-color: #302A24;
  background: #302A24;
}
.agent-next-step-arrow {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}
.agent-access-button,
.agent-terms-button,
.agent-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.agent-access-button {
  border: 1px solid var(--red-line);
  background: var(--card);
  color: var(--red);
  text-decoration: none;
  cursor: pointer;
}
.agent-terms-button {
  border: 1px solid var(--red-line);
  background: var(--card);
  color: var(--red);
  cursor: pointer;
}
.agent-terms-button:hover,
.agent-terms-button:focus-visible {
  border-color: var(--red);
  background: var(--red-soft);
}
.agent-access-button:hover,
.agent-access-button:focus-visible {
  border-color: var(--red);
  background: var(--red-soft);
}
.home-page .agent-access-button {
  background: rgba(255, 255, 255, .9);
}
.agent-status {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
}
.agent-status-approved {
  border-color: #B7DCC8;
  background: #EAF6EF;
  color: #176A43;
}
.agent-status-approved span {
  margin-right: 7px;
  font-size: 17px;
}
.agent-role-check-error {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #F2B8BA;
  border-radius: 14px;
  background: #FFF5F5;
  color: #A91E24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.agent-role-check-error .agent-terms-button {
  min-height: 44px;
  background: #FFFFFF;
}
.agent-status-pending {
  border-color: #E5D1A9;
  background: #FAF3E4;
  color: #76520F;
}
.agent-status-loading {
  color: var(--muted-2);
}
.header-phone {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .46);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.home-page .header-phone {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .88);
}
.header-phone:hover,
.header-phone:focus-visible {
  border-color: var(--red-line);
  background: var(--red-soft);
}
.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-action:hover,
.header-action:focus-visible {
  background: var(--red-hover);
}

.home-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #2d2a25;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 18, 14, .56), rgba(22, 18, 14, .22)),
    var(--hero-image, url("/assets/hero-building.webp")) center / cover no-repeat;
  transform: scale(1.01);
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 18, 14, .12), rgba(22, 18, 14, .72));
}
.home-hero-inner {
  padding: 110px 0 70px;
  color: #fff;
}
.hero-location {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-location span {
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}
.home-hero h1 {
  max-width: 960px;
  margin: 92px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .96;
  text-align: left;
  letter-spacing: 0;
}
.home-hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  text-align: left;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-primary,
.hero-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}
.hero-primary {
  background: var(--red);
  color: #fff;
}
.hero-secondary {
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-primary:hover,
.hero-primary:focus-visible {
  background: var(--red-hover);
}
.hero-secondary:hover,
.hero-secondary:focus-visible {
  background: rgba(255, 255, 255, .24);
}
.guest-agent-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.68);
  background: transparent;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.guest-agent-link:hover { color:#fff; border-bottom-color:#fff; }
.guest-agent-link:focus-visible { outline:3px solid rgba(245,51,58,.45); outline-offset:5px; border-radius:3px; }
.guest-agent-link[hidden] { display:none; }

/* Mini App home actions: keep the header readable even after an auth refresh. */
.home-page .header-profile {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 15px;
  background: rgba(255, 255, 255, .94);
  color: #16120e;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(17, 20, 26, .12);
}
.home-page .header-profile:hover,
.home-page .header-profile:focus-visible {
  border-color: #f5333a;
  background: #fff;
  color: #b82027;
}
.home-page .guest-agent-link {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 2px 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .68);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  font: 600 14px/1.4 "Golos Text", sans-serif;
  box-shadow: none;
  cursor: pointer;
}
.request-page-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.request-view-action {
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  text-decoration:none;
}
.request-view-action:hover,
.request-view-action:focus-visible { border-color:var(--red); color:var(--red); }
.request-create-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.request-create-action:hover,
.request-create-action:focus-visible { background: var(--red-hover); }

.catalog-toolbar {
  position: relative;
  z-index: 5;
  margin-top: -38px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(231, 225, 213, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 42px rgba(22, 18, 14, .12);
}
.toolbar-main,
.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-main {
  margin-bottom: 10px;
}
.toolbar-search,
.toolbar-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #fff;
}
.toolbar-search {
  flex: 1 1 360px;
}
.toolbar-field {
  flex: 0 1 250px;
}
.toolbar-field.price-field {
  flex-basis: 160px;
}
.toolbar-field.currency-field {
  flex: 0 0 132px;
}
.toolbar-search span,
.toolbar-field span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.toolbar-search input,
.toolbar-field input,
.toolbar-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.toolbar-search:focus-within,
.toolbar-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(245, 51, 58, .12);
}
.toolbar-group,
.toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar-actions {
  margin-left: auto;
}
.toolbar-chip,
.toolbar-map,
.toolbar-favorites,
.toolbar-reset,
.toolbar-show {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.toolbar-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
}
.toolbar-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.toolbar-map {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.toolbar-favorites { border:1px solid #ded5c8; border-radius:999px; padding:10px 15px; background:#fff; color:#171411; font-weight:800; cursor:pointer; }
.toolbar-favorites.is-active { border-color:#f5333a; background:#fff0f0; color:#c8242b; }
.favorite-button { position:absolute; z-index:5; right:14px; bottom:14px; width:44px; height:44px; border:1px solid rgba(255,255,255,.75); border-radius:50%; background:rgba(20,18,16,.68); color:#fff; box-shadow:0 5px 16px rgba(0,0,0,.2); font-size:26px; line-height:1; cursor:pointer; }
.favorite-button.is-active { background:#f5333a; }
.toolbar-reset {
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}
.toolbar-show {
  border: 0;
  background: var(--red);
  color: #fff;
  gap: 0.32em;
}
.toolbar-show:hover,
.toolbar-show:focus-visible {
  background: var(--red-hover);
}
.hero-search-card {
  position: relative;
  z-index: 2;
  max-width: 1120px;
}
.hero-search-tabs {
  display: flex;
  align-items: flex-end;
  padding-left: 0;
}
.hero-tab {
  min-height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: default;
}
.hero-search-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1.35fr auto minmax(210px, auto);
  align-items: stretch;
  gap: 0;
  padding: 10px;
  border-radius: 0 22px 22px 22px;
  background: var(--card);
  box-shadow: 0 22px 52px rgba(22, 18, 14, .22);
}
.hero-select {
  position: relative;
  min-width: 0;
}
.hero-select summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.hero-select summary::-webkit-details-marker { display: none; }
.hero-select summary::after {
  content: "⌄";
  color: var(--muted-2);
  font-size: 18px;
}
.hero-select[open] summary,
.hero-select summary:hover,
.hero-select summary:focus-visible {
  background: #F7F5F0;
}
.hero-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 25;
  width: min(640px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 46px rgba(22, 18, 14, .18);
}
.hero-dropdown h2 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.1;
}
.type-options,
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.type-option,
.hero-chip {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.type-option span {
  color: var(--red);
  font-size: 20px;
}
.type-option.is-active,
.hero-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.type-option.is-active span { color: #fff; }
.hero-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hero-price-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hero-price-fields input,
.hero-dropdown select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.hero-map-button,
.hero-show-button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.hero-map-button {
  margin-left: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.hero-show-button {
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}
.hero-show-button:hover,
.hero-show-button:focus-visible {
  background: var(--red-hover);
}

.filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 238, 229, .96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.home-page .filters {
  margin-top: 0;
  background: rgba(242, 238, 229, .96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.filters-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.home-page .filters-inner {
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-group + .filter-group {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}
.room-filter {
  gap: 6px;
}
.room-filter .chip {
  min-width: 38px;
  padding: 0 11px;
}
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.chip:hover { border-color: var(--muted-2); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.chip.accent.is-active {
  background: var(--red);
  border-color: var(--red);
}
.request-jump {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 51, 58, .35);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.request-jump:hover,
.request-jump:focus-visible {
  border-color: var(--red);
  background: #fff;
  color: var(--ink);
}
.request-jump.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.catalog-search {
  min-height: 38px;
  flex: 1 1 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(22, 18, 14, .04);
}
.home-page .catalog-search,
.home-page .filter-field {
  min-height: 38px;
  border-radius: 14px;
}
.home-page .catalog-search {
  max-width: 420px;
  flex: 1 1 280px;
}
.home-page .filter-field {
  border-color: var(--line-strong);
  background: var(--card);
}
.home-page .filter-field.compact {
  max-width: 180px;
}
.filter-field {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(22, 18, 14, .04);
}
.filter-field.compact {
  max-width: 160px;
}
.filter-field span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.catalog-search span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}
.catalog-search input,
.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}
.filter-field.compact input {
  min-width: 58px;
}
.filter-field select {
  min-width: 180px;
  cursor: pointer;
}
.catalog-search input::placeholder,
.filter-field input::placeholder {
  color: var(--muted-2);
  opacity: .8;
}
.catalog-search:focus-within,
.filter-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(245, 51, 58, .12);
}
.advanced-filters {
  flex: 1 1 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}
.advanced-filters summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}
.reset-filters {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--red-line);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.reset-filters:hover,
.reset-filters:focus-visible {
  background: var(--red-soft);
}
.filter-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.map-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.map-link:hover,
.map-link:focus-visible {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: var(--ink);
}
.result-count {
  color: var(--muted-2);
  font-weight: 600;
  white-space: nowrap;
}

.catalog { padding: 16px 0 18px; }
.map-promo {
  position: relative;
  min-height: 320px;
  margin-top: 22px;
  margin-bottom: 26px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 22, 32, .94) 0%, rgba(11, 22, 32, .78) 42%, rgba(11, 22, 32, .34) 100%),
    url("assets/map-preview.svg") center / cover no-repeat,
    #18242e;
  box-shadow: 0 22px 54px rgba(22, 18, 14, .16);
}
.map-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%);
}
.map-promo-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}
.map-promo-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.map-promo h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .98;
}
.map-promo p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}
.map-promo-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.map-promo-action:hover,
.map-promo-action:focus-visible {
  background: var(--red);
  color: #fff;
}
.map-promo-price {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #162230;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.map-promo-price.price-one {
  top: 23%;
  right: 34%;
}
.map-promo-price.price-two {
  right: 15%;
  top: 47%;
  background: var(--red);
  color: #fff;
}
.map-promo-price.price-three {
  right: 28%;
  bottom: 18%;
}
.requests {
  padding: 12px 0 18px;
}
.requests-heading {
  margin-bottom: 16px;
}
.request-count {
  color: var(--muted-2);
  font-weight: 700;
  white-space: nowrap;
}
.requests-grid .request-card {
  border-color: rgba(245, 51, 58, .25);
  background: #fffaf6;
}
.requests-grid .request-card-rent {
  border-color: rgba(47, 93, 80, .28);
}
.requests-grid .request-card-buy {
  border-color: rgba(224, 168, 46, .42);
  background: #fffaf0;
}
.request-state {
  grid-column: 1 / -1;
}
.request-submitted {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 4px;
  color: #2F5D50;
  font-size: 14px;
  font-weight: 700;
}
.request-submitted.is-missing {
  color: var(--muted-2);
  font-weight: 600;
}
.modal-info .request-submitted {
  margin: 10px 0 2px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.card:hover,
.card:focus-visible {
  border-color: var(--red);
  box-shadow: 0 1px 2px rgba(22, 18, 14, .04), 0 16px 38px rgba(22, 18, 14, .1);
  transform: translateY(-2px);
}
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E1D4;
}
.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 20px rgba(22, 18, 14, .16);
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-arrow:hover { background: white; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(22, 18, 14, .58);
  transform: translateX(-50%);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.carousel-dot.is-active {
  width: 18px;
  background: white;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(217, 47, 53, .08), rgba(22, 18, 14, .05)),
    #E8E1D4;
}
.placeholder-pin {
  width: 48px;
  height: 48px;
  color: rgba(22, 18, 14, .42);
}
.request-cover {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
    #2F5D50;
  color: #FFFFFF;
}
.request-cover-rent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
    #2F5D50;
}
.request-cover-buy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px),
    #8C6419;
}
.request-cover span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 6vw, 68px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: 0;
}
.request-cover em {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.request-cover strong {
  font-size: 18px;
  font-weight: 800;
}
.request-cover small {
  max-width: 100%;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  font-weight: 600;
}
.badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.badge,
.deal-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.badge {
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}
.contract-verified-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #b9ddcc;
  border-radius: 8px;
  padding: 0 10px;
  background: #eaf7f0;
  color: #166b47;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.contract-verified-badge > span {
  font-size: 15px;
  line-height: 1;
}
.deal-tag {
  margin-left: auto;
  background: rgba(22, 18, 14, .82);
  color: white;
  backdrop-filter: blur(4px);
}
.request-tag {
  background: #2F5D50;
}
.request-tag-rent {
  background: #2F5D50;
}
.request-tag-buy {
  background: #8C6419;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.agent-commission {
  width: 100%;
  min-height: 40px;
  display: grid;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--red-line);
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--ink);
  line-height: 1.2;
}
.agent-commission-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agent-commission-main > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.agent-commission-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.agent-commission-amount {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.agent-commission strong {
  color: var(--red);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.agent-commission small.agent-commission-estimate {
  display: inline;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.agent-commission-info {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--red-line);
  border-radius: 50%;
  background: var(--card);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.agent-commission-info:hover,
.agent-commission-info:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: white;
}
.agent-commission small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.agent-commission-modal,
.agent-commission-object {
  width: min(100%, 360px);
}
.price {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 800;
}
.price small {
  color: var(--muted-2);
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.title {
  margin: -2px 0 0;
  font-weight: 700;
  line-height: 1.32;
}
.district {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}
.district svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  fill: var(--red);
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.spec {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}
.card-attribution {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8f5ef;
}
.card-attribution-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.card-attribution-row span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}
.card-attribution-row strong,
.card-attribution-row a {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.card-attribution-row a {
  width: fit-content;
  text-decoration-color: rgba(22, 18, 14, .28);
  text-underline-offset: 3px;
}
.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.card-actions .card-action.primary {
  grid-column: 1 / -1;
}
.card-action {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  line-height: 1.25;
}
.card-action.primary:hover {
  background: var(--ink);
  color: white;
}
.card-action.secondary {
  background: var(--red-soft);
  border-color: var(--red-line);
  color: var(--red);
}
.card-action.secondary:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.card-action.share {
  background: #fff;
  border-color: var(--line);
  cursor: pointer;
}
.card-action.share:hover,
.card-action.share.is-copied {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .54);
  padding: 32px 20px;
}
.state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}
.state-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.state-action:hover,
.state-action:focus-visible {
  background: var(--ink);
  color: #fff;
}
.skeleton {
  min-height: 390px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #E8E1D4 0%, #F8F4EC 48%, #E8E1D4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.trust-line {
  padding: 8px 0 30px;
}
.trust-line p {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.object-page {
  padding: 24px 0 34px;
}
.object-shell {
  display: grid;
  gap: 16px;
}
.back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--red);
}
.object-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  gap: 24px;
  align-items: start;
}
.object-gallery,
.object-info,
.object-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.object-gallery {
  overflow: hidden;
}
.object-main-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E1D4;
  touch-action: pan-y;
}
.object-main-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}
.object-gallery-tools { position:absolute; z-index:4; top:14px; right:14px; display:flex; align-items:center; gap:7px; }
.object-gallery-tools > * { min-width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.7); border-radius:999px; background:rgba(20,18,16,.66); color:#fff; box-shadow:0 6px 18px rgba(0,0,0,.2); backdrop-filter:blur(8px); }
.object-gallery-tools button { padding:0; cursor:pointer; font:700 22px/1 Golos Text,sans-serif; }
.object-gallery-tools button.is-active { border-color:#f5333a; background:#f5333a; }
.object-photo-counter { padding:0 12px; font:700 13px/1 Golos Text,sans-serif; white-space:nowrap; }
.object-lightbox { position:fixed; z-index:2000; inset:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:60px 18px 48px; background:rgba(10,9,8,.96); }
.object-lightbox[hidden] { display:none; }
.object-lightbox img { width:100%; height:100%; max-height:calc(100vh - 120px); object-fit:contain; touch-action:pan-y; user-select:none; -webkit-user-drag:none; }
.object-lightbox-close { position:absolute; top:16px; right:16px; width:46px; height:46px; border:0; border-radius:50%; background:#fff; color:#171411; font-size:30px; cursor:pointer; }
.object-lightbox-arrow { width:48px; height:58px; border:0; border-radius:16px; background:rgba(255,255,255,.14); color:#fff; font-size:38px; cursor:pointer; }
.object-lightbox > span { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); color:#fff; font-weight:800; }
.object-lightbox-open { overflow:hidden; }
.object-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(22, 18, 14, .18);
}
.object-gallery-arrow.prev { left: 14px; }
.object-gallery-arrow.next { right: 14px; }
.object-gallery-arrow:hover,
.object-gallery-arrow:focus-visible {
  background: white;
}
.object-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 18, 14, .44);
  backdrop-filter: blur(6px);
}
.object-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
}
.object-gallery-dot.is-active {
  width: 24px;
  background: white;
}
.object-gallery-dot:focus-visible {
  outline: 3px solid rgba(245, 51, 58, .45);
  outline-offset: 3px;
}
.object-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #FBF9F4;
}
.object-thumb {
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.object-thumb.is-active {
  border-color: var(--red);
}
.object-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.object-photo-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 51, 58, .14), transparent 28%),
    #E8E1D4;
}
.object-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  align-self: stretch;
}
.object-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actual-tag,
.segment-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F7F3EB;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.object-price {
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}
.object-price small {
  color: var(--muted-2);
  font-size: .42em;
}
.object-info h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}
.object-location {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}
.object-location svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--red);
  margin-top: 2px;
}
.object-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.object-dates span::before {
  content: "•";
  margin-right: 7px;
  color: var(--red);
}
.object-dates span:first-child::before {
  content: "";
  margin: 0;
}
.object-actuality.fresh { color: #35734A; }
.object-actuality.aging { color: var(--muted); }
.object-actuality.stale { color: #A4494C; }
.object-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.object-description {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.market-valuation {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #d9d1c3;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf8, #f4efe5);
}
.market-valuation-heading { display:flex; align-items:center; gap:12px; }
.market-valuation-heading > div { min-width:0; }
.market-valuation-heading small { display:block; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.market-valuation-heading h2 { margin:2px 0 0; font:800 20px/1.2 Manrope,sans-serif; }
.market-valuation-icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:13px; background:var(--ink); color:#fff; font:800 13px/1 Manrope,sans-serif; letter-spacing:.04em; }
.market-valuation-range { font:800 clamp(24px,3vw,31px)/1.1 Manrope,sans-serif; letter-spacing:-.035em; }
.market-valuation-position { display:grid; gap:3px; padding:11px 13px; border-radius:12px; background:#ece8df; }
.market-valuation-position b { font-size:14px; }
.market-valuation-position span { color:var(--muted); font-size:12px; line-height:1.4; }
.market-valuation-position.is-market { background:#e7f4eb; color:#176a43; }
.market-valuation-position.is-high { background:#fff0e8; color:#9a4b1b; }
.market-valuation-position.is-low { background:#eaf1fb; color:#315d98; }
.market-valuation dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.market-valuation dl > div { padding:10px 12px; border:1px solid rgba(22,18,14,.09); border-radius:11px; background:rgba(255,255,255,.62); }
.market-valuation dt { color:var(--muted); font-size:12px; }
.market-valuation dd { margin:3px 0 0; font-weight:800; }
.market-valuation-note { color:var(--muted); font-size:11px; line-height:1.45; }
.market-valuation.is-pending p { margin:0; color:var(--ink); line-height:1.45; }
.object-description h2 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}
.object-description p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}
.object-description.is-collapsed p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}
.object-description [data-description-toggle] {
  width: fit-content;
  min-height: 40px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8242b;
  font-weight: 800;
  cursor: pointer;
}
.object-description [data-description-toggle]:hover { text-decoration: underline; text-underline-offset: 3px; }
.object-description [data-description-toggle]:focus-visible { outline: 3px solid rgba(245,51,58,.26); outline-offset: 3px; border-radius: 6px; }
.object-characteristics .detail-list {
  margin-top: 0;
}
.object-characteristics .detail-row:last-child {
  border-bottom: 0;
}
.object-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #ded5c8;
  border-radius: 20px;
  background: #f8f5ef;
  color: var(--ink);
}
.object-contact-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #ffe9e9;
  color: #c8242b;
}
.object-contact-icon svg {
  width: 28px;
  height: 28px;
}
.object-contact-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.object-contact-copy span {
  color: #8a8278;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.object-contact-copy .object-contact-agency {
  color: #6e695f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.object-contact-copy strong,
.object-contact-name {
  overflow-wrap: anywhere;
  width: fit-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(22, 18, 14, 0.24);
  text-underline-offset: 4px;
}
.object-contact-copy a {
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.object-contact-copy .object-contact-name:hover,
.object-contact-copy .object-contact-name:focus-visible {
  color: #c8242b;
  text-decoration-color: #c8242b;
}
.object-contact-copy .object-contact-name {
  text-decoration: underline;
  text-decoration-color: rgba(22, 18, 14, 0.24);
  text-underline-offset: 4px;
}
.object-contact-copy .object-contact-count {
  margin-top: 5px;
  color: #6e695f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.object-contact-copy .object-contact-phone { color:var(--ink); font-size:17px; }
.object-contact-copy .object-contact-count i { color:#c8242b; font-style:normal; font-size:16px; }
.object-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 150px;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.object-mobile-actions { display:none; }
.object-related { margin-top:12px; padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow); }
.object-related-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.object-related-heading span { color:#9a9185; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.object-related-heading h2 { margin:4px 0 0; font:800 clamp(24px,3vw,32px)/1.1 Manrope,sans-serif; }
.object-related-heading > a { color:#c8242b; font-weight:800; text-decoration:none; }
.object-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.related-object-card { min-width:0; overflow:hidden; border:1px solid #e4ddd2; border-radius:17px; background:#fbf9f4; color:#171411; text-decoration:none; transition:transform .18s ease, box-shadow .18s ease; }
.related-object-card:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(31,25,20,.12); }
.related-object-card > img,
.related-object-photo-placeholder { width:100%; aspect-ratio:16/10; display:grid; place-items:center; object-fit:cover; background:#e9e1d5; color:#7b7369; }
.related-object-copy { display:grid; gap:5px; padding:14px; }
.related-object-copy strong { color:#c8242b; font:800 20px/1.15 Manrope,sans-serif; }
.related-object-copy strong small { color:#8a8278; font-size:12px; }
.related-object-copy b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.related-object-copy > small { color:#6e695f; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.object-phone {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.object-phone a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.object-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}
.object-state strong {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
}
.object-state span {
  color: var(--muted);
}

.specialists {
  padding: 0 0 38px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}
.section-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}
.specialist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.specialist-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.specialist-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: #E8E1D4;
}
.specialist-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px;
}
.specialist-role {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.specialist-body h3,
.specialist-modal-info h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
}
.specialist-body h3 {
  font-size: 24px;
}
.stars {
  display: inline-flex;
  margin-top: 8px;
  color: #F2B01E;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}
.specialist-phone {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.specialist-actions {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}
.review-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.review-button:hover,
.review-button:focus-visible {
  background: var(--ink);
  color: white;
}
.specialist-modal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
}
.specialist-modal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #E8E1D4;
}
.specialist-modal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.review-item {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.review-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.review-item footer {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner span {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}
.footer-contacts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-inner a { text-decoration: none; font-weight: 700; }

.detail-modal[hidden] { display: none; }
.agent-modal[hidden] { display: none; }
.agent-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.agent-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 18, 14, .58);
  cursor: pointer;
}
.agent-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(22, 18, 14, .28);
}
#agentSpecializationModal .agent-modal-backdrop {
  cursor: default;
}
.agent-specialization-required-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(231, 225, 213, .92);
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(22, 18, 14, .24);
}
.agent-specialization-required-panel .agent-modal-scroll {
  padding: clamp(28px, 5vw, 52px);
}
.agent-modal-scroll {
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
}
.agent-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.agent-modal-heading {
  padding-right: 48px;
}
.agent-modal-kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.agent-modal-heading h2,
.agent-success h2 {
  margin: 6px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.12;
}
.agent-modal-heading p,
.agent-success p {
  margin: 0;
  color: var(--muted);
}
.agent-form {
  margin-top: 24px;
}
.agent-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.agent-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.agent-field-wide {
  grid-column: 1 / -1;
}
.agent-specialization {
  min-width: 0;
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  padding: 0;
}
.agent-specialization legend {
  margin-bottom: 7px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}
.agent-specialization-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.agent-specialization-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.agent-specialization-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.agent-specialization-options span {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  padding: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.agent-specialization-options input:checked + span {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}
.agent-specialization-options input:focus-visible + span {
  outline: 3px solid rgba(245, 51, 58, .16);
  outline-offset: 1px;
}
.agent-direction-heading {
  max-width: 610px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.agent-direction-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 4.8vw, 42px);
  font-weight: 700;
  line-height: 1.12;
}
.agent-direction-heading p {
  max-width: 560px;
  margin: 14px auto 0;
  color: #6E695F;
  font-family: "Golos Text", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.agent-direction-form {
  margin-top: 30px;
}
.agent-direction-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.agent-direction-card {
  position: relative;
  min-width: 0;
  min-height: 184px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 18px;
  border: 1px solid #E7E1D5;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(22, 18, 14, .06);
  padding: 24px;
  color: #16120E;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.agent-direction-card:hover {
  transform: translateY(-2px);
  border-color: #CEC5B4;
  box-shadow: 0 14px 32px rgba(22, 18, 14, .1);
}
.agent-direction-card:focus-visible {
  outline: 3px solid rgba(245, 51, 58, .42);
  outline-offset: 3px;
}
.agent-direction-card.is-selected,
.agent-direction-card[aria-checked="true"] {
  border-color: #16120E;
  background: #16120E;
  color: #FFFFFF;
  box-shadow: 0 18px 40px rgba(22, 18, 14, .2);
}
.agent-direction-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #F2EEE5;
  font-size: 27px;
  line-height: 1;
}
.agent-direction-card.is-selected .agent-direction-icon,
.agent-direction-card[aria-checked="true"] .agent-direction-icon {
  background: rgba(255, 255, 255, .13);
}
.agent-direction-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.agent-direction-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
}
.agent-direction-copy > span {
  color: #6E695F;
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.agent-direction-card.is-selected .agent-direction-copy > span,
.agent-direction-card[aria-checked="true"] .agent-direction-copy > span {
  color: rgba(255, 255, 255, .72);
}
.agent-direction-check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FFFFFF;
  color: #16120E;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .18s ease, transform .18s ease;
}
.agent-direction-card.is-selected .agent-direction-check,
.agent-direction-card[aria-checked="true"] .agent-direction-check {
  opacity: 1;
  transform: scale(1);
}
.agent-direction-error {
  margin: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #F5333A;
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.agent-direction-hint {
  margin: 15px 0 0;
  color: #6E695F;
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.agent-direction-submit {
  min-height: 58px;
  margin-top: 22px;
  border-radius: 14px;
  background: #F5333A;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: background-color .18s ease, opacity .18s ease, transform .18s ease;
}
.agent-direction-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}
.agent-direction-submit:disabled {
  background: rgba(245, 51, 58, .38);
  cursor: not-allowed;
  opacity: 1;
}
.agent-field > span {
  font-size: 14px;
  font-weight: 700;
}
.agent-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
}
.agent-field input[type="file"] {
  padding: 11px 13px;
}
.agent-field input:hover {
  border-color: var(--muted-2);
}
.agent-field input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(245, 51, 58, .16);
  outline-offset: 1px;
}
.agent-field small {
  color: var(--muted-2);
  font-size: 12px;
}
.agent-field.is-disabled {
  opacity: .48;
}
.agent-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.agent-check input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--red);
}
.agent-private-check {
  min-height: 50px;
  align-self: end;
  padding: 0 4px;
}
.agent-rules-check {
  margin-top: 20px;
}
.agent-form-error {
  margin: 14px 0 0;
  border: 1px solid var(--red-line);
  border-radius: 10px;
  background: var(--red-soft);
  color: #A32127;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.agent-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.agent-submit:hover,
.agent-submit:focus-visible {
  background: var(--red-hover);
}
.agent-submit:disabled {
  cursor: wait;
  opacity: .64;
}
.agent-success {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.agent-success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #EAF6EF;
  color: #176A43;
  font-size: 30px;
  font-weight: 800;
}
.agent-success .agent-submit {
  max-width: 280px;
}
.agent-terms-panel {
  width: min(760px, 100%);
}
.agent-terms-scroll {
  padding: 34px;
}
.agent-terms-content {
  display: grid;
  gap: 34px;
  margin-top: 28px;
}
.agent-terms-visual-section {
  display: grid;
  gap: 12px;
}
.agent-terms-eyebrow {
  margin: 0;
  color: var(--muted-2);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
}
.agent-terms-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.agent-commission-split-bar {
  min-height: 78px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.agent-commission-split-bar strong {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  line-height: 1;
}
.agent-split-listing {
  background: var(--red-soft);
  color: var(--red);
}
.agent-split-closing {
  background: var(--ink);
  color: #fff;
}
.agent-commission-split-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.agent-commission-split-labels div {
  display: grid;
  gap: 2px;
}
.agent-commission-split-labels strong {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.35;
}
.agent-commission-split-labels span,
.agent-commission-full-share,
.agent-commission-example > p,
.agent-commission-scenario p {
  color: var(--muted);
}
.agent-commission-full-share {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.55;
}
.agent-commission-full-share strong {
  color: var(--ink);
}
.agent-commission-example dl {
  margin: 0;
}
.agent-commission-example dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.agent-commission-example dl > div:first-child {
  padding-top: 0;
}
.agent-commission-example dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.agent-commission-example dt {
  color: var(--muted);
  font-size: 17px;
}
.agent-commission-example dd {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}
.agent-commission-example .agent-example-result dd {
  color: var(--red);
  font-size: 24px;
}
.agent-commission-example > p {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.agent-commission-scenarios {
  padding-top: 8px;
  padding-bottom: 8px;
}
.agent-commission-scenario {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.agent-commission-scenario:last-child {
  border-bottom: 0;
}
.agent-commission-scenario > strong {
  color: var(--red);
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
.agent-commission-scenario b {
  display: block;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.35;
}
.agent-commission-scenario p {
  margin: 5px 0 0;
  line-height: 1.5;
}
.agent-terms-section {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.agent-terms-section h3 {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
}
.agent-terms-section p {
  margin: 8px 0 0;
  color: var(--ink);
}
.agent-terms-section ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 22px;
}
.agent-terms-section li::marker {
  color: var(--red);
}
.agent-terms-consent-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(22, 18, 14, .08);
}
.agent-terms-consent {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}
.agent-terms-consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--red);
  cursor: pointer;
}
.agent-terms-error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.agent-terms-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--red);
  border-radius: 13px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.agent-terms-submit:hover,
.agent-terms-submit:focus-visible {
  border-color: var(--red-hover);
  background: var(--red-hover);
}
.agent-terms-submit:disabled {
  border-color: #D8D3C9;
  background: #D8D3C9;
  color: #8B867D;
  box-shadow: none;
  cursor: not-allowed;
}
.agent-terms-confirmed {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #B7DCC8;
  border-radius: 16px;
  background: #EAF6EF;
}
.agent-terms-confirmed strong {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}
.agent-terms-confirmed p {
  margin: 0;
  color: #176A43;
  line-height: 1.5;
}
.agent-terms-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}
.agent-terms-actions .agent-submit {
  margin-top: 0;
}
.agent-agreement-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.agent-agreement-link:hover,
.agent-agreement-link:focus-visible {
  border-color: var(--red);
  color: var(--red);
}
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 18, 14, .54);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(22, 18, 14, .24);
}
.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin: 14px 14px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 18, 14, .12);
}
.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 26px;
  padding: 28px;
}
.modal-photo {
  min-width: 0;
}
.modal-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #E8E1D4;
}
.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.modal-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #E8E1D4;
}
.modal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 46px;
}
.modal-tags .deal-tag {
  margin-left: 0;
}
.segment-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.modal-info h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}
.modal-price {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
}
.modal-price small {
  color: var(--muted-2);
  font-family: "Golos Text", sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.modal-location {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.modal-location svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  fill: var(--red);
}
.detail-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row span {
  color: var(--muted);
  font-size: 14px;
}
.detail-row strong {
  min-width: 0;
  font-weight: 700;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.map-page {
  padding: 24px 0 34px;
}
.map-hero {
  padding: 10px 0 16px;
}
.map-hero h1 {
  max-width: 760px;
  margin: 8px 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}
.map-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.zone-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}
.zone-map {
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #E8E1D4;
  box-shadow: var(--shadow);
}
.zone-shape {
  transition: opacity .14s ease, fill-opacity .14s ease, stroke-width .14s ease;
}
.zone-shape-gold {
  filter: drop-shadow(0 0 7px rgba(242, 183, 5, .95)) drop-shadow(0 1px 2px rgba(22, 18, 14, .25));
}
.zone-panel {
  min-width: 0;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.zone-panel h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1.1;
}
.zone-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.zone-list {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  display: grid;
  gap: 10px;
}
.zone-item {
  width: 100%;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFAF6;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.zone-item:hover,
.zone-item:focus-visible,
.zone-item.is-active {
  border-color: var(--red-line);
  background: var(--red-soft);
  box-shadow: 0 10px 22px rgba(22, 18, 14, .08);
}
.zone-item.is-active {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.zone-item.is-dimmed {
  opacity: .58;
}
.zone-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
}
.zone-item strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
}
.zone-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.zone-tooltip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: 800 14px/1 "Manrope", sans-serif;
  box-shadow: 0 8px 20px rgba(22, 18, 14, .14);
}
.zone-popup .leaflet-popup-content {
  display: grid;
  gap: 5px;
  margin: 13px 15px;
  font-family: "Golos Text", system-ui, sans-serif;
}
.zone-popup .leaflet-popup-content strong {
  font: 800 17px/1.1 "Manrope", sans-serif;
}
.zone-popup .leaflet-popup-content span {
  color: var(--muted);
}

/* Object map and precise location picker */
.submission-location { margin-top: 22px; }
.submission-location-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.submission-location-heading div { display:grid; gap:4px; }
.submission-location-heading strong { font:800 18px/1.2 Manrope,sans-serif; }
.submission-location-heading span, .submission-location > p { color:#6e695f; }
.submission-location-heading button { border:1px solid #f5333a; border-radius:999px; background:#fff; color:#c8242b; padding:9px 14px; font-weight:700; }
.submission-location-map { min-height:360px; border:1px solid #ded5c8; border-radius:22px; overflow:hidden; }
.submission-location > p { margin:9px 2px 0; font-size:14px; }

.object-map-page { overflow:hidden; }
.object-map-page .site-header { position:relative; z-index:500; }
.object-map-layout { display:grid; grid-template-columns:minmax(320px, 420px) 1fr; height:calc(100vh - 104px); min-height:600px; background:#f4f0e8; }
.object-map-panel { position:relative; z-index:3; padding:24px; overflow:auto; border-right:1px solid #ded5c8; background:#f8f5ef; box-shadow:16px 0 40px rgba(35,30,24,.1); }
.object-map-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.object-map-title span { color:#f5333a; font-weight:800; text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.object-map-title h1 { margin:4px 0 20px; font:800 30px/1.05 Manrope,sans-serif; }
.object-map-title a { border:1px solid #ded5c8; border-radius:999px; padding:10px 14px; color:#171411; font-weight:700; text-decoration:none; background:#fff; }
.object-map-filters { display:grid; gap:12px; }
.object-map-filters input, .object-map-filters select { width:100%; min-height:48px; border:1px solid #ded5c8; border-radius:14px; padding:0 14px; background:#fff; font:600 15px Golos Text,sans-serif; }
.object-map-filters label { display:grid; gap:6px; font-weight:700; }
.object-map-filter-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.object-map-filter-grid label:nth-child(3), .object-map-filter-grid label:nth-child(4) { grid-column:1 / -1; }
.object-map-price { display:grid; grid-template-columns:minmax(0,1fr) 92px; gap:7px; }
.object-map-favorite-toggle { display:flex !important; align-items:center; gap:9px; min-height:44px; padding:0 13px; border:1px solid #ded5c8; border-radius:14px; background:#fff; color:#c8242b; }
.object-map-favorite-toggle input { width:19px; min-height:19px; accent-color:#f5333a; }
.object-map-chips { display:flex; gap:7px; flex-wrap:wrap; }
.object-map-chips button { border:1px solid #ded5c8; border-radius:999px; padding:10px 14px; background:#fff; font-weight:800; }
.object-map-chips button.is-active { border-color:#171411; background:#171411; color:#fff; }
.object-map-count { margin:18px 0 10px; color:#6e695f; font-weight:600; }
.object-map-results { display:grid; gap:10px; }
.object-map-card { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; width:100%; padding:8px; border:1px solid #e0d7cb; border-radius:16px; background:#fff; text-align:left; cursor:pointer; }
.object-map-card img, .object-map-no-photo { width:92px; height:78px; border-radius:11px; object-fit:cover; background:#e9e1d5; }
.object-map-no-photo { display:grid; place-items:center; padding:8px; font-size:11px; text-align:center; color:#6e695f; }
.object-map-card > span:last-child { display:grid; align-content:center; gap:3px; min-width:0; }
.object-map-card strong { color:#f5333a; font:800 17px Manrope,sans-serif; }
.object-map-card b, .object-map-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.object-map-card small { color:#6e695f; }
.object-map-empty { display:grid; gap:10px; padding:22px; border:1px dashed #cfc3b4; border-radius:18px; background:#fff; }
.object-map-empty span { color:#6e695f; line-height:1.5; }
.object-map-empty a { color:#f5333a; font-weight:800; }
.object-map-canvas { min-height:100%; }
.object-map-mobile-tools, .object-map-filter-close, .object-map-selected { display:none; }
.object-price-marker { background:transparent; border:0; }
.object-price-marker span { display:block; min-width:70px; padding:8px 10px; border:2px solid #fff; border-radius:999px; background:#f5333a; color:#fff; box-shadow:0 6px 16px rgba(53,26,21,.3); font:800 13px/1 Manrope,sans-serif; text-align:center; white-space:nowrap; }
.object-map-popup .leaflet-popup-content { display:grid; gap:6px; min-width:190px; }
.object-map-popup .leaflet-popup-content img { width:100%; height:110px; border-radius:10px; object-fit:cover; }
.object-map-popup .leaflet-popup-content small { color:#6e695f; }
.object-map-popup .leaflet-popup-content span { color:#6e695f; }
.object-map-popup .leaflet-popup-content a { color:#f5333a; font-weight:800; }

/* Registered user profile */
.header-profile { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 17px; border:1px solid rgba(255,255,255,.72); border-radius:15px; background:rgba(255,255,255,.94); color:#171411; text-decoration:none; font-weight:800; box-shadow:0 8px 24px rgba(17,20,26,.12); }
.header-profile:hover,
.header-profile:focus-visible { border-color:#ff343b; background:#fff; color:#c5242b; }
.profile-main { padding-top:34px; padding-bottom:70px; }
.profile-hero h1 { margin:6px 0 10px; font:800 clamp(38px,6vw,68px)/1 Manrope,sans-serif; }
.profile-hero > p:last-child { max-width:680px; color:#6e695f; font-size:18px; }
.profile-card { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:18px; max-width:820px; margin-top:28px; padding:28px; border:1px solid #ded5c8; border-radius:28px; background:#fffdfa; color:#24201c; box-shadow:0 18px 45px rgba(74,61,46,.09); }
.profile-identity { display:flex; align-items:center; gap:18px; }
.profile-identity > span { display:grid; place-items:center; width:74px; height:74px; border-radius:22px; background:#f7d8d6; color:#a92f34; font:800 30px Manrope,sans-serif; }
.profile-identity small { color:#817970; font-weight:700; }
.profile-identity h2 { margin:4px 0; font:800 25px Manrope,sans-serif; }
.profile-identity a { color:#514a43; }
.profile-stats { display:flex; gap:10px; }
.profile-stats > * { display:grid; min-width:126px; padding:16px; border:1px solid #4a433d; border-radius:18px; color:#fff; text-decoration:none; }
.profile-stats strong { font:800 27px Manrope,sans-serif; }
.profile-stats span { color:#c7beb3; font-size:13px; }
.profile-actions { display:grid; gap:8px; }
.profile-actions a { padding:12px 16px; border:1px solid #615950; border-radius:14px; color:#fff; text-align:center; text-decoration:none; font-weight:800; }
.profile-actions .profile-primary { border-color:#f5333a; background:#f5333a; }
.profile-quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.profile-quick-actions a { min-height:52px; display:flex; align-items:center; justify-content:center; padding:0 16px; border:1px solid #d8cec1; border-radius:15px; background:#f8f4ee; color:#332e29; text-align:center; text-decoration:none; font-weight:800; }
.profile-quick-actions .profile-primary { border-color:#df565b; background:#df565b; color:#fff; }
.profile-menu { display:grid; overflow:hidden; border:1px solid #e3dbd0; border-radius:18px; background:#fbf8f3; }
.profile-menu > a { display:grid; grid-template-columns:44px minmax(0,1fr) auto 18px; align-items:center; gap:12px; min-height:68px; padding:10px 14px; border-bottom:1px solid #e3dbd0; color:#24201c; text-decoration:none; }
.profile-menu > a:last-child { border-bottom:0; }
.profile-menu-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:#eee7de; color:#7b393c; font-size:22px; }
.profile-menu > a > span:nth-child(2) { display:grid; gap:3px; }
.profile-menu small { color:#777068; }
.profile-menu b { min-width:30px; padding:5px 8px; border-radius:999px; background:#eee7de; color:#514a43; text-align:center; }
.profile-menu i { color:#a69d92; font-size:25px; font-style:normal; }
.profile-help-menu { display:grid; margin-top:18px; overflow:hidden; border:1px solid #ded5c8; border-radius:20px; background:#fff; }
.profile-help-menu a { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 14px; padding:17px 20px; border-bottom:1px solid #e8e1d7; color:#171411; text-decoration:none; }
.profile-help-menu a:last-child { border-bottom:0; }
.profile-help-menu span { font-weight:800; }
.profile-help-menu small { color:#716a62; }
.profile-help-menu b { grid-column:2; grid-row:1 / span 2; align-self:center; color:#f5333a; font-size:20px; }
.profile-agent-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:18px; padding:22px 26px; border:1px solid #ded5c8; border-radius:22px; background:#fff; }
.profile-agent-panel h2 { margin:4px 0 0; font:800 24px Manrope,sans-serif; }
.profile-agent-panel .agent-access-slot { justify-content:flex-end; }
.profile-favorites { margin-top:42px; }
.profile-section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.profile-section-heading h2 { margin:4px 0 0; font:800 30px Manrope,sans-serif; }
.profile-section-heading a { color:#f5333a; font-weight:800; }
.profile-favorite-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.profile-favorite-card { display:grid; overflow:hidden; border:1px solid #ded5c8; border-radius:20px; background:#fff; color:#171411; text-decoration:none; }
.profile-favorite-card > img, .profile-favorite-card > .object-map-no-photo { width:100%; height:190px; border-radius:0; object-fit:cover; }
.profile-favorite-card > span:last-child { display:grid; gap:5px; padding:16px; }
.profile-favorite-card strong { color:#f5333a; font:800 21px Manrope,sans-serif; }
.profile-favorite-card small { color:#6e695f; }
.profile-empty, .profile-loading { display:grid; grid-column:1 / -1; gap:8px; padding:26px; border:1px dashed #cfc3b4; border-radius:20px; background:#fff; color:#171411; }
.profile-empty span { color:#6e695f; }
.profile-empty a { color:#f5333a; font-weight:800; }

@media (max-width: 760px) {
  .submission-location-map { min-height:280px; }
  .object-map-page { overflow:hidden; }
  .object-map-page .site-header { display:none; }
  .object-map-layout { position:relative; display:block; height:calc(100dvh - 78px - env(safe-area-inset-bottom)); min-height:480px; }
  .object-map-canvas { width:100%; height:100%; min-height:100%; }
  .object-map-mobile-tools { position:absolute; z-index:500; top:12px; left:12px; right:12px; display:flex; align-items:center; justify-content:space-between; gap:10px; pointer-events:none; }
  .object-map-mobile-tools > * { pointer-events:auto; }
  .object-map-mobile-tools button, .object-map-mobile-tools span { min-height:44px; border:1px solid rgba(23,20,17,.12); border-radius:999px; padding:0 17px; background:rgba(255,255,255,.96); box-shadow:0 8px 24px rgba(31,25,20,.16); color:#171411; font:800 14px Golos Text,sans-serif; }
  .object-map-mobile-tools span { display:flex; align-items:center; }
  .object-map-panel { position:fixed; z-index:1300; inset:0 0 0 12%; display:block; padding:22px 18px calc(28px + env(safe-area-inset-bottom)); overflow:auto; border:0; border-radius:24px 0 0 24px; box-shadow:-20px 0 50px rgba(31,25,20,.25); transform:translateX(105%); transition:transform .24s ease; }
  .object-map-panel.is-open { transform:translateX(0); }
  .map-filters-open::before { content:""; position:fixed; z-index:1250; inset:0; background:rgba(12,10,8,.42); }
  .object-map-filter-close { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:42px; height:42px; border:0; border-radius:50%; background:#eee8df; color:#171411; font-size:28px; }
  .object-map-title { padding-right:48px; }
  .object-map-results { padding-bottom:30px; }
  .object-map-selected { position:absolute; z-index:600; left:12px; right:12px; bottom:12px; display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:11px; padding:9px; border:1px solid rgba(23,20,17,.1); border-radius:20px; background:rgba(255,255,255,.97); box-shadow:0 14px 40px rgba(31,25,20,.24); }
  .object-map-selected[hidden] { display:none; }
  .object-map-selected img, .object-map-selected > .object-map-no-photo { width:72px; height:68px; border-radius:14px; object-fit:cover; }
  .object-map-selected > div { display:grid; gap:3px; min-width:0; }
  .object-map-selected strong { color:#f5333a; font:800 16px Manrope,sans-serif; }
  .object-map-selected b, .object-map-selected small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .object-map-selected small { color:#716a62; }
  .object-map-selected a { border-radius:13px; padding:11px 13px; background:#f5333a; color:#fff; text-decoration:none; font-weight:800; }
  .object-map-selected button { position:absolute; top:-9px; right:-4px; display:grid; place-items:center; width:26px; height:26px; border:0; border-radius:50%; background:#171411; color:#fff; font-size:18px; }
  .object-map-title h1 { font-size:26px; }
  .object-map-filter-grid { grid-template-columns:1fr; }
  .object-map-filter-grid label:nth-child(3), .object-map-filter-grid label:nth-child(4) { grid-column:auto; }
}
@media (max-width: 900px) {
  .profile-card { grid-template-columns:1fr; }
  .profile-favorite-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .header-profile { min-height:40px; padding:0 12px; font-size:13px; }
  .profile-main { padding-top:20px; }
  .profile-card { padding:20px; border-radius:22px; }
  .profile-agent-panel { align-items:stretch; flex-direction:column; padding:20px; }
  .profile-agent-panel .agent-access-slot { width:100%; justify-content:flex-start; }
  .request-page-actions { width:100%; }
  .request-page-actions a { width:100%; }
  .profile-identity { align-items:flex-start; }
  .profile-stats { display:grid; grid-template-columns:1fr 1fr; }
  .profile-stats > * { min-width:0; }
  .profile-quick-actions { grid-template-columns:1fr; }
  .profile-menu > a { grid-template-columns:42px minmax(0,1fr) auto 16px; padding:10px 12px; }
  .profile-favorite-grid { grid-template-columns:1fr; }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 980px) {
  .home-page.agent-access-expanded .site-header {
    position: relative;
    inset: auto;
    background: #1b2735;
  }
  .home-page.agent-access-expanded .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .home-page.agent-access-expanded .header-controls {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page.agent-access-expanded .header-utility-controls {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .home-page.agent-access-expanded .agent-access-slot-expanded {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .home-page.agent-access-expanded .header-action {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    justify-self: stretch;
  }
  .home-page.agent-access-expanded .home-hero-inner {
    padding-top: 52px;
  }
  .header-controls {
    gap: 8px;
  }
  .header-phone {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .agent-access-button,
  .agent-terms-button,
  .agent-status {
    padding: 0 11px;
    font-size: 13px;
  }
  .object-detail {
    grid-template-columns: 1fr;
  }
  .zone-map-shell {
    grid-template-columns: 1fr;
  }
  .zone-map {
    min-height: 560px;
  }
  .zone-panel {
    max-height: none;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialist-grid { grid-template-columns: 1fr; }
  .modal-layout {
    grid-template-columns: 1fr;
  }
  .specialist-modal {
    grid-template-columns: 1fr;
  }
  .specialist-modal-photo {
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .brand-logo {
    width: min(190px, 48vw);
    height: 44px;
  }
  .header-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }
  .home-page.agent-access-expanded .header-controls {
    grid-template-columns: 1fr;
  }
  .home-page.agent-access-expanded .agent-access-slot-expanded {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }
  .home-page.agent-access-expanded .header-action {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }
  .agent-access-slot {
    width: auto;
  }
  .agent-approved-controls {
    width: 100%;
    display: grid;
  }
  .agent-access-button,
  .agent-terms-button,
  .agent-status {
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    white-space: normal;
  }
  .header-phone {
    display: none;
  }
  .header-action {
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .home-hero {
    min-height: 440px;
  }
  .home-hero-inner {
    padding: 176px 0 54px;
  }
  .hero-location {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
  .home-hero h1 {
    margin-top: 44px;
    font-size: 36px;
    text-align: left;
  }
  .home-hero p {
    margin: 0;
    max-width: 300px;
    font-size: 15px;
    text-align: left;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .hero-primary,
  .hero-secondary {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
  .catalog-toolbar {
    margin-top: -24px;
    padding: 12px;
    border-radius: 18px;
  }
  .toolbar-main,
  .toolbar-filters {
    align-items: stretch;
  }
  .toolbar-search,
  .toolbar-field,
  .toolbar-field.price-field {
    flex: 1 1 100%;
  }
  .toolbar-field.currency-field {
    flex: 1 1 48%;
  }
  .toolbar-group {
    width: 100%;
  }
  .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }
  .toolbar-map,
  .toolbar-reset,
  .toolbar-show {
    flex: 1 1 auto;
  }
  .hero-search-card {
    margin-top: 28px;
  }
  .hero-tab {
    min-height: 46px;
    padding: 0 24px;
  }
  .hero-search-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 0 20px 20px 20px;
  }
  .hero-select summary,
  .hero-map-button,
  .hero-show-button {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .hero-select summary {
    padding: 0 16px;
  }
  .hero-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .hero-price-fields {
    grid-template-columns: 1fr;
  }
  .filters-inner { align-items: flex-start; gap: 10px; }
  .filter-group + .filter-group { border-left: 0; padding-left: 0; }
  .catalog-search {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .filter-field {
    flex: 1 1 100%;
  }
  .filter-field.compact {
    max-width: none;
  }
  .filter-field select {
    min-width: 0;
  }
  .room-filter {
    width: 100%;
  }
  .advanced-grid {
    grid-template-columns: 1fr;
  }
  .reset-filters {
    width: 100%;
  }
  .filter-tools {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .map-link { flex: none; }
  .result-count { margin-left: 0; }
  .map-promo {
    min-height: 420px;
    margin-top: 18px;
    padding: 24px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(11, 22, 32, .94) 0%, rgba(11, 22, 32, .78) 56%, rgba(11, 22, 32, .45) 100%),
      url("assets/map-preview.svg") center / cover no-repeat,
      #18242e;
  }
  .map-promo p {
    font-size: 16px;
  }
  .map-promo-action {
    width: 100%;
    margin-top: 26px;
  }
  .map-promo-price {
    min-height: 38px;
    padding: 0 13px;
    font-size: 14px;
  }
  .map-promo-price.price-one {
    top: auto;
    right: auto;
    left: 24px;
    bottom: 96px;
  }
  .map-promo-price.price-two {
    top: auto;
    right: 24px;
    bottom: 146px;
  }
  .map-promo-price.price-three {
    right: 28px;
    bottom: 90px;
  }
  .object-page { padding-top: 18px; }
  .map-page { padding-top: 14px; }
  .map-hero h1 { font-size: 34px; }
  .map-hero p { font-size: 15px; }
  .zone-map { min-height: 460px; }
  .zone-map { min-height: min(420px, 62vh); }
  .zone-panel { padding: 16px; }
  .object-info { padding: 18px; }
  .object-actions {
    grid-template-columns: 1fr;
  }
  .object-thumbs {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }
  .object-gallery-arrow {
    width: 38px;
    height: 38px;
  }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-actions {
    grid-template-columns: 1fr;
  }
  .section-heading {
    display: block;
  }
  .specialist-card {
    grid-template-columns: 1fr;
  }
  .specialist-photo {
    max-height: 360px;
  }
  .specialist-actions {
    grid-template-columns: 1fr;
  }
  .detail-modal {
    align-items: end;
    padding: 0;
  }
  .agent-modal {
    align-items: end;
    padding: 0;
  }
  .agent-modal-panel {
    width: 100%;
    max-height: calc(100vh - 18px);
    border-radius: 18px 18px 0 0;
  }
  .agent-modal-scroll {
    max-height: calc(100vh - 18px);
    padding: 24px 16px 28px;
  }
  .agent-terms-scroll {
    padding-top: 30px;
  }
  .agent-modal-heading h2,
  .agent-success h2 {
    font-size: 26px;
  }
  .agent-form-grid {
    grid-template-columns: 1fr;
  }
  .agent-specialization-options {
    grid-template-columns: 1fr;
  }
  #agentSpecializationModal.agent-modal {
    align-items: center;
    padding: 12px;
  }
  .agent-specialization-required-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }
  .agent-specialization-required-panel .agent-modal-scroll {
    max-height: calc(100vh - 24px);
    padding: 28px 18px 24px;
  }
  .agent-direction-heading h2 {
    font-size: 30px;
  }
  .agent-direction-heading p {
    margin-top: 10px;
    font-size: 15px;
  }
  .agent-direction-form {
    margin-top: 24px;
  }
  .agent-direction-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .agent-direction-card {
    min-height: 124px;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 15px;
    padding: 18px 48px 18px 18px;
  }
  .agent-direction-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 25px;
  }
  .agent-direction-copy strong {
    font-size: 20px;
  }
  .agent-direction-check {
    top: 16px;
    right: 16px;
  }
  .agent-terms-content {
    gap: 14px;
    margin-top: 22px;
  }
  .agent-terms-visual-section {
    gap: 10px;
  }
  .agent-terms-card {
    padding: 20px;
    border-radius: 16px;
  }
  .agent-commission-split-bar {
    min-height: 66px;
    border-radius: 14px;
  }
  .agent-commission-split-bar strong {
    font-size: 26px;
  }
  .agent-commission-split-labels {
    gap: 12px;
    margin-top: 14px;
  }
  .agent-commission-split-labels strong,
  .agent-commission-example dt,
  .agent-commission-scenario b {
    font-size: 15px;
  }
  .agent-commission-split-labels span,
  .agent-commission-full-share,
  .agent-commission-scenario p {
    font-size: 14px;
  }
  .agent-commission-full-share {
    margin-top: 20px;
  }
  .agent-commission-example dl > div {
    gap: 12px;
    padding: 12px 0;
  }
  .agent-commission-example dd {
    font-size: 16px;
  }
  .agent-commission-example .agent-example-result dd {
    font-size: 21px;
  }
  .agent-commission-scenario {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }
  .agent-commission-scenario > strong {
    font-size: 24px;
  }
  .agent-terms-section {
    padding: 20px;
  }
  .agent-terms-actions {
    grid-template-columns: 1fr;
  }
  .agent-field-wide {
    grid-column: auto;
  }
  .agent-private-check {
    min-height: 36px;
    align-self: auto;
  }
  .modal-panel {
    width: 100%;
    max-height: calc(100vh - 22px);
    border-radius: 22px 22px 0 0;
  }
  .modal-layout {
    gap: 18px;
    padding: 20px 16px 24px;
  }
  .modal-close {
    top: 10px;
    margin: 10px 10px 0 0;
  }
  .modal-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
  .specialist-modal {
    gap: 18px;
    padding: 20px 16px 24px;
  }
  .specialist-modal-photo {
    max-width: 100%;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-contacts {
    flex-direction: column;
    gap: 8px;
  }
}

/* 2026-08-28: light, search-first catalog refresh inspired by the clearest
   parts of large property marketplaces. The selectors are scoped to the
   public home catalog so internal tools and submission forms keep their
   established layouts. */
.catalog-refresh {
  --bg: #f6f6f3;
  --line: #e7e8e4;
  --line-strong: #d9dcd7;
  --shadow: 0 10px 30px rgba(25, 31, 36, .07);
  background: var(--bg);
}

.catalog-refresh .site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid #eceeea;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(22, 18, 14, .02);
  backdrop-filter: blur(16px);
}

.catalog-refresh .header-inner {
  min-height: 76px;
}

.catalog-refresh .brand-logo {
  width: min(216px, 32vw);
  height: 50px;
}

.catalog-refresh .header-profile {
  min-height: 44px;
  border-color: #dfe2de;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.catalog-refresh .header-action {
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(245, 51, 58, .18);
}

.catalog-refresh .language-switcher {
  border-color: #dfe2de;
  background: #fff;
  box-shadow: none;
}

.catalog-refresh .home-hero {
  min-height: 390px;
  align-items: center;
  background: #1d2b39;
}

.catalog-refresh .home-hero::before {
  background:
    linear-gradient(90deg, rgba(16, 28, 40, .82) 0%, rgba(16, 28, 40, .56) 48%, rgba(16, 28, 40, .34) 100%),
    var(--hero-image, url("/assets/hero-building.webp")) center 44% / cover no-repeat;
}

.catalog-refresh .home-hero::after {
  background: linear-gradient(180deg, rgba(13, 24, 35, .04), rgba(13, 24, 35, .34));
}

.catalog-refresh .home-hero-inner {
  padding: 54px 0 70px;
}

.catalog-refresh .hero-eyebrow,
.catalog-refresh .catalog-eyebrow {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-refresh .hero-eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .74);
}

.catalog-refresh .hero-location {
  min-height: 38px;
  padding-inline: 14px;
}

.catalog-refresh .home-hero h1 {
  max-width: 760px;
  margin: 34px 0 12px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
}

.catalog-refresh .home-hero p {
  margin-bottom: 24px;
  font-size: 17px;
}

.catalog-refresh .hero-primary,
.catalog-refresh .hero-secondary {
  min-height: 48px;
  border-radius: 12px;
}

.catalog-refresh .catalog-toolbar {
  margin-top: -34px;
  margin-bottom: 28px;
  padding: 0 20px 20px;
  border-color: #e7e9e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 30, 36, .1);
}

.catalog-deal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 -20px 18px;
  border-bottom: 1px solid #e4e6e2;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #f2f3f0;
}

.catalog-deal-tabs button {
  min-height: 58px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6c716d;
  font: 700 18px "Manrope", sans-serif;
  cursor: pointer;
}

.catalog-deal-tabs button + button {
  border-left: 1px solid #e4e6e2;
}

.catalog-deal-tabs button.is-active {
  border-bottom-color: var(--red);
  background: #fff;
  color: var(--ink);
}

.catalog-refresh .catalog-primary-fields {
  grid-template-columns: minmax(170px, .8fr) minmax(210px, 1.15fr) minmax(140px, .65fr) 112px;
  gap: 10px;
}

.catalog-option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.catalog-option-row > span {
  width: 76px;
  flex: 0 0 76px;
  color: #737974;
  font-weight: 700;
}

.catalog-option-row .toolbar-group {
  flex: 1;
}

.catalog-keyword-search {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border-color: #dfe2de;
  border-radius: 13px;
  background: #fbfcfa;
}

.catalog-occupancy-group {
  margin: 12px 0 0 90px;
}

.catalog-option-row[hidden],
.catalog-occupancy-group[hidden] {
  display: none !important;
}

.catalog-toolbar-heading,
.catalog-heading,
.catalog-heading-actions {
  display: flex;
  align-items: center;
}

.catalog-toolbar-heading,
.catalog-heading {
  justify-content: space-between;
  gap: 20px;
}

.catalog-toolbar-heading {
  margin-bottom: 12px;
}

.catalog-toolbar-heading h2,
.catalog-heading h2 {
  margin: 3px 0 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.12;
}

.catalog-toolbar-heading h2 {
  font-size: clamp(20px, 2.5vw, 26px);
}

.catalog-heading {
  margin-bottom: 18px;
}

.catalog-heading h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.catalog-heading-actions {
  justify-content: flex-end;
  gap: 12px;
}

.toolbar-toggle,
.catalog-map-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.toolbar-toggle {
  display: none;
}

.catalog-map-link::before {
  content: "⌖";
  margin-right: 7px;
  color: var(--red);
  font-size: 18px;
}

.catalog-refresh .toolbar-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(190px, .8fr) minmax(135px, .45fr) 118px;
  margin-bottom: 12px;
}

.catalog-refresh .toolbar-search,
.catalog-refresh .toolbar-field,
.catalog-refresh .toolbar-field.price-field,
.catalog-refresh .toolbar-field.currency-field {
  min-height: 52px;
  width: 100%;
  flex: none;
  border-color: #dfe2de;
  border-radius: 13px;
  background: #fbfcfa;
}

.catalog-refresh .toolbar-filters {
  padding-top: 2px;
}

.catalog-refresh .toolbar-chip {
  min-height: 38px;
  padding-inline: 14px;
  border-color: #dfe2de;
  background: #fff;
  color: #595f5a;
  font-size: 14px;
}

.catalog-refresh .toolbar-chip.is-active {
  border-color: #1b2735;
  background: #1b2735;
  color: #fff;
}

.catalog-refresh .toolbar-actions {
  width: 100%;
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eceeea;
}

.catalog-refresh .toolbar-map,
.catalog-refresh .toolbar-favorites,
.catalog-refresh .toolbar-reset,
.catalog-refresh .toolbar-show {
  min-height: 42px;
  border-radius: 12px;
}

.catalog-refresh .toolbar-show {
  margin-left: auto;
  padding-inline: 20px;
}

.catalog-refresh .catalog {
  padding: 10px 0 24px;
}

.catalog-refresh .grid {
  gap: 18px;
}

.catalog-refresh .card {
  border-color: #e4e6e2;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(25, 31, 36, .055);
}

.catalog-refresh .card:hover,
.catalog-refresh .card:focus-visible {
  border-color: #ccd1cc;
  box-shadow: 0 14px 34px rgba(25, 31, 36, .1);
  transform: translateY(-3px);
}

.catalog-refresh .photo {
  aspect-ratio: 16 / 11;
  background: #eceeea;
}

.catalog-refresh .badge-row {
  top: 10px;
  left: 10px;
  right: 10px;
}

.catalog-refresh .favorite-button {
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, .94);
  color: #242a26;
  font-size: 23px;
}

.catalog-refresh .card-body {
  gap: 10px;
  padding: 16px;
}

.catalog-refresh .price {
  color: #cf242d;
  font-size: 24px;
}

.catalog-refresh .title {
  font-size: 16px;
}

.catalog-refresh .spec {
  min-height: 27px;
  border: 0;
  border-radius: 8px;
  background: #f1f2ef;
  padding-inline: 9px;
  font-size: 12px;
}

.catalog-refresh .card-attribution {
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #eceeea;
  border-radius: 0;
  background: transparent;
}

.catalog-refresh .card-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-refresh .card-actions .card-action.primary {
  grid-column: auto;
}

.catalog-refresh .card-actions .card-action.share {
  display: block;
  grid-column: 1 / -1;
}

.catalog-refresh .card-action {
  min-height: 40px;
  border-width: 1px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.catalog-refresh .map-promo {
  margin-top: 34px;
}

@media (max-width: 900px) {
  .catalog-refresh .toolbar-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr);
  }
}

@media (max-width: 680px) {
  .catalog-refresh .site-header {
    position: relative;
  }

  .catalog-refresh .header-inner {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .catalog-refresh .brand-logo {
    width: min(180px, 52vw);
    height: 42px;
  }

  .catalog-refresh .header-controls {
    gap: 8px;
  }

  .catalog-refresh .header-profile,
  .catalog-refresh .header-action {
    min-height: 44px;
  }

  .catalog-refresh .home-hero {
    min-height: 350px;
  }

  .catalog-refresh .home-hero-inner {
    padding: 38px 0 58px;
  }

  .catalog-refresh .hero-eyebrow {
    margin-bottom: 14px;
  }

  .catalog-refresh .home-hero h1 {
    margin-top: 30px;
    font-size: clamp(34px, 11vw, 44px);
  }

  .catalog-refresh .home-hero p {
    max-width: 330px;
  }

  .catalog-refresh .catalog-toolbar {
    margin-top: -18px;
    padding: 0 13px 13px;
    border-radius: 16px;
  }

  .catalog-deal-tabs {
    margin: 0 -13px 12px;
    border-radius: 16px 16px 0 0;
  }

  .catalog-deal-tabs button {
    min-height: 50px;
    font-size: 16px;
  }

  .catalog-toolbar-heading {
    align-items: center;
    margin-bottom: 10px;
  }

  .catalog-toolbar-heading h2 {
    max-width: none;
    font-size: 19px;
    white-space: nowrap;
  }

  .toolbar-toggle {
    display: inline-flex;
    flex: none;
    min-height: 40px;
    padding-inline: 13px;
    font-size: 14px;
  }

  .toolbar-toggle[aria-expanded="true"] {
    border-color: #1b2735;
    background: #1b2735;
    color: #fff;
  }

  .catalog-refresh .toolbar-main {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .catalog-refresh .catalog-primary-fields {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .catalog-primary-fields .toolbar-field:nth-of-type(1),
  .catalog-primary-fields .toolbar-field:nth-of-type(2) {
    grid-column: 1 / -1;
  }

  .catalog-option-row {
    display: block;
    margin-top: 12px;
  }

  .catalog-option-row > span {
    display: block;
    width: auto;
    margin-bottom: 7px;
    font-size: 13px;
  }

  .catalog-occupancy-group {
    margin-left: 0;
  }

  .catalog-refresh .toolbar-search,
  .catalog-refresh .toolbar-field {
    min-height: 50px;
  }

  .catalog-refresh .toolbar-search {
    grid-column: 1 / -1;
  }

  .catalog-refresh .toolbar-field[for="heroDistrictFilter"] {
    grid-column: 1 / -1;
  }

  .catalog-refresh .toolbar-filters[hidden] {
    display: none;
  }

  .catalog-refresh .toolbar-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .catalog-refresh .toolbar-group::-webkit-scrollbar {
    display: none;
  }

  .catalog-refresh .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-refresh .toolbar-show {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .catalog-heading {
    align-items: flex-end;
  }

  .catalog-heading-actions {
    display: grid;
    justify-items: end;
    gap: 7px;
  }

  .catalog-refresh .result-count {
    font-size: 12px;
  }

  .catalog-map-link {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .catalog-refresh .grid {
    gap: 16px;
  }

  .catalog-refresh .photo {
    aspect-ratio: 16 / 10.5;
  }

  .catalog-refresh .card-body {
    padding: 15px;
  }

  .catalog-refresh .map-promo {
    margin-top: 26px;
  }
}

/* Agent cabinet and approved-agent workspace */
.agent-crm-page,
.agent-public-page,
.agent-directory-page {
  min-height: 100vh;
  background: var(--bg);
}
.agent-crm-page h1,
.agent-crm-page h2,
.agent-crm-page h3,
.agent-public-page h1,
.agent-public-page h2,
.agent-public-page h3,
.agent-object-workspace h2,
.agent-object-workspace h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}
.crm-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
}
.crm-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.crm-catalog-link,
.crm-public-link,
.crm-cabinet-inline-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.crm-catalog-link:hover,
.crm-public-link:hover,
.crm-cabinet-inline-link:hover {
  border-color: var(--ink);
}
.crm-main,
.agent-public-main {
  padding-top: 42px;
  padding-bottom: 72px;
}

.header-directory {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.section-heading-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.agent-directory-main {
  padding-top: 42px;
  padding-bottom: 80px;
}
.agent-directory-heading {
  margin: 24px 0 28px;
}
.agent-directory-heading h1 {
  margin: 5px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}
.agent-directory-heading > p:not(.crm-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}
.agent-directory-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.agent-directory-filters input,
.agent-directory-filters select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.agent-directory-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}
.agent-directory-list {
  display: grid;
  gap: 12px;
}
.agent-directory-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 24, 20, .04);
}
.agent-directory-profile-link {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.agent-directory-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0ee;
  color: var(--red);
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  font-weight: 800;
}
.agent-directory-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.agent-directory-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.agent-directory-name-row strong {
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}
.agent-directory-badge {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.agent-directory-meta,
.agent-directory-count {
  color: var(--muted);
  font-size: 14px;
}
.agent-directory-count {
  font-weight: 700;
}
.agent-directory-arrow {
  color: var(--muted-2);
  font-size: 25px;
}
.agent-directory-contact {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 720px) {
  .header-directory {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #dfe2de;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
  }
  .catalog-refresh .header-action { grid-column: 1 / -1; }
  .agent-directory-main { padding-top: 24px; }
  .agent-directory-filters { grid-template-columns: 1fr; }
  .agent-directory-card { align-items: stretch; flex-direction: column; }
  .agent-directory-profile-link { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .agent-directory-avatar { width: 60px; height: 60px; font-size: 21px; }
  .agent-directory-meta { line-height: 1.45; }
  .agent-directory-contact { width: 100%; }
}

/* Owner-only administrative dashboard */
.admin-dashboard-page {
  min-height: 100vh;
  background: #F4F1EB;
}
.admin-dashboard-main {
  padding-top: 38px;
  padding-bottom: 84px;
}
.admin-dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.admin-dashboard-heading h1 {
  margin: 5px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}
.admin-dashboard-heading > div > p:not(.crm-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}
.admin-dashboard-heading button {
  min-height: 48px;
  padding: 11px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.admin-dashboard-heading button:disabled { opacity: .55; cursor: wait; }
.admin-dashboard-state {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}
.admin-dashboard-state[hidden] { display: none; }
.admin-dashboard-state strong { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 24px; }
.admin-dashboard-state span { display: block; }
.admin-dashboard-state.is-error { border-color: #F0B8B5; background: #FFF8F7; }
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-metric {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.admin-metric > span { color: var(--muted); font-weight: 700; }
.admin-metric strong { font-family: "Manrope", sans-serif; font-size: 38px; line-height: 1; }
.admin-metric small { color: var(--muted-2); }
.admin-metric.is-blue strong { color: #2369A8; }
.admin-metric.is-green strong { color: #17704A; }
.admin-metric.is-gold strong { color: #9A6700; }
.admin-metric.is-red strong { color: var(--red); }
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
  gap: 16px;
  margin-bottom: 16px;
}
.admin-dashboard-grid > *,
.admin-metric-grid > * { min-width: 0; }
.admin-dashboard-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.admin-dashboard-panel + .admin-dashboard-panel { margin-top: 16px; }
.admin-dashboard-grid .admin-dashboard-panel + .admin-dashboard-panel { margin-top: 0; }
.admin-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-panel-heading h2 { margin: 4px 0 0; font-family: "Manrope", sans-serif; font-size: 24px; }
.admin-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.admin-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.admin-chart-legend i { width: 9px; height: 9px; border-radius: 50%; }
.admin-chart-legend .visits { background: #2369A8; }
.admin-chart-legend .registrations { background: var(--red); }
.admin-week-chart {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 8px;
}
.admin-day { min-width: 0; display: grid; gap: 5px; text-align: center; }
.admin-day-bars { height: 190px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.admin-day-bars i { width: min(18px, 35%); min-height: 4px; border-radius: 6px 6px 0 0; }
.admin-day-bars .visits { background: #2369A8; }
.admin-day-bars .registrations { background: var(--red); }
.admin-day strong { color: var(--muted); font-size: 12px; }
.admin-day small { color: var(--muted-2); font-size: 11px; }
.admin-page-list { display: grid; gap: 15px; }
.admin-page-row { display: grid; gap: 7px; }
.admin-page-row > span { display: flex; justify-content: space-between; gap: 12px; }
.admin-page-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-page-row small { color: var(--muted); }
.admin-page-row > i { height: 8px; overflow: hidden; border-radius: 999px; background: #EEEAE3; }
.admin-page-row > i > b { height: 100%; display: block; border-radius: inherit; background: #2369A8; }
.admin-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-funnel-step { min-width: 0; display: grid; gap: 9px; padding: 16px; border-radius: 15px; background: #F7F4EF; }
.admin-funnel-step > span { min-height: 42px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-funnel-step > span b { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.admin-funnel-step > strong { font-family: "Manrope", sans-serif; font-size: 28px; }
.admin-funnel-step > i { height: 7px; overflow: hidden; border-radius: 999px; background: #E5DED3; }
.admin-funnel-step > i > b { height: 100%; display: block; border-radius: inherit; background: var(--red); }
.admin-user-table-wrap { overflow-x: auto; }
.admin-user-table { width: 100%; border-collapse: collapse; }
.admin-user-table th,
.admin-user-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.admin-user-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.admin-user-table td { color: var(--muted); }
.admin-user-table td:first-child { min-width: 190px; color: var(--ink); white-space: normal; }
.admin-user-table td:first-child strong { display: block; }
.admin-user-table td:first-child a { color: #2369A8; font-size: 13px; text-decoration: none; }
.admin-dashboard-updated { margin: 16px 4px 0; color: var(--muted-2); font-size: 13px; text-align: right; }
@media (max-width: 820px) {
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .admin-dashboard-main { padding-top: 24px; }
  .admin-dashboard-heading { align-items: stretch; flex-direction: column; }
  .admin-dashboard-heading button { width: 100%; }
  .admin-metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-metric { min-height: 122px; padding: 15px; }
  .admin-metric strong { font-size: 31px; }
  .admin-dashboard-panel { padding: 17px; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-week-chart { gap: 5px; overflow-x: auto; }
  .admin-day-bars { height: 150px; }
  .admin-funnel { grid-template-columns: 1fr; }
}
.crm-page-heading,
.crm-panel-heading,
.agent-workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.crm-page-heading {
  margin-bottom: 28px;
}
.crm-page-heading h1,
.agent-public-heading h1 {
  max-width: 780px;
  margin: 4px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}
.crm-page-heading p:not(.crm-eyebrow),
.agent-public-heading > p:not(.crm-eyebrow),
.crm-panel-heading p,
.agent-workspace-heading p {
  margin: 0;
  color: var(--muted);
}
.crm-eyebrow {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.crm-access-state {
  min-height: 160px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--muted);
  text-align: center;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.crm-access-state[hidden] {
  display: none;
}
.crm-access-state strong {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}
.crm-access-state span {
  max-width: 560px;
}
.crm-access-state a {
  color: var(--red);
  font-weight: 700;
}
.crm-access-state.is-error {
  border-color: var(--red-line);
  background: #FFF8F7;
}
.crm-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.crm-counter {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFFFF;
}
.crm-counter strong {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  line-height: 1;
}
.crm-counter span {
  color: var(--muted);
  font-weight: 600;
}
.crm-counter-active {
  border-color: #B7DCC8;
}
.crm-counter-active strong {
  color: #176A43;
}
.crm-counter-moderation strong {
  color: #A66A00;
}
.crm-counter-removed strong {
  color: var(--muted);
}
.crm-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #EAE4D9;
  overflow-x: auto;
}
.crm-tab {
  min-height: 46px;
  flex: 1 0 max-content;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.crm-tab.is-active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(22, 18, 14, .08);
}
.crm-panel[hidden] {
  display: none;
}
.crm-panel-heading {
  margin-bottom: 18px;
}
.crm-panel-heading h2 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.2;
}
.crm-primary-link,
.crm-primary-button,
.crm-secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.crm-primary-link,
.crm-primary-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #FFFFFF;
}
.crm-primary-link:hover,
.crm-primary-button:hover {
  border-color: var(--red-hover);
  background: var(--red-hover);
}
.crm-secondary-button {
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
}
.crm-secondary-button:hover {
  border-color: var(--ink);
}
.crm-primary-button:disabled,
.crm-secondary-button:disabled,
.crm-icon-action:disabled {
  cursor: wait;
  opacity: .55;
}
.crm-small-button {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 14px;
}
.crm-object-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.crm-object-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 36%) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(22, 18, 14, .06);
  overflow: hidden;
}
.crm-object-photo-link {
  min-height: 100%;
  display: block;
  background: #EAE4D9;
}
.crm-object-photo {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
}
.crm-object-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}
.crm-object-topline {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.crm-status,
.crm-review-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.crm-status-active {
  background: #EAF6EF;
  color: #176A43;
}
.crm-status-moderation {
  background: #FFF4D6;
  color: #855800;
}
.crm-status-removed {
  background: #EEEAE4;
  color: #665F56;
}
.crm-review-badge {
  margin-left: auto;
  background: var(--red-soft);
  color: var(--red-hover);
}
.crm-object-copy h2,
.crm-object-copy h3 {
  margin: 14px 0 5px;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.crm-object-copy h2 a,
.crm-object-copy h3 a {
  text-decoration: none;
}
.crm-object-copy h2 a:hover,
.crm-object-copy h3 a:hover {
  color: var(--red);
}
.crm-object-location,
.crm-actuality {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.crm-object-price {
  margin-top: 13px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.2;
}
.crm-actuality {
  margin-top: 5px;
}
.crm-object-actions {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 17px;
}
.crm-text-button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.crm-text-button:hover {
  border-color: var(--ink);
}
.crm-status-control {
  width: 100%;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.crm-status-control select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.crm-icon-action,
.crm-icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: var(--ink);
  color: #FFFFFF;
  cursor: pointer;
}
.crm-icon-action {
  width: 38px;
  height: 38px;
}
.crm-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}
.crm-client-list,
.crm-note-list {
  display: grid;
  gap: 12px;
}
.crm-client-item,
.crm-note-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFFFF;
}
.crm-client-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}
.crm-client-item h3,
.crm-note-item h3 {
  margin: 3px 0 4px;
  font-size: 18px;
}
.crm-client-item h3 a,
.crm-note-item h3 a {
  text-decoration: none;
}
.crm-client-item p:not(.crm-eyebrow),
.crm-note-heading p {
  margin: 0;
  color: var(--muted);
}
.crm-note-item {
  padding: 20px;
}
.crm-note-heading,
.crm-note-actions,
.agent-workspace-action-row,
.agent-comments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crm-note-heading > span {
  color: var(--muted-2);
  font-size: 13px;
}
.crm-note-input,
.agent-object-workspace textarea,
.agent-object-workspace input,
.crm-field input,
.crm-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
}
.crm-note-input {
  min-height: 112px;
  margin-top: 15px;
  padding: 13px;
  resize: vertical;
}
.crm-note-actions {
  margin-top: 10px;
}
.crm-inline-message,
.agent-workspace-action-row > span {
  color: #176A43;
  font-size: 13px;
}
.crm-empty {
  min-height: 170px;
  display: grid;
  place-content: center;
  gap: 5px;
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.crm-empty strong {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}
.crm-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(22, 18, 14, .26);
}
.crm-dialog::backdrop {
  background: rgba(22, 18, 14, .62);
}
.crm-dialog-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  overflow-y: auto;
}
.crm-dialog-heading,
.crm-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crm-dialog-heading h2 {
  margin: 3px 0 0;
  font-size: 27px;
}
.crm-field {
  display: grid;
  gap: 6px;
}
.crm-field[hidden] {
  display: none;
}
.crm-field > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.crm-field input,
.crm-field textarea,
.agent-object-workspace textarea,
.agent-object-workspace input {
  min-height: 48px;
  padding: 11px 12px;
}
.crm-field textarea,
.agent-object-workspace textarea {
  resize: vertical;
}
.crm-form-message {
  margin: 0;
  color: var(--red-hover);
  font-weight: 600;
}
.agent-public-main .back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.agent-public-main .back-link:hover {
  color: var(--red);
}
.agent-public-heading {
  margin-bottom: 28px;
}
.agent-public-card .crm-primary-link {
  width: 100%;
  margin-top: auto;
}
.object-listing-agent {
  display: block;
  margin: 16px 0 0;
}
.object-listing-agent:empty {
  display: none;
}
.object-agent-profile {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FAF7F1;
  color: var(--ink);
  text-decoration: none;
}
.object-agent-profile:hover {
  border-color: var(--red);
}
.object-agent-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.object-agent-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.object-agent-main small,
.object-agent-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.object-agent-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.object-agent-agency {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.object-agent-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.object-agent-main em.has-rating {
  color: #9A6211;
}
.object-agent-experience {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.object-agent-count {
  white-space: nowrap;
}
.object-listing-agent a {
  color: var(--ink);
  text-decoration: none;
}
.object-listing-agent a:hover {
  color: var(--red);
}
.agent-object-workspace {
  margin-top: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.owner-private-object {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(22, 18, 14, .08);
}
.owner-private-object > h1 {
  margin: 14px 0 6px;
  font: 800 clamp(30px, 5vw, 48px)/1.05 "Manrope", sans-serif;
  letter-spacing: -.035em;
}
.owner-private-object > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.owner-private-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #FBE7E8;
  color: #A92127;
  font-weight: 800;
}

.agent-workspace-status {
  margin-top: 24px;
}

.agent-workspace-status-card {
  padding: 24px;
  border: 1px solid #e7e1d5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(22, 18, 14, 0.08);
}

.agent-workspace-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.agent-workspace-status-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.agent-workspace-status-card p {
  margin: 10px 0 0;
  color: #6e695f;
}

.agent-workspace-status-error {
  border-color: rgba(245, 51, 58, 0.25);
}

.agent-workspace-status-actions {
  display: flex;
  margin-top: 16px;
}
.agent-workspace-heading {
  align-items: center;
  margin-bottom: 18px;
}
.agent-workspace-heading h2 {
  margin: 3px 0 0;
  font-size: 28px;
}
.agent-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.agent-note-panel,
.agent-client-panel,
.agent-comments-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFFFF;
}
.agent-note-panel {
  background: #FFF9E9;
}
.agent-note-panel h3,
.agent-client-panel h3,
.agent-comments-panel h3 {
  margin: 0;
  font-size: 19px;
}
.agent-note-panel > p,
.agent-client-panel > p,
.agent-comments-heading p,
.agent-workspace-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.agent-note-panel textarea {
  margin-top: 14px;
}
.agent-workspace-action-row {
  margin-top: 10px;
}
.agent-client-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}
.agent-claim-active {
  color: #176A43 !important;
  font-weight: 700;
}
.agent-comments-panel {
  margin-top: 14px;
}
.agent-comments-heading {
  align-items: flex-start;
}
.agent-comments-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.agent-comments-title-row h3 {
  margin: 0;
}
.agent-comments-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #E7E1D5;
  border-radius: 999px;
  background: #F2EEE5;
  color: #6E695F;
  font-size: 12px;
  font-weight: 700;
}
.agent-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.agent-comment-form textarea,
.agent-comment-edit {
  width: 100%;
  min-height: 104px;
  resize: vertical;
}
.agent-comment-form textarea:focus-visible,
.agent-comment-edit:focus-visible {
  border-color: #16120E;
  outline: 3px solid rgba(245, 51, 58, .16);
  outline-offset: 2px;
}
.agent-comment-form-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
  color: var(--muted-2);
  font-size: 12px;
}
.agent-comment-form-meta [data-workspace-comment-message] {
  color: #F5333A;
  font-weight: 700;
}
.agent-comment-form-meta .is-over-limit {
  color: #F5333A;
  font-weight: 700;
}
.agent-comment-form > button[type="submit"] {
  justify-self: end;
  min-width: 150px;
}
.agent-comment-form > button[type="submit"]:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.agent-comments-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.agent-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.agent-comment-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}
.agent-comment-body {
  min-width: 0;
}
.agent-comment-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.agent-comment-meta time {
  color: var(--muted-2);
  font-size: 12px;
}
.agent-comment-time {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.agent-comment-edited {
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
}
.agent-comment-text {
  margin-top: 5px;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-comment-actions,
.agent-comment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.agent-comment-actions button,
.agent-comment-edit-actions button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.agent-comment-actions button:hover,
.agent-comment-edit-actions button:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.agent-comment-actions .agent-comment-delete-button {
  color: #F5333A;
}
.agent-comment-actions .agent-comment-delete-button:hover {
  border-color: #F5333A;
  color: #C81E26;
}
.agent-comment-edit {
  min-height: 96px !important;
}
.agent-workspace-empty {
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .crm-object-list {
    grid-template-columns: 1fr;
  }
  .crm-object-card {
    grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .crm-header-inner {
    min-height: 66px;
  }
  .crm-header .brand-logo {
    width: 180px;
    height: 44px;
  }
  .crm-catalog-link {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 14px;
  }
  .crm-main,
  .agent-public-main {
    padding-top: 26px;
    padding-bottom: 48px;
  }
  .crm-page-heading,
  .crm-panel-heading,
  .agent-workspace-heading,
  .crm-client-item,
  .crm-note-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .crm-page-heading h1,
  .agent-public-heading h1 {
    font-size: 34px;
  }
  .crm-public-link,
  .crm-primary-link,
  .crm-cabinet-inline-link {
    width: 100%;
  }
  .crm-counters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .crm-counter {
    min-height: 88px;
    padding: 14px 10px;
    text-align: center;
  }
  .crm-counter strong {
    font-size: 25px;
  }
  .crm-counter span {
    font-size: 11px;
  }
  .crm-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: -2px;
    margin-right: -2px;
    overflow: visible;
  }
  .crm-tab {
    min-width: 0;
    padding: 9px 6px;
    font-size: 12px;
    white-space: normal;
  }
  .crm-object-card {
    grid-template-columns: 1fr;
  }
  .crm-object-photo-link {
    aspect-ratio: 16 / 10;
  }
  .crm-object-photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .crm-object-copy {
    padding: 17px;
  }
  .crm-object-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-status-control {
    grid-column: 1 / -1;
    margin-left: 0;
  }
  .crm-client-item,
  .crm-note-item {
    padding: 17px;
  }
  .crm-client-item .crm-secondary-button {
    width: 100%;
  }
  .crm-note-actions,
  .agent-workspace-action-row,
  .crm-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-note-actions .crm-primary-button,
  .agent-workspace-action-row .crm-primary-button,
  .crm-dialog-actions button {
    width: 100%;
  }
  .crm-dialog-form {
    padding: 20px 17px;
  }
  .agent-object-workspace {
    padding: 24px 0;
  }
  .owner-private-object {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .agent-workspace-grid {
    grid-template-columns: 1fr;
  }
  .agent-note-panel,
  .agent-client-panel,
  .agent-comments-panel {
    padding: 17px;
  }
  .agent-comment {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
  .agent-comment-avatar {
    width: 36px;
    height: 36px;
  }
  .agent-comments-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .agent-comment-form > button[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid rgba(217, 47, 53, .62);
  outline-offset: 3px;
}

.submission-page { background: #f5f3ef; color: #20201f; }
.submission-back { color: #20201f; font-weight: 700; text-decoration: none; }
.submission-page-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:24px; }
.submission-page-nav a { display:inline-flex; align-items:center; min-height:42px; padding:0 15px; border:1px solid #d8d0c4; border-radius:13px; background:#fff; color:#20201f; font-weight:800; text-decoration:none; }
.submission-page-nav a:last-child { border-color:transparent; background:transparent; color:#c5242b; }
.submission-page-nav a:hover { border-color:#f5333a; color:#c5242b; }
.submission-page-nav a:focus-visible { outline:3px solid rgba(245,51,58,.34); outline-offset:3px; }
.submission-main { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 48px; align-items: start; padding-top: 24px; padding-bottom: 80px; }
.submission-intro { grid-column:1; grid-row:1 / span 2; position: sticky; top: 28px; padding: 18px 0; }
.submission-eyebrow { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: #fbe0e1; color: #a92127; font-weight: 700; }
.submission-intro h1 { margin: 20px 0 14px; font-family: Manrope, sans-serif; font-size: clamp(36px, 5vw, 62px); line-height: .98; letter-spacing: -.045em; }
.submission-intro > p { max-width: 520px; color: #62605b; font-size: 18px; line-height: 1.6; }
.submission-steps { display: grid; gap: 14px; margin-top: 30px; color: #46443f; }
.submission-steps span { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.submission-steps b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #20201f; color: #fff; }
.submission-form { grid-column:2; display: grid; gap: 18px; }
.lalafo-import { grid-column: 2; display:grid; gap:18px; margin-bottom:18px; padding:24px 26px; border:1px solid #e1d8ca; border-radius:22px; background:#fffdfa; box-shadow:0 16px 45px rgba(52,44,35,.06); }
.lalafo-import-copy h2 { margin:14px 0 8px; font:800 24px/1.15 Manrope,sans-serif; }
.lalafo-import-copy p { margin:0; color:#625f59; line-height:1.5; }
.lalafo-import-controls { display:grid; gap:8px; }
.lalafo-import-controls > label { color:#2a2723; font-weight:700; }
.lalafo-import-controls > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.lalafo-import-controls input { width:100%; min-width:0; box-sizing:border-box; min-height:50px; padding:0 14px; border:1px solid #cbc7be; border-radius:12px; background:#fff; color:#20201f; font:inherit; }
.lalafo-import-controls input:focus { border-color:#c62d33; box-shadow:0 0 0 3px rgba(198,45,51,.12); outline:none; }
.lalafo-import-controls button { min-height:50px; padding:0 18px; border:0; border-radius:12px; background:#20201f; color:#fff; font:800 15px Manrope,sans-serif; cursor:pointer; }
.lalafo-import-controls button:hover,
.lalafo-import-controls button:focus-visible { background:#3a3632; }
.lalafo-import-controls button:disabled { opacity:.65; cursor:wait; }
.lalafo-import-status { margin:0; color:#716b62; font-size:14px; }
.lalafo-import-status.is-success { color:#18713d; font-weight:700; }
.lalafo-import-status.is-error { color:#a92127; font-weight:700; }
.submission-form fieldset { width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; margin: 0; padding: 28px; border: 1px solid #e1ddd5; border-radius: 22px; background: #fff; box-shadow: 0 16px 45px rgba(52, 44, 35, .06); }
.submission-form legend { float: left; width: 100%; box-sizing: border-box; margin: 0 0 22px; padding: 0; font-family: Manrope, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.2; }
.submission-form legend + * { clear: both; }
.submission-grid { display: grid; gap: 18px; }
.submission-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.submission-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.submission-price-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; margin: 18px 0; }
.submission-form label:not(.consent-row):not(.photo-picker):not(.submission-honeypot) { display: grid; gap: 8px; }
.submission-form label > span { font-weight: 700; }
.submission-form input, .submission-form select, .submission-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbc7be; border-radius: 12px; background: #fff; padding: 13px 14px; color: #20201f; font: inherit; }
.submission-form textarea { resize: vertical; min-height: 130px; }
.submission-form input:focus, .submission-form select:focus, .submission-form textarea:focus { border-color: #c62d33; box-shadow: 0 0 0 3px rgba(198,45,51,.12); outline: none; }
.submission-help { margin: 0 0 16px; color: #6d6962; }
.submission-form .admin-attribution { border-color:#e9c8c9; background:#fff8f7; }
.admin-attribution .submission-help { margin:12px 0 0; line-height:1.5; }
.photo-picker { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 2px dashed #c9c2b8; border-radius: 16px; cursor: pointer; }
.photo-picker strong { color: #b6242a; }
.photo-picker span { color: #6d6962; font-weight: 500; }
.photo-input, .submission-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.photo-preview { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; overflow: hidden; }
.photo-preview div { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #eee; }
.photo-preview img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.photo-preview div.is-imported::after { content:"Lalafo"; position:absolute; left:7px; bottom:7px; padding:3px 7px; border-radius:999px; background:rgba(255,255,255,.9); color:#342f2a; font-size:11px; font-weight:800; }
.photo-remove { position: absolute; top: 7px; right: 7px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(22,18,14,.82); color: #fff; font-size: 25px; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.photo-remove:hover, .photo-remove:focus-visible { background: var(--red); }
.consent-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; color: #514f4a; line-height: 1.45; }
.consent-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: #bd292f; }
.submission-submit { min-height: 56px; border: 0; border-radius: 14px; background: #bd292f; color: #fff; font: 800 17px Manrope, sans-serif; cursor: pointer; box-shadow: 0 12px 28px rgba(189,41,47,.22); }
.submission-submit:disabled { opacity: .65; cursor: wait; }
.submission-result { padding: 16px 18px; border-radius: 12px; background: #fff0f0; color: #9d2025; font-weight: 700; }
.submission-result.is-success { background: #e8f6ed; color: #18713d; }
.submission-alternative { margin: 0; text-align: center; color: #6d6962; }
.submission-alternative a { color: #a92127; font-weight: 700; }

@media (max-width: 900px) {
  .submission-main { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .submission-intro { grid-column:1; grid-row:auto; position: static; }
  .lalafo-import { grid-column: 1; }
  .submission-form { grid-column:1; }
  .submission-steps { grid-template-columns: repeat(3, 1fr); }
  .submission-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .submission-main { padding-bottom: 48px; }
  .submission-grid.two, .submission-grid.four { grid-template-columns: 1fr; }
  .submission-price-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .submission-form fieldset { padding: 20px 16px; border-radius: 16px; }
  .lalafo-import { padding:20px 16px; border-radius:16px; }
  .lalafo-import-controls > div { grid-template-columns:1fr; }
  .submission-steps { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-picker { align-items: flex-start; flex-direction: column; }
}
.owner-edit-panel { margin-bottom: 22px; }
.owner-edit-form { display: grid; gap: 16px; }
.owner-photo-editor { margin: 0; padding: 0; border: 0; }
.owner-photo-editor legend { font-weight: 800; }
.owner-photo-editor p { color: var(--agent-muted, #6e695f); }
.owner-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.owner-photo-grid label { position: relative; display: grid; gap: 7px; cursor: pointer; }
.owner-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.owner-photo-grid input { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; }
.owner-photo-grid span { font-size: 13px; font-weight: 700; }
.registration-locked { overflow: hidden; }
.registration-gate { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; overflow: auto; background: rgba(16,25,36,.82); backdrop-filter: blur(10px); }
.registration-card { width: min(100%, 520px); display: grid; gap: 16px; padding: clamp(22px,5vw,38px); border-radius: 24px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.registration-card h2,.registration-card p { margin: 0; }
.registration-card form { display: grid; gap: 14px; }
.registration-card form > label:not(.consent-row) { display: grid; gap: 7px; font-weight: 700; }
.registration-card input,.registration-card select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #d8d1c5; border-radius: 13px; font: inherit; }
.registration-error { color: #b4232a; font-weight: 700; }
.registration-entry-card { min-height: min(680px, calc(100vh - 34px)); align-content: center; justify-items: stretch; color: #fff; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(rgba(24,39,55,.96),rgba(24,39,55,.96)),url('/assets/hero-building.webp') center/cover; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.registration-entry-card h2,.registration-entry-card > p { text-align: center; }
.registration-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.08); }
.registration-tabs button { min-height: 52px; border: 0; border-radius: 13px; color: rgba(255,255,255,.62); background: transparent; font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.registration-tabs button.is-active { color: #182737; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.registration-logo { width: min(250px,75%); height: auto; justify-self: center; margin: 20px 0 10px; }
.registration-avatar { width: 104px; height: 104px; display: grid; place-items: center; justify-self: center; margin-top: 14px; border: 1px solid #f4b9bc; border-radius: 50%; color: #c61f27; background: #fff0f1; font-family: "Manrope",Arial,sans-serif; font-size: 40px; font-weight: 800; }
.registration-welcome { margin-bottom: -8px !important; color: rgba(255,255,255,.64); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.registration-primary { min-height: 58px; display: grid; place-items: center; border: 0; border-radius: 14px; color: #182737; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); font: inherit; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.registration-primary:hover,.registration-primary:focus-visible { background: #f4f0e8; }
.registration-link { text-decoration: none; }
.registration-guest { min-height: 44px; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); justify-self: center; color: #fff; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.registration-guest:hover,.registration-guest:focus-visible { color: #ffd9db; border-bottom-color: #f5333a; outline: 0; }
.registration-entry-card form { width: 100%; }
.registration-entry-card form input,.registration-entry-card form select { color: #182534; background: #fff; }
.registration-entry-card .consent-row { color: rgba(255,255,255,.78); }
.registration-legal { color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.5; }
@media (max-width: 620px) {
  .registration-gate { padding: 0; align-items: stretch; }
  .registration-entry-card { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; padding: 26px 22px calc(28px + env(safe-area-inset-bottom)); }
}
.submission-form [hidden] { display: none !important; }
.crm-danger-button { appearance: none; border: 1px solid #d92d35; border-radius: 14px; background: #fff1f1; color: #b91f28; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.crm-danger-button:disabled { opacity: .6; cursor: wait; }
.owner-delete-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid #eadfd7; }
.owner-delete-row small { color: #706a62; max-width: 520px; }
.owner-photo-upload { display: grid; gap: 8px; margin-top: 20px; padding: 18px; border: 2px dashed #d8cec1; border-radius: 16px; background: #fffaf6; }
.owner-photo-upload > span { font-weight: 800; }
.owner-photo-upload input { width: 100%; }
.owner-photo-upload small { color: #706a62; }
.owner-photo-upload em { color: #b4232b; font-style: normal; font-weight: 600; overflow-wrap: anywhere; }
.owner-location-editor { margin:20px 0; padding:0; border:0; }
.owner-location-editor legend { font:800 18px/1.2 Manrope,sans-serif; }
.owner-location-editor > p { color:#6e695f; }
.owner-location-map { min-height:340px; border:1px solid #ded5c8; border-radius:18px; overflow:hidden; }
.owner-location-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:9px; color:#6e695f; }
.owner-location-actions button { border:1px solid #f5333a; border-radius:999px; background:#fff; color:#c8242b; padding:8px 13px; font-weight:800; }
.cabinet-notice { position: fixed; left: 50%; bottom: 28px; z-index: 12000; width: min(420px, calc(100% - 32px)); box-sizing: border-box; padding: 16px 20px; border-radius: 14px; color: #fff; background: #1f7a4d; box-shadow: 0 16px 40px rgba(22,18,14,.25); font-weight: 800; text-align: center; transform: translateX(-50%); }
.my-listings-page { padding-bottom: 72px; }
.my-listings-page .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); align-items: start; }
.my-listings-page .card { cursor: default; }
.my-listings-page .photo { height: 230px; aspect-ratio: auto; }
.my-listings-page .card-body { display: grid; gap: 12px; padding: 20px; }
.my-listings-page .card-body h2,
.my-listings-page .card-body p { margin: 0; }
.my-listings-page .hero-primary,
.my-listings-page .crm-danger-button,
.my-listings-page .crm-secondary-button { width: 100%; box-sizing: border-box; text-align: center; }
@media (max-width: 600px) {
  .my-listings-page .grid { grid-template-columns: minmax(0, 1fr); }
  .my-listings-page .photo { height: 210px; }
}
.request-owner-card form { display: grid; gap: 14px; margin: 18px 0; }
.request-owner-card label { display: grid; gap: 7px; font-weight: 700; }
.request-owner-card input, .request-owner-card textarea { width: 100%; box-sizing: border-box; border: 1px solid #d8d0c2; border-radius: 16px; padding: 14px 16px; font: inherit; background: #fff; color: #171411; }
.request-owner-card input:focus, .request-owner-card textarea:focus { outline: 3px solid rgba(245,51,58,.22); border-color: #f5333a; }

.app-bottom-nav { display: none; }
@media (max-width: 760px) {
  html:has(body.has-app-bottom-nav) { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  body.has-app-bottom-nav { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .app-bottom-nav {
    position: fixed; z-index: 1200; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 64px;
    padding: 5px; border: 1px solid rgba(24, 20, 17, .1); border-radius: 22px;
    background: rgba(255, 255, 255, .96); box-shadow: 0 14px 40px rgba(31, 25, 20, .2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .2s ease, opacity .2s ease;
    will-change: transform;
  }
  .app-bottom-nav.is-hidden,
  body.app-bottom-nav-hidden .app-bottom-nav { opacity: 0; pointer-events: none; transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); }
  .app-bottom-nav a {
    min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 17px; color: #716a62; text-decoration: none; font-size: 11px; font-weight: 700;
  }
  .app-bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .app-bottom-nav a.is-active { color: #f5333a; background: #fff0f0; }
  .app-bottom-nav a:focus-visible { outline: 3px solid rgba(245, 51, 58, .3); outline-offset: -2px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .app-bottom-nav,
  .object-mobile-actions { transition: none; }
}
@media (max-width: 760px) {
  body.has-app-bottom-nav:has(.object-mobile-actions) {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
  .object-mobile-actions {
    position:fixed;
    z-index:1195;
    left:10px;
    right:10px;
    bottom:calc(80px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    min-height:58px;
    padding:5px;
    border:1px solid rgba(24,20,17,.1);
    border-radius:20px;
    background:rgba(255,255,255,.97);
    box-shadow:0 12px 34px rgba(31,25,20,.2);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    transition:transform .2s ease, opacity .2s ease;
    will-change:transform;
  }
  body.app-bottom-nav-hidden .object-mobile-actions {
    opacity:0;
    pointer-events:none;
    transform:translateY(calc(200% + 32px + env(safe-area-inset-bottom)));
  }
  .object-mobile-actions a {
    min-width:0;
    min-height:48px;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:5px 12px;
    border:1px solid #ded5c8;
    border-radius:15px;
    background:transparent;
    color:#514b44;
    text-decoration:none;
    cursor:pointer;
  }
  .object-mobile-actions .is-primary { background:#f5333a; color:#fff; }
  .object-mobile-actions span { font-size:20px; line-height:1; }
  .object-mobile-actions small { max-width:100%; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:800; white-space:nowrap; }
  .object-mobile-actions a:focus-visible { outline:3px solid rgba(245,51,58,.3); outline-offset:-2px; }
  .object-actions { display:none; }
  .object-related { padding:18px 14px; overflow:hidden; }
  .object-related-heading { align-items:flex-start; }
  .object-related-heading > a { font-size:13px; white-space:nowrap; }
  .object-related-grid { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding-bottom:3px; }
  .object-related-grid::-webkit-scrollbar { display:none; }
  .related-object-card { flex:0 0 min(78vw,290px); scroll-snap-align:start; }
  .object-gallery-tools { top:10px; right:10px; gap:5px; }
  .object-gallery-tools > * { min-width:38px; height:38px; }
  .object-photo-counter { padding:0 9px; font-size:12px; }
  .object-gallery-tools button { font-size:20px; }
  .object-lightbox { grid-template-columns:1fr; padding:58px 0 44px; }
  .object-lightbox-arrow { position:absolute; z-index:2; top:50%; width:42px; height:52px; transform:translateY(-50%); }
  .object-lightbox-arrow.prev { left:8px; }
  .object-lightbox-arrow.next { right:8px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .object-mobile-actions { transition: none; }
}
.my-listings-page .card.is-archived {
  border-color: #d9d1c5;
  background: #f8f5ef;
}

.my-listings-page .card.is-archived .photo {
  opacity: 0.72;
}

.my-listings-page .card.is-archived .card-status {
  background: #e9e3d9;
  color: #625b52;
}

.request-owner-card .card-body { display: grid; gap: 16px; }
.request-owner-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6e695f; font-weight: 600; }
.request-owner-actions, .request-owner-form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.request-owner-actions > *, .request-owner-form-actions > * { flex: 1 1 220px; }
.request-owner-form { padding-top: 18px; border-top: 1px solid #ded5c7; }
.request-owner-form > label { display: grid; gap: 8px; margin-top: 16px; font-weight: 700; }
.request-owner-form input, .request-owner-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d8cdbd; border-radius: 18px; padding: 15px 16px; background: #fff; color: #16120e; font: inherit; }
.request-owner-form input:focus-visible, .request-owner-form textarea:focus-visible { outline: 3px solid rgba(245, 51, 58, .24); border-color: #f5333a; }
.request-owner-message { margin: 14px 0 0; color: #26735b; font-weight: 700; }
@media (max-width: 640px) {
  .request-owner-meta { align-items: flex-start; flex-direction: column; }
  .request-owner-actions, .request-owner-form-actions { flex-direction: column; }
  .request-owner-actions > *, .request-owner-form-actions > * { flex-basis: auto; width: 100%; }
}

.site-header.internal-header .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.site-header.internal-header .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.site-header.internal-header .submission-back,
.site-header.internal-header .header-action,
.site-header.internal-header .crm-catalog-link {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: auto;
}

.site-header.internal-header .header-utility-controls {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

@media (max-width: 680px) {
  .site-header.internal-header .header-inner {
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
    grid-template-columns: minmax(82px, 1fr) auto minmax(44px, 1fr);
  }

  .site-header.internal-header .brand-logo {
    width: min(170px, 38vw);
  }

  .site-header.internal-header .submission-back,
  .site-header.internal-header .header-action,
  .site-header.internal-header .crm-catalog-link {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }
}
