/* ============================================================================
   PropertyInsider.sg — launch map search (/new-launches/), 30 Oct 2026
   Loaded after pillar.css on the hub only. Scoped to body.ms-page.

   Layout follows the map-search pattern readers already know from listing
   portals: one compact search row, a scrolling list on the left, and a map
   that fills the rest of the screen. The list follows the map ("Search as I
   move the map", on by default).

   Re-uses .split / .list-pane / .map-pane so pillar.js's SKIP list keeps
   scroll reveals off the tracker, and overrides nl.css's sizes for them.

   Status colours on this page (decided by Jamus, 30 Oct 2026): selling blue,
   upcoming red, GLS deep red, fully sold slate. Markers are outlined white.
   ========================================================================== */

body.ms-page {
  --ms-nav: 72px;
  --ms-bar: 64px;
  --ms-top: calc(var(--ms-nav) + var(--ms-bar));
  --ms-blue: #1E3A8A;
  --ms-red: #A11D27;
  --ms-wine: #6B1420;
  --ms-slate: #5B5E68;
  --ms-field: 40px;
  --ms-radius: 10px;
  background: var(--pp-ivory);
}

/* ---------------------------------------------------------------- toolbar */
.ms-bar {
  position: sticky; top: var(--ms-nav); z-index: 900;
  background: var(--pp-paper);
  border-bottom: 1px solid var(--pp-line);
  height: var(--ms-bar);
  display: flex; align-items: center;
}
.ms-bar-inner {
  width: 100%; padding: 0 24px;
  display: flex; align-items: center; gap: 10px;
}

/* search field */
.ms-search { position: relative; flex: 0 1 460px; min-width: 0; }
.ms-search-field {
  display: flex; align-items: center; gap: 8px;
  height: var(--ms-field); padding: 0 10px 0 12px;
  background: #fff; border: 1px solid var(--pp-moss); border-radius: var(--ms-radius);
  transition: border-color .15s, box-shadow .15s;
}
.ms-search-field:focus-within { border-color: var(--pp-night); box-shadow: 0 0 0 3px rgba(60,62,74,.12); }
.ms-search-field svg { flex: none; color: var(--pp-mute); }
.ms-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 15px/1 var(--font-sans); color: var(--pp-ink); height: 100%;
}
.ms-search input::placeholder { color: #8A8D96; }
.ms-search input::-webkit-search-cancel-button { display: none; }
.ms-x {
  flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--pp-garden); color: var(--pp-ink); font-size: 15px; line-height: 1;
  cursor: pointer; display: none;
}
.ms-search.has-text .ms-x { display: inline-grid; place-items: center; }

/* suggestion panel */
.ms-sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 960;
  background: #fff; border: 1px solid var(--pp-line); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(46,48,57,.28), 0 2px 6px rgba(46,48,57,.08);
  max-height: min(70vh, 460px); overflow-y: auto; padding: 6px 0;
}
.ms-sugg[hidden] { display: none; }
.ms-sugg-h {
  font: 600 12.5px/1 var(--font-sans); color: var(--pp-mute);
  padding: 12px 16px 6px; background: none;
}
.ms-sugg-h.is-band { background: var(--pp-ivory); padding: 9px 16px; margin: 4px 0; }
.ms-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 16px; border: 0; background: none; text-align: left; cursor: pointer;
  font: 500 15px/1.3 var(--font-sans); color: var(--pp-ink);
}
.ms-opt:hover, .ms-opt.is-active { background: var(--pp-ivory); }
.ms-opt .ico { flex: none; width: 18px; height: 18px; color: var(--pp-mute); }
.ms-opt.is-entry { color: var(--ms-red); font-weight: 600; }
.ms-opt.is-entry .ico { color: var(--ms-red); }
.ms-opt .sub { margin-left: auto; font-size: 13px; color: var(--pp-mute); font-weight: 400; white-space: nowrap; }
.ms-opt .mrt-codes { margin-left: 2px; }
.ms-opt mark { background: none; color: inherit; font-weight: 700; }
.ms-sugg-empty { padding: 12px 16px; font-size: 14px; color: var(--pp-mute); }

/* toolbar buttons */
.ms-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: var(--ms-field); padding: 0 14px;
  background: #fff; color: var(--pp-ink);
  border: 1px solid var(--pp-moss); border-radius: var(--ms-radius);
  font: 600 14.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.ms-btn:hover { border-color: var(--pp-night); }
.ms-btn:focus-visible, .ms-opt:focus-visible, .ms-pill:focus-visible { outline: 2px solid var(--pp-night); outline-offset: 2px; }
.ms-btn[aria-expanded="true"] { border-color: var(--pp-night); background: var(--pp-ivory); }
.ms-btn.is-on { border-color: var(--pp-night); }
.ms-btn .chev { width: 10px; height: 10px; transition: transform .15s; }
.ms-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ms-btn .n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--pp-night); color: #fff; font-size: 12px; display: inline-grid; place-items: center;
}
.ms-btn .n:empty { display: none; }
.ms-quick { position: relative; }
.ms-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 960; min-width: 260px;
  background: #fff; border: 1px solid var(--pp-line); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(46,48,57,.28); padding: 14px;
}
.ms-pop[hidden] { display: none; }
.ms-pop .ms-pills { margin: 0; }
.ms-pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.ms-reset {
  flex: none; border: 0; background: none; padding: 0 4px; cursor: pointer;
  font: 600 14px/1 var(--font-sans); color: var(--pp-ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pp-moss);
}
.ms-reset[hidden] { display: none; }
.ms-chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ms-chips::-webkit-scrollbar { display: none; }
.ms-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px;
  background: var(--pp-night); color: #fff; border: 0; border-radius: 999px;
  font: 600 13px/1 var(--font-sans); cursor: pointer;
}
.ms-chip span[aria-hidden] { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 13px; }

/* ---------------------------------------------------------------- the app */
body.ms-page .split.ms-app {
  max-width: none; margin: 0; padding: 0; gap: 0;
  display: grid; grid-template-columns: minmax(400px, 41%) 1fr; align-items: stretch;
  height: calc(100vh - var(--ms-top));
  height: calc(100dvh - var(--ms-top));
  min-height: 520px;
  border-bottom: 1px solid var(--pp-line);
}
body.ms-page .list-pane.ms-list {
  max-height: none; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 0; background: var(--pp-ivory);
  scrollbar-gutter: stable;
}
.ms-list-head { padding: 18px 22px 10px; }
.ms-list-head h1 {
  font: 400 clamp(1.35rem, 1.6vw, 1.6rem)/1.15 var(--font-serif);
  letter-spacing: -.016em; color: var(--pp-night); margin: 0 0 4px;
  font-optical-sizing: auto; font-style: normal;
}
.ms-count { font-size: 14.5px; color: var(--pp-mute); margin: 0; min-height: 1.4em; }
.ms-count strong { color: var(--pp-ink); font-variant-numeric: tabular-nums; }
.ms-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

.ms-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ms-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--pp-line); background: var(--pp-paper); color: var(--pp-ink);
  font: 600 13.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.ms-pill:hover { border-color: var(--pp-night); }
.ms-pill[aria-pressed="true"] { background: var(--pp-night); border-color: var(--pp-night); color: #fff; }
.ms-pill .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px #fff; }
.ms-pill .c { font-weight: 400; opacity: .75; font-variant-numeric: tabular-nums; }
.ms-pill:disabled { opacity: .4; cursor: default; }

.ms-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--pp-mute); white-space: nowrap; }
.ms-sort select {
  border: 0; background: transparent; font: 600 13.5px/1 var(--font-sans); color: var(--pp-ink);
  cursor: pointer; padding: 4px 2px;
}

.ms-cards { padding: 4px 22px 28px; transition: opacity .18s; }
.ms-cards.is-refreshing { opacity: .55; }

/* horizontal cards: picture left, facts right */
body.ms-page .ms-cards .proj-card {
  display: grid; grid-template-columns: 38% 1fr; margin-bottom: 12px;
  border-radius: 14px; border-color: var(--pp-line); background: #fff; min-height: 150px;
}
/* Hover: a clear lift and a deep, layered shadow, with the picture easing in
   (the 1.05 zoom comes from pillar.css). */
body.ms-page .ms-cards .proj-card { transition: transform .28s var(--pp-ease), box-shadow .28s var(--pp-ease), border-color .2s; }
body.ms-page .ms-cards .proj-card:hover {
  transform: translateY(-3px); border-color: var(--pp-night);
  box-shadow: 0 2px 4px rgba(46,48,57,.08), 0 14px 28px -8px rgba(46,48,57,.28), 0 28px 56px -20px rgba(46,48,57,.38);
}
body.ms-page .ms-cards .proj-card:hover img.proj-thumb { transform: scale(1.06); }
body.ms-page .ms-cards .proj-card.active,
body.ms-page .ms-cards .proj-card.is-hot { border-color: var(--pp-night); box-shadow: 0 0 0 2px var(--pp-night); }
/* theme.css fixes .list-pane .proj-thumb at 116px (104px on phones) for the
   old tracker; here the picture fills its whole column, map fallback included. */
body.ms-page .ms-cards .proj-thumb { width: 100%; max-width: none; height: 100%; min-height: 150px; aspect-ratio: auto; border-radius: 0; }
body.ms-page .ms-cards img.proj-thumb { width: 100%; object-fit: cover; }
body.ms-page .ms-cards .proj-card-body { padding: 13px 15px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.ms-page .ms-cards .proj-card-top { display: block; margin: 0; }
body.ms-page .ms-cards .proj-card h3 { font-size: 18px; line-height: 1.22; margin: 0 0 6px; }
body.ms-page .ms-cards .proj-card-top > div { display: flex; flex-wrap: wrap; gap: 4px; }
body.ms-page .ms-cards .badge { font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 3px 9px; }
body.ms-page .ms-cards .proj-price { font: 600 16px/1.25 var(--font-sans); color: var(--pp-ink); font-variant-numeric: tabular-nums; margin: 2px 0 0; }
body.ms-page .ms-cards .proj-price small { display: block; font-size: 12.5px; font-weight: 400; color: var(--pp-mute); }
body.ms-page .ms-cards .proj-mrt { font-size: 13px; color: var(--pp-mute); margin: 0; }
body.ms-page .ms-cards .proj-meta { font-size: 13px; color: var(--pp-mute); display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; }
body.ms-page .ms-cards .proj-price-row { margin-top: auto; display: flex; justify-content: flex-end; border-top: 0; padding-top: 4px; }
body.ms-page .ms-cards .proj-arrow { display: none; }
body.ms-page .ms-cards .cmp-add { font-size: 12.5px; }

/* page-local status tints, matching the markers */
body.ms-page .badge.selling, body.ms-page .badge.available { background: #E4E9F5; color: var(--ms-blue); }
body.ms-page .badge.upcoming { background: #F8E4E5; color: var(--ms-red); }
body.ms-page .badge.gls { background: #F4E4E6; color: var(--ms-wine); }
body.ms-page .badge.soldout { background: #E9E9EC; color: #4E515B; }

.ms-empty { text-align: center; padding: 36px 18px; color: var(--pp-mute); font-size: 15px; line-height: 1.6; }
.ms-empty img { width: 92px; height: auto; display: block; margin: 0 auto 10px; }
.ms-empty strong { display: block; color: var(--pp-ink); font-size: 16.5px; margin-bottom: 4px; }
.ms-empty button { margin-top: 12px; }

/* ----------------------------------------------------------------- the map */
body.ms-page .map-pane.ms-map { position: relative; top: auto; height: 100%; margin: 0; border: 0; border-left: 1px solid var(--pp-line); border-radius: 0; }
body.ms-page #map { border-radius: 0; }
body.ms-page #map { background: #D1D1D1; }           /* OneMap sea grey: no pale band at the edges */
body.ms-page #map.is-google { background: #E5E3DF; }
body.ms-page .leaflet-control-zoom { border: 0; box-shadow: 0 2px 8px rgba(46,48,57,.22); border-radius: 10px; overflow: hidden; }
body.ms-page .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; color: var(--pp-ink); }
body.ms-page .leaflet-top.leaflet-right .leaflet-control { margin-top: 12px; margin-right: 12px; }

.ms-move {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 810;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255,255,255,.96); box-shadow: 0 4px 16px rgba(46,48,57,.22);
  font: 600 14px/1 var(--font-sans); color: var(--pp-ink); cursor: pointer; user-select: none; white-space: nowrap;
}
.ms-move input { width: 17px; height: 17px; margin: 0; accent-color: var(--pp-night); cursor: pointer; }
.ms-move:focus-within { outline: 2px solid var(--pp-night); outline-offset: 2px; }

body.ms-page .map-legend {
  top: 12px; bottom: auto; left: 12px; border: 0; border-radius: 10px; padding: 8px 12px; gap: 6px 14px;
  box-shadow: 0 2px 10px rgba(46,48,57,.18); font-size: 12.5px;
}
body.ms-page .map-legend span { color: var(--pp-ink); }

/* map details (Google layers) */
.ms-details { position: relative; }
.ms-details-btn {
  width: 38px; height: 38px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--pp-night); color: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(46,48,57,.22);
}
.ms-details-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 196px;
  background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(46,48,57,.25); padding: 12px 14px;
  font: 400 14.5px/1.3 var(--font-sans); color: var(--pp-ink);
}
.ms-details-panel[hidden] { display: none; }
.ms-details-panel p { font-weight: 600; font-size: 13px; color: var(--pp-mute); margin: 0 0 8px; }
.ms-details-panel label { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; }
.ms-details-panel input { width: 16px; height: 16px; accent-color: var(--pp-night); margin: 0; }

/* markers: white outline, soft shadow so they lift off any base map */
body.ms-page .pi-mkr { overflow: visible; filter: drop-shadow(0 1px 1.6px rgba(20,22,30,.55)); }
body.ms-page .pi-mkr-wrap { display: block; transition: transform .16s; transform-origin: 50% 100%; }
body.ms-page .pi-mkr-wrap.is-active { transform: scale(1.18); }
body.ms-page .ms-stn-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pp-night); box-shadow: 0 1px 3px rgba(0,0,0,.35); }

/* the mobile List / Map switch */
.ms-view { display: none; }

/* ------------------------------------------------- below the app: one band */
.ms-below { padding: 40px 24px 48px; background: var(--pp-paper); border-bottom: 1px solid var(--pp-line); }
.ms-below-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.ms-below h2 { font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--font-serif); letter-spacing: -.016em; color: var(--pp-night); margin: 0 0 10px; }
.ms-below p { font-size: 16px; line-height: 1.65; color: var(--pp-ink); margin: 0 0 12px; max-width: 62ch; }
.ms-below ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pp-night); }
.ms-below li { border-bottom: 1px solid var(--pp-line); }
.ms-below li a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; text-decoration: none; color: var(--pp-ink); font-weight: 600; font-size: 15.5px; }
.ms-below li a span { font-weight: 400; color: var(--pp-mute); font-size: 14px; text-align: right; }
.ms-below li a:hover { color: var(--pp-night); background: var(--pp-ivory); }
.ms-below .fine { font-size: 13px; color: var(--pp-mute); }

/* ---------------------------------------------------------------- dialogs */
.ms-dlg {
  width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 820px);
  padding: 0; border: 0; border-radius: 16px; background: var(--pp-paper); color: var(--pp-ink);
  margin: auto; inset: 0; position: fixed;
  box-shadow: 0 30px 80px -20px rgba(20,22,30,.5); overflow: hidden;
}
.ms-dlg[open] { display: flex; flex-direction: column; }
.ms-dlg.is-narrow { width: min(460px, calc(100vw - 32px)); }
.ms-dlg::backdrop { background: rgba(28,30,38,.55); }
.ms-dlg-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--pp-night); color: #fff; padding: 14px 18px 14px 22px;
}
.ms-dlg-head h2 { flex: 1; font: 600 17px/1.2 var(--font-sans); margin: 0; color: #fff; letter-spacing: 0; text-align: left; }
.ms-dlg-head .ms-back { border: 0; background: none; color: #fff; cursor: pointer; font: 600 14px/1 var(--font-sans); padding: 6px 8px 6px 0; display: none; }
.ms-dlg.has-back .ms-back { display: inline-flex; align-items: center; gap: 4px; }
.ms-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.ms-close:hover { background: rgba(255,255,255,.22); }
.ms-close:focus-visible, .ms-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ms-dlg-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 22px 12px; border-bottom: 1px solid var(--pp-line); }
.ms-dlg-tools input[type="search"] {
  flex: 1 1 260px; max-width: 320px; height: 40px; padding: 0 12px; border: 1px solid var(--pp-moss); border-radius: 10px;
  font: 400 15px/1 var(--font-sans); background: #fff; color: var(--pp-ink);
}
.ms-dlg-tools input[type="search"]:focus { outline: 0; border-color: var(--pp-night); box-shadow: 0 0 0 3px rgba(60,62,74,.12); }
.ms-dlg-body { flex: 1; overflow-y: auto; padding: 8px 22px 18px; overscroll-behavior: contain; }
.ms-dlg-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; border-top: 1px solid var(--pp-line); background: #fff;
}
.ms-dlg-foot .sel { font-size: 14px; color: var(--pp-mute); margin-right: auto; padding-left: 14px; }
.ms-apply {
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pp-night); color: #fff; font: 600 15px/1 var(--font-sans); white-space: nowrap;
}
.ms-apply:hover { background: var(--pp-night-dk); }
.ms-apply:focus-visible { outline: 2px solid var(--pp-night); outline-offset: 3px; }
.ms-note { font-size: 13px; color: var(--pp-mute); line-height: 1.55; margin: 12px 0 0; }

/* checkbox rows */
.ms-check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; cursor: pointer; font-size: 15px; line-height: 1.35; }
.ms-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pp-night); cursor: pointer; }
.ms-check .c { color: var(--pp-mute); font-size: 13.5px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.ms-check.is-zero { color: #9A9CA4; }
.ms-check.is-zero input { opacity: .5; }
.ms-grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.ms-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }

/* MRT lines */
.ms-line { border-bottom: 1px solid var(--pp-line); }
.ms-line-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.ms-line-row .ms-check { padding: 0; flex: 1; align-items: center; font-weight: 600; }
.ms-linechip { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 5px; color: #fff; font: 700 12px/1 var(--font-sans); }
.ms-line-x { flex: none; width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--pp-ink); display: grid; place-items: center; }
.ms-line-x:hover { background: var(--pp-ivory); }
.ms-line-x svg { transition: transform .15s; }
.ms-line-x[aria-expanded="true"] svg { transform: rotate(180deg); }
.ms-stations { padding: 0 0 10px 30px; }
.ms-stations[hidden] { display: none; }
.ms-stations .ms-check { padding: 6px 0; font-size: 14.5px; }
.ms-stations .mrt-codes { margin-left: 4px; }
.ms-radius { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pp-mute); }
.ms-seg { display: inline-flex; border: 1px solid var(--pp-moss); border-radius: 999px; overflow: hidden; }
.ms-seg button { border: 0; background: #fff; padding: 8px 12px; font: 600 13px/1 var(--font-sans); color: var(--pp-ink); cursor: pointer; }
.ms-seg button + button { border-left: 1px solid var(--pp-moss); }
.ms-seg button[aria-pressed="true"] { background: var(--pp-night); color: #fff; }

/* filter dialog sections */
.ms-fsec { padding: 16px 0; border-bottom: 1px solid var(--pp-line); }
.ms-fsec:last-child { border-bottom: 0; }
.ms-fsec h3 { font: 600 15px/1.2 var(--font-sans); color: var(--pp-ink); margin: 0 0 10px; letter-spacing: 0; }
.ms-fsec .hint { font-size: 13px; color: var(--pp-mute); margin: -4px 0 10px; }
.ms-locbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-locbtns .ms-btn { height: 38px; font-size: 14px; }
.ms-locbtns .ms-btn svg { color: var(--ms-red); }
.ms-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; }
.ms-range label { font-size: 13px; color: var(--pp-mute); display: block; }
.ms-money { display: flex; align-items: center; margin-top: 4px; border: 1px solid var(--pp-moss); border-radius: 10px; background: #fff; overflow: hidden; }
.ms-money span { padding: 0 10px; height: 40px; display: grid; place-items: center; background: var(--pp-garden); font-weight: 600; font-size: 14px; }
.ms-money input { flex: 1; min-width: 0; border: 0; outline: 0; height: 40px; padding: 0 10px; font: 400 15px/1 var(--font-sans); background: transparent; }
.ms-money:focus-within { border-color: var(--pp-night); }
.ms-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 15px; }
.ms-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--pp-moss); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.ms-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ms-toggle input:checked { background: var(--pp-night); }
.ms-toggle input:checked::after { transform: translateX(18px); }
.ms-toggle input:focus-visible { outline: 2px solid var(--pp-night); outline-offset: 2px; }
.ms-toggle small { display: block; font-size: 13px; color: var(--pp-mute); margin-top: 2px; }

/* --------------------------------------------------------------- breakpoints */
@media (max-width: 1180px) {
  .ms-quick.is-wide { display: none; }
}
@media (max-width: 1024px) {
  body.ms-page .split.ms-app { grid-template-columns: minmax(360px, 46%) 1fr; }
  body.ms-page .ms-cards .proj-card { grid-template-columns: 1fr; }
  body.ms-page .ms-cards .proj-thumb { height: 150px; min-height: 0; }
}
@media (max-width: 900px) {
  body.ms-page { --ms-nav: 64px; --ms-bar: 60px; }
  .ms-bar-inner { padding: 0 14px; gap: 8px; }
  .ms-search { flex: 1 1 auto; }
  .ms-bar .ms-quick, .ms-bar .ms-chips, .ms-bar .ms-reset { display: none !important; }
  .ms-btn .lbl { display: none; }
  .ms-btn { padding: 0 11px; }

  body.ms-page .split.ms-app { display: block; height: auto; min-height: 0; border-bottom: 0; }
  body.ms-page .list-pane.ms-list { height: auto; overflow: visible; scrollbar-gutter: auto; }
  body.ms-page .map-pane.ms-map {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--ms-top); height: auto; z-index: 850;
    visibility: hidden; pointer-events: none;
    /* Google Maps sets visibility:visible inline on its own layers, which
       beats an inherited hidden, so the closed map is also moved off screen. */
    transform: translateX(-200vw);
  }
  body.ms-page.is-mapview .map-pane.ms-map { visibility: visible; pointer-events: auto; transform: none; }
  body.ms-page.is-mapview .ms-list { visibility: hidden; height: 0; overflow: hidden; }
  body.ms-page.is-mapview .ms-below, body.ms-page.is-mapview footer { display: none; }
  .ms-list-head { padding: 16px 16px 8px; }
  .ms-cards { padding: 4px 16px 90px; }
  body.ms-page .ms-cards .proj-card { grid-template-columns: 40% 1fr; min-height: 132px; }
  body.ms-page .ms-cards .proj-thumb { height: 100%; min-height: 132px; }
  .ms-move { bottom: 84px; }
  body.ms-page .map-legend { display: none; }

  .ms-view {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
    z-index: 870; height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--pp-night); color: #fff; font: 600 15px/1 var(--font-sans); box-shadow: 0 8px 22px rgba(20,22,30,.35); cursor: pointer;
  }
  .ms-below-inner { grid-template-columns: 1fr; gap: 24px; }
  .ms-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body.ms-page .ms-cards .proj-card { grid-template-columns: 1fr; }
  body.ms-page .ms-cards .proj-thumb { height: 170px; min-height: 0; }
  .ms-grid2, .ms-grid3 { grid-template-columns: 1fr; }
  .ms-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .ms-dlg-tools input[type="search"] { max-width: none; }
  .ms-dlg-foot .sel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-cards, body.ms-page .pi-mkr-wrap, .ms-btn, .ms-pill { transition: none; }
}
body.ms-page .ms-cards .proj-mrt .mrt-codes { margin: 0 5px 0 4px; }

/* The compare tray is fixed to the bottom edge; lift what it would cover. */
body.ms-page:has(.cmp-tray:not([hidden])) .ms-move { bottom: 96px; }
body.ms-page:has(.cmp-tray:not([hidden])) .ms-map .leaflet-bottom { bottom: 74px; }
@media (max-width: 900px) {
  body.ms-page:has(.cmp-tray:not([hidden])) .ms-view { bottom: 104px; }
  body.ms-page:has(.cmp-tray:not([hidden])) .ms-move { bottom: 166px; }
  body.ms-page:has(.cmp-tray:not([hidden])) .ms-map .leaflet-bottom { bottom: 92px; }
}
.ms-range > label { min-width: 0; }
.ms-pop .ms-range { max-width: none; }

/* Bedroom menu: square-cornered choices, as on the listing portals */
.ms-pop-h { font: 600 15px/1.2 var(--font-sans); color: var(--pp-ink); margin: 0 0 12px; }
.ms-beds .ms-pill { border-radius: 10px; min-width: 52px; justify-content: center; height: 38px; font-size: 14.5px; background: #fff; border-color: var(--pp-moss); }
.ms-beds .ms-pill[aria-pressed="true"] { background: var(--pp-night); border-color: var(--pp-night); }
.ms-pop .ms-pop-foot { border-top: 1px solid var(--pp-line); margin: 14px -14px 0; padding: 12px 14px 0; }
@media (prefers-reduced-motion: reduce) {
  body.ms-page .ms-cards .proj-card:hover { transform: none; }
}
