:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-border: #d8dee6;
  --text: #183b63;
  --muted: #64748b;
  --line: #e5e7eb;
  --available: #6b8f58;
  --unavailable: #cbd5e1;
  --accent: #1f4f82;
  --accent-strong: #123f68;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  overflow-anchor: none;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  overflow-anchor: none;
}

body.realpage-embedded,
html.realpage-embedded-root {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 6px;
  overflow: visible;
  overscroll-behavior: auto;
}

body.realpage-embedded .app-shell {
  height: 100vh;
  min-height: 0;
  padding-top: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

body.realpage-embedded .top-filters {
  flex: 0 0 auto;
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

body.realpage-embedded .content-layout {
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

body.realpage-embedded .map {
  height: auto;
  min-height: 0;
  max-height: none;
  overscroll-behavior: contain;
}

body.realpage-embedded .sidebar {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.page-intro {
  padding: 10px 22px 8px;
  margin: 0 10px;
}

.page-intro-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8ca0;
}

.page-intro-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  color: #173f6a;
}

.page-intro-text {
  max-width: 720px;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}


.top-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 84px;
  padding: 20px 22px 14px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top-filters::-webkit-scrollbar {
  display: none;
}

.top-filter {
  display: grid;
  grid-template-rows: 14px 40px;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 138px;
}

.top-filter span {
  display: block;
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
  color: var(--muted);
}

.top-filter .toggle span {
  display: block;
}

.top-filter select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.top-filter-toggle {
  flex: 0 0 auto;
  min-width: 180px;
}

.top-filter-toggle .toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
}

.clear-filters-button {
  flex: 0 0 auto;
  align-self: flex-end;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(31, 79, 130, 0.18);
  border-radius: 8px;
  background: #eef4f9;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.clear-filters-button:hover {
  border-color: rgba(31, 79, 130, 0.32);
  background: #e3edf6;
}

.content-layout {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.map {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 520px;
  height: 640px;
  max-height: 760px;
  position: relative;
  display: block;
  padding: 24px;
  background: linear-gradient(180deg, #f9fbfd 0%, #eef3f8 100%);
  overflow: auto;
  overscroll-behavior: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable both-edges;
}

.map-canvas {
  position: relative;
  display: block;
  min-width: max-content;
  min-height: max-content;
  margin: auto;
  contain: layout paint;
}

.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  display: grid;
  gap: 10px;
  will-change: transform;
}

.map-legend {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 40px);
  padding: 10px;
  border: 1px solid rgba(31, 79, 130, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  will-change: transform;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #274c73;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.map-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.map-legend-swatch.is-available {
  background: #4b5563;
}

.map-legend-swatch.is-selected {
  background: #329bd6;
}

.map-legend-swatch.is-unavailable {
  background: #75913d;
}

.map-control-button {
  min-width: 48px;
  height: 48px;
  border: 1px solid rgba(31, 79, 130, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.map-control-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 79, 130, 0.34);
  background: #ffffff;
}

.map-control-button.is-reset {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map svg {
  display: block;
  margin: 0;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  transition: none;
  shape-rendering: geometricPrecision;
  text-rendering: optimizeLegibility;
  image-rendering: crisp-edges;
}

.map svg text {
  text-rendering: optimizeLegibility;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 1.1px;
  stroke-linejoin: round;
  font-weight: 700;
}

/* .map svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
} */

.sidebar {
  width: 380px;
  flex: 0 0 380px;
  min-height: 0;
  height: 640px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 40px 24px;
  overflow-y: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  background: #f8fafc;
  border-left: 1px solid var(--panel-border);
  scrollbar-gutter: stable;
}

.sidebar-header {
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8ca0;
}

.sidebar-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 600;
}

.sidebar-subtext {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

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

.unit-list {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 8px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.selected-unit-panel {
  flex: 0 0 auto;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: var(--shadow);
}

.selected-unit-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.selected-unit-title {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.05;
  color: #173f6a;
}

.selected-unit-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.selected-unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 216, 227, 0.9);
  font-size: 14px;
  color: #274c73;
}

.unit-card {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    filter 0.18s ease;
}

.unit-card:hover {
  transform: translateY(-1px);
  border-color: #b7c6d8;
}

.unit-card.is-active {
  border-width: 3px;
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(31, 79, 130, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 42%, #dceeff 100%);
  filter: brightness(1.04) saturate(1.08);
}

.unit-card-top,
.unit-card-middle,
.unit-card-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.unit-card-middle,
.unit-card-bottom {
  margin-top: 12px;
}

.unit-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-strong);
}

.unit-meta,
.unit-floor,
.unit-sqft,
.unit-address {
  font-size: 14px;
  color: var(--muted);
}

.availability-label {
  font-size: 14px;
  color: var(--text);
}

.availability-block {
  display: grid;
  gap: 5px;
}

.availability-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability-badge.is-available {
  background: rgba(107, 143, 88, 0.14);
  color: #456434;
}

.availability-badge.is-unavailable {
  background: #eef2f7;
  color: #64748b;
}

.unit-rent {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-strong);
}

.unit-card-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.unit-card-bottom-actions {
  align-items: end;
}

.unit-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  background: #ffffff;
  color: #32557f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unit-card-cta.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 79, 130, 0.16);
}

.unit-card.is-available {
  border-left: 4px solid var(--available);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf5 100%);
}

.unit-card.is-unavailable {
  border-left: 4px solid #d9e1ea;
}

.map svg [id^="_x3"],
.map svg [id^="_"] {
  transition: none;
  shape-rendering: geometricPrecision;
}

.map-unit-available {
  animation: none;
}

.map-unit-selected {
  animation: none;
}

.empty-state {
  padding: 24px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}


#tooltip,
#bookingTooltip {
  position: absolute;
  display: none;
  z-index: 999;
  min-width: 260px;
  max-width: 320px;
  padding: 0;
  border: 1px solid rgba(31, 79, 130, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

#tooltip strong,
#bookingTooltip strong {
  color: #32557f;
}

#bookingTooltip {
  z-index: 998;
}

.map svg text,
.map svg tspan {
  pointer-events: none;
}

.map-hover-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
}

.map-hover-card.is-clickable {
  cursor: pointer;
}

.map-hover-card.is-clickable:hover .map-hover-card-title {
  color: #0f5f9f;
}

.map-hover-card-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 216, 227, 0.8);
}

.map-hover-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.map-hover-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8ca0;
}

.map-hover-card-title {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1;
  color: #143f6b;
}

.map-hover-card-subtitle {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

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

.map-hover-point {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(244, 248, 252, 0.9);
  color: #274c73;
  font-size: 13px;
  line-height: 1.3;
}

.map-hover-point-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.map-hover-amenities {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(207, 216, 227, 0.8);
}

.map-hover-amenities-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8ca0;
}

.map-hover-amenities-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 10px;
}

.map-hover-amenity {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #274c73;
  font-size: 12px;
  line-height: 1.4;
}

.map-hover-amenity-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.map-hover-amenity.is-empty {
  color: var(--muted);
}

.map-hover-amenity-text {
  font-size: 12px;
  line-height: 1.35;
  color: #48627e;
}

.map-hover-unit-list {
  display: grid;
  gap: 10px;
}

.map-hover-unit-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: #143f6b;
  cursor: pointer;
  text-align: left;
}

.map-hover-unit-option:hover {
  border-color: #8fb2d4;
  background: #f5f9fd;
}

.map-hover-unit-option strong,
.map-hover-unit-option small {
  display: block;
}

.map-hover-unit-option strong {
  font-size: 15px;
}

.map-hover-unit-option small {
  margin-top: 4px;
  color: var(--muted);
}

.map-tip-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.map-tip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.map-tip-button.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.map-tip-button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

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

.booking-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
}

.booking-panel-eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8ca0;
}

.booking-panel-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #173f6a;
}

.booking-panel-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.booking-panel-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31, 79, 130, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.booking-panel-close:hover {
  background: #1f4f82;
  border-color: #1f4f82;
  color: #ffffff;
  transform: translateY(-1px);
}

.booking-panel-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.booking-panel-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c8ca0;
}

.booking-panel-input-wrap {
  padding: 14px 16px;
  border: 1px solid rgba(31, 79, 130, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.booking-panel-field input {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #173f6a;
  font-size: 24px;
  font-weight: 600;
}

.booking-panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.booking-panel-actions .map-tip-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;
  border-radius: 14px;
  font-size: 16px;
}

.unit-picker-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.unit-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 79, 130, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.unit-picker-option:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 79, 130, 0.34);
  background: #ffffff;
}

.unit-picker-option strong,
.unit-picker-option small {
  display: block;
}

.unit-picker-option strong {
  font-size: 16px;
  color: #173f6a;
}

.unit-picker-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1024px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 0;
    padding-top: 8px;
    overflow: visible;
  }

  .page-intro {
    padding: 8px 12px 6px;
    margin: 0 8px;
  }

  .page-intro-title {
    font-size: 28px;
  }

  .page-intro-text {
    font-size: 14px;
  }

  .top-filters {
    min-height: 84px;
    padding: 20px 12px 14px;
    margin: 0 8px;
    align-items: flex-end;
  }

  .top-filter {
    min-width: 140px;
  }

  .content-layout {
    display: block;
    flex: none;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    flex: none;
    height: auto;
    min-height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--panel-border);
    padding: 20px 16px 24px;
  }

  .map {
    flex: none;
    height: clamp(300px, 42vh, 420px);
    min-height: 0;
    max-height: none;
    padding: 12px;
    overflow: auto;
  }

  .map-controls {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .map-legend {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .map-control-button {
    min-width: 42px;
    height: 42px;
  }

  .map svg {
    max-height: none;
  }

  #tooltip,
  #bookingTooltip {
    max-width: min(280px, calc(100vw - 24px));
  }

  #bookingTooltip {
    min-width: 0;
    z-index: 1001;
  }

  .unit-card-middle {
    flex-direction: column;
  }

  .map-hover-card-body {
    grid-template-columns: 1fr;
  }

  .map-hover-amenities {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(207, 216, 227, 0.8);
  }

  .booking-panel {
    padding: 14px;
  }

  .booking-panel-header {
    gap: 10px;
  }

  .booking-panel-title {
    font-size: 22px;
  }

  .booking-panel-subtitle {
    margin-top: 8px;
    font-size: 13px;
  }

  .booking-panel-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .booking-panel-field {
    margin-top: 14px;
  }

  .booking-panel-input-wrap {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .booking-panel-field input {
    font-size: 18px;
  }

  .booking-panel-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
  }

  .booking-panel-actions .map-tip-button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  body.realpage-embedded,
  html.realpage-embedded-root {
    overflow: hidden;
  }

  body.realpage-embedded .app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  body.realpage-embedded .content-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  body.realpage-embedded .map {
    flex: 0 0 auto;
    height: clamp(320px, 48vh, 520px);
  }

  body.realpage-embedded .sidebar {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }
}
