.realty-portal :is(.top-inner, .portal-ticker-inner, .footer .wrap),
.layout-shell.with-realty {
  width: min(1530px, calc(100% - 56px));
  margin-inline: auto;
}
.layout-shell.with-realty {
  display: grid;
  grid-template-areas: "menu content briefing";
  grid-template-columns: clamp(196px, 15.5vw, 215px) minmax(0, 1fr) clamp(224px, 19vw, 259px);
  align-items: start;
  gap: clamp(16px, 1.7vw, 26px);
}
.layout-shell.with-realty #main { grid-area: content; width: 100%; margin: 0; min-width: 0; }
.realty-sidebar { grid-area: menu; }
.realty-sidebar:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: max(0px, calc(100dvh - 155px));
}
.realty-briefing { grid-area: briefing; }
.realty-sidebar, .realty-briefing {
  position: sticky;
  top: 18px;
  min-width: 0;
  margin-top: 25px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 15px;
  scrollbar-width: thin;
}
.with-realty .metric strong { font-size: clamp(23px, 2.6vw, 36px); }
.neighborhood-metrics .metric:last-child strong {
  font-size: clamp(19px, 1.95vw, 28px);
  word-break: keep-all;
}
.realty-sections {
  display: grid;
  gap: 7px;
}
.realty-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #dedfd7;
}
.realty-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 41px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
a.realty-social-button:hover { background: #edf2eb; border-color: #c5d4c6; }
.realty-social-button:disabled { cursor: default; opacity: 1; color: var(--muted); }
.realty-social-button small { display: block; margin-top: 2px; font-size: 9px; font-weight: 600; }
.realty-social-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font: 800 14px/1 system-ui, sans-serif;
}
[data-channel="open-chat"] .realty-social-icon { background: #f9e4a5; color: #4e3c24; }
[data-channel="open-chat"] .realty-social-icon::before {
  content: "";
  width: 10px;
  height: 7px;
  border-radius: 5px;
  background: currentColor;
}
[data-channel="open-chat"] .realty-social-icon::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 6px;
  border: 2px solid transparent;
  border-left-color: currentColor;
}
[data-channel="youtube"] .realty-social-icon { background: #d62934; color: white; }
[data-channel="youtube"] .realty-social-icon::before {
  content: "";
  margin-left: 1px;
  border: 4px solid transparent;
  border-left: 6px solid currentColor;
  border-right: 0;
}
[data-channel="threads"] .realty-social-icon { background: #252b2a; color: white; }
[data-channel="instagram"] .realty-social-icon { background: #9b4269; color: white; }
[data-channel="instagram"] .realty-social-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
}
[data-channel="instagram"] .realty-social-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
}
.realty-disclosure, .realty-section-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.realty-section-title {
  list-style: none;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  border-radius: 11px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.035em;
}
.realty-section-label { word-break: keep-all; overflow-wrap: anywhere; }
.realty-section-title::-webkit-details-marker { display: none; }
.realty-section-title:hover { background: #f3f5fb; }
.realty-disclosure[open] > .realty-section-title { border-radius: 11px 11px 0 0; }
.realty-disclosure.is-current, .realty-section-link[aria-current] { border-color: #d0d9f1; }
.realty-disclosure.is-current > .realty-section-title,
.realty-section-link[aria-current] { background: #edf1fc; color: #253c92; }
.realty-sections :is(summary, a):focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: -3px;
}
.realty-category-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eef1f8;
  color: #4b5c86;
  font: 800 17px/1 "Segoe UI Symbol", system-ui, sans-serif;
}
.realty-disclosure.is-current > .realty-section-title .realty-category-icon,
.realty-section-link[aria-current] .realty-category-icon {
  background: var(--navy);
  color: var(--lime);
}
.realty-chevron {
  border: solid #748099;
  border-width: 0 2px 2px 0;
  width: 7px;
  height: 7px;
  margin-bottom: 3px;
  transform: rotate(45deg);
}
.realty-disclosure[open] .realty-chevron { transform: rotate(225deg); margin-bottom: -3px; }
.realty-direct-arrow { transform: rotate(-45deg); margin-bottom: 0; }
.realty-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-top: 1px solid #edf0f6;
}
.realty-tiles li { min-width: 0; }
.realty-tiles li:only-child { grid-column: 1 / -1; }
.realty-tiles a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 55px;
  height: 100%;
  padding: 5px 3px;
  border-radius: 7px;
  color: #344159;
  text-decoration: none;
  text-align: center;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.realty-tiles li:only-child > a {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 41px;
  gap: 8px;
  padding-inline: 8px;
}
.realty-tile-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: #f0f2f9;
  color: #4b5c86;
  font: 700 16px/1 "Segoe UI Symbol", system-ui, sans-serif;
}
.realty-tiles a:hover { background: #f2f4fa; }
.realty-tiles a[aria-current] { background: #e9eeff; color: #253c92; }
.realty-tiles a[aria-current] .realty-tile-icon { background: var(--indigo); color: white; }

@media (min-width: 581px) and (max-width: 1490px) {
  .with-realty .market-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .with-realty .market-filters .button { justify-self: start; }
}
@media (max-width: 1150px) {
  .layout-shell.with-realty {
    grid-template-areas: "menu content" "menu briefing";
    grid-template-columns: 197px minmax(0, 1fr);
    gap: 0 14px;
  }
  .realty-briefing { position: static; margin: 0 0 32px; max-height: none; }
}
@media (min-width: 781px) and (max-width: 1050px) {
  .with-realty .market-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .realty-portal :is(.top-inner, .portal-ticker-inner, .footer .wrap),
  .layout-shell.with-realty { width: calc(100% - 28px); }
  .layout-shell.with-realty {
    grid-template-areas: "menu" "content" "briefing";
    grid-template-columns: minmax(0, 1fr);
  }
  .realty-sidebar { position: static; margin-top: 13px; max-height: none; }
  .realty-sidebar:not([hidden]) { min-height: 0; gap: 8px; }
  .realty-social { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .realty-social-button { flex-wrap: wrap; gap: 3px 5px; }
  .realty-tiles a { min-height: 54px; font-size: 12px; }
  .with-realty .hero { padding-top: 25px; }
  .with-realty #main { padding-bottom: 28px; }
}
