body[data-category="realestate"]{
  --accent: #59d5c9;
  --accent2: #d6b272;
  --accent-rgb: 89,213,201;
  --accent2-rgb: 214,178,114;
  --shadow: 0 24px 64px rgba(0,0,0,.28);
  background:
    linear-gradient(180deg, rgba(4,10,12,.84), rgba(4,10,12,.92)),
    radial-gradient(900px 540px at 8% -12%, rgba(var(--accent-rgb), .16), transparent 60%),
    radial-gradient(760px 440px at 92% 8%, rgba(var(--accent2-rgb), .16), transparent 56%),
    var(--category-theme-image, url('/assets/img/real-estate.jpg')) center/cover fixed;
}

:root[data-theme="light"] body[data-category="realestate"]{
  --shadow: 0 22px 56px rgba(0,0,0,.12);
  background:
    linear-gradient(180deg, rgba(249,252,251,.88), rgba(240,247,245,.92)),
    radial-gradient(900px 540px at 8% -12%, rgba(var(--accent-rgb), .12), transparent 60%),
    radial-gradient(760px 440px at 92% 8%, rgba(var(--accent2-rgb), .14), transparent 56%),
    var(--category-theme-image, url('/assets/img/real-estate.jpg')) center/cover fixed;
}

body[data-category="realestate"] .topbar{
  background: rgba(8,19,21,.72);
  border-bottom-color: rgba(var(--accent-rgb), .18);
}
:root[data-theme="light"] body[data-category="realestate"] .topbar{
  background: rgba(255,255,255,.82);
}
body[data-category="realestate"] .topbar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), rgba(var(--accent2-rgb), .8));
  opacity:.6;
}
body[data-category="realestate"] .brand__mark{
  background: radial-gradient(circle at 30% 0%, var(--accent2), var(--accent));
  box-shadow: 0 0 20px rgba(var(--accent-rgb), .28);
}
body[data-category="realestate"] .card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    radial-gradient(800px 360px at 12% 0%, rgba(var(--accent-rgb), .1), transparent 60%);
}

.realestatePortal,
.realestateSearch__stack{ display:grid; gap:18px; }
.realestatePortal__hero{
  position:relative;
  overflow:hidden;
  padding: 28px;
  border-radius: 28px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(6,18,20,.9), rgba(9,21,24,.72)),
    url('/assets/img/realestate-portal-pattern.svg') center/cover no-repeat;
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .realestatePortal__hero{
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,250,248,.82)),
    url('/assets/img/realestate-portal-pattern.svg') center/cover no-repeat;
}
.realestatePortal__heroGrid{
  display:grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .95fr);
  gap:18px;
  align-items:stretch;
}
@media (max-width: 980px){ .realestatePortal__heroGrid{ grid-template-columns: 1fr; } }
.realestatePortal__kicker{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
  color: rgba(var(--accent2-rgb), 1);
}
.realestatePortal__hero h1{
  margin:0 0 10px;
  max-width:18ch;
  font-size: clamp(30px, 4vw, 56px);
  line-height:1.03;
}
.realestatePortal__hero p,
.realestateSearch__lead,
.realestateSearchPanel__caption,
.realestateCard__caption,
.realestateInfoPanel p,
.realestateResult__meta{ color: var(--muted); }
.realestatePortal__actions,
.realestatePortal__metrics,
.realestateBadges,
.realestateResult__chips{ display:flex; flex-wrap:wrap; gap:12px; }
.realestatePortal__actions{ margin-top: 18px; }
.realestatePortal__metrics{ margin-top: 22px; }
.realestateMetric,
.realestateSearchPanel,
.realestateInfoPanel,
.realestateFeature,
.realestateCard{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,18,20,.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .realestateMetric,
:root[data-theme="light"] .realestateSearchPanel,
:root[data-theme="light"] .realestateInfoPanel,
:root[data-theme="light"] .realestateFeature,
:root[data-theme="light"] .realestateCard{ background: rgba(255,255,255,.86); }
.realestateMetric{ min-width:140px; padding:14px 16px; }
.realestateMetric strong{ display:block; font-size:24px; line-height:1; }
.realestateMetric span{ display:block; margin-top:6px; font-size:12px; color:var(--muted); }
.realestateSearchPanel,.realestateInfoPanel,.realestateFeature,.realestateCard{ padding:20px; }
.realestateSearchPanel__head,
.realestateCard__head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.realestateSearchPanel__title,
.realestateCard__title{ margin:0; font-size:18px; }
.realestateSegmented{
  display:inline-flex;
  gap:8px;
  flex-wrap:wrap;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.realestateSegmented a{ padding:10px 14px; border-radius:999px; color:inherit; text-decoration:none; border:1px solid transparent; font-size:13px; }
.realestateSegmented .is-active{ background: rgba(var(--accent-rgb), .16); border-color: rgba(var(--accent-rgb), .32); }
.realestateSearchForm{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; }
@media (max-width: 900px){ .realestateSearchForm{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px){ .realestateSearchForm{ grid-template-columns: 1fr; } }
.realestateField{ display:flex; flex-direction:column; gap:6px; }
.realestateField label{ font-size:12px; font-weight:700; color:var(--muted); }
.realestateField input,
.realestateField select,
.realestateField textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:inherit;
  padding:12px 14px;
}
.realestateField input:focus,
.realestateField select:focus,
.realestateField textarea:focus{ outline:none; border-color: rgba(var(--accent-rgb), .38); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.realestatePortal__grid,
.realestateSearch__grid{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; }
@media (max-width: 1120px){ .realestatePortal__grid, .realestateSearch__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .realestatePortal__grid, .realestateSearch__grid{ grid-template-columns: 1fr; } }
.realestateFeature h3{ margin:0 0 8px; font-size:18px; }
.realestateFeature p{ margin:0; line-height:1.6; color:var(--muted); }
.realestateBadge{ display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); font-size:12px; }
.realestateBadge--accent{ border-color: rgba(var(--accent-rgb), .28); background: rgba(var(--accent-rgb), .12); }
.realestateResult{ display:grid; grid-template-columns: 128px minmax(0,1fr); gap:14px; align-items:stretch; }
@media (max-width:540px){ .realestateResult{ grid-template-columns: 1fr; } }
.realestateResult__thumb{
  min-height:112px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent2-rgb), .16)),
    url('/assets/img/real-estate.jpg') center/cover;
}
.realestateResult__title{ margin:0 0 6px; font-size:18px; }
.realestateResult__price{ font-size:18px; font-weight:800; margin-top:8px; }

.realestateField--wide{ grid-column: 1 / -1; }
.realestateQuickToggles{ display:flex; flex-wrap:wrap; gap:10px; }
.realestateToggleChip{ display:inline-flex; }
.realestateToggleChip input{ position:absolute; opacity:0; pointer-events:none; }
.realestateToggleChip span{ display:inline-flex; padding:10px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); font-size:12px; cursor:pointer; }
.realestateToggleChip input:checked + span{ border-color: rgba(var(--accent-rgb), .32); background: rgba(var(--accent-rgb), .12); }

.realestateFlashStack{ display:grid; gap:12px; margin:0 0 18px; }
.realestateAlert{ padding:14px 16px; border-radius:18px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.realestateAlert--success{ border-color: rgba(92,212,174,.28); background: rgba(92,212,174,.12); }
.realestateAlert--error{ border-color: rgba(255,93,122,.28); background: rgba(255,93,122,.12); }
.realestateAlert--info{ border-color: rgba(var(--accent-rgb), .28); background: rgba(var(--accent-rgb), .12); }
.realestateSectionBlock{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,18,20,.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding:20px;
  margin: 0 0 18px;
}
:root[data-theme="light"] .realestateSectionBlock{ background: rgba(255,255,255,.86); }
.realestateListingGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; }
@media (max-width: 920px){ .realestateListingGrid{ grid-template-columns:1fr; } }
.realestateListingCard{
  display:grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap:16px;
  padding:16px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
@media (max-width: 780px){ .realestateListingCard{ grid-template-columns:1fr; } }
.realestateListingCard__media{ display:block; min-height:220px; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.1); }
.realestateListingCard__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.realestateListingCard__body{ display:grid; gap:12px; align-content:start; min-width:0; }
.realestateListingCard__head{ display:flex; justify-content:space-between; gap:14px; align-items:flex-start; flex-wrap:wrap; }
.realestateListingCard__price{ font-size:24px; font-weight:800; }
.realestateListingCard__title{ margin:4px 0; font-size:20px; }
.realestateListingCard__title a{ color:inherit; text-decoration:none; }
.realestateListingCard__title a:hover{ text-decoration:underline; }
.realestateListingCard__location{ color:var(--muted); line-height:1.5; }
.realestateListingCard__meta{ margin:0; color:var(--muted); line-height:1.6; }
.realestateListingCard__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.realestateListingCard__actions{ display:flex; flex-wrap:wrap; gap:10px; }
.realestateListingCard__score{ min-width:96px; padding:12px; border-radius:18px; border:1px solid rgba(var(--accent-rgb), .22); background: rgba(var(--accent-rgb), .10); text-align:center; }
.realestateListingCard__score strong{ display:block; font-size:26px; line-height:1; }
.realestateListingCard__score span{ display:block; margin-top:6px; font-size:12px; color:var(--muted); }
.realestateMapStub{ display:grid; gap:6px; min-height:120px; border-radius:18px; border:1px dashed rgba(var(--accent-rgb), .34); background: rgba(var(--accent-rgb), .08); place-content:center; text-align:center; color:var(--muted); margin-bottom:16px; }
.realestateEmptyState{ padding:32px 20px; border-radius:18px; border:1px dashed rgba(255,255,255,.16); text-align:center; color:var(--muted); display:grid; gap:8px; }
.realestateEmptyState--compact{ padding:22px 18px; }
.realestateEmptyState h1,.realestateEmptyState h3{ margin:0; color:inherit; }
.realestateDetail{ display:grid; gap:18px; }
.realestateDetail__hero,
.realestateDetail__grid{ display:grid; gap:18px; }
.realestateDetail__hero{ grid-template-columns: minmax(0,1fr) 320px; }
.realestateDetail__grid{ grid-template-columns: minmax(0,1fr) 340px; }
@media (max-width: 1100px){ .realestateDetail__hero, .realestateDetail__grid{ grid-template-columns:1fr; } }
.realestateDetail__heroMain,
.realestateDetail__heroSide,
.realestateDetail__main,
.realestateDetail__side{ display:grid; gap:18px; }
.realestateDetail__heroMain,
.realestateDetail__heroSide{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,18,20,.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding:20px;
}
:root[data-theme="light"] .realestateDetail__heroMain,
:root[data-theme="light"] .realestateDetail__heroSide{ background: rgba(255,255,255,.86); }
.realestateDetail__heroMain h1{ margin:0; font-size:34px; }
.realestateFactGrid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; }
@media (max-width: 980px){ .realestateFactGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .realestateFactGrid{ grid-template-columns:1fr; } }
.realestateFact{ padding:14px; border-radius:18px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); display:grid; gap:6px; }
.realestateFact span{ font-size:12px; color:var(--muted); }
.realestateFact strong{ font-size:16px; }
.realestateRichText{ line-height:1.7; color:var(--text); }
.realestateGallery{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
@media (max-width: 920px){ .realestateGallery{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .realestateGallery{ grid-template-columns:1fr; } }
.realestateGallery__item{ display:block; aspect-ratio: 4 / 3; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.1); }
.realestateGallery__item img{ width:100%; height:100%; object-fit:cover; display:block; }
.realestateDocGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; margin-top:16px; }
@media (max-width: 760px){ .realestateDocGrid{ grid-template-columns:1fr; } }
.realestateDocPanel{ padding:16px; border-radius:18px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.realestateDocList{ margin:0; padding-left:18px; display:grid; gap:8px; }
.realestateDocList a{ color:inherit; }
.realestateActionGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
@media (max-width: 900px){ .realestateActionGrid{ grid-template-columns:1fr; } }
.realestateMiniForm{ display:grid; gap:12px; padding:16px; border-radius:18px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.realestateSubheading{ margin:0; font-size:15px; }
.realestateQualityBox{ display:grid; gap:12px; padding:16px; border-radius:18px; border:1px solid rgba(var(--accent-rgb), .24); background: rgba(var(--accent-rgb), .10); }
.realestateQualityBox__score{ font-size:42px; font-weight:800; line-height:1; }
.realestateQualityBox__band{ font-size:14px; color:var(--muted); }
.realestateQualityBox__meter{ height:10px; border-radius:999px; background: rgba(255,255,255,.12); overflow:hidden; }
.realestateQualityBox__meter span{ display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 1), rgba(var(--accent2-rgb), 1)); }
.realestateStatsGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.realestateStat{ padding:14px; border-radius:18px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); display:grid; gap:4px; }
.realestateStat span{ font-size:12px; color:var(--muted); }
.realestateStat strong{ font-size:22px; }
.realestateDataList{ display:grid; gap:10px; margin:0; }
.realestateDataList div{ display:flex; justify-content:space-between; gap:12px; padding:12px 14px; border-radius:16px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.realestateDataList dt,.realestateDataList dd{ margin:0; }
.realestateBulletList{ display:grid; gap:8px; margin:0; padding-left:18px; line-height:1.6; color:var(--muted); }

.realestateShell{
  min-height:100vh;
  padding:20px;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:20px;
}
.realestateContainer{
  width:min(1440px, 100%);
  margin:0 auto;
}
.realestateChrome,
.realestateFooter{
  width:min(1440px, 100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,18,20,.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .realestateChrome,
:root[data-theme="light"] .realestateFooter{
  background: rgba(255,255,255,.86);
}
.realestateChrome__brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
}
.realestateChrome__logo{ height:34px; width:auto; display:block; }
.realestateChrome__logo--dark,
:root[data-theme="light"] .realestateChrome__logo--light{ display:none; }
:root[data-theme="light"] .realestateChrome__logo--dark{ display:block; }
.realestateChrome__brandText{
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:800;
  color: rgba(var(--accent2-rgb), 1);
}
.realestateChrome__nav,
.realestateFooter__links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.realestateChrome__nav a,
.realestateFooter__links a{
  color:inherit;
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.realestateChrome__nav a:hover,
.realestateFooter__links a:hover{
  border-color: rgba(var(--accent-rgb), .28);
  background: rgba(var(--accent-rgb), .10);
}
.realestateFooter{
  color:var(--muted);
}
.realestateFooter strong{
  color:var(--text);
  margin-right:8px;
}
@media (max-width: 900px){
  .realestateShell{ padding:14px; }
  .realestateChrome,
  .realestateFooter{ flex-direction:column; align-items:stretch; }
  .realestateChrome__nav,
  .realestateFooter__links{ justify-content:flex-start; }
}


/* ===== Real-estate unified chrome + contrast overrides ===== */
.realestateShell{
  min-height:100vh;
  padding:20px;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:20px;
}
.realestateShell--wizard{ padding-top:20px; }
.realestateContainer{ width:min(1440px, 100%); margin:0 auto; }
.realestateContainer--wizard{ padding-bottom:28px; }

.realestateChrome,
.realestateFooter{
  width:min(1440px, 100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(8,19,21,.82), rgba(7,18,20,.72));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .realestateChrome,
:root[data-theme="light"] .realestateFooter{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,251,.92));
  border-color: rgba(13,32,36,.12);
}
.realestateChrome__brand{
  display:inline-flex;
  align-items:center;
  gap:16px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.realestateWordmark{
  display:inline-grid;
  gap:4px;
  min-width:0;
}
.realestateWordmark__title{
  display:block;
  font-size: clamp(28px, 2vw, 42px);
  line-height:.92;
  font-weight:900;
  letter-spacing:-.05em;
  color: rgba(var(--accent2-rgb), 1);
}
.realestateWordmark__sub{
  display:block;
  font-size:12px;
  line-height:1;
  letter-spacing:.24em;
  text-transform:uppercase;
  font-weight:800;
  color: rgba(255,255,255,.88);
}
:root[data-theme="light"] .realestateWordmark__sub{ color:#4a5e69; }
.realestateChrome__category,
.realestateFooter__category{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(var(--accent2-rgb), .22);
  background: rgba(var(--accent2-rgb), .10);
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: rgba(var(--accent2-rgb), 1);
}
.realestateChrome__nav,
.realestateFooter__links,
.realestateChrome__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.realestateChrome__nav a,
.realestateFooter__links a{
  color:inherit;
  text-decoration:none;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  font-weight:700;
}
:root[data-theme="light"] .realestateChrome__nav a,
:root[data-theme="light"] .realestateFooter__links a{
  background:#ffffff;
  border-color: rgba(13,32,36,.10);
  color:#1a2d33;
}
.realestateChrome__nav a:hover,
.realestateFooter__links a:hover,
.realestateChrome__nav a.is-active{
  border-color: rgba(var(--accent-rgb), .34);
  background: rgba(var(--accent-rgb), .12);
}
:root[data-theme="light"] .realestateChrome__nav a:hover,
:root[data-theme="light"] .realestateFooter__links a:hover,
:root[data-theme="light"] .realestateChrome__nav a.is-active{
  background: rgba(var(--accent-rgb), .14);
  border-color: rgba(var(--accent-rgb), .28);
}
.realestateChrome__utility{
  display:grid;
  gap:6px;
}
.realestateChrome__utilityLabel{
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.realestateLangMenu .langBtn,
.realestateThemeToggle,
.realestateChrome .btn.btn--ghost,
.realestateFooter .btn.btn--ghost{
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
}
.realestateChrome .btn.btn--ghost,
.realestateFooter .btn.btn--ghost,
.realestateLangMenu .langBtn,
.realestateThemeToggle{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
}
:root[data-theme="light"] .realestateChrome .btn.btn--ghost,
:root[data-theme="light"] .realestateFooter .btn.btn--ghost,
:root[data-theme="light"] .realestateLangMenu .langBtn,
:root[data-theme="light"] .realestateThemeToggle{
  border-color: rgba(13,32,36,.12);
  background:#ffffff;
  color:#182a31;
  box-shadow: 0 10px 24px rgba(15,28,32,.06);
}
.realestateLangMenu .langPanel{
  z-index:40;
}
:root[data-theme="light"] .realestateLangMenu .langPanel{
  background:#ffffff;
  border-color: rgba(13,32,36,.12);
  box-shadow: 0 22px 44px rgba(15,28,32,.12);
}
:root[data-theme="light"] .realestateLangMenu .langItem{
  color:#182a31;
}
:root[data-theme="light"] .realestateLangMenu .langItem.is-active,
:root[data-theme="light"] .realestateLangMenu .langItem:hover{
  background: rgba(var(--accent-rgb), .12);
}

.realestatePortal__visual{
  margin-top:20px;
  display:grid;
  gap:12px;
  max-width:780px;
}
.realestatePortal__visualMedia{
  min-height:220px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18)),
    url('/assets/img/realestate-hero.svg') center/cover no-repeat,
    url('/assets/img/real-estate.jpg') center/cover no-repeat;
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .realestatePortal__visualMedia{
  border-color: rgba(13,32,36,.10);
}
.realestatePortal__visualBadges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.realestateSearchPanel,
.realestateSectionBlock,
.realestateFeature,
.realestateCard,
.realestateMetric,
.realestateInfoPanel,
.realestateListingCard,
.realestateFact,
.realestateDocPanel,
.realestateMiniForm,
.realestateStat,
.realestateDataList div,
.realestateEmptyState{
  color:var(--text);
}
:root[data-theme="light"] .realestateSearchPanel,
:root[data-theme="light"] .realestateSectionBlock,
:root[data-theme="light"] .realestateFeature,
:root[data-theme="light"] .realestateCard,
:root[data-theme="light"] .realestateMetric,
:root[data-theme="light"] .realestateInfoPanel,
:root[data-theme="light"] .realestateListingCard,
:root[data-theme="light"] .realestateFact,
:root[data-theme="light"] .realestateDocPanel,
:root[data-theme="light"] .realestateMiniForm,
:root[data-theme="light"] .realestateStat,
:root[data-theme="light"] .realestateDataList div,
:root[data-theme="light"] .realestateEmptyState{
  background:#ffffff;
  border-color: rgba(13,32,36,.10);
  box-shadow: 0 16px 36px rgba(15,28,32,.08);
}
.realestateSegmented{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.realestateSegmented a{ font-weight:700; }
:root[data-theme="light"] .realestateSegmented{
  background:#f3f6f7;
  border-color: rgba(13,32,36,.10);
}
:root[data-theme="light"] .realestateSegmented a{
  color:#435961;
}
:root[data-theme="light"] .realestateSegmented .is-active{
  color:#162930;
  background:#ffffff;
  border-color: rgba(var(--accent-rgb), .24);
  box-shadow: 0 10px 18px rgba(15,28,32,.06);
}
.realestateField label{ color:var(--muted); }
.realestateField input,
.realestateField select,
.realestateField textarea{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
:root[data-theme="light"] .realestateField label{ color:#52666f; }
:root[data-theme="light"] .realestateField input,
:root[data-theme="light"] .realestateField select,
:root[data-theme="light"] .realestateField textarea{
  background:#ffffff;
  border-color: rgba(13,32,36,.14);
  color:#162930;
}
:root[data-theme="light"] .realestateField input::placeholder,
:root[data-theme="light"] .realestateField textarea::placeholder{ color:#8ba0a8; }
.realestateToggleChip span,
.realestateBadge,
.realestateChip,
.realestateListingCard__score,
.realestateQualityBox,
.realestateMapStub{
  border-color: rgba(255,255,255,.12);
}
:root[data-theme="light"] .realestateToggleChip span,
:root[data-theme="light"] .realestateBadge,
:root[data-theme="light"] .realestateListingCard__score,
:root[data-theme="light"] .realestateQualityBox,
:root[data-theme="light"] .realestateMapStub{
  background:#f8fbfb;
  border-color: rgba(13,32,36,.12);
  color:#162930;
}
:root[data-theme="light"] .btn.btn--ghost{
  background:#ffffff;
  border-color: rgba(13,32,36,.12);
  color:#162930;
  box-shadow: 0 8px 18px rgba(15,28,32,.06);
}
:root[data-theme="light"] .btn.btn--ghost:hover{
  background:#f7fbfb;
  border-color: rgba(var(--accent-rgb), .22);
}
.realestateFooter{
  color:var(--muted);
}
.realestateFooter__brandWrap{
  display:flex;
  align-items:center;
  gap:16px;
}
@media (max-width: 1080px){
  .realestateChrome,
  .realestateFooter{
    flex-direction:column;
    align-items:stretch;
  }
  .realestateChrome__actions,
  .realestateChrome__nav,
  .realestateFooter__links{
    justify-content:flex-start;
  }
}
@media (max-width: 760px){
  .realestateWordmark__title{ font-size:34px; }
  .realestateChrome__brand{
    align-items:flex-start;
    flex-direction:column;
  }
  .realestateFooter__brandWrap{
    align-items:flex-start;
    flex-direction:column;
  }
}

.realestateWordmark--footer .realestateWordmark__title{ font-size:24px; }
.realestateWordmark--footer .realestateWordmark__sub{ font-size:10px; }

/* ===== Real-estate finish pass r4 ===== */
body[data-category="realestate"]{
  color: var(--text);
}

body[data-category="realestate"] .btn,
body[data-category="realestate"] button,
body[data-category="realestate"] .realestateChrome__nav a,
body[data-category="realestate"] .realestateFooter__links a,
body[data-category="realestate"] .realestateSegmented a,
body[data-category="realestate"] .realestateToggleChip span,
body[data-category="realestate"] .langBtn,
body[data-category="realestate"] .realestateThemeToggle{
  border-radius: 16px;
}

.realestateShell{
  gap: 16px;
}

.realestateChrome{
  padding: 10px 14px;
  gap: 14px;
  border-radius: 20px;
}

.realestateChrome__brand{
  gap: 12px;
  flex: 0 0 auto;
}

.realestateChrome .realestateWordmark__title{
  font-size: clamp(18px, 1.8vw, 28px);
  letter-spacing: -.04em;
}

.realestateChrome .realestateWordmark__sub{
  display: none;
}

.realestateChrome__category{
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 10px;
  letter-spacing: .16em;
}

.realestateChrome__nav{
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
}

.realestateChrome__nav a,
.realestateFooter__links a{
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.realestateChrome__actions{
  gap: 8px;
  flex: 0 0 auto;
}

.realestateChrome__utility{
  gap: 0;
}

.realestateChrome__utilityLabel{
  display: none;
}

.realestateChrome .btn.btn--ghost,
.realestateFooter .btn.btn--ghost,
.realestateLangMenu .langBtn,
.realestateThemeToggle{
  min-height: 42px;
  padding: 0 14px;
}

.realestateLangMenu .langBtn,
.realestateThemeToggle{
  font-weight: 700;
}

:root[data-theme="light"] .realestateChrome,
:root[data-theme="light"] .realestateFooter{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,250,.96));
  border-color: rgba(17,36,40,.14);
  box-shadow: 0 18px 38px rgba(14,28,32,.10);
}

:root[data-theme="light"] .realestateChrome__nav a,
:root[data-theme="light"] .realestateFooter__links a,
:root[data-theme="light"] .realestateChrome .btn.btn--ghost,
:root[data-theme="light"] .realestateFooter .btn.btn--ghost,
:root[data-theme="light"] .realestateLangMenu .langBtn,
:root[data-theme="light"] .realestateThemeToggle{
  background: #ffffff;
  border-color: rgba(17,36,40,.15);
  color: #10242a;
  box-shadow: 0 10px 24px rgba(14,28,32,.07);
}

:root[data-theme="light"] .realestateChrome__nav a.is-active,
:root[data-theme="light"] .realestateChrome__nav a:hover,
:root[data-theme="light"] .realestateFooter__links a:hover{
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent2-rgb), .12));
  border-color: rgba(var(--accent-rgb), .26);
  color: #0e2026;
}

.realestatePortal__hero{
  padding: 30px;
  border-radius: 30px;
}

.realestatePortal__heroGrid{
  gap: 22px;
}

.realestatePortal__visual{
  max-width: none;
}

.realestatePortal__visualMedia{
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(6,12,14,.04), rgba(6,12,14,.24)),
    url('/assets/img/real-estate.jpg') center/cover no-repeat;
}

.realestatePortal__visualMedia::after{
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: min(42%, 240px);
  height: 84px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(7,18,20,.86), rgba(7,18,20,.72));
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .realestatePortal__visualMedia{
  border-color: rgba(17,36,40,.12);
}

:root[data-theme="light"] .realestatePortal__visualMedia::after{
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,249,250,.90));
  border-color: rgba(17,36,40,.12);
  box-shadow: 0 18px 36px rgba(14,28,32,.10);
}

.realestateSearchPanel,
.realestateSectionBlock,
.realestateFeature,
.realestateCard,
.realestateMetric,
.realestateInfoPanel,
.realestateListingCard,
.realestateFact,
.realestateDocPanel,
.realestateMiniForm,
.realestateStat,
.realestateDataList div,
.realestateEmptyState{
  border-radius: 22px;
}

.realestateSearchPanel{
  padding: 22px;
}

.realestateSegmented{
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
}

.realestateSegmented a{
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
}

.realestateField input,
.realestateField select,
.realestateField textarea{
  min-height: 48px;
  border-radius: 16px;
}

.realestateField textarea{
  min-height: 120px;
}

:root[data-theme="light"] .realestateSearchPanel,
:root[data-theme="light"] .realestateSectionBlock,
:root[data-theme="light"] .realestateFeature,
:root[data-theme="light"] .realestateCard,
:root[data-theme="light"] .realestateMetric,
:root[data-theme="light"] .realestateInfoPanel,
:root[data-theme="light"] .realestateListingCard,
:root[data-theme="light"] .realestateFact,
:root[data-theme="light"] .realestateDocPanel,
:root[data-theme="light"] .realestateMiniForm,
:root[data-theme="light"] .realestateStat,
:root[data-theme="light"] .realestateDataList div,
:root[data-theme="light"] .realestateEmptyState{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(251,252,252,.98));
  border-color: rgba(17,36,40,.12);
  box-shadow: 0 18px 36px rgba(14,28,32,.08);
}

:root[data-theme="light"] .realestateField input,
:root[data-theme="light"] .realestateField select,
:root[data-theme="light"] .realestateField textarea{
  background: #ffffff;
  border-color: rgba(17,36,40,.16);
  color: #10242a;
}

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

.realestateMiniForm{
  gap: 14px;
  padding: 18px;
}

.realestateMiniForm .btn.btn--accent,
.realestateMiniForm .btn.btn--ghost,
.realestatePortal__actions .btn,
.realestateListingCard__actions .btn,
.realestateSearchForm .btn.btn--accent{
  min-height: 48px;
  padding: 0 16px;
  font-weight: 800;
}

.realestatePortal__actions .btn.btn--accent,
.realestateMiniForm .btn.btn--accent,
.realestateSearchForm .btn.btn--accent,
.realestateDetail .btn.btn--accent{
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), rgba(var(--accent2-rgb), .92));
  border-color: rgba(var(--accent-rgb), .28);
  color: #082024;
  box-shadow: 0 16px 34px rgba(var(--accent-rgb), .24);
}

:root[data-theme="light"] .realestatePortal__actions .btn.btn--accent,
:root[data-theme="light"] .realestateMiniForm .btn.btn--accent,
:root[data-theme="light"] .realestateSearchForm .btn.btn--accent,
:root[data-theme="light"] .realestateDetail .btn.btn--accent{
  color: #092127;
}

.realestateSlotPanel{
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.realestateSlotList{
  display: grid;
  gap: 10px;
}

.realestateSlotItem{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.realestateSlotItem strong{
  font-size: 14px;
}

.realestateSlotItem span{
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

:root[data-theme="light"] .realestateSlotPanel,
:root[data-theme="light"] .realestateSlotItem{
  background: #ffffff;
  border-color: rgba(17,36,40,.12);
  box-shadow: 0 14px 30px rgba(14,28,32,.07);
}

@media (max-width: 1160px){
  .realestateChrome{
    flex-wrap: wrap;
  }
  .realestateChrome__nav{
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px){
  .realestateShell{
    padding: 12px;
  }
  .realestateChrome,
  .realestateFooter{
    padding: 12px;
    border-radius: 18px;
  }
  .realestateChrome__brand,
  .realestateFooter__brandWrap{
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .realestateChrome__actions{
    width: 100%;
    justify-content: flex-start;
  }
  .realestateActionGrid,
  .realestateDetail__hero,
  .realestateDetail__grid,
  .realestateResult,
  .realestateListingCard{
    grid-template-columns: 1fr;
  }
  .realestateSlotItem{
    flex-direction: column;
    align-items: flex-start;
  }
  .realestateSlotItem span{
    text-align: left;
  }
}


/* search killer upgrade */
.realestateSearchPanel__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(var(--accent-rgb), .92);
}
.realestateSearchPanel__meta{
  display:grid;
  gap:10px;
  justify-items:end;
}
.realestateSearchCount{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(var(--accent-rgb), .26);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent2-rgb), .12));
  font-size:12px;
  font-weight:800;
  color: var(--text);
}
.realestateSearchForm--killer{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.realestateSmartField{
  position:relative;
}
.realestateSmartField__icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  font-size:18px;
  color:var(--muted);
  pointer-events:none;
}
.realestateSmartField input{
  padding-left:46px;
  min-height:58px;
  font-size:15px;
  font-weight:600;
}
.realestateSuggestionRow,
.realestateIntentRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.realestateSuggestionChip,
.realestateIntentChip{
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color:inherit;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.realestateSuggestionChip:hover,
.realestateIntentChip:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), .28);
  background: rgba(var(--accent-rgb), .10);
}
.realestateIntentChip.is-active{
  border-color: rgba(var(--accent-rgb), .34);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent2-rgb), .12));
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), .16);
}
.realestateHiddenSelect{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.realestateRangeHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.realestateRangeHeader strong{
  font-size:13px;
  color:var(--text);
}
.realestateRangePanel{
  --range-start: 0%;
  --range-end: 50%;
  position:relative;
  padding:16px 0 6px;
}
.realestateRangePanel::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:28px;
  height:8px;
  border-radius:999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.08) 0 var(--range-start),
    rgba(var(--accent-rgb), .85) var(--range-start) var(--range-end),
    rgba(255,255,255,.08) var(--range-end) 100%);
}
.realestateRangePanel input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  position:relative;
  width:100%;
  margin:0;
  background:transparent;
  pointer-events:none;
}
.realestateRangePanel input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  pointer-events:auto;
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid rgba(7,18,20,.92);
  background:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.realestateRangePanel input[type="range"]::-moz-range-thumb{
  pointer-events:auto;
  width:20px;
  height:20px;
  border:none;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.realestateSearchSubmitRow{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:4px;
}
.realestateSearchSignal{
  display:grid;
  gap:4px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.realestateSearchSignal strong{
  font-size:13px;
}
.realestateSearchSignal span{
  color:var(--muted);
  font-size:12px;
}
.realestateSearchSubmit{
  min-width:220px;
  justify-content:center;
  flex-direction:column;
  gap:2px;
}
.realestateSearchSubmit small{
  display:block;
  font-size:11px;
  font-weight:700;
  opacity:.84;
}
@media (max-width: 900px){
  .realestateSearchPanel__meta{ justify-items:start; }
  .realestateSearchSubmitRow{ flex-direction:column; align-items:stretch; }
  .realestateSearchSubmit{ width:100%; }
}
@media (max-width: 620px){
  .realestateRangeHeader{ flex-direction:column; align-items:flex-start; }
  .realestateSuggestionRow,.realestateIntentRow{ gap:8px; }
}
:root[data-theme="light"] .realestateSuggestionChip,
:root[data-theme="light"] .realestateIntentChip,
:root[data-theme="light"] .realestateSearchSignal,
:root[data-theme="light"] .realestateSearchCount{
  background: #fff;
  border-color: rgba(17,36,40,.12);
  box-shadow: 0 10px 22px rgba(14,28,32,.06);
}
:root[data-theme="light"] .realestateSearchCount,
:root[data-theme="light"] .realestateIntentChip.is-active{
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent2-rgb), .12));
}
:root[data-theme="light"] .realestateSmartField__icon{ color:#6a7f88; }


/* search killer refinement r6 */
.realestateSearchPanel{align-self:start;}
.realestateSearchPanel__head{margin-bottom:14px;}
.realestateSearchPanel__meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
.realestateSearchForm--killer{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;}
.realestateSearchForm--killer .realestateField{grid-column:span 4;}
.realestateSearchForm--killer .realestateField--wide{grid-column:1 / -1;}
.realestateSearchMiniGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;grid-column:1 / -1;}
.realestateSearchMiniGrid .realestateField{grid-column:auto;}
.realestateSmartField input{min-height:52px;font-size:14px;}
.realestateSuggestionRow--compact,.realestateIntentRow--compact{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;}
.realestateSuggestionRow--compact::-webkit-scrollbar,.realestateIntentRow--compact::-webkit-scrollbar{display:none;}
.realestateSuggestionChip,.realestateIntentChip{min-height:36px;padding:0 12px;flex:0 0 auto;white-space:nowrap;font-size:11px;}
.realestateRangeHeader{margin-bottom:4px;}
.realestateRangePanel{padding:14px 2px 2px;}
.realestateRangePanel::before{top:22px;height:6px;}
.realestateRangePanel input[type="range"]::-webkit-slider-thumb{width:16px;height:16px;}
.realestateRangePanel input[type="range"]::-moz-range-thumb{width:16px;height:16px;}
.realestateQuickToggles{gap:8px;}
.realestateToggleChip span{padding:8px 10px;font-size:11px;}
.realestateSearchSubmitRow{margin-top:0;padding-top:2px;}
.realestateSearchSignal{padding:10px 12px;border-radius:16px;}
.realestateSearchSignal strong{font-size:12px;}
.realestateSearchSignal span{font-size:11px;}
.realestateSearchSubmit{min-width:190px;min-height:52px;}
.realestateSearchSubmit small{display:none;}
:root[data-theme="light"] .realestateSearchPanel{background:rgba(255,255,255,.93);}
@media (max-width:1100px){.realestateSearchForm--killer{grid-template-columns:repeat(6,minmax(0,1fr));}.realestateSearchForm--killer .realestateField{grid-column:span 3;}.realestateSearchMiniGrid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:760px){.realestateSearchForm--killer{grid-template-columns:1fr;}.realestateSearchForm--killer .realestateField,.realestateSearchForm--killer .realestateField--wide{grid-column:1 / -1;}.realestateSearchMiniGrid{grid-template-columns:1fr;}.realestateSearchPanel__meta{align-items:flex-start;}.realestateSearchSubmitRow{flex-direction:column;align-items:stretch;}.realestateSearchSubmit{width:100%;min-width:0;}}


/* r7 homepage hero restore + slimmer budget slider */
.realestatePortal__hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:none;
}
.realestatePortal__hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(5,14,18,.74) 0%, rgba(5,14,18,.46) 38%, rgba(5,14,18,.20) 68%, rgba(5,14,18,.10) 100%),
    var(--realestate-hero-dark, url('/assets/img/realestate-hero-dark.jpg')) center center/cover no-repeat;
  transform: scale(1.01);
}
:root[data-theme="light"] .realestatePortal__hero::before{
  background:
    linear-gradient(90deg, rgba(255,255,255,.76) 0%, rgba(255,255,255,.58) 34%, rgba(255,255,255,.30) 62%, rgba(255,255,255,.14) 100%),
    var(--realestate-hero-light, url('/assets/img/realestate-hero-light.jpg')) center center/cover no-repeat;
}
.realestatePortal__heroGrid{
  position:relative;
  z-index:1;
}
.realestatePortal__heroBadges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.realestatePortal__visual,
.realestatePortal__visualMedia,
.realestatePortal__visualBadges{
  display:none !important;
}
.realestateSearchPanel{
  background:rgba(8,20,24,.66);
  backdrop-filter: blur(16px);
}
:root[data-theme="light"] .realestateSearchPanel{
  background:rgba(255,255,255,.88);
}
.realestateRangePanel{
  padding:10px 0 0;
}
.realestateRangePanel::before{
  top:18px;
  height:4px;
}
.realestateRangePanel input[type="range"]{
  position:absolute;
  left:0;
  top:8px;
  right:0;
  height:20px;
}
.realestateRangePanel input[type="range"]::-webkit-slider-runnable-track{
  height:4px;
  background:transparent;
  border:none;
}
.realestateRangePanel input[type="range"]::-moz-range-track{
  height:4px;
  background:transparent;
  border:none;
}
.realestateRangePanel input[type="range"]::-webkit-slider-thumb{
  margin-top:-6px;
  width:14px;
  height:14px;
}
.realestateRangePanel input[type="range"]::-moz-range-thumb{
  width:14px;
  height:14px;
  border:2px solid rgba(7,18,20,.92);
}
@media (max-width: 980px){
  .realestatePortal__hero::before{
    background-position:center center;
  }
}


/* r8 search panel alignment + budget slider fix */
.realestateSearchPanel__meta{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.realestateSearchCount{
  flex:0 0 auto;
  white-space:nowrap;
}
.realestateSegmented{
  flex:0 1 auto;
}
.realestateRangePanel{
  --range-track-height: 4px;
  padding:8px 0 0;
  min-height:26px;
}
.realestateRangePanel::before{
  top:14px;
  height:var(--range-track-height);
}
.realestateRangePanel input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  position:absolute;
  inset:4px 0 auto 0;
  width:100%;
  height:20px;
  margin:0;
  padding:0;
  min-height:0;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none;
  pointer-events:none;
}
.realestateRangePanel input[type="range"]::-webkit-slider-runnable-track{
  height:var(--range-track-height);
  background:transparent;
  border:none;
}
.realestateRangePanel input[type="range"]::-moz-range-track{
  height:var(--range-track-height);
  background:transparent;
  border:none;
}
.realestateRangePanel input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  pointer-events:auto;
  width:16px;
  height:16px;
  margin-top:calc((var(--range-track-height) - 16px) / 2);
  border-radius:50%;
  border:2px solid rgba(7,18,20,.92);
  background:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.realestateRangePanel input[type="range"]::-moz-range-thumb{
  pointer-events:auto;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(7,18,20,.92);
  background:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
@media (max-width:760px){
  .realestateSearchPanel__meta{
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
  }
}

/* ===== Real-estate workspace + deal room surfaces ===== */
.realestateBadges--block{
  margin-bottom:16px;
}
.realestateSaveSearch{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(260px, 360px) auto;
  gap:14px;
  align-items:end;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
@media (max-width: 840px){
  .realestateSaveSearch{ grid-template-columns: 1fr; }
}
:root[data-theme="light"] .realestateSaveSearch{
  background:#ffffff;
  border-color: rgba(17,36,40,.12);
  box-shadow: 0 14px 30px rgba(14,28,32,.07);
}

.realestateWorkspace{
  display:grid;
  gap:18px;
}
.realestateWorkspaceHero{
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr);
  gap:18px;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(7,18,20,.74), rgba(7,18,20,.58));
  box-shadow: var(--shadow);
}
@media (max-width: 980px){
  .realestateWorkspaceHero{ grid-template-columns:1fr; }
}
:root[data-theme="light"] .realestateWorkspaceHero{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,250,.95));
  border-color: rgba(17,36,40,.12);
  box-shadow: 0 18px 34px rgba(14,28,32,.08);
}
.realestateWorkspaceHero__side{
  display:grid;
  align-content:stretch;
}
.realestateWorkspaceKpis{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 1180px){
  .realestateWorkspaceKpis{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .realestateWorkspaceKpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.realestateWorkspaceGrid{
  display:grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px,.95fr);
  gap:18px;
  align-items:start;
}
@media (max-width: 1120px){
  .realestateWorkspaceGrid{ grid-template-columns:1fr; }
}
.realestateWorkspaceSide{
  display:grid;
  gap:18px;
}
.realestateWorkspaceList{
  display:grid;
  gap:12px;
}
.realestateWorkspaceList__item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.realestateWorkspaceList__item.is-unread{
  border-color: rgba(var(--accent-rgb), .24);
  background: rgba(var(--accent-rgb), .08);
}
.realestateWorkspaceList__item strong{
  display:block;
  margin-bottom:4px;
}
.realestateWorkspaceList__item p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
@media (max-width: 620px){
  .realestateWorkspaceList__item{ flex-direction:column; }
}
:root[data-theme="light"] .realestateWorkspaceList__item{
  background:#ffffff;
  border-color: rgba(17,36,40,.10);
  box-shadow: 0 12px 26px rgba(14,28,32,.06);
}
.realestateWorkspaceBoard__body{
  display:grid;
  gap:12px;
}
.realestateWorkspaceBoard__card{
  display:grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.realestateWorkspaceBoard__media{
  min-height:74px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent2-rgb), .16));
  background-size:cover;
  background-position:center;
}
.realestateWorkspaceBoard__card p{ margin:4px 0 0; color:var(--muted); }
:root[data-theme="light"] .realestateWorkspaceBoard__card{
  background:#ffffff;
  border-color: rgba(17,36,40,.10);
}
.realestateAdminTable{
  display:grid;
  gap:8px;
}
.realestateAdminTable__head,
.realestateAdminTable__row{
  display:grid;
  grid-template-columns: minmax(0,2fr) minmax(120px,.8fr) minmax(140px,1fr) minmax(100px,.6fr);
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
}
.realestateAdminTable__head{
  border:1px solid rgba(var(--accent-rgb), .18);
  background: rgba(var(--accent-rgb), .08);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.realestateAdminTable__row{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.realestateAdminTable__row p{ margin:4px 0 0; color:var(--muted); }
@media (max-width: 860px){
  .realestateAdminTable__head,
  .realestateAdminTable__row{ grid-template-columns: 1fr; }
}
:root[data-theme="light"] .realestateAdminTable__row{
  background:#ffffff;
  border-color: rgba(17,36,40,.10);
}
.realestateDealRoomPage{
  display:grid;
  gap:18px;
}
.realestateDealRoomGrid{
  display:grid;
  grid-template-columns: minmax(0,1.28fr) minmax(320px,.92fr);
  gap:18px;
  align-items:start;
}
@media (max-width: 1120px){
  .realestateDealRoomGrid{ grid-template-columns:1fr; }
}
.realestateDealRoomMain,
.realestateDealRoomSide{
  display:grid;
  gap:18px;
}
.realestateTimeline{
  display:grid;
  gap:12px;
}
.realestateTimeline__item{
  display:grid;
  gap:8px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.realestateTimeline__item.is-own{
  border-color: rgba(var(--accent-rgb), .24);
  background: rgba(var(--accent-rgb), .08);
}
.realestateTimeline__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:12px;
  color:var(--muted);
}
.realestateTimeline__item p{ margin:0; line-height:1.6; }
:root[data-theme="light"] .realestateTimeline__item{
  background:#ffffff;
  border-color: rgba(17,36,40,.10);
}
.realestateInlineForms{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.realestateInlineForms--stack{
  display:grid;
  gap:10px;
}
.realestateInlineForms__counter{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.realestateInlineForms__counter input{
  min-width:160px;
  min-height:42px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:inherit;
}
:root[data-theme="light"] .realestateInlineForms__counter input{
  background:#ffffff;
  border-color: rgba(17,36,40,.14);
  color:#10242a;
}
.realestatePipelineList{
  display:grid;
  gap:12px;
}
.realestatePipelineItem{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(140px,.8fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.realestatePipelineItem p{ margin:4px 0 0; color:var(--muted); }
.realestatePipelineItem select{
  min-height:42px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:inherit;
}
@media (max-width: 720px){
  .realestatePipelineItem{ grid-template-columns: 1fr; }
}
:root[data-theme="light"] .realestatePipelineItem,
:root[data-theme="light"] .realestatePipelineItem select{
  background:#ffffff;
  border-color: rgba(17,36,40,.12);
  color:#10242a;
}

/* ===== Real-estate final pass r10 ===== */
.realestateChrome,
.realestateFooter{
  position: relative;
  z-index: 220;
  isolation: isolate;
  padding: 12px 16px;
}
.realestateChrome__actions{
  position: relative;
  z-index: 240;
  gap: 12px;
}
.realestateChrome__utility,
.realestateLangMenu,
.realestateCurrencyForm{
  position: relative;
  z-index: 260;
}
.realestateLangMenu .langPanel{
  z-index: 900;
  background: linear-gradient(180deg, rgba(9,17,20,.98), rgba(10,22,24,.98));
  border-color: rgba(89,213,201,.18);
  box-shadow: 0 26px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
}
:root[data-theme="light"] .realestateLangMenu .langPanel{
  background: #ffffff;
  border-color: rgba(16,36,40,.12);
  box-shadow: 0 22px 44px rgba(12,28,32,.14);
}
.realestateChrome__select,
.realestateField select{
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.realestateChrome__select{
  min-height: 44px;
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background-color: rgba(255,255,255,.06);
  color: var(--text);
  padding: 0 34px 0 14px;
  font-weight: 700;
}
:root[data-theme="light"] .realestateChrome__select{
  background-color: #ffffff;
  border-color: rgba(13,32,36,.12);
  color: #182a31;
}
.realestateField select{
  background-color: rgba(11,34,34,.88);
  border-color: rgba(89,213,201,.18);
  color: #eef8f5;
}
.realestateField select option,
.realestateChrome__select option{
  background: #10282a;
  color: #f4fbf9;
}
:root[data-theme="light"] .realestateField select{
  background-color: #ffffff;
  border-color: rgba(17,36,40,.14);
  color: #132428;
}
:root[data-theme="light"] .realestateField select option,
:root[data-theme="light"] .realestateChrome__select option{
  background: #ffffff;
  color: #132428;
}
.realestateSearchForm .realestateField input,
.realestateSearchForm .realestateField textarea,
.realestateSearchForm .realestateField select{
  min-height: 52px;
}
.realestateListingGrid{
  grid-template-columns: 1fr;
}
.realestateListingCard{
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
}
.realestateListingCard__media{
  position: relative;
  min-height: 250px;
}
.realestateListingCard__mediaOverlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.28));
  pointer-events: none;
}
.realestateListingCard__mediaBadges{
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}
.realestateListingCard__mediaMeta{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.realestateListingCard__ribbon{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(14,31,34,.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.realestateListingCard__ribbon--premium{
  background: rgba(214,178,114,.92);
  color: #102024;
  border-color: rgba(214,178,114,.36);
}
.realestateListingCard__body{
  gap: 14px;
}
.realestateListingCard__eyebrow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.realestateListingCard__title{
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}
.realestateListingCard__location{
  margin-top: 8px;
  color: var(--muted);
}
.realestateListingCard__meta{
  margin: 0;
  font-weight: 700;
}
.realestateListingCard__excerpt{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.realestateListingCard__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.realestateListingCard__rail{
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-width: 0;
}
.realestateListingCard__priceBox{
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.realestateListingCard__price{
  font-size: 28px;
  line-height: 1.04;
  font-weight: 900;
}
.realestateListingCard__priceSecondary{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.realestateListingCard__actions{
  display: grid;
  gap: 10px;
}
.realestateListingCard__actions .btn{
  width: 100%;
  justify-content: center;
  min-height: 46px;
}
.realestateListingCard__score{
  min-width: 104px;
  border-radius: 20px;
}
.realestateListingCard__score strong{
  font-size: 30px;
}
:root[data-theme="light"] .realestateListingCard__priceBox,
:root[data-theme="light"] .realestateListingCard__ribbon{
  background: rgba(255,255,255,.96);
  border-color: rgba(17,36,40,.10);
  color: #16292f;
}
:root[data-theme="light"] .realestateListingCard__ribbon--premium{
  background: rgba(214,178,114,.92);
  color: #102024;
}
.realestatePortal__hero p{
  max-width: 64ch;
}
.realestatePortal__heroBadges{
  margin-top: 18px;
}
.realestateSectionBlock .realestateCard__caption{
  max-width: 62ch;
}
@media (max-width: 1100px){
  .realestateListingCard{
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .realestateListingCard__rail{
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .realestateListingCard__actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px){
  .realestateChrome,
  .realestateFooter{
    align-items: stretch;
  }
  .realestateChrome__actions{
    justify-content: flex-start;
  }
  .realestateListingCard{
    grid-template-columns: 1fr;
  }
  .realestateListingCard__rail,
  .realestateListingCard__actions{
    grid-template-columns: 1fr;
  }
}

.realestateChrome{ overflow: visible; }
.realestateLangMenu .langBtn{
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.realestateLangMenu .langBtn:hover{
  border-color: rgba(89,213,201,.32);
  background: rgba(89,213,201,.10);
}
.realestateLangMenu .langItem{
  background: transparent;
  color: var(--text);
}
.realestateLangMenu .langItem:hover,
.realestateLangMenu .langItem.is-active{
  background: rgba(89,213,201,.10);
  border-color: rgba(89,213,201,.22);
}
:root[data-theme="light"] .realestateLangMenu .langBtn{
  background: #ffffff;
  color: #16292f;
  border-color: rgba(17,36,40,.12);
}
:root[data-theme="light"] .realestateLangMenu .langBtn:hover{
  background: rgba(68,133,255,.08);
  border-color: rgba(68,133,255,.24);
}
:root[data-theme="light"] .realestateLangMenu .langItem{
  color: #16292f;
}
:root[data-theme="light"] .realestateLangMenu .langItem:hover,
:root[data-theme="light"] .realestateLangMenu .langItem.is-active{
  background: rgba(68,133,255,.08);
  border-color: rgba(68,133,255,.14);
}


/* ===== Real-estate polish r11 ===== */
.realestateShell,
.realestateContainer,
.realestatePortal,
.realestatePortal__hero,
.realestateSectionBlock{
  overflow: visible;
}
.realestateChrome{
  position: sticky;
  top: 14px;
  z-index: 1200;
}
.realestateChrome__actions{
  align-items: center;
  flex-wrap: nowrap;
  z-index: 1300;
}
.realestateChrome__utility--lang,
.realestateChrome__utility--currency,
.realestateChrome__utility--theme,
.realestateLangMenu{
  z-index: 1400;
}
.realestateLangMenu .langPanel{
  top: calc(100% + 10px);
  min-width: 240px;
  border-radius: 18px;
}
.realestateChrome .btn.btn--ghost,
.realestateChrome__select{
  min-height: 46px;
  border-radius: 18px;
}
.realestateChrome__utilityLabel{
  color: rgba(255,255,255,.78);
}
:root[data-theme="light"] .realestateChrome__utilityLabel{
  color: #4f6666;
}
.realestateChrome__select,
.realestateField select{
  background-color: #112f2d !important;
  border-color: rgba(89,213,201,.24) !important;
  color: #f3fbf8 !important;
}
.realestateChrome__select option,
.realestateField select option{
  background: #112f2d !important;
  color: #f3fbf8 !important;
}
:root[data-theme="light"] .realestateChrome__select{
  background-color: #ffffff !important;
  border-color: rgba(17,36,40,.14) !important;
  color: #16282d !important;
}
:root[data-theme="light"] .realestateChrome__select option,
:root[data-theme="light"] .realestateField select,
:root[data-theme="light"] .realestateField select option{
  background: #ffffff !important;
  color: #16282d !important;
}
.realestateSearchPanel{
  position: relative;
  z-index: 2;
}
.realestateListingGrid{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
}
.realestateListingCard{
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) 220px !important;
  gap: 18px;
  align-items: stretch;
  min-height: 260px;
}
.realestateListingCard__media{
  min-height: 240px;
  height: 100%;
}
.realestateListingCard__body{
  gap: 10px;
}
.realestateListingCard__facts{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.realestateListingCard__facts span{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.realestateListingCard__excerpt{
  max-width: 90ch;
}
.realestateListingCard__rail{
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-width: 0;
}
.realestateListingCard__priceBox{
  padding: 16px 16px 14px;
  border-radius: 20px;
}
.realestateListingCard__auctionMeta{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.realestateListingCard__actions .btn{
  min-width: 100%;
  justify-content: center;
}
.realestateChrome__brand{
  min-width: fit-content;
}
.realestateSearchMiniGrid .realestateField select{
  min-height: 52px;
}
@media (max-width: 1160px){
  .realestateChrome{
    position: relative;
    top: 0;
  }
  .realestateChrome__actions{
    flex-wrap: wrap;
  }
  .realestateListingCard{
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) !important;
  }
  .realestateListingCard__rail{
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .realestateListingCard__actions .btn{
    min-width: 148px;
  }
}
@media (max-width: 760px){
  .realestateListingCard{
    grid-template-columns: 1fr !important;
  }
  .realestateListingCard__rail{
    grid-template-columns: 1fr;
  }
  .realestateListingCard__actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .realestateListingCard__actions .btn{
    min-width: 0;
    width: 100%;
  }
}


/* ===== Real-estate finish pass r12 ===== */
.realestateChrome,
.realestateChrome__actions,
.realestateChrome__utility,
.realestateLangMenu,
.realestateLangMenu .langPanel{
  overflow: visible;
}
.realestateChrome{
  gap: 18px;
}
.realestateChrome__nav{
  justify-content: center;
}
.realestateChrome__actions{
  margin-left: auto;
}
.realestateChrome__utility{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
:root[data-theme="light"] .realestateChrome__utility{
  background: rgba(255,255,255,.88);
  border-color: rgba(17,36,40,.10);
}
.realestateChrome__utilityLabel{
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.realestateLangMenu .langBtn,
.realestateChrome__select,
.realestateThemeToggle{
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 18px;
}
.realestateLangMenu .langPanel{
  right: 0;
  left: auto;
  min-width: 260px;
}
.realestatePortal__hero{
  overflow: hidden;
}
.realestatePortal__heroGrid{
  align-items: stretch;
}
.realestatePortal__hero p{
  max-width: 62ch;
}
.realestateSectionBlock--live .realestateCard__head,
.realestateSectionBlock--results .realestateCard__head{
  align-items: end;
}
.realestateListingGrid{
  grid-template-columns: 1fr !important;
}
.realestateListingCard{
  position: relative;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr) minmax(210px, 240px) !important;
  gap: 20px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.realestateListingCard::after{
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.realestateListingCard__media{
  min-height: 250px;
  border-radius: 20px;
}
.realestateListingCard__head{
  align-items: flex-start;
}
.realestateListingCard__titleWrap{ min-width: 0; }
.realestateListingCard__location{
  font-size: 14px;
}
.realestateListingCard__meta{
  font-size: 14px;
  color: var(--rw-text, var(--text));
}
.realestateListingCard__facts span,
.realestateListingCard__chips .realestateBadge,
.realestateListingCard__eyebrow .realestateBadge{
  min-height: 34px;
}
.realestateListingCard__score{
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 108px;
  padding: 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.realestateListingCard__score strong{ line-height: .95; }
.realestateListingCard__score span{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.realestateListingCard__priceBox{
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
}
.realestateListingCard__price{
  letter-spacing: -.03em;
}
.realestateListingCard__actions{
  grid-template-columns: 1fr;
}
.realestateListingCard__actions .btn{
  min-height: 48px;
  border-radius: 16px;
}
.realestateMapStub{
  min-height: 140px;
  border-radius: 20px;
}
.realestateSearchMiniGrid,
.realestateSearchMiniGrid .realestateField{
  min-width: 0;
}
.realestateField select,
.rwField select,
.realestatePipelineItem select{
  background-color: #112f2d !important;
  border-color: rgba(89,213,201,.22) !important;
  color: #f3fbf8 !important;
}
.realestateField select option,
.rwField select option,
.realestatePipelineItem select option{
  background: #112f2d !important;
  color: #f3fbf8 !important;
}
:root[data-theme="light"] .realestateField select,
:root[data-theme="light"] .rwField select,
:root[data-theme="light"] .realestatePipelineItem select{
  background: #ffffff !important;
  border-color: rgba(17,36,40,.14) !important;
  color: #16282d !important;
}
:root[data-theme="light"] .realestateField select option,
:root[data-theme="light"] .rwField select option,
:root[data-theme="light"] .realestatePipelineItem select option{
  background: #ffffff !important;
  color: #16282d !important;
}
.realestateSearchSubmitRow{
  align-items: center;
}
.realestateSearchSubmit{
  min-width: 210px;
  min-height: 56px;
  border-radius: 18px;
}
.realestateWorkspaceBoard__card,
.realestateWorkspaceList__item{
  border-radius: 20px;
}
@media (max-width: 1220px){
  .realestateListingCard{
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) !important;
  }
  .realestateListingCard__rail{
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .realestateListingCard__actions{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px){
  .realestateChrome{
    flex-direction: column;
    align-items: stretch;
  }
  .realestateChrome__nav,
  .realestateChrome__actions{
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .realestateListingCard{
    grid-template-columns: 1fr !important;
  }
  .realestateListingCard__rail,
  .realestateListingCard__actions{
    grid-template-columns: 1fr;
  }
}


/* ===== Real-estate polish r14 ===== */
.realestateChrome{
  position: relative !important;
  top: 0 !important;
  z-index: 50;
}
.realestateChrome__actions{
  gap: 12px;
}
.realestateChrome__utility{
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.realestateChrome__utilityLabel{
  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;
}
.realestateLangMenu .langBtn,
.realestateChrome__select,
.realestateThemeToggle{
  min-height: 44px;
  border-radius: 16px;
}
.realestateChrome .btn.btn--ghost,
.realestateChrome__select{
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
:root[data-theme="light"] .realestateChrome .btn.btn--ghost,
:root[data-theme="light"] .realestateChrome__select{
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(17,36,40,.10) !important;
  box-shadow: 0 10px 20px rgba(17,36,40,.08);
}
.realestateLangMenu .langPanel{
  z-index: 2000;
}
.realestateListingCard{
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr) minmax(188px, 210px) !important;
}
.realestateListingCard__head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.realestateListingCard__pricing{
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  min-width: 170px;
}
.realestateListingCard__score,
.realestateListingCard__priceBox{
  display: none !important;
}
.realestateListingCard__price{
  font-size: clamp(28px, 2vw, 38px);
  line-height: 1;
  font-weight: 900;
}
.realestateListingCard__priceSecondary{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.realestateListingCard__rail{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.realestateListingCard__auctionMeta{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
:root[data-theme="light"] .realestateListingCard__auctionMeta{
  border-color: rgba(17,36,40,.10);
  background: rgba(255,255,255,.90);
}
@media (max-width: 1220px){
  .realestateListingCard__head{
    grid-template-columns: 1fr;
  }
  .realestateListingCard__pricing{
    justify-items: start;
    text-align: left;
    min-width: 0;
  }
}
@media (max-width: 820px){
  .realestateChrome__actions{
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* ===== Realestate mobile quick-search recovery r4 ===== */
@media (max-width: 820px){
  body[data-category="realestate"],body[data-category="real-estate"]{overflow-x:hidden !important;}
  body[data-category="realestate"] .realestateShell,
  body[data-category="real-estate"] .realestateShell,
  body[data-category="realestate"] .realestateContainer,
  body[data-category="real-estate"] .realestateContainer,
  body[data-category="realestate"] .realestatePortal,
  body[data-category="real-estate"] .realestatePortal{max-width:100% !important;overflow-x:hidden !important;}
  body[data-category="realestate"] .realestatePortal__hero,
  body[data-category="real-estate"] .realestatePortal__hero{padding:18px 14px 20px !important;border-radius:28px !important;overflow:hidden !important;}
  body[data-category="realestate"] .realestatePortal__heroGrid,
  body[data-category="real-estate"] .realestatePortal__heroGrid{grid-template-columns:1fr !important;gap:18px !important;align-items:start !important;}
  body[data-category="realestate"] .realestatePortal h1,
  body[data-category="real-estate"] .realestatePortal h1{max-width:none !important;font-size:clamp(34px, 10vw, 54px) !important;line-height:.96 !important;}
  body[data-category="realestate"] .realestatePortal__hero p,
  body[data-category="real-estate"] .realestatePortal__hero p{max-width:none !important;font-size:16px !important;line-height:1.42 !important;}
  body[data-category="realestate"] .realestatePortal__heroBadges,
  body[data-category="real-estate"] .realestatePortal__heroBadges,
  body[data-category="realestate"] .realestateSuggestionRow--compact,
  body[data-category="real-estate"] .realestateSuggestionRow--compact,
  body[data-category="realestate"] .realestateIntentRow--compact,
  body[data-category="real-estate"] .realestateIntentRow--compact,
  body[data-category="realestate"] .realestateQuickToggles,
  body[data-category="real-estate"] .realestateQuickToggles{display:flex !important;flex-wrap:nowrap !important;overflow-x:auto !important;padding-bottom:4px !important;scrollbar-width:none;}
  body[data-category="realestate"] .realestatePortal__heroBadges::-webkit-scrollbar,
  body[data-category="real-estate"] .realestatePortal__heroBadges::-webkit-scrollbar,
  body[data-category="realestate"] .realestateSuggestionRow--compact::-webkit-scrollbar,
  body[data-category="real-estate"] .realestateSuggestionRow--compact::-webkit-scrollbar,
  body[data-category="realestate"] .realestateIntentRow--compact::-webkit-scrollbar,
  body[data-category="real-estate"] .realestateIntentRow--compact::-webkit-scrollbar,
  body[data-category="realestate"] .realestateQuickToggles::-webkit-scrollbar,
  body[data-category="real-estate"] .realestateQuickToggles::-webkit-scrollbar{display:none;}
  body[data-category="realestate"] .realestatePortal__heroBadges > *,
  body[data-category="real-estate"] .realestatePortal__heroBadges > *,
  body[data-category="realestate"] .realestateSuggestionRow--compact > *,
  body[data-category="real-estate"] .realestateSuggestionRow--compact > *,
  body[data-category="realestate"] .realestateIntentRow--compact > *,
  body[data-category="real-estate"] .realestateIntentRow--compact > *,
  body[data-category="realestate"] .realestateQuickToggles > *,
  body[data-category="real-estate"] .realestateQuickToggles > *{flex:0 0 auto !important;}
  body[data-category="realestate"] .realestatePortal__actions,
  body[data-category="real-estate"] .realestatePortal__actions{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;}
  body[data-category="realestate"] .realestateSearchPanel,
  body[data-category="real-estate"] .realestateSearchPanel{width:100% !important;min-width:0 !important;padding:18px !important;border-radius:24px !important;overflow:hidden !important;}
  body[data-category="realestate"] .realestateSearchPanel__head,
  body[data-category="real-estate"] .realestateSearchPanel__head{display:grid !important;gap:12px !important;}
  body[data-category="realestate"] .realestateSearchPanel__meta,
  body[data-category="real-estate"] .realestateSearchPanel__meta{display:grid !important;justify-items:start !important;align-items:start !important;gap:10px !important;}
  body[data-category="realestate"] .realestateSegmented,
  body[data-category="real-estate"] .realestateSegmented{display:grid !important;grid-template-columns:repeat(2, minmax(0,1fr)) !important;gap:8px !important;width:100% !important;}
  body[data-category="realestate"] .realestateSegmented a,
  body[data-category="real-estate"] .realestateSegmented a{justify-content:center !important;min-width:0 !important;white-space:nowrap !important;}
  body[data-category="realestate"] .realestateSearchForm--killer,
  body[data-category="real-estate"] .realestateSearchForm--killer,
  body[data-category="realestate"] .realestateSearchMiniGrid,
  body[data-category="real-estate"] .realestateSearchMiniGrid{grid-template-columns:1fr !important;gap:12px !important;}
  body[data-category="realestate"] .realestateField,
  body[data-category="real-estate"] .realestateField,
  body[data-category="realestate"] .realestateSmartField,
  body[data-category="real-estate"] .realestateSmartField,
  body[data-category="realestate"] .realestateRangePanel,
  body[data-category="real-estate"] .realestateRangePanel{min-width:0 !important;width:100% !important;}
  body[data-category="realestate"] .realestateSearchSubmitRow,
  body[data-category="real-estate"] .realestateSearchSubmitRow{display:grid !important;grid-template-columns:1fr !important;gap:12px !important;align-items:stretch !important;}
  body[data-category="realestate"] .realestateSearchSubmit,
  body[data-category="real-estate"] .realestateSearchSubmit{width:100% !important;min-width:0 !important;}
  body[data-category="realestate"] .realestateSectionBlock--live,
  body[data-category="real-estate"] .realestateSectionBlock--live,
  body[data-category="realestate"] .realestateListingGrid,
  body[data-category="real-estate"] .realestateListingGrid{overflow:hidden !important;}
}


/* ===== Realestate Superlative Dynamic Search / Lease r1 ===== */
.realestateSearchTopGrid{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);
  gap:14px;
}
.realestateAdvancedFilters{
  border:1px solid var(--re-line,rgba(148,163,184,.18));
  border-radius:20px;
  background:var(--re-card-soft,rgba(255,255,255,.035));
  overflow:hidden;
}
.realestateAdvancedFilters>summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-weight:900;
}
.realestateAdvancedFilters>summary::-webkit-details-marker{display:none}
.realestateAdvancedFilters>summary small{
  font-weight:600;
  opacity:.72;
}
.realestateAdvancedFilters[open]>summary{
  border-bottom:1px solid var(--re-line,rgba(148,163,184,.18));
}
.realestateAdvancedFilters__grid{
  padding:18px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.realestateAdvancedFilters__amenities{padding:0 18px 18px}
.realestateSectionBlock--search .realestateIntentRow{
  row-gap:8px;
}
.realestateSectionBlock--search .realestateSearchSubmitRow{
  grid-template-columns:auto minmax(180px,1fr) minmax(180px,240px);
}
@media (max-width:1100px){
  .realestateAdvancedFilters__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  body[data-category="realestate"] .realestateSegmented,
  body[data-category="real-estate"] .realestateSegmented{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .realestateSearchTopGrid,.realestateAdvancedFilters__grid{grid-template-columns:1fr}
  .realestateAdvancedFilters>summary{align-items:flex-start;flex-direction:column}
  .realestateSectionBlock--search .realestateSearchSubmitRow{grid-template-columns:1fr}
}

/* Verification status is platform-controlled; sellers can request but never self-assert it. */
.rwVerificationStatus{display:grid;gap:10px;padding:14px;border:1px solid var(--re-border,rgba(127,127,127,.22));border-radius:16px;background:rgba(127,127,127,.07)}
.rwVerificationStatus__item{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rwVerificationStatus p{margin:0;color:var(--re-muted,#788395);font-size:.9rem;line-height:1.45}
@media(max-width:640px){.rwVerificationStatus__item{align-items:flex-start;flex-direction:column}}

/* Realestate: shared boost activation in publish flow */
.rwBoostPanel{margin-top:18px;padding:18px;border:1px solid var(--border,#d9e2ea);border-radius:18px;background:color-mix(in srgb,var(--surface,#fff) 92%,var(--accent,#49d7c5) 8%)}
.rwBoostPanel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.rwBoostPanel__head p{margin:4px 0 0;color:var(--muted,#64748b)}
.rwBoostGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.rwBoostOption{display:grid;gap:6px;padding:14px;border:1px solid var(--border,#d9e2ea);border-radius:14px;cursor:pointer;background:var(--surface,#fff)}.rwBoostOption.is-selected,.rwBoostOption:has(input:checked){border-color:var(--accent,#49d7c5);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#49d7c5) 18%,transparent)}.rwBoostOption input{margin:0}.rwBoostOption span,.rwBoostOption small{color:var(--muted,#64748b)}
@media(max-width:900px){.rwBoostGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.rwBoostGrid{grid-template-columns:1fr}.rwBoostPanel__head{flex-direction:column}}
.realestateManageListing{display:grid;gap:8px}.realestateBoostBar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,280px) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--border,#d9e2ea);border-radius:14px;background:var(--surface,#fff)}.realestateBoostBar>div{display:grid;gap:2px}.realestateBoostBar small{color:var(--muted,#64748b)}.realestateBoostBar select{min-height:38px;border:1px solid var(--border,#d9e2ea);border-radius:10px;background:var(--surface,#fff);color:inherit;padding:0 10px}@media(max-width:720px){.realestateBoostBar{grid-template-columns:1fr}.realestateBoostBar .btn{width:100%}}
.realestateAdaptiveFilterGroup{display:contents}.realestateAdaptiveFilterGroup[hidden]{display:none}.realestateToggleChip--field{min-height:44px;align-self:end}

/* ===== Realestate Mobile Superlative r1 ===== */
.realestateMobileSearchBar,
.realestateMobileFilterHead,
.realestateMobileFilterBackdrop,
.realestateMobileDealBar{display:none}
.realestateResultsView{min-width:0}
.realestateLightbox[hidden]{display:none!important}
.realestateLightbox{
  position:fixed;inset:0;z-index:10020;background:rgba(3,10,14,.96);display:grid;
  grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:8px;padding:20px;
}
.realestateLightbox__stage{margin:0;min-width:0;display:grid;gap:12px;justify-items:center}
.realestateLightbox__stage img{display:block;max-width:min(1280px,100%);max-height:86vh;object-fit:contain;border-radius:18px}
.realestateLightbox__stage figcaption{color:#fff;font-weight:800;font-size:13px;letter-spacing:.04em}
.realestateLightbox__close,.realestateLightbox__nav{
  border:1px solid rgba(255,255,255,.18);background:rgba(15,25,29,.76);color:#fff;cursor:pointer;
  display:grid;place-items:center;backdrop-filter:blur(14px);box-shadow:0 12px 32px rgba(0,0,0,.24)
}
.realestateLightbox__close{position:absolute;top:max(16px,env(safe-area-inset-top));right:16px;width:48px;height:48px;border-radius:999px;font-size:28px;z-index:2}
.realestateLightbox__nav{width:52px;height:72px;border-radius:18px;font-size:42px;line-height:1}
body.realestateLightboxOpen,body.realestateMobileFilterOpen{overflow:hidden}

@media (max-width:820px){
  body[data-category="realestate"],body[data-category="real-estate"]{padding-bottom:0}
  body[data-category="realestate"] .realestateContainer,
  body[data-category="real-estate"] .realestateContainer{padding-left:12px!important;padding-right:12px!important}

  /* Portal: search first, decoration second. */
  body[data-category="realestate"] .realestatePortal__hero,
  body[data-category="real-estate"] .realestatePortal__hero{padding:16px 12px 18px!important;border-radius:24px!important}
  body[data-category="realestate"] .realestatePortal h1,
  body[data-category="real-estate"] .realestatePortal h1{font-size:clamp(30px,8.4vw,40px)!important;line-height:1!important;letter-spacing:-.035em!important}
  body[data-category="realestate"] .realestatePortal__hero p,
  body[data-category="real-estate"] .realestatePortal__hero p{font-size:15px!important;line-height:1.45!important}
  body[data-category="realestate"] .realestatePortal__actions,
  body[data-category="real-estate"] .realestatePortal__actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-category="realestate"] .realestatePortal__actions>.btn--accent:first-child,
  body[data-category="real-estate"] .realestatePortal__actions>.btn--accent:first-child{grid-column:1/-1}
  body[data-category="realestate"] .realestatePortal__actions .btn,
  body[data-category="real-estate"] .realestatePortal__actions .btn{min-height:48px;padding-inline:12px}
  body[data-category="realestate"] .realestatePortal__metrics,
  body[data-category="real-estate"] .realestatePortal__metrics,
  body[data-category="realestate"] .realestatePortal__grid,
  body[data-category="real-estate"] .realestatePortal__grid{
    display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;gap:10px!important;padding-bottom:4px;scrollbar-width:none
  }
  body[data-category="realestate"] .realestatePortal__metrics::-webkit-scrollbar,
  body[data-category="real-estate"] .realestatePortal__metrics::-webkit-scrollbar,
  body[data-category="realestate"] .realestatePortal__grid::-webkit-scrollbar,
  body[data-category="real-estate"] .realestatePortal__grid::-webkit-scrollbar{display:none}
  body[data-category="realestate"] .realestatePortal__metrics>*{flex:0 0 min(72vw,230px);scroll-snap-align:start}
  body[data-category="realestate"] .realestatePortal__grid>*{flex:0 0 min(82vw,300px);scroll-snap-align:start}
  body[data-category="realestate"] .realestateSearchPanel,
  body[data-category="real-estate"] .realestateSearchPanel{padding:14px!important;border-radius:20px!important}
  body[data-category="realestate"] .realestateSearchPanel__caption,
  body[data-category="real-estate"] .realestateSearchPanel__caption{display:none}
  body[data-category="realestate"] .realestateSearchForm input:not([type="range"]):not([type="checkbox"]),
  body[data-category="realestate"] .realestateSearchForm select,
  body[data-category="realestate"] .realestateSearchForm textarea,
  body[data-category="real-estate"] .realestateSearchForm input:not([type="range"]):not([type="checkbox"]),
  body[data-category="real-estate"] .realestateSearchForm select,
  body[data-category="real-estate"] .realestateSearchForm textarea{font-size:16px!important;min-height:48px}

  /* Search results: one-thumb controls, bottom-sheet filters, direct list/map switch. */
  .realestateMobileSearchBar{
    position:sticky;top:8px;z-index:160;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;
    margin:0 0 12px;padding:8px;border:1px solid rgba(255,255,255,.10);border-radius:18px;
    background:rgba(10,28,30,.92);backdrop-filter:blur(18px);box-shadow:0 14px 34px rgba(0,0,0,.18)
  }
  :root[data-theme="light"] .realestateMobileSearchBar{background:rgba(255,255,255,.94);border-color:rgba(17,36,40,.12)}
  .realestateMobileSearchBar__filter{min-width:0;justify-content:space-between!important;gap:8px}
  .realestateMobileSearchBar__filter strong{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:rgba(var(--accent-rgb),.18);font-size:12px}
  .realestateMobileSearchBar__views{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .realestateMobileSearchBar__views .btn{min-width:0;padding:0 10px;min-height:44px;font-size:12px}
  .realestateMobileSearchBar__views .is-active{border-color:rgba(var(--accent-rgb),.40);background:rgba(var(--accent-rgb),.14)}
  .realestateMobileSearchBar__count{grid-column:1/-1;color:var(--muted);font-size:12px;padding:0 4px 2px}
  .realestateMobileFilterHead{display:flex;position:sticky;top:0;z-index:4;align-items:center;justify-content:space-between;gap:12px;padding:2px 0 12px;background:inherit}
  .realestateMobileFilterHead>div{display:grid;gap:2px}.realestateMobileFilterHead small{color:var(--muted)}
  .realestateMobileFilterHead__close{width:46px;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:inherit;font-size:26px}
  :root[data-theme="light"] .realestateMobileFilterHead__close{border-color:rgba(17,36,40,.12);background:#fff}
  .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel]{
    display:none!important;position:fixed!important;z-index:9401!important;inset:max(58px,env(safe-area-inset-top)) 0 0 0!important;
    margin:0!important;padding:16px 14px calc(104px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain;
    background:var(--bg,#08171b)!important;border-radius:24px 24px 0 0!important;box-shadow:0 -20px 64px rgba(0,0,0,.34)!important
  }
  :root[data-theme="light"] .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel]{background:#f7fbfa!important}
  .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel].is-mobile-open{display:grid!important}
  .realestateMobileFilterBackdrop{position:fixed;inset:0;z-index:9400;border:0;background:rgba(0,0,0,.55);backdrop-filter:blur(3px)}
  body.realestateMobileFilterOpen .realestateMobileFilterBackdrop{display:block}
  .realestateSectionBlock--search .realestateSearchSubmitRow{
    position:sticky;bottom:calc(-104px - env(safe-area-inset-bottom));z-index:5;margin:12px -14px 0!important;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,rgba(8,23,27,.82),rgba(8,23,27,.98))!important;
    border-top:1px solid rgba(255,255,255,.10)
  }
  :root[data-theme="light"] .realestateSectionBlock--search .realestateSearchSubmitRow{background:linear-gradient(180deg,rgba(247,251,250,.82),rgba(247,251,250,.98))!important;border-color:rgba(17,36,40,.10)}
  .realestateSectionBlock--search .realestateSearchSignal{display:none!important}
  .realestateSectionBlock--search .realestateAdvancedFilters{overflow:visible}
  .realestateSectionBlock--search .realestateAdvancedFilters>summary{padding:14px 0;border:0}
  .realestateSectionBlock--search .realestateAdvancedFilters__grid{padding:12px 0 0!important}
  .realestateSectionBlock--search .realestateAdvancedFilters__amenities{padding:12px 0 0!important}
  .realestateSectionBlock--search .realestateQuickToggles{margin-inline:-2px}
  .realestateResultsView--map:not(.is-active),.realestateResultsView--list:not(.is-active){display:none!important}
  .realestateSectionBlock--results>.realestateCard__head{margin-bottom:10px}
  .realestateResultsView--map .realestateSectionBlock--map{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
  .realestateWorldMap{height:min(50vh,420px)!important;min-height:300px!important;border-radius:20px!important}

  /* Result cards: image -> price -> key facts -> action. */
  .realestateListingGrid{gap:12px!important}
  .realestateListingCard{gap:0!important;padding:0!important;border-radius:22px!important;overflow:hidden!important}
  .realestateListingCard__media{min-height:0!important;aspect-ratio:16/10;border:0!important;border-radius:0!important}
  .realestateListingCard__body{padding:14px 14px 10px!important;gap:8px!important}
  .realestateListingCard__head{gap:8px!important}
  .realestateListingCard__pricing{order:-1;justify-items:start!important;text-align:left!important}
  .realestateListingCard__price{font-size:28px!important}
  .realestateListingCard__title{font-size:19px!important;line-height:1.2;margin:2px 0!important}
  .realestateListingCard__location,.realestateListingCard__meta{font-size:13px!important;line-height:1.4!important}
  .realestateListingCard__excerpt{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0!important;font-size:13px!important;line-height:1.45!important}
  .realestateListingCard__facts,.realestateListingCard__chips,.realestateListingCard__eyebrow{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;gap:6px!important}
  .realestateListingCard__facts::-webkit-scrollbar,.realestateListingCard__chips::-webkit-scrollbar,.realestateListingCard__eyebrow::-webkit-scrollbar{display:none}
  .realestateListingCard__facts>*,.realestateListingCard__chips>*,.realestateListingCard__eyebrow>*{flex:0 0 auto}
  .realestateListingCard__rail{padding:0 14px 14px!important;gap:8px!important}
  .realestateListingCard__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .realestateListingCard__actions .btn{min-height:46px!important;padding-inline:10px!important}
  .realestateListingCard__actions .btn:last-child{grid-column:1/-1}

  /* Detail: media and deal actions rise above long prose. */
  body[data-category="realestate"]:has(.realestateMobileDealBar),body[data-category="real-estate"]:has(.realestateMobileDealBar){padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  .realestateDetail{gap:12px!important}
  .realestateDetail__hero{grid-template-columns:1fr!important;gap:10px!important}
  .realestateDetail__heroMain,.realestateDetail__heroSide{padding:14px!important;border-radius:20px!important}
  .realestateDetail__heroMain h1{font-size:clamp(27px,7.6vw,36px)!important;line-height:1.05!important}
  .realestateDetail__heroMain .realestateListingCard__chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}
  .realestateDetail__heroMain .realestateListingCard__chips>*{flex:0 0 auto}
  .realestateQualityBox{padding:12px!important}
  .realestateQualityBox .realestateBulletList{display:none}
  .realestateDetail__grid{grid-template-columns:1fr!important;gap:12px!important}
  .realestateDetail__main{display:flex!important;flex-direction:column;gap:12px!important}
  .realestateDetail__main>.realestateDetailSection--media{order:1}
  .realestateDetail__main>.realestateDetailSection--overview{order:2}
  .realestateDetail__main>.realestateDetailSection--actions{order:3}
  .realestateDetail__main>.realestateDetailSection--description{order:4}
  .realestateDetail__main>.realestateSectionBlock:not(.realestateDetailSection){order:5}
  .realestateDetail__side{gap:12px!important}
  .realestateSectionBlock{padding:14px!important;border-radius:20px!important}
  .realestateFactGrid{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;gap:8px!important}
  .realestateFactGrid::-webkit-scrollbar{display:none}
  .realestateFact{flex:0 0 min(58vw,190px);scroll-snap-align:start;padding:12px!important}
  .realestateGallery{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;gap:8px!important;margin-inline:-14px;padding-inline:14px;scrollbar-width:none}
  .realestateGallery::-webkit-scrollbar{display:none}
  .realestateGallery__item{flex:0 0 min(88vw,520px);aspect-ratio:4/3!important;scroll-snap-align:center;border-radius:16px!important}
  .realestateDocGrid,.realestateActionGrid{grid-template-columns:1fr!important;gap:10px!important}
  .realestateMiniForm{padding:13px!important;border-radius:16px!important}
  .realestateMiniForm input,.realestateMiniForm select,.realestateMiniForm textarea{font-size:16px!important}
  .realestateStatsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .realestateMobileDealBar{
    position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:500;display:grid;
    grid-template-columns:minmax(0,1fr) minmax(132px,auto);align-items:center;gap:10px;padding:10px;
    border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(8,24,27,.94);backdrop-filter:blur(20px);box-shadow:0 16px 46px rgba(0,0,0,.34)
  }
  :root[data-theme="light"] .realestateMobileDealBar{background:rgba(255,255,255,.96);border-color:rgba(17,36,40,.12)}
  .realestateMobileDealBar__price{min-width:0;display:grid;gap:2px}.realestateMobileDealBar__price strong{font-size:17px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.realestateMobileDealBar__price small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .realestateMobileDealBar .btn{min-height:48px;min-width:0;padding-inline:12px;white-space:nowrap}

  /* Fullscreen gallery on touch devices. */
  .realestateLightbox{grid-template-columns:1fr;padding:10px;touch-action:pan-y}
  .realestateLightbox__stage img{max-height:82vh;border-radius:14px}
  .realestateLightbox__nav{position:absolute;bottom:calc(18px + env(safe-area-inset-bottom));width:48px;height:48px;border-radius:999px;font-size:32px;z-index:2}
  .realestateLightbox__nav--prev{left:18px}.realestateLightbox__nav--next{right:18px}
}

@media (max-width:430px){
  .realestateMobileSearchBar{grid-template-columns:1fr}.realestateMobileSearchBar__views{grid-row:2}.realestateMobileSearchBar__count{grid-row:3}
  body[data-category="realestate"] .realestateSegmented,body[data-category="real-estate"] .realestateSegmented{display:flex!important;overflow-x:auto;scrollbar-width:none;gap:6px!important}
  body[data-category="realestate"] .realestateSegmented a,body[data-category="real-estate"] .realestateSegmented a{flex:1 0 96px}
  .realestateMobileDealBar{grid-template-columns:minmax(0,1fr) minmax(120px,42%)}
  .realestateMobileDealBar__price strong{font-size:15px}.realestateMobileDealBar .btn{font-size:12px}
}

/* CONE STEP 12 — Realestate mobile geometry and touch-flow recovery. */
body[data-category="realestate"] > .realestateShell{
  grid-template-rows:minmax(0,1fr) auto;
}
body[data-category="realestate"] > .realestateShell--wizard{
  grid-template-rows:minmax(0,1fr);
}
body[data-category="realestate"] > .realestateShell > .realestateContainer,
body[data-category="realestate"] > .realestateShell > .realestateFooter{
  width:100%!important;
  max-width:100%!important;
}

@media (max-width:820px){
  body[data-category="realestate"]{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow-x:clip!important;
  }
  body[data-category="realestate"] > .categoryHeader,
  body[data-category="realestate"] > .realestateShell{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body[data-category="realestate"] > .realestateShell{
    padding:0!important;
    gap:10px!important;
    overflow:visible!important;
  }
  body[data-category="realestate"] .realestateContainer{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:10px max(9px,env(safe-area-inset-right,0px)) 16px max(9px,env(safe-area-inset-left,0px))!important;
    overflow:visible!important;
  }
  body[data-category="realestate"] .realestatePortal,
  body[data-category="realestate"] .realestateSearch__stack,
  body[data-category="realestate"] .realestateDetail,
  body[data-category="realestate"] .realestateWorkspace,
  body[data-category="realestate"] .realestateDealRoomPage,
  body[data-category="realestate"] .realestateSectionBlock,
  body[data-category="realestate"] .realestateSearchPanel,
  body[data-category="realestate"] .realestateResultsView,
  body[data-category="realestate"] .realestateListingGrid,
  body[data-category="realestate"] .realestateListingCard,
  body[data-category="realestate"] .realestateDetail__hero,
  body[data-category="realestate"] .realestateDetail__grid,
  body[data-category="realestate"] .realestateWorkspaceHero,
  body[data-category="realestate"] .realestateWorkspaceGrid,
  body[data-category="realestate"] .realestateDealRoomGrid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body[data-category="realestate"] .realestatePortal,
  body[data-category="realestate"] .realestateSearch__stack,
  body[data-category="realestate"] .realestateDetail,
  body[data-category="realestate"] .realestateWorkspace,
  body[data-category="realestate"] .realestateDealRoomPage{
    overflow:visible!important;
  }
  body[data-category="realestate"] img,
  body[data-category="realestate"] video,
  body[data-category="realestate"] canvas,
  body[data-category="realestate"] svg{
    max-width:100%;
  }
  body[data-category="realestate"] h1,
  body[data-category="realestate"] h2,
  body[data-category="realestate"] h3,
  body[data-category="realestate"] p,
  body[data-category="realestate"] a,
  body[data-category="realestate"] strong,
  body[data-category="realestate"] span,
  body[data-category="realestate"] dd{
    overflow-wrap:anywhere;
  }
  body[data-category="realestate"] input:not([type="checkbox"]):not([type="radio"]),
  body[data-category="realestate"] select,
  body[data-category="realestate"] textarea,
  body[data-category="realestate"] button{
    max-width:100%;
  }

  body[data-category="realestate"] .realestatePortal__heroGrid,
  body[data-category="realestate"] .realestateSearchTopGrid,
  body[data-category="realestate"] .realestateSearchMiniGrid,
  body[data-category="realestate"] .realestateAdvancedFilters__grid,
  body[data-category="realestate"] .realestateActionGrid,
  body[data-category="realestate"] .realestateDocGrid,
  body[data-category="realestate"] .realestateDetail__hero,
  body[data-category="realestate"] .realestateDetail__grid,
  body[data-category="realestate"] .realestateWorkspaceHero,
  body[data-category="realestate"] .realestateWorkspaceGrid,
  body[data-category="realestate"] .realestateDealRoomGrid,
  body[data-category="realestate"] .realestatePipelineItem{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-category="realestate"] .realestatePortal__hero{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }
  body[data-category="realestate"] .realestatePortal__actions{
    width:100%;
  }
  body[data-category="realestate"] .realestatePortal__actions .btn{
    min-width:0;
    white-space:normal;
    text-align:center;
  }
  body[data-category="realestate"] .realestatePortal__metrics,
  body[data-category="realestate"] .realestatePortal__grid,
  body[data-category="realestate"] .realestateSuggestionRow,
  body[data-category="realestate"] .realestateIntentRow,
  body[data-category="realestate"] .realestateQuickToggles,
  body[data-category="realestate"] .realestateFactGrid,
  body[data-category="realestate"] .realestateGallery{
    max-width:100%;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }

  body[data-category="realestate"] .realestateListingCard{
    grid-template-columns:minmax(0,1fr)!important;
    overflow:hidden!important;
  }
  body[data-category="realestate"] .realestateListingCard__media,
  body[data-category="realestate"] .realestateListingCard__body,
  body[data-category="realestate"] .realestateListingCard__head,
  body[data-category="realestate"] .realestateListingCard__titleWrap,
  body[data-category="realestate"] .realestateListingCard__pricing,
  body[data-category="realestate"] .realestateListingCard__rail{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body[data-category="realestate"] .realestateListingCard__head{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-category="realestate"] .realestateListingCard__actions{
    width:100%;
  }
  body[data-category="realestate"] .realestateListingCard__actions .btn{
    width:100%;
    min-width:0!important;
    white-space:normal;
  }

  body[data-category="realestate"] .realestateMobileSearchBar{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  body[data-category="realestate"] .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel]{
    width:auto!important;
    max-width:100vw!important;
    min-width:0!important;
  }
  body[data-category="realestate"] .realestateWorldMap,
  body[data-category="realestate"] .realestateMapStub{
    width:100%!important;
    max-width:100%!important;
  }

  body[data-category="realestate"] .realestateWorkspaceKpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body[data-category="realestate"] .realestateWorkspaceBoard__card{
    grid-template-columns:84px minmax(0,1fr)!important;
    min-width:0;
  }
  body[data-category="realestate"] .realestateWorkspaceBoard__body,
  body[data-category="realestate"] .realestateWorkspaceBoard__card > *,
  body[data-category="realestate"] .realestateWorkspaceList__item > *,
  body[data-category="realestate"] .realestateTimeline__item,
  body[data-category="realestate"] .realestatePipelineItem > *{
    min-width:0;
    max-width:100%;
  }
  body[data-category="realestate"] .realestateAdminTable__head{
    display:none;
  }
  body[data-category="realestate"] .realestateAdminTable__row{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-category="realestate"] .realestateInlineForms,
  body[data-category="realestate"] .realestateInlineForms__counter{
    width:100%;
    min-width:0;
  }
  body[data-category="realestate"] .realestateInlineForms__counter input{
    flex:1 1 150px;
    width:100%;
    min-width:0;
  }

  body[data-category="realestate"] .realestateFooter{
    width:calc(100% - 18px)!important;
    max-width:calc(100% - 18px)!important;
    margin:0 9px!important;
    padding:12px!important;
  }
  body[data-category="realestate"] .realestateFooter__links{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    gap:7px;
  }
  body[data-category="realestate"] .realestateFooter__links a{
    min-width:0;
    padding:10px 7px;
    text-align:center;
  }
}

/* CONE Real Estate mobile controls and alignment hotfix R1.
 * Keeps the STEP 28 application shell while repairing the user-tested iOS
 * homepage metrics, dual budget rail, quality toggles and category footer. */
.realestateRangePanel{
  touch-action:pan-y;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
}
.realestateSearchForm .realestateField .realestateRangePanel input[type="range"]{
  min-height:0!important;
  height:24px!important;
}
:root[data-theme="light"] .realestateRangePanel::before{
  background:linear-gradient(90deg,
    rgba(17,36,40,.13) 0 var(--range-start),
    rgba(var(--accent-rgb),.92) var(--range-start) var(--range-end),
    rgba(17,36,40,.13) var(--range-end) 100%)!important;
}
.realestateToggleChip{
  position:relative;
  min-width:0;
  cursor:pointer;
}
.realestateToggleChip input{
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
}
.realestateToggleChip span{
  width:100%;
  min-height:44px;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.realestateToggleChip.is-active span,
.realestateToggleChip input:checked + span{
  color:var(--text)!important;
  border-color:rgba(var(--accent-rgb),.72)!important;
  background:linear-gradient(135deg,rgba(var(--accent-rgb),.30),rgba(var(--accent2-rgb),.18))!important;
  box-shadow:0 10px 24px rgba(var(--accent-rgb),.18),inset 0 0 0 1px rgba(255,255,255,.14)!important;
  transform:translateY(-1px);
}
.realestateToggleChip.has-keyboard-focus span{
  outline:3px solid rgba(var(--accent-rgb),.96);
  outline-offset:3px;
}
:root[data-theme="light"] .realestateToggleChip.is-active span,
:root[data-theme="light"] .realestateToggleChip input:checked + span{
  color:#10282d!important;
  border-color:rgba(22,143,132,.52)!important;
  background:linear-gradient(135deg,rgba(89,213,201,.34),rgba(214,178,114,.22))!important;
  box-shadow:0 10px 24px rgba(22,143,132,.14),inset 0 0 0 1px rgba(255,255,255,.70)!important;
}

@media (max-width:820px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestatePortal__metrics{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestatePortal__metrics > .realestateMetric{
    display:grid!important;
    align-content:start!important;
    flex:none!important;
    width:auto!important;
    min-width:0!important;
    min-height:104px!important;
    padding:13px!important;
    border-radius:18px!important;
    border-color:rgba(255,255,255,.20)!important;
    background:rgba(7,18,20,.40)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.12)!important;
    -webkit-backdrop-filter:blur(14px) saturate(125%);
    backdrop-filter:blur(14px) saturate(125%);
  }
  :root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestatePortal__metrics > .realestateMetric{
    color:#10242a!important;
    background:rgba(255,255,255,.58)!important;
    border-color:rgba(255,255,255,.76)!important;
    box-shadow:0 12px 28px rgba(17,36,40,.08)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestatePortal__metrics > .realestateMetric strong{
    font-size:clamp(25px,8vw,34px)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestatePortal__metrics > .realestateMetric span{
    font-size:clamp(11px,3.2vw,13px)!important;
    line-height:1.3!important;
  }

  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateQuickToggles{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    overflow:visible!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateQuickToggles > .realestateToggleChip{
    width:100%!important;
    min-width:0!important;
    flex:none!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateToggleChip span{
    padding:9px 8px!important;
    white-space:normal!important;
    line-height:1.2!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateRangePanel{
    min-height:44px!important;
    padding-block:10px 8px!important;
  }

  :is(body[data-category="realestate"],body[data-category="real-estate"]) > .realestateShell > .realestateFooter{
    box-sizing:border-box!important;
    width:calc(100% - 20px)!important;
    max-width:680px!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:13px!important;
    overflow:hidden!important;
    transform:none!important;
    justify-self:center!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateFooter__brandWrap,
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateFooter__links{
    box-sizing:border-box;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateFooter__brandWrap{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWordmark--footer{
    min-width:0!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateFooter__category{
    flex:0 0 auto;
    max-width:100%;
  }
}

@media (max-width:430px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateFooter__links{
    grid-template-columns:minmax(0,1fr)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateFooter__links a{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    justify-content:center!important;
  }
}

@media (max-width:360px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestatePortal__metrics > .realestateMetric{
    min-height:100px!important;
    padding:11px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateToggleChip span{
    font-size:10px!important;
  }
}

@media (max-width:430px){
  body[data-category="realestate"] .realestateContainer{
    padding-inline-start:max(7px,env(safe-area-inset-left,0px))!important;
    padding-inline-end:max(7px,env(safe-area-inset-right,0px))!important;
  }
  body[data-category="realestate"] .realestatePortal__actions{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-category="realestate"] .realestatePortal__actions > *{
    grid-column:1!important;
    width:100%;
  }
  body[data-category="realestate"] .realestateListingCard__actions,
  body[data-category="realestate"] .realestateStatsGrid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-category="realestate"] .realestateListingCard__actions .btn:last-child{
    grid-column:1!important;
  }
  body[data-category="realestate"] .realestateWorkspaceBoard__card{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-category="realestate"] .realestateWorkspaceBoard__media{
    min-height:150px;
  }
  body[data-category="realestate"] .realestateFooter__links{
    grid-template-columns:minmax(0,1fr);
  }
}

/* CONE STEP 12 R2 — keep Buy, Rent and Lease in one compact mobile row. */
@media (max-width:820px){
  body[data-category="realestate"] .realestateSegmented,
  body[data-category="real-estate"] .realestateSegmented{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    max-width:100%!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
  }
  body[data-category="realestate"] .realestateSegmented a,
  body[data-category="real-estate"] .realestateSegmented a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:100%!important;
    padding:10px 4px!important;
    font-size:clamp(10px,3.2vw,13px)!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}

/* ===== CONE STEP 28 — REALESTATE COMPLETE MOBILE APP, ROUTES AND CONTAINMENT ===== */
@media (max-width:820px){
  /* Keep the category surface inside 320–820px viewports without clipping controls. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]){
    max-inline-size:100%!important;
    overflow-x:clip!important;
    background-attachment:scroll!important;
    -webkit-text-size-adjust:100%;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(
    .realestateShell,
    .realestateContainer,
    .realestatePortal,
    .realestateSearch__stack,
    .realestateDetail,
    .realestateWorkspace,
    .realestateDealRoomPage,
    .realestateSectionBlock,
    .realestateSearchForm,
    .realestateSearchTopGrid,
    .realestateSearchMiniGrid,
    .realestateAdvancedFilters,
    .realestateAdvancedFilters__grid,
    .realestateListingGrid,
    .realestateListingCard,
    .realestateWorkspaceGrid,
    .realestateWorkspaceBoard,
    .realestateWorkspaceList,
    .realestateStatsGrid
  ){
    min-inline-size:0!important;
    max-inline-size:100%!important;
    box-sizing:border-box;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    button,
    .btn
  ){
    min-inline-size:0;
    max-inline-size:100%;
  }

  /* Text may wrap at word boundaries; pills, prices and controls must not split mid-word. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(h1,h2,h3,h4,p,dd,.realestateRichText,.realestateCard__caption,.realestateListingCard__location){
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(
    a,
    button,
    .btn,
    .realestateBadge,
    .realestateSegmented a,
    .realestateSuggestionChip,
    .realestateToggleChip,
    .realestateListingCard__facts span,
    .realestateStat strong,
    .realestateMobileDealBar__price strong
  ){
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  /* Sticky search controls follow the shared collapsible app header. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar{
    top:calc(var(--cone-mobile-header-height,0px) + env(safe-area-inset-top,0px) + 8px)!important;
    z-index:320!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:7px!important;
    width:100%!important;
    margin-block:0 12px!important;
    padding:7px!important;
    border-radius:17px!important;
    -webkit-backdrop-filter:blur(18px) saturate(135%);
    backdrop-filter:blur(18px) saturate(135%);
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"])[data-mobile-header-scroll="hidden"] .realestateMobileSearchBar{
    top:max(8px,env(safe-area-inset-top,0px))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar__filter{
    overflow:hidden;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar__filter > span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar__views{
    min-width:0;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar__views .btn{
    min-height:42px!important;
    padding-inline:9px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar__count{
    grid-column:1/-1!important;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* Accessible filter sheet: safe-area geometry and an always reachable action row. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel]{
    inset:calc(var(--cone-mobile-header-height,0px) + env(safe-area-inset-top,0px)) 0 0 0!important;
    width:100%!important;
    max-width:none!important;
    max-height:none!important;
    padding:14px max(14px,env(safe-area-inset-right,0px)) 0 max(14px,env(safe-area-inset-left,0px))!important;
    border:1px solid rgba(255,255,255,.11)!important;
    border-bottom:0!important;
    border-radius:24px 24px 0 0!important;
    background:linear-gradient(180deg,#0b2427 0%,#07181c 100%)!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable;
    touch-action:pan-y;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileFilterHead{
    top:0!important;
    margin:0 -2px!important;
    padding:2px 2px 12px!important;
    background:linear-gradient(180deg,#0b2427 76%,rgba(11,36,39,0))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileFilterHead__close{
    flex:0 0 46px;
    min-width:46px!important;
    min-height:46px!important;
    touch-action:manipulation;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileFilterBackdrop{
    z-index:10030!important;
    background:rgba(2,9,12,.68)!important;
    -webkit-backdrop-filter:blur(5px);
    backdrop-filter:blur(5px);
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel]{
    z-index:10040!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateSectionBlock--search .realestateSearchSubmitRow{
    position:sticky!important;
    bottom:0!important;
    z-index:8!important;
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)!important;
    gap:8px!important;
    margin:14px -14px 0!important;
    padding:11px max(14px,env(safe-area-inset-right,0px)) calc(11px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px))!important;
    border-top:1px solid rgba(255,255,255,.12)!important;
    background:linear-gradient(180deg,rgba(7,24,28,.90),#07181c 34%)!important;
    box-shadow:0 -16px 30px rgba(0,0,0,.18);
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateSectionBlock--search .realestateSearchSubmitRow > :is(.btn,.realestateSearchSubmit){
    width:100%!important;
    min-height:48px!important;
    min-width:0!important;
    padding-inline:9px!important;
    white-space:normal!important;
    line-height:1.15;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]).realestateMobileFilterOpen{
    overflow:hidden!important;
    overscroll-behavior:none;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]).realestateMobileFilterOpen [data-mobile-bottom-nav],
  :is(body[data-category="realestate"],body[data-category="real-estate"]).realestateLightboxOpen [data-mobile-bottom-nav]{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* Detail lightbox and deal bar remain clear of notches and the home indicator. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox{
    z-index:10060!important;
    width:100%!important;
    height:100dvh!important;
    box-sizing:border-box;
    padding:max(10px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(76px,calc(62px + env(safe-area-inset-bottom,0px))) max(10px,env(safe-area-inset-left,0px))!important;
    background:rgba(2,9,12,.975)!important;
    overflow:hidden;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox__stage{
    width:100%;
    max-width:100%;
    max-height:100%;
    overflow:hidden;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox__stage img{
    max-width:100%!important;
    max-height:min(78dvh,calc(100dvh - 132px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))!important;
    transition:opacity .18s ease;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox.is-loading .realestateLightbox__stage img{
    opacity:.38;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox__close{
    top:max(10px,env(safe-area-inset-top,0px))!important;
    right:max(10px,env(safe-area-inset-right,0px))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox__nav{
    bottom:max(14px,env(safe-area-inset-bottom,0px))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox__nav--prev{
    left:max(12px,env(safe-area-inset-left,0px))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateLightbox__nav--next{
    right:max(12px,env(safe-area-inset-right,0px))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]):has(.realestateMobileDealBar){
    padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateDetail:has(.realestateMobileDealBar){
    padding-bottom:calc(92px + env(safe-area-inset-bottom,0px));
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileDealBar{
    left:max(8px,env(safe-area-inset-left,0px))!important;
    right:max(8px,env(safe-area-inset-right,0px))!important;
    bottom:max(8px,env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:none!important;
    grid-template-columns:minmax(0,1fr) minmax(116px,42%)!important;
    gap:8px!important;
    padding:9px!important;
    border-radius:19px!important;
    -webkit-backdrop-filter:blur(20px) saturate(145%);
    backdrop-filter:blur(20px) saturate(145%);
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileDealBar .btn{
    min-width:0!important;
    min-height:48px!important;
    padding-inline:8px!important;
    white-space:normal!important;
    line-height:1.15;
    text-align:center;
  }

  /* Keep mobile metrics useful and management views dense like a native app. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateStatsGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateStat{
    min-width:0;
    padding:11px 10px!important;
    border-radius:15px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateStat span{
    font-size:11px!important;
    line-height:1.3;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateStat strong{
    font-size:clamp(18px,5.4vw,23px)!important;
    line-height:1.05;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceHero{
    gap:12px!important;
    padding:15px!important;
    border-radius:21px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceHero .realestatePortal__actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceHero .realestatePortal__actions > *{
    grid-column:auto!important;
    width:100%!important;
    min-height:44px!important;
    padding-inline:8px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceHero .realestatePortal__actions > :first-child{
    grid-column:1/-1!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceKpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceKpis .realestateMetric{
    min-width:0!important;
    padding:11px 10px!important;
    border-radius:16px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceKpis .realestateMetric strong{
    font-size:clamp(20px,6vw,27px)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard__card{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:10px!important;
    min-width:0!important;
    padding:10px!important;
    border-radius:17px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard__media{
    width:78px!important;
    min-height:72px!important;
    height:78px!important;
    aspect-ratio:1;
    border-radius:14px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard__body{
    min-width:0!important;
    gap:7px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard__body > p{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:12px;
    line-height:1.35;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard .realestateBadges{
    flex-wrap:nowrap!important;
    overflow-x:auto;
    scrollbar-width:none;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard .realestateListingCard__actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard .realestateListingCard__actions .btn,
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard .realestateListingCard__actions .btn:last-child{
    grid-column:auto!important;
    min-height:40px!important;
    padding-inline:6px!important;
  }

  /* Dashboard-owned listing cards use a compact thumbnail/body/action composition. */
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard{
    grid-template-areas:"media body" "rail rail"!important;
    grid-template-columns:88px minmax(0,1fr)!important;
    min-height:0!important;
    gap:10px!important;
    padding:10px!important;
    border-radius:18px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__media{
    grid-area:media;
    width:88px!important;
    min-height:88px!important;
    height:88px!important;
    aspect-ratio:1;
    border-radius:14px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing :is(.realestateListingCard__mediaMeta,.realestateListingCard__mediaBadges){
    display:none!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__body{
    grid-area:body;
    min-width:0!important;
    padding:2px 0!important;
    gap:5px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__rail{
    grid-area:rail;
    width:100%!important;
    padding:0!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__head{
    grid-template-columns:minmax(0,1fr)!important;
    gap:4px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__pricing{
    order:-1;
    min-width:0!important;
    justify-items:start!important;
    text-align:left!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__price{
    font-size:clamp(17px,5vw,22px)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__title{
    font-size:16px!important;
    line-height:1.2!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing :is(.realestateListingCard__location,.realestateListingCard__meta){
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:1;
    font-size:12px!important;
    line-height:1.35!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing :is(.realestateListingCard__excerpt,.realestateListingCard__chips,.realestateListingCard__facts,.realestateListingCard__eyebrow){
    display:none!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__actions .btn,
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__actions .btn:last-child{
    grid-column:auto!important;
    min-height:42px!important;
    padding-inline:7px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateBoostBar{
    gap:8px!important;
    padding:10px!important;
    border-radius:15px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceList__item{
    gap:9px!important;
    padding:11px 12px!important;
    border-radius:16px!important;
  }

  /* Restore meaningful state contrast after the generic light-card pass. */
  :root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateSectionBlock--search .realestateSearchForm[data-realestate-filter-panel]{
    color:#132a2e!important;
    background:linear-gradient(180deg,#fbfffe 0%,#edf7f4 100%)!important;
    border-color:rgba(17,36,40,.12)!important;
  }
  :root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileFilterHead{
    background:linear-gradient(180deg,#fbfffe 76%,rgba(251,255,254,0))!important;
  }
  :root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateSectionBlock--search .realestateSearchSubmitRow{
    border-color:rgba(17,36,40,.12)!important;
    background:linear-gradient(180deg,rgba(251,255,254,.92),#f4fbf9 34%)!important;
    box-shadow:0 -14px 28px rgba(17,36,40,.08);
  }
  :root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceList__item.is-unread,
  :root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateTimeline__item.is-own{
    border-color:rgba(var(--accent-rgb),.42)!important;
    background:linear-gradient(135deg,rgba(var(--accent-rgb),.16),rgba(255,255,255,.98))!important;
    box-shadow:0 12px 28px rgba(30,112,105,.10)!important;
  }
}

@media (min-width:481px) and (max-width:820px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateBoostBar{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateBoostBar > div{
    grid-column:1/-1;
  }
}

@media (max-width:360px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileSearchBar__views .btn{
    min-height:40px!important;
    padding-inline:6px!important;
    font-size:11px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard__card{
    grid-template-columns:70px minmax(0,1fr)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceBoard__media{
    width:70px!important;
    min-height:66px!important;
    height:70px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard{
    grid-template-columns:78px minmax(0,1fr)!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateManageListing .realestateListingCard__media{
    width:78px!important;
    min-height:78px!important;
    height:78px!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateMobileDealBar__price strong{
    font-size:14px!important;
  }
}

/* Keyboard focus stays visible in both themes without changing pointer presentation. */
:is(body[data-category="realestate"],body[data-category="real-estate"]) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:3px solid rgba(var(--accent-rgb),.96)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 5px rgba(var(--accent-rgb),.18)!important;
}
:root[data-theme="light"] :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline-color:#168f84!important;
  box-shadow:0 0 0 5px rgba(22,143,132,.17)!important;
}

@media (prefers-reduced-motion:reduce){
  :is(body[data-category="realestate"],body[data-category="real-estate"]),
  :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(
    .realestateMobileSearchBar,
    .realestateSearchForm,
    .realestateMobileFilterBackdrop,
    .realestateLightbox,
    .realestateLightbox__stage img,
    .realestateMobileDealBar,
    .realestateGallery,
    .realestateFactGrid,
    .realestatePortal__metrics,
    .realestatePortal__grid
  ){
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important;
  }
}

/* CONE STEP 28 QA — LOCALIZED WORKSPACE CONTROLS AND COMPACT DATA ROWS */
@media (max-width:820px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateWorkspaceList__item > .realestateInlineForms,
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateInlineForms--stack,
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateInlineForms--stack > form{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateInlineForms--stack > form{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateInlineForms--stack > form > :is(input:not([type="hidden"]),select,textarea,button,.btn){
    width:100%!important;
    min-width:0!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) :is(
    .realestateWorkspaceList__item strong,
    .realestateWorkspaceList__item p,
    .realestateTimeline__meta,
    .realestateQualityBox__band,
    .realestateDataList dt,
    .realestateDataList dd
  ){
    min-width:0;
    max-width:100%;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateDataList div{
    min-width:0;
    max-width:100%;
  }
}

@media (max-width:430px){
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateDataList div{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:start;
    gap:8px;
  }
  :is(body[data-category="realestate"],body[data-category="real-estate"]) .realestateDataList dd{
    text-align:right;
  }
}
