/* Self-hosted, the same files as the mosaic-2026 WordPress theme (SIL OFL, see assets/fonts/). */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Theme tokens. Everything below in this file derives from these, so a site's map package
     can restyle the whole tool by overriding them: the ewc-homefinder plugin prints a package's
     "theme" map here, resolved against the site's own palette. */
  --ink: #23261f;          /* text */
  --ink-soft: #4c5145;     /* secondary text */
  --paper: #fdfcfa;        /* surfaces */
  --paper-2: #efeee8;      /* secondary surfaces: the toolbar, the canvas backdrop */
  --white: #ffffff;        /* cards, and text on dark */
  --line: #dcdacf;         /* rules */
  --line-strong: #c9c9bd;  /* control borders */
  --accent: #a85132;       /* primary actions */
  --accent-deep: #7e381e;  /* pressed, picked, the brand mark */
  --select: #4a6142;       /* selected filters and states */
  --available: #1e6b41;
  --reserved: #8a6515;     /* dark enough for AA as text on white */
  --leased: #6e6a61;       /* sold, not available */
  --model: #3d5c6e;        /* the model home */
  --shadow: 0 12px 36px color-mix(in srgb, var(--ink) 14%, transparent);
  --font-ui: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  /* Older names still used in this file. */
  --terracotta: var(--accent);
  --terracotta-deep: var(--accent-deep);
  --sage: var(--select);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-ui);
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
select,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button svg {
  width: 20px;
  height: 20px;
}
/* Header: brand, the page title, then the buttons. Everything above the map lives here so
   the canvas starts right under the filter toolbar. */
.top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 8px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px; /* it is a link now: a full tap target on phones too */
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}
/* The brand's second line says where the link goes. */
.brand:hover em {
  text-decoration: underline;
  text-decoration-color: var(--terracotta-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.brand:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 3px;
}
.brand .mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--terracotta-deep);
  color: var(--white);
  font: 640 23px var(--font-display);
  border-radius: 10px;
}
/* Phones get the short name and a shorter back line so Filters and View stay on the row. */
.brand-short {
  display: none;
}
@media (max-width: 600px) {
  .brand-long {
    display: none;
  }
  .brand-short {
    display: inline;
  }
}
/* A package's own logo in place of the letter mark. */
.brand .mark.has-img {
  width: 48px;
  height: 36px;
  background: none;
  border-radius: 0;
}
.brand .mark.has-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong {
  display: block;
  font: 640 20px/1.15 var(--font-display);
}
.brand em {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta-deep);
  margin-top: 1px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-menu-btn {
  font-weight: 600;
}
/* Page title between the brand and the buttons: one line of heading, one of summary, with
   the Back button beside them while a building is open. */
/* The header holds only the brand, the Back button while a building is open, and the
   buttons on the right. The heading and the summary stay in the page for screen readers
   (the summary is a live region); the legend, chips and the canvas hint carry the same
   information on screen. */
.page-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.page-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
h1 {
  font: 560 19px/1.15 var(--font-display);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-description {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Filters button: tablets and phones only, where the filter bar folds away under it. The
   badge counts the filters that are on. */
.filters-btn {
  display: none;
  align-items: center;
  gap: 6px;
}
.filters-btn::after {
  content: "▾";
}
.filters-btn[aria-expanded="true"]::after {
  content: "▴";
}
.filters-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--terracotta-deep);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.top-actions.view-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  z-index: 30;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.top-actions.view-menu {
  gap: 0;
  padding: 6px 16px;
  min-width: 360px;
}
/* One row per setting: what it is on the left, the control on the right. */
.view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 60px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.view-row:first-child {
  border-top: 0;
}
/* A row that opens something (Disclosures) rather than switching a setting. */
.view-link {
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.view-link .view-chevron {
  flex: none;
  padding-right: 6px;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
}
.view-link:hover .view-row-text strong {
  color: var(--terracotta-deep);
}
.view-link:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 2px;
  border-radius: 8px;
}
.view-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.view-row-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.view-row-text small {
  font-size: 14px;
  color: var(--ink-soft);
}
.view-toggle {
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.view-toggle:hover .view-row-text strong {
  color: var(--terracotta-deep);
}
.view-toggle:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: -3px;
  border-radius: 8px;
}
/* The switch itself: grey track, white knob, green when on. */
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.18s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 35%, transparent);
  transition: transform 0.18s;
}
.view-toggle[aria-checked="true"] .switch {
  background: var(--available);
}
.view-toggle[aria-checked="true"] .switch::after {
  transform: translateX(20px);
}
@media (prefers-reduced-motion: reduce) {
  .switch,
  .switch::after {
    transition: none;
  }
}
.ghost,
.solid,
.text-btn {
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ghost:hover {
  background: var(--paper-2);
}
.ghost[aria-pressed="true"],
.ghost[aria-expanded="true"] {
  background: color-mix(in srgb, var(--available) 8%, var(--white));
  border-color: var(--line-strong);
  color: var(--select);
}
.solid {
  background: var(--terracotta-deep);
  color: var(--white);
  border: 1px solid var(--terracotta-deep);
}
.solid:hover:not(:disabled) {
  background: var(--accent-deep);
}
.text-btn {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
}
.text-btn:hover {
  color: var(--terracotta-deep);
  background: var(--paper-2);
}
.shell {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 14px 18px 18px;
}
.map-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.map-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 8%, transparent);
}
/* Filter toolbar and map share one column; on tablets and phones the toolbar drops over the
   map from the top of this box. */
.map-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.back-world-btn {
  flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--white));
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
  color: var(--terracotta-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 44px;
  white-space: nowrap;
}
.back-world-btn:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
}
.kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 4px;
}
/* A dead availability feed gets one line in the legend; the legend's tooltip otherwise says
   where the data comes from (sample data while seeded, the feed's last update when live). */
.map-legend .legend-note {
  color: var(--accent-deep);
  font-weight: 600;
}
/* Now Selling chips float at the top right of the canvas, mirroring the legend at the top
   left. Inside a building the inspector takes that corner, so they step aside. */
.building-shortcuts {
  position: relative;
  margin-left: auto;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.map-pane.is-split .building-shortcuts,
.map-pane.is-list .building-shortcuts {
  display: none;
}
/* Inside a building the canvas is for that building: the other roof cards and the amenity
   pins would sit over its floor plate. */
.map-pane.is-split .world-bldg-tag,
.map-pane.is-split .world-amenity-pin {
  display: none;
}
.shortcut-list {
  display: flex;
  gap: 8px;
}
/* Three or more selling buildings: one button, and the chips drop down as a list. The
   Available homes button opens every home for sale as one price-sorted list. */
.shortcuts-toggle {
  background: var(--paper);
  font-weight: 600;
  box-shadow: 0 2px 8px #2d302b14;
  white-space: nowrap;
}
.is-menu .shortcut-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  flex-direction: column;
  align-items: stretch;
  min-width: 320px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.is-menu .building-shortcut {
  box-shadow: none;
}
.building-shortcut {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px 8px 10px;
  min-height: 52px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 2px 8px #2d302b14;
}
.building-shortcut:hover {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--available) 6%, var(--white));
}
.building-shortcut[aria-pressed="true"] {
  color: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
}
.shortcut-num {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta-deep);
  color: var(--white);
  font: 640 18px var(--font-display);
}
.building-shortcut[aria-pressed="false"] .shortcut-num {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink-soft);
}
.shortcut-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.shortcut-text span {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.shortcut-text .shortcut-price {
  display: inline;
}
.shortcut-arrow {
  font-size: 18px;
  color: var(--terracotta-deep);
}
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  flex: none;
}
.filter-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
/* The bar stays one row on laptops instead of dropping Availability to a half-empty second
   row: below 1400px the group labels go (the pills say what they are; screen readers keep
   them), and below 1320px the pills' spec line goes too (the laptop rule further down).
   Below 960px the bar folds under the Filters button and keeps everything. */
@media (min-width: 961px) and (max-width: 1400px) {
  .filter-bar {
    gap: 8px 12px;
  }
  .filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-row button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.pill-row button span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}
.pill-row button:hover {
  border-color: var(--sage);
}
.pill-row button[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
/* Floor plan sits left, Availability right. */
.availability-group {
  margin-left: auto;
}
.map-frame {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: var(--paper-2);
  touch-action: none;
  cursor: grab;
}
.map-frame.is-dragging {
  cursor: grabbing;
}
.stage {
  position: absolute;
  transform-origin: 0 0;
  user-select: none;
}
.stage img {
  display: block;
  pointer-events: none;
}
.stage svg {
  position: absolute;
  inset: 0;
}
.bldg {
  stroke-linejoin: miter;
}
/* Let the illustrated terracotta roof show through; the outline and the
   big label card do the talking. */
.bldg-group.selling .bldg {
  fill: color-mix(in srgb, var(--paper) 8%, transparent);
  stroke: var(--paper);
  stroke-width: 10;
  cursor: pointer;
}
.bldg-group.selling:hover .bldg,
.bldg-group.selling.is-active .bldg {
  stroke: var(--accent-deep);
  stroke-width: 22;
  fill: color-mix(in srgb, var(--paper) 22%, transparent);
}
.bldg-group.selling .bldg:focus-visible {
  outline: none;
  stroke: var(--accent-deep);
  stroke-width: 30;
}
.bldg-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 14;
  stroke-linejoin: miter;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: bldg-pulse 2.6s ease-out infinite;
}
@keyframes bldg-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.07);
    opacity: 0;
  }
  100% {
    transform: scale(1.07);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bldg-pulse {
    animation: none;
    opacity: 0.5;
  }
}
.bldg-halo {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 55%, var(--white));
  stroke-width: 54;
  stroke-linejoin: miter;
  pointer-events: none;
}
.bldg-group.is-quiet {
  opacity: 0.75;
}
.bldg-group.selling.is-quiet {
  opacity: 1;
}
.bldg-group.is-active .roof-pill {
  stroke: var(--accent-deep);
  stroke-width: 10;
}
.bldg-group.soon .bldg {
  fill: color-mix(in srgb, var(--paper) 10%, transparent);
  stroke: var(--paper);
  stroke-width: 10;
  stroke-dasharray: 34 20;
}
.bldg-group.soon {
  pointer-events: none;
}
.bldg-group.is-dim {
  opacity: 0.45;
}
.roof-pill {
  fill: color-mix(in srgb, var(--paper) 97%, transparent);
  stroke: color-mix(in srgb, var(--ink) 45%, transparent);
  stroke-width: 4;
  pointer-events: none;
}
.roof-name {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 640;
  fill: var(--ink);
  pointer-events: none;
}
.roof-label {
  font-family: var(--font-ui);
  font-size: 54px;
  font-weight: 700;
  fill: var(--available);
  pointer-events: none;
}
.bldg-group.soon .roof-label {
  fill: var(--ink-soft);
}
.roof-sub {
  font-family: var(--font-ui);
  font-size: 41px;
  font-weight: 500;
  fill: var(--ink);
  pointer-events: none;
}
.num-disc.is-on {
  fill: var(--accent-deep);
  stroke: var(--paper-2);
  stroke-width: 6;
}
.num.is-on {
  fill: var(--paper-2);
}
.callout-line {
  stroke: var(--ink);
  stroke-width: 4;
  pointer-events: none;
}
.num-disc {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 3;
  pointer-events: none;
}
.num {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 640;
  fill: var(--ink);
  pointer-events: none;
}
.mark {
  cursor: default;
}
.mark-label {
  font: 600 44px var(--font-ui);
  fill: var(--ink);
  pointer-events: none;
}
.mark-label-mail {
  font-size: 46px;
  font-weight: 600;
}
.mark-label-trail {
  fill: var(--select);
}

/* Top strip of the canvas: the legend on the left, the Now Selling menu on the right, in one
   row that wraps when it must, so the two never overlap at any width. */
.canvas-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 16px;
  pointer-events: none;
}
.canvas-top > * {
  pointer-events: auto;
}
.map-legend {
  position: relative;
  max-width: 100%;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 10px 14px;
  list-style: none;
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 8px #2d302b14;
}
.map-legend i,
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: -1px;
}
/* The Available count is a button: it opens the price-sorted list of every home for sale.
   It fills the legend's height (44px) without changing the pill's size. */
.map-legend {
  --legend-pad: 10px;
  align-items: center;
}
.map-legend .legend-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin: calc(-1 * var(--legend-pad)) -6px calc(-1 * var(--legend-pad)) -8px;
  padding: 0 6px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.map-legend .legend-btn b {
  margin-left: 2px;
  color: var(--available);
}
.map-legend .legend-arrow {
  margin-left: 2px;
  font-size: 20px;
  line-height: 1;
  color: var(--available);
}
.map-legend .legend-btn:hover,
.map-legend .legend-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--available) 14%, var(--white));
}
.map-legend .legend-btn:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 1px;
}
/* The Equal Housing Opportunity mark rides in the legend so it is always on screen. */
.map-legend .legend-eho {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.map-legend .legend-eho img {
  display: block;
  width: 20px;
  height: auto;
}

/* Dismissable notice over the map: pricing and rendering caveats, with the full
   disclosures a click away. Gone for 30 days once closed. While it shows, the legend and
   the Now Selling chips move down by its height (--notice-h, set by app.js). */
.map-notice {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 4px 4px 14px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 12px;
  box-shadow: 0 2px 8px #2d302b14;
  font-size: 14px;
  color: var(--ink-soft);
}
.map-notice p {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}
.map-notice .notice-link {
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--terracotta-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.map-notice .notice-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.map-notice .notice-close:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.map-pane.has-notice .canvas-top {
  top: calc(24px + var(--notice-h, 0px));
}
/* Inside a building on desktop the panel covers the right; the bar ends before it, and the
   legend keeps its bottom-left spot. */
.map-pane.is-split .map-notice {
  right: calc(clamp(390px, 34vw, 455px) + 44px);
}
/* On desktop the EHO mark is its own pill at the bottom-left of the canvas, where nothing
   else sits in either state; the legend stays short enough to clear the Now Selling chips.
   Below 960px the mark rides in the legend instead, since the sheet covers the bottom. */
.eho-mark {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 8px #2d302b14;
}
.eho-mark img {
  display: block;
  width: 20px;
  height: auto;
}
.map-legend .legend-eho {
  display: none;
}
.map-legend .a,
.legend .a {
  background: var(--available);
}
.map-legend .r,
.legend .r {
  background: var(--reserved);
}
.map-legend .l,
.legend .l {
  background: var(--leased);
}
.map-legend .m,
.legend .m {
  background: var(--model);
}
.map-legend .soon {
  background: var(--line-strong);
  border: 2px dashed var(--leased);
  border-radius: 3px;
  width: 14px;
  height: 12px;
}
.map-legend b {
  font-weight: 700;
  margin-left: 2px;
}
.hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  margin: 0;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--paper);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 25%, transparent);
}
.map-tools {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 2px 6px #2d302b06;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 52px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: 400 28px var(--font-ui);
}
.map-tools button:hover {
  background: var(--paper-2);
}
.map-tools button + button {
  border-left: 1px solid var(--line);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.panel.floating-inspector {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: clamp(390px, 34vw, 455px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 16px;
  box-shadow: 0 18px 46px color-mix(in srgb, var(--ink) 24%, transparent);
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
#panelBody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 18%, transparent);
}
.close:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.panel-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.building-hero {
  margin: 0;
  flex: none;
  position: relative;
}
.building-hero img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: center 62%;
}
.building-hero figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
}
.panel-heading {
  padding: 14px 20px 12px;
  flex: none;
  border-bottom: 1px solid var(--line);
}
.panel h2 {
  font: 560 34px/1.15 var(--font-display);
  margin: 0 46px 8px 0;
}
.building-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
}
.building-meta p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}
.availability-count {
  display: inline-flex;
  align-items: center;
  flex: none; /* never squeezed into "11" over "available" */
  gap: 8px;
  white-space: nowrap;
  color: var(--available);
  font-size: 16px;
  font-weight: 600;
}
.panel-title-row > div {
  min-width: 0; /* the kicker wraps before the count does */
}
.availability-count::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
/* The sheet handle exists for tablet and phone layouts only. */
.sheet-handle {
  display: none;
}
.actual-plan {
  min-width: 0;
  background: var(--white);
}
.floor-plan-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.plan-linework {
  pointer-events: none;
}
.plan-area.available {
  fill: color-mix(in srgb, var(--available) 14%, var(--white));
}
.plan-area.reserved {
  fill: color-mix(in srgb, var(--reserved) 14%, var(--white));
}
.plan-area.sold,
.plan-area.unavailable {
  fill: color-mix(in srgb, var(--leased) 12%, var(--white));
}
.plan-area.model {
  fill: color-mix(in srgb, var(--model) 12%, var(--white));
}
.plan-area.is-dim {
  fill: var(--paper);
}
.plan-home {
  --plan-ink: var(--available);
  cursor: pointer;
}
.plan-home.reserved {
  --plan-ink: var(--reserved);
}
.plan-home.sold,
.plan-home.unavailable {
  --plan-ink: var(--leased);
}
.plan-home.model {
  --plan-ink: var(--model);
}
.plan-home.is-dim {
  --plan-ink: color-mix(in srgb, var(--leased) 70%, var(--white));
}
.plan-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.plan-letter-disc {
  fill: var(--white);
  stroke: var(--plan-ink);
  stroke-width: 0.7;
}
.plan-letter {
  fill: var(--plan-ink);
  font: 700 12.5px var(--font-ui);
  pointer-events: none;
}
.plan-name {
  fill: var(--plan-ink);
  font: 600 8.5px var(--font-ui);
  pointer-events: none;
}
.plan-home:hover .plan-hit {
  fill: #ffffff35;
  stroke: var(--plan-ink);
}
.plan-home.is-picked .plan-hit {
  stroke: var(--terracotta-deep);
}
.plan-home.is-picked .plan-letter-disc {
  fill: var(--terracotta-deep);
  stroke: var(--terracotta-deep);
}
.plan-home.is-picked .plan-letter {
  fill: var(--white);
}
.plan-home:focus-visible {
  outline: none;
}
.plan-home:focus-visible .plan-hit {
  stroke: var(--terracotta-deep);
  stroke-width: 3;
}
/* Disclosures: a narrow reading dialog. */
.disclosures-dialog {
  width: min(640px, 100%);
}
.disclosures-body {
  padding: 6px 24px 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  overflow: auto;
}
.disclosures-body p {
  margin: 0 0 14px;
}
.disclosures-body .disclosure-eho {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.disclosures-body .disclosure-eho img {
  flex: none;
  width: 44px;
  height: auto;
  margin-top: 2px;
}
.disclosures-body .disclosure-legal {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
/* Approved Landscape Design Dialog (Sheets CP100 & CP500) */
.landscape-dialog {
  width: min(1020px, 100%);
}
.landscape-body {
  padding: 16px 24px 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.landscape-stats {
  margin: 0;
}
.landscape-stats small {
  font-size: 14px;
  color: var(--ink-soft);
}
.landscape-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.landscape-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.landscape-section h4 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  font: 600 18px/1.2 var(--font-display);
  color: var(--ink);
}
.landscape-section h4 span {
  font: 600 14px/1 var(--font-ui);
  color: var(--available);
  white-space: nowrap;
}
.species-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.species-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.species-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sp-color, var(--available));
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--white) 35%, transparent);
}
.species-swatch.is-shrub {
  border-radius: 11px;
}
.species-swatch code {
  font: 700 14px/1 var(--font-ui);
  letter-spacing: 0.03em;
}
.species-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.species-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.species-head strong {
  font-size: 16px;
  color: var(--ink);
}
.species-qty {
  font-size: 14px;
  font-weight: 700;
  color: var(--available);
  white-space: nowrap;
}
.species-botanical {
  font-size: 14px;
  color: var(--ink-soft);
}
.species-meta {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.landscape-plan-figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.landscape-plan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.landscape-plan-bar strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}
.landscape-plan-bar span {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}
.landscape-open-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.landscape-plan-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.plan-dialog {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: calc(100dvh - 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.plan-dialog-heading h3 {
  margin: 0;
}
.plan-dialog-heading > button {
  flex: none;
  white-space: nowrap;
}
.plan-dialog-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: var(--white);
}
.plan-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.plan-dialog-footer .legend {
  margin: 0;
}
.plan-zoom {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}
.plan-zoom button {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}
.plan-zoom button:hover {
  background: var(--paper-2);
}
.access {
  margin: 3px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 17px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.ref {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.ref a {
  display: inline-block;
  padding: 12px 0; /* a 44px tap target for the PDF link */
  color: var(--sage);
  font-weight: 600;
  text-underline-offset: 3px;
}
.plan-dialog-heading .kicker {
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--terracotta-deep);
}
/* The picked home above the grid: letter badge, name over status and price, Details. The same
   shape as a row of the Available homes list, so it never wraps into a crowd. */
.selected-strip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px 8px 8px;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--white));
  border-radius: 12px;
}
.selected-strip .strip-text {
  min-width: 0;
}
.selected-strip strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-strip .strip-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}
.selected-strip .status-pill {
  font-size: 14px;
}
.selected-strip .strip-price {
  font-weight: 600;
  color: var(--ink);
}
.strip-letter.reserved {
  color: var(--reserved);
  background: color-mix(in srgb, var(--reserved) 14%, var(--white));
}
.strip-letter.sold,
.strip-letter.unavailable {
  color: var(--leased);
  background: color-mix(in srgb, var(--leased) 12%, var(--white));
}
.strip-letter.model {
  color: var(--model);
  background: color-mix(in srgb, var(--model) 12%, var(--white));
}
.price {
  font-weight: 600;
  font-size: 25px;
  margin: 0;
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
}
.price small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 3px;
}
.price.is-unpriced {
  font-size: 19px;
  white-space: normal;
  max-width: 170px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.status-pill::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.available {
  color: var(--available);
}
.status-pill.reserved {
  color: var(--reserved);
}
.status-pill.sold,
.status-pill.unavailable {
  color: var(--leased);
}
.status-pill.model {
  color: var(--model);
}
.lede {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
/* Home dialog */
.unit-modal {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100dvh - 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.unit-modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 72px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.unit-modal-head h3 {
  margin: 4px 0 0;
  font: 560 30px/1.15 var(--font-display);
}
.unit-modal-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.unit-modal-head .price-col {
  margin-top: 18px;
  text-align: right;
}
/* A home's virtual tour, when the feed has one: a link in the status line, tall enough to tap
   without growing the line. */
.unit-modal-sub .tour-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
  color: var(--terracotta-deep);
  font-weight: 600;
  text-decoration: underline;
}
.unit-modal-head .close {
  top: 16px;
  right: 16px;
}
.unit-modal-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 20px 18px;
  background: var(--white);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.stat-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.stat-row strong {
  font: 600 24px/1.1 var(--font-display);
}
.stat-row span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.unit-modal .unit-media-tabs {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.unit-modal-plan {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.unit-modal-plan img {
  display: block;
  width: 100%;
  max-height: 48vh;
  object-fit: contain;
}
.unit-modal .unit-photo-main img {
  height: clamp(220px, 40vh, 380px);
}
.unit-modal .lede {
  margin-top: 14px;
}
.unit-modal .ref {
  margin: 12px 0 0;
}
.unit-modal-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.unit-modal-foot .solid {
  flex: 1;
  min-height: 56px;
  font-size: 18px;
  font-weight: 600;
}
.modal {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
}
.modal form {
  width: min(470px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.modal h3 {
  font: 560 29px/1.2 var(--font-display);
  margin: 0 0 8px;
}
.modal p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 20px;
}
.modal label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
}
.modal input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   3D Architectural World Canvas, Floating Labels, HUD & Unit Showcase
   ========================================================================== */

.sun-control {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.sun-control button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 13px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.sun-control button:hover {
  color: var(--ink);
}
.sun-control button[aria-pressed="true"] {
  background: var(--white);
  color: var(--terracotta-deep);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 14%, transparent);
}

.world-canvas {
  --sky-top: #b8daf2;
  --sky-bottom: var(--paper-2);
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-bottom) 56%,
    var(--line-strong) 100%
  );
  transition: background 0.45s ease;
}
.world-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.world-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

/* 3D Building Roof Callout Cards */
.world-bldg-tag {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent-deep) 78%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 24%, transparent);
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  will-change: transform;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.world-bldg-tag.is-selling:hover {
  background: var(--white);
  border-color: var(--terracotta-deep);
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--accent-deep) 34%, transparent),
    0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.wb-badge-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wb-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--terracotta-deep);
  color: var(--white);
  font: 640 15px var(--font-display);
  display: grid;
  place-items: center;
}
.world-bldg-tag strong {
  font: 640 16px/1.15 var(--font-display);
  color: var(--ink);
}
.wb-pill-selling {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--available);
  padding: 2px 8px;
  border-radius: 999px;
}
.wb-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-left: 34px;
}
.wb-short {
  display: none; /* phone-only compact label */
}

.world-bldg-tag.is-soon {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1.5px dashed var(--leased);
  padding: 6px 11px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 12%, transparent);
  pointer-events: none;
}
.world-bldg-tag.is-soon .wb-num {
  width: 26px;
  height: 26px;
  font-size: 14px;
  background: var(--leased);
}
.world-bldg-tag.is-soon strong {
  font-size: 14px;
  color: var(--ink-soft);
}
.wb-pill-soon {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--reserved) 22%, var(--white));
  padding: 2px 7px;
  border-radius: 999px;
}

.world-bldg-tag.is-hidden {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.wb-future-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ink-soft) 45%, transparent);
  color: var(--ink-soft);
  font: 600 14px var(--font-display);
  display: grid;
  place-items: center;
}

/* 3D Floor Level Callout Pills */
.world-floor-pill {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  box-sizing: border-box;
  min-height: 45px; /* the 1.5px border otherwise rounds the box to 43.x */
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--paper);
  border: 1.5px solid color-mix(in srgb, var(--white) 45%, transparent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ink) 25%, transparent);
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}
/* Count of homes open on that floor */
.world-floor-pill b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 18%, transparent);
  color: var(--white);
  font: 700 13px/22px var(--font-ui);
  letter-spacing: 0;
  text-align: center;
}
.world-floor-pill:hover,
.world-floor-pill.is-hover {
  background: var(--ink-soft);
  border-color: var(--white);
}
.world-floor-pill.is-active {
  background: var(--terracotta-deep);
  border-color: var(--white);
  cursor: default;
}
.world-floor-pill.is-active b {
  background: color-mix(in srgb, var(--white) 30%, transparent);
}

/* 3D-Projected Home Badges (A-Z) on Peeled Floors */
.world-unit-badge {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border: 2px solid var(--available);
  color: var(--ink);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ink) 25%, transparent);
  will-change: transform;
  transition:
    background 0.12s,
    border-color 0.12s,
    padding 0.12s;
}
.world-unit-badge .ub-letter {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--available);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.world-unit-badge .ub-plan {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 0 7px 0 5px;
}
.world-unit-badge.is-expanded .ub-plan,
.world-unit-badge:hover .ub-plan,
.world-unit-badge.is-hovered .ub-plan,
.world-unit-badge.is-picked .ub-plan {
  display: inline;
}
.world-unit-badge.status-reserved {
  border-color: var(--reserved);
}
.world-unit-badge.status-reserved .ub-letter {
  background: var(--reserved);
}
.world-unit-badge.status-sold,
.world-unit-badge.status-unavailable {
  border-color: var(--leased);
  opacity: 0.78;
}
.world-unit-badge.status-sold .ub-letter,
.world-unit-badge.status-unavailable .ub-letter {
  background: var(--leased);
}
.world-unit-badge.status-model {
  border-color: var(--model);
}
.world-unit-badge.status-model .ub-letter {
  background: var(--model);
}
.world-unit-badge.is-dim {
  opacity: 0.35;
}
.world-unit-badge:hover,
.world-unit-badge.is-hovered {
  z-index: 4;
  background: var(--white);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 35%, transparent);
}
.world-unit-badge.is-picked {
  z-index: 5;
  background: var(--terracotta-deep);
  border-color: var(--white);
  color: var(--white);
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--accent-deep) 45%, transparent),
    0 0 0 3px var(--terracotta-deep);
}
.world-unit-badge.is-picked .ub-letter {
  background: var(--white);
  color: var(--terracotta-deep);
}
.world-unit-badge.is-picked .ub-plan {
  color: var(--white);
}

/* 3D Amenity Pins */
.world-amenity-pin {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 45px;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--white) 28%, transparent);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 22%, transparent);
  will-change: transform;
}
.world-amenity-pin:hover {
  background: var(--terracotta-deep);
}
.world-amenity-pin .ap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, var(--white));
}
.world-amenity-pin.type-landscape .ap-dot {
  background: #48a85a;
  box-shadow: 0 0 0 2px color-mix(in srgb, #48a85a 35%, transparent);
}

.map-pane.is-split .map-controls {
  right: 472px;
  top: 14px;
  bottom: auto;
  left: auto;
}
.map-pane.is-split .canvas-top {
  /* Top-right of the canvas, clear of the floor pills and just left of the inspector. */
  top: 14px;
  right: calc(clamp(390px, 34vw, 455px) + 28px);
  justify-content: flex-end;
}
.map-pane.is-split .map-legend .legend-soon {
  display: none; /* "Coming soon" is about other buildings */
}
.map-pane.is-split.has-notice .canvas-top {
  top: calc(22px + var(--notice-h, 0px));
}
.map-pane.is-split .hint {
  left: 290px;
  transform: none;
}

.map-tools .cam-dim-btn {
  width: auto;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Floating Inspector Compact Layout & Unit Media Showcase */
/* Title row: the name and its count share the first line; the setting kicker gets the whole
   second line, so it never wraps against the count. */
.panel-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  padding-right: 48px;
  margin-bottom: 6px;
}
.panel-title-row > div {
  display: contents;
}
.panel-title-row h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 26px;
}
.panel-title-row .availability-count {
  grid-column: 2;
  grid-row: 1;
}
.panel-title-row .kicker {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  letter-spacing: 0.04em; /* the setting line fits the panel on one line */
}
.text-link-btn {
  border: 0;
  background: transparent;
  color: var(--terracotta-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  min-height: 44px;
  padding: 10px 0;
}

.panel.floating-inspector .unit-dock {
  max-height: none;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--white));
  border-radius: 14px;
  background: var(--white);
  margin-bottom: 16px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 8%, transparent);
}
.panel.floating-inspector .card {
  padding: 16px 18px 18px;
}
.panel.floating-inspector .card h3 {
  font-size: 23px;
}

.unit-media-box {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.unit-media-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-2);
  padding: 4px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.unit-media-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.unit-media-tabs button[aria-pressed="true"] {
  background: var(--white);
  color: var(--terracotta-deep);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 12%, transparent);
}

.unit-room-showcase {
  padding: 12px;
}
.unit-plan-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.unit-plan-frame img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  margin: 0 auto;
}
.enlarge-unit-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--reserved) 40%, var(--white));
  color: var(--terracotta-deep);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  min-height: 32px;
}
.enlarge-unit-btn:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
}
.room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.room-chips li {
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--ink);
}

.unit-photo-showcase {
  padding: 10px;
}
.unit-photo-main {
  margin: 0;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  background: var(--ink);
}
.unit-photo-main img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.unit-photo-main figcaption {
  padding: 7px 10px;
  font-size: 14px;
  color: var(--paper);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
}
.unit-photo-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.photo-thumb {
  flex: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  background: none;
  height: 48px;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-thumb[aria-pressed="true"] {
  border-color: var(--terracotta-deep);
}


.amenity-modal-img {
  width: 100%;
  max-height: 56vh;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* Responsive layouts come last so they override the component rules above. */
/* Laptops: the plan pills drop their spec line so the filter toolbar stays one row. */
@media (min-width: 961px) and (max-width: 1320px) {
  .pill-row button span {
    display: none;
  }
}

/* Home grid: the picker inside a building. One section per floor, top floor first; each is
   two rows of three cells laid out as the homes sit on the plate (lawn side over courtyard
   side). The floor in 3D is outlined. */
.grid-key {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.home-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grid-floor {
  padding: 2px 8px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.grid-floor.is-on {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--white));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--white));
}
.grid-floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.grid-floor-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}
.grid-floor-btn:hover {
  background: var(--paper-2);
}
.grid-floor-btn span {
  font-size: 14px;
  font-weight: 500;
  color: var(--available);
  white-space: nowrap;
}
.grid-floor-btn em {
  font: 600 14px/1 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
  border-radius: 999px;
  padding: 4px 8px;
}
.grid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.grid-row + .grid-row {
  margin-top: 6px;
}
.home-cell {
  --cell-ink: var(--available);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 5px 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: color-mix(in srgb, var(--available) 14%, var(--white));
  color: var(--ink);
  text-align: left;
}
.home-cell.reserved {
  --cell-ink: var(--reserved);
  background: color-mix(in srgb, var(--reserved) 14%, var(--white));
}
.home-cell.sold,
.home-cell.unavailable {
  --cell-ink: var(--leased);
  background: color-mix(in srgb, var(--leased) 12%, var(--white));
  color: var(--ink-soft);
}
.home-cell.model {
  --cell-ink: var(--model);
  background: color-mix(in srgb, var(--model) 12%, var(--white));
}
.home-cell.is-dim {
  --cell-ink: color-mix(in srgb, var(--leased) 70%, var(--white));
  background: var(--paper);
  color: var(--leased);
}
.home-cell:hover {
  border-color: var(--cell-ink);
}
.home-cell.is-picked {
  --cell-ink: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
  color: var(--ink);
}
.cell-letter {
  grid-row: 1 / 3;
  min-width: 26px;
  font: 640 24px/1 var(--font-display);
  color: var(--cell-ink);
}
.cell-plan {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-price {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-cell.is-picked .cell-price,
.home-cell.is-picked .cell-plan {
  color: var(--terracotta-deep);
}

/* Available homes list: every home for sale, lowest price first. */
.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}
.home-row:hover {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--available) 6%, var(--white));
}
.row-letter {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--available) 14%, var(--white));
  color: var(--available);
  font: 640 20px var(--font-display);
}
.row-text {
  min-width: 0;
}
.row-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.row-text span {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.row-price {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.list-empty {
  margin: 0;
  padding: 18px 4px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* Tablet and phone: the app keeps its no-scroll shell and the panel becomes a bottom sheet
   over the 3D canvas with three snaps (peek, half, full). The map tools sit above the sheet
   via --sheet-h. */
@media (max-width: 960px) {
  .map-pane {
    --sheet-peek: 100px;
  }
  .top {
    gap: 12px;
    padding: 8px 16px;
  }
  /* Header shrinks to the brand, Filters and View. */
  .btn-long,
  .back-long {
    display: none;
  }
  .filters-btn {
    display: inline-flex;
  }
  .shell {
    padding: 0;
  }
  .map-workspace {
    border-radius: 0;
  }
  /* Now Selling chips sit in a strip between the header and the map, scrolling sideways
     when more buildings are selling than fit. */
  .building-shortcuts {
    position: static;
    margin-left: 0;
    flex: none;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .map-pane.is-list .building-shortcuts {
    display: flex; /* the strip is beside the map here, not under the sheet */
  }
  .shortcut-list {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .shortcut-list::-webkit-scrollbar {
    display: none;
  }
  .building-shortcut {
    flex: none;
    scroll-snap-align: start;
    box-shadow: none;
  }
  /* The filter bar folds away under the Filters button and drops over the top of the map
     instead of pushing it down, so the camera holds still. */
  .filter-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 10px 16px;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--ink) 18%, transparent);
  }
  .filter-bar:not(.is-open) {
    display: none;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .availability-group {
    margin-left: 0;
  }
  .map-frame {
    touch-action: none;
  }
  .panel.floating-inspector {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 50dvh;
    max-height: calc(100dvh - 56px);
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    box-shadow: 0 -12px 40px color-mix(in srgb, var(--ink) 28%, transparent);
    transition: height 0.26s ease;
  }
  .map-pane.is-split {
    --sheet-h: 50dvh;
  }
  .map-pane[data-sheet="peek"] {
    --sheet-h: var(--sheet-peek);
  }
  .map-pane[data-sheet="full"] {
    --sheet-h: calc(100dvh - 56px);
  }
  .map-pane[data-sheet="peek"] .panel.floating-inspector {
    height: var(--sheet-peek);
  }
  .map-pane[data-sheet="full"] .panel.floating-inspector {
    height: calc(100dvh - 56px);
  }
  .sheet-handle {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 0 4px;
    border: 0;
    background: transparent;
    touch-action: none;
  }
  .sheet-handle span {
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--line-strong);
  }
  .panel-heading {
    padding: 0 16px 8px;
    touch-action: pan-x;
  }
  .panel h2 {
    font-size: 24px;
    margin: 0 56px 2px 0;
  }
  .map-pane[data-sheet="peek"] .panel-heading .kicker,
  .map-pane[data-sheet="peek"] .panel-scroll {
    display: none;
  }
  .map-pane[data-sheet="peek"] .panel-title-row {
    align-items: center;
  }
  .map-pane[data-sheet="peek"] .panel h2 {
    font-size: 22px;
    margin-bottom: 0;
  }
  .close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
  .eho-mark {
    display: none;
  }
  .map-legend .legend-eho {
    display: inline-flex;
  }
  /* Inside a building the canvas is for that building: no other roof cards, pins or prose. */
  .map-pane.is-split .map-legend,
  .map-pane.is-split .map-notice,
  .map-pane.is-split .hint,
  .map-pane.is-split .world-bldg-tag,
  .map-pane.is-split .world-amenity-pin {
    display: none;
  }
  .map-pane.is-split .map-tools {
    bottom: calc(var(--sheet-h, 0px) + 10px);
  }
}
/* Phone: 3D stays primary. The header is brand + Filters + View, with Back and the building
   name on a second row while a building is open; below it only the chip strip, so the
   canvas gets most of the screen. */
@media (max-width: 600px) {
  .top {
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 8px;
    min-height: 52px;
    padding: 6px 12px;
  }
  .brand {
    order: 1;
  }
  .brand .mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .brand strong {
    font-size: 17px;
  }
  .filters-btn {
    order: 2;
    margin-left: auto;
  }
  .view-menu-btn {
    order: 3;
  }
  .filters-btn,
  .view-menu-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .top-actions.view-menu {
    order: 4;
    left: 12px;
    right: 12px;
    min-width: 0;
  }
  /* Second header row while a building is open: the full Back button (the building's name
     is on the sheet). In the overview the row collapses to its screen-reader text. */
  .page-title {
    order: 5;
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 0 2px;
  }
  .page-title .back-long {
    display: inline;
  }
  body:not(.in-building) .page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  h1 {
    font-size: 18px;
  }
  .back-world-btn {
    padding: 6px 12px;
  }
  /* Sunlight's three choices drop under their label and share the width. */
  .view-row:first-child {
    flex-wrap: wrap;
    gap: 8px;
  }
  .view-row:first-child .sun-control {
    width: 100%;
  }
  .view-row:first-child .sun-control button {
    flex: 1;
    padding-inline: 6px;
  }
  /* Building chips: compact so two fit, with the next one peeking in from the right when
     more buildings are selling. */
  .shortcut-list {
    padding: 6px 12px 8px;
  }
  .map-legend {
    --legend-pad: 8px;
  }
  .building-shortcut {
    min-height: 48px;
    padding: 6px 12px 6px 8px;
    gap: 9px;
  }
  .building-shortcut .shortcut-num {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .building-shortcut .shortcut-text strong {
    font-size: 15px;
  }
  .building-shortcut .shortcut-arrow,
  .building-shortcut .shortcut-price {
    display: none;
  }
  .filter-bar {
    gap: 8px;
    padding: 10px 12px;
  }
  .canvas-top {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .map-legend {
    gap: 4px 12px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .map-legend .legend-soon,
  .map-legend .legend-eho span {
    display: none; /* one line: the home statuses and the EHO mark */
  }
  .map-notice {
    top: 8px;
    left: 10px;
    right: 10px;
    padding: 2px 2px 2px 10px;
  }
  .map-pane.has-notice .canvas-top {
    top: calc(16px + var(--notice-h, 0px));
  }
  .map-pane.is-split .map-tools {
    display: none; /* pinch zooms; the HUD takes this row */
  }
  .hint {
    bottom: 76px;
    padding: 8px 14px;
    font-size: 14px;
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
  .map-tools {
    bottom: 10px;
    right: 10px;
  }
  .map-tools button {
    width: 48px;
    height: 48px;
  }
  .world-floor-pill {
    padding: 8px 10px;
  }
  /* Roof cards collapse to a number dot + "N available" pill so eight of them can share a
     portrait canvas; the chips and legend carry names and prices. */
  .world-bldg-tag.is-selling {
    padding: 5px 12px 5px 5px;
    min-height: 44px;
    border-radius: 999px;
    justify-content: center;
  }
  .world-bldg-tag.is-selling .wb-num {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
  .world-bldg-tag.is-selling strong,
  .world-bldg-tag.is-selling .wb-pill-selling,
  .world-bldg-tag .wb-sub,
  .world-bldg-tag.is-soon strong {
    display: none;
  }
  .world-bldg-tag.is-selling .wb-short {
    display: inline;
    font-style: normal;
    font: 700 15px/1 var(--font-ui);
    color: var(--available-deep, var(--available));
    white-space: nowrap;
  }
  .world-bldg-tag.is-soon {
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
  }
  /* Badges show only their letter until picked, so 6 of them fit a narrow canvas. */
  .world-unit-badge.is-expanded:not(.is-picked) .ub-plan,
  .world-unit-badge.is-hovered:not(.is-picked) .ub-plan {
    display: none;
  }
  .panel-scroll {
    padding: 10px 10px 12px;
  }
  /* The sheet heading is the name and count; the setting line is in the roof card already,
     and the list's count is on its nav button, so "Available homes" keeps one line. */
  .panel-heading .kicker,
  .map-pane.is-list .panel-title-row .availability-count {
    display: none;
  }
  .grid-floor {
    padding: 2px 6px 6px;
  }
  .grid-floor-btn {
    font-size: 16px;
    gap: 8px;
  }
  .home-cell {
    column-gap: 6px;
    padding: 6px;
  }
  .cell-letter {
    font-size: 22px;
    min-width: 22px;
  }
  .home-row {
    gap: 10px;
    padding: 8px 10px;
  }
  /* Dialogs become bottom sheets with the action pinned above the home indicator. */
  .modal {
    padding: 0;
    place-items: end center;
  }
  .unit-modal,
  .plan-dialog,
  .modal form {
    width: 100%;
    max-height: 100dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }
  .unit-modal-head {
    flex-wrap: wrap;
    padding: 12px 60px 10px 14px;
  }
  .unit-modal-head h3 {
    font-size: 24px;
  }
  .unit-modal-head .price-col {
    flex-basis: 100%;
    margin-top: 0;
    text-align: left;
  }
  /* Price and its "List price" note share one line under the title on a phone. */
  .unit-modal-head .price {
    text-align: left;
    font-size: 20px;
  }
  .unit-modal-head .price small {
    display: inline;
    margin: 0 0 0 8px;
  }
  .unit-modal-scroll {
    padding: 14px 16px 18px;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .unit-modal-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .unit-modal-foot .solid {
    flex-basis: 100%;
  }
  .modal form {
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  }
  .plan-dialog-heading {
    padding: 14px 16px;
  }
  .plan-dialog-heading h3 {
    font-size: 22px;
  }
  .plan-dialog-body {
    padding: 12px;
  }
  .landscape-columns {
    grid-template-columns: 1fr;
  }
  .plan-dialog-footer {
    padding: 12px 16px;
  }
}
