:root {
  --ms-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ms-accent: #1F3A5F;
  --ms-accent-hover: #162B47;
  --ms-line: #E8E8E8;
  --ms-muted: #6F6F6F;
}

/* ---- Properties | Projects switch ----
   A segmented pill at the top of the list column. It is deliberately larger and
   higher-contrast than the filter segments in the bar below: it changes what the
   page is about, the ones below only narrow it down. */
.ms-mode {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px;
  background: #F1F3F6; border-radius: 999px;
}
.ms-mode__btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: 9px 20px; border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ms-muted);
  transition: background 220ms var(--ms-ease-out), color 220ms var(--ms-ease-out),
              box-shadow 220ms var(--ms-ease-out);
}
.ms-mode__btn:hover { color: var(--ms-accent); }
.ms-mode__btn.is-on {
  background: var(--ms-accent); color: #fff;
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.28);
}
/* Desktop home for the switch is the page header row, in place of the old
   filter-summary pill: it is the first choice a visitor makes, so it sits above
   the filter bar rather than inside it. The pill only mirrored the bar below. */
.ms-hdr__search { display: none !important; }
.ms-hdr__row .ms-top { margin: 0; flex: 0 1 auto; }
.ms-hdr__row .ms-mode { margin: 0; flex: 0 0 auto; }

/* ---- phone and tablet ---------------------------------------------------
   Below 992px the page header row is hidden entirely, so the switch and the
   search field ride at the top of the sticky bar — under the map they would be
   off screen. The page's own footer code stretches Filters / Sort / Clear into
   three equal blocks edge to edge; with a search field above them that reads as
   a wall of heavy buttons, so here they go back to pills the width of their own
   label, and Clear only shows up when there is something to clear. */
@media (max-width: 991px) {
  .ms-mode { margin-bottom: 14px; }
  .ms-bar .ms-top { order: 0; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; margin: 0 0 2px; }
  .ms-bar .ms-mode { flex: 1 1 100%; margin: 0; }
  .ms-bar .ms-mode__btn { flex: 1 1 0; text-align: center; padding: 8px 10px; font-size: 13.5px; }
  .ms-bar .ms-search { flex: 1 1 100%; height: 42px; }
  /* 16px or iOS zooms the whole page the moment the field takes focus. Two
     class names on purpose: the base rule is a `font:` shorthand further down
     the sheet, and a single-class override here would lose to it on order. */
  .ms-bar .ms-search__in { font-size: 16px; }

  .ms-bar { gap: 8px !important; padding: 10px 20px 12px !important; }
  .ms-bar .ms-bar__filters { order: 2; flex: 0 0 auto !important; min-width: 0; }
  .ms-bar .ms-tools { order: 3; flex: 1 1 auto !important; margin-left: 0 !important;
                      gap: 8px; justify-content: flex-end; }
  .ms-bar .ms-fbtn { width: auto !important; height: 42px !important; padding: 0 16px !important; }
  .ms-bar .ms-sort { flex: 0 1 auto !important; height: 42px !important; padding: 0 14px !important; }
  .ms-bar .ms-clear { flex: 0 0 auto !important; height: 42px !important; padding: 0 14px !important;
                      display: none !important; }
  .ms-bar .ms-clear.is-shown { display: inline-flex !important; }
}
/* On a narrow phone the three labels cannot share a row, and Clear is the one
   whose meaning survives as a glyph. */
@media (max-width: 600px) {
  .ms-bar .ms-clear.is-shown {
    width: 42px; padding: 0 !important; justify-content: center; font-size: 0 !important;
  }
  .ms-bar .ms-clear.is-shown::before {
    content: ''; width: 16px; height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 1 0 3-6.7L3 8'/><path d='M3 3v5h5'/></svg>") center / contain no-repeat;
  }
}

/* ---- badge glyphs: one line family, sized on the glyph itself ----
   The sizes used to hang off .ms-projcell. The map preview CLONES a card out of
   that cell, so the moment a project pin was tapped the rules stopped matching
   and every glyph drew at its intrinsic 35px — that was the "huge SVG on the
   desktop, broken plate on the phone" the client saw. The size lives on .ms-ic
   now: whatever carries the class carries the size, the clone included. */
.ms-ic { flex: 0 0 auto; display: block; width: 13px; height: 13px; }
.plv-card__badge-tag .ms-ic { margin-right: 5px; }
.plv-card__badge-meta-m .ms-ic { margin-right: 4px; }
.plv-card__badge-tag,
.plv-card__badge-meta-m { display: inline-flex; align-items: center; }

/* The plate still carried listing padding around what is now a row of short
   numbers: 42px of box for 13px of text. Both card kinds are the same
   component, so both get the tighter box — otherwise Properties and Projects
   stop matching each other on the same screen. */
.ms-card .plv-card__badge,
.ms-preview .plv-card__badge { padding: 4px; gap: 3px; }
.ms-card .plv-card__badge-tag,
.ms-preview .plv-card__badge-tag { padding: 3px 10px 3px 8px; }
.ms-card .plv-card__badge-meta-m,
.ms-preview .plv-card__badge-meta-m { padding: 0 8px 0 6px; }
.ms-card .plv-card__badge-sep,
.ms-preview .plv-card__badge-sep { height: 12px; }

/* ---- search: name, area or address --------------------------------------
   Asked back by the client and put where the eye already is — beside the
   catalogue switch. With 40 developments and 60 listings, typing three letters
   beats scrolling, and every word has to match (in any order, as a substring)
   so the field reads as narrowing rather than guessing. */
.ms-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ms-search {
  position: relative; display: inline-flex; align-items: center;
  flex: 0 1 300px; min-width: 0; height: 44px;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 999px;
  padding: 0 6px 0 14px;
  transition: border-color 160ms var(--ms-ease-out), box-shadow 200ms var(--ms-ease-out);
}
.ms-search:focus-within { border-color: var(--ms-accent); box-shadow: 0 0 0 3px rgba(31,58,95,0.09); }
.ms-search__ic { width: 16px; height: 16px; flex: 0 0 16px; margin-right: 9px; color: var(--ms-muted); }
.ms-search__in {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  font: 500 14px/1 Manrope, Arial, sans-serif; color: #212121;
  -webkit-appearance: none; appearance: none;
}
.ms-search__in::placeholder { color: #acacac; }
.ms-search__in::-webkit-search-cancel-button { display: none; }
.ms-search__x {
  width: 30px; height: 30px; flex: 0 0 30px; margin-left: 4px; padding: 0;
  display: none; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #f1f3f6; color: #6F6F6F; cursor: pointer;
  transition: background 160ms var(--ms-ease-out), color 160ms var(--ms-ease-out),
              transform 120ms var(--ms-ease-out);
}
.ms-search.is-filled .ms-search__x { display: inline-flex; }
.ms-search__x:hover { background: #e6eaf0; color: #212121; }
.ms-search__x:active { transform: scale(0.94); }
.ms-search__x svg { width: 12px; height: 12px; }

/* ---- map hidden: the floating pill is a real toggle on this page ----
   It used to walk the visitor off to the plain listing, which is a different
   page with different filters. What they actually want is this page without
   the map, so the map folds away and the grid takes the width. */
body.ms-mapoff .ms-split { grid-template-columns: 1fr !important; }
body.ms-mapoff .ms-map-col { display: none !important; }
body.ms-mapoff .ms-list { height: auto !important; }
body.ms-mapoff .ms-list__grid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)) !important; }

/* ---- price pins ---- */
.ms-pin-wrap { position: absolute; transform: translate(-50%, -50%); will-change: left, top; }
.ms-pin {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: #fff; color: var(--ms-accent); border: 1px solid var(--ms-line);
  border-radius: 999px; padding: 6px 12px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: -0.005em;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 150ms var(--ms-ease-out), color 150ms var(--ms-ease-out),
              transform 150ms var(--ms-ease-out);
}
.ms-pin:hover, .ms-pin.is-on {
  background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; transform: scale(1.08);
}

/* ---- preview card over the map ---- */
.ms-preview {
  position: absolute; z-index: 500; left: 20px; bottom: 20px;
  width: 340px; max-width: calc(100% - 40px);
  opacity: 0; transform: translateY(10px) scale(0.98);
  transition: opacity 220ms var(--ms-ease-out), transform 220ms var(--ms-ease-out);
}
.ms-preview.is-in { opacity: 1; transform: none; }
.ms-preview .plv-card { box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); }
.ms-preview__x {
  position: absolute; z-index: 4; top: 10px; right: 10px;
  width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.95); color: #212121;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  padding: 0; transition: transform 160ms var(--ms-ease-out);
}
.ms-preview__x:active { transform: scale(0.94); }
.ms-preview__x svg { width: 14px; height: 14px; }
.ms-preview .plv-card__dots { display: none; }
.ms-preview .plv-card__nav { opacity: 1; }
.ms-dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.ms-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6);
  transition: background 200ms var(--ms-ease-out), transform 200ms var(--ms-ease-out);
}
.ms-dots i.is-on { background: #fff; transform: scale(1.25); }

.ms-card.is-on .plv-card {
  border-color: var(--ms-accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
}

/* ---- carousel arrows: borders, not glyphs (Webflow drops text in API divs) ---- */
.plv-card__nav { transition: opacity 200ms var(--ms-ease-out), transform 160ms var(--ms-ease-out); }
.plv-card__nav::before {
  content: ''; width: 8px; height: 8px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
}
.plv-card__nav--prev::before { transform: rotate(45deg);   margin-left: 4px; }
.plv-card__nav--next::before { transform: rotate(-135deg); margin-right: 4px; }
@media (hover: hover) and (pointer: fine) {
  .plv-card:hover .plv-card__nav { opacity: 1; }
}
@media (hover: none) { .plv-card__nav { opacity: 1; } }

/* ---- header ---- */
.ms-hdr__go::before {
  content: ''; width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") center/contain no-repeat;
}
.ms-hdr__search { transition: box-shadow 200ms var(--ms-ease-out); }
.ms-hdr__search:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 6px 18px rgba(0,0,0,0.10); }
.ms-hdr__seg[data-ms-sum="deal"],
.ms-hdr__seg[data-ms-sum="beds"] { font-weight: 500; color: var(--ms-muted); }

.ms-fbtn { transition: background 200ms var(--ms-ease-out), transform 160ms var(--ms-ease-out); }
.ms-fbtn:hover { background: var(--ms-accent-hover); }
.ms-fbtn:active { transform: scale(0.97); }
.ms-fbtn__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--ms-accent); font-size: 12px; font-weight: 700;
}

/* ---- sort + clear, in the bar ---- */
.ms-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ms-sort {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 16px; cursor: pointer;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 999px;
  font-size: 13px; color: #212121; white-space: nowrap;
  transition: border-color 160ms var(--ms-ease-out);
}
.ms-sort:hover, .ms-sort.is-on { border-color: var(--ms-accent); }
.ms-sort__pre { color: var(--ms-muted); }
.ms-sort__val { font-weight: 600; }
.ms-sort__caret {
  width: 7px; height: 7px; margin-left: 2px;
  border-right: 1.6px solid var(--ms-muted); border-bottom: 1.6px solid var(--ms-muted);
  transform: translateY(-2px) rotate(45deg);
}
.ms-sort__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 90;
  min-width: 220px; padding: 6px; background: #fff;
  border: 1px solid #eee; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  display: none;
}
.ms-sort__panel.is-open { display: block; }
.ms-sort__opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  font: 500 14px/1.2 Manrope, Arial, sans-serif; color: #212121;
  transition: background 160ms var(--ms-ease-out);
}
.ms-sort__opt:hover { background: #f9f9f9; }
.ms-sort__opt.is-on { background: #f9f9f9; font-weight: 700; color: var(--ms-accent); }

.ms-clear {
  display: none; align-items: center; height: 42px; padding: 0 6px;
  background: none; border: 0; cursor: pointer;
  font: 600 13px/1 Manrope, Arial, sans-serif; color: #212121;
  text-decoration: underline; white-space: nowrap;
  transition: color 160ms var(--ms-ease-out);
}
.ms-clear.is-shown { display: inline-flex; }
.ms-clear:hover { color: var(--ms-accent); }

/* ============ empty result ============
   The whole portfolio sits in Pattaya, so picking Bangkok or Phuket always
   returns nothing. A bare line of grey text there reads as a broken page; this
   is a card that says what we actually do in those two cities and offers the
   only next step that exists — asking a person. */
.ms-empty {
  grid-column: 1 / -1; margin: 4px 0 8px;
  border: 1px solid var(--ms-line); border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}
/* The grid centres its text, so the card commits to it rather than fighting
   it half-way: heading, body and the row of actions all sit on the centre line. */
.ms-empty__in { padding: 26px 24px; text-align: center; }
.ms-empty__t {
  margin: 0 0 8px; font: 500 21px/1.25 Manrope, Arial, sans-serif;
  letter-spacing: -.02em; color: #303030;
}
.ms-empty__b {
  margin: 0 auto 18px; max-width: 52ch;
  font: 400 15px/1.55 Manrope, Arial, sans-serif; color: #838383;
}
.ms-empty__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px;
}
.ms-empty__lead {
  font: 600 13px/1 Manrope, Arial, sans-serif; color: #acacac; margin-right: 2px;
}
.ms-empty__btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border-radius: 999px; background: var(--ms-accent); color: #fff;
  font: 600 13.5px/1 Manrope, Arial, sans-serif; text-decoration: none;
  transition: background 200ms var(--ms-ease-out), transform 140ms var(--ms-ease-out);
}
.ms-empty__btn:hover { background: #162B47; }
.ms-empty__btn:active { transform: scale(.97); }
.ms-empty__alt {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid #e0e0e0; background: #fff; cursor: pointer;
  font: 600 13.5px/1 Manrope, Arial, sans-serif; color: #303030;
  transition: border-color 200ms var(--ms-ease-out), color 200ms var(--ms-ease-out), transform 140ms var(--ms-ease-out);
}
.ms-empty__alt:hover { border-color: var(--ms-accent); color: var(--ms-accent); }
.ms-empty__alt:active { transform: scale(.97); }
@media (max-width: 560px) {
  .ms-empty__in { padding: 20px 18px; }
  .ms-empty__t { font-size: 19px; }
  .ms-empty__lead { flex: 1 0 100%; margin-bottom: 2px; }
  .ms-empty__btn, .ms-empty__alt { flex: 1 1 auto; justify-content: center; }
}

/* ============ Filters modal ============ */
.msf {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 200ms var(--ms-ease-out);
}
.msf.is-in { opacity: 1; }
.msf__dialog {
  width: 100%; max-width: 560px; max-height: min(86vh, 780px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 56px rgba(0,0,0,0.18), 0 6px 12px rgba(0,0,0,0.08);
  transform: scale(0.96); opacity: 0;
  transition: transform 220ms var(--ms-ease-out), opacity 220ms var(--ms-ease-out);
}
.msf.is-in .msf__dialog { transform: none; opacity: 1; }
.msf.is-out, .msf.is-out .msf__dialog { transition-duration: 150ms; }

.msf__head {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 60px; border-bottom: 1px solid var(--ms-line);
}
.msf__title { font-size: 16px; font-weight: 700; color: #212121; }
.msf__x {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: #212121;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms var(--ms-ease-out);
}
.msf__x:hover { background: #f5f5f5; }
.msf__x svg { width: 16px; height: 16px; }

.msf__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 24px 8px; }
.msf__sec { padding: 22px 0; border-bottom: 1px solid var(--ms-line); }
.msf__sec:last-child { border-bottom: 0; }
.msf__lab { display: block; font-size: 15px; font-weight: 700; color: #212121; margin-bottom: 14px; }
.msf__hint { font-size: 13px; color: var(--ms-muted); font-weight: 400; margin-left: 6px; }

.msf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.msf-chip {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #DDDDDD; color: #212121;
  font: 500 14px/1 Manrope, Arial, sans-serif;
  display: inline-flex; align-items: center;
  transition: border-color 160ms var(--ms-ease-out), background 160ms var(--ms-ease-out),
              color 160ms var(--ms-ease-out), transform 160ms var(--ms-ease-out);
}
.msf-chip:hover { border-color: var(--ms-accent); }
.msf-chip:active { transform: scale(0.97); }
.msf-chip.is-on { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }

.msf__search {
  width: 100%; height: 44px; padding: 0 14px; margin-bottom: 12px;
  border: 1px solid #DDDDDD; border-radius: 10px; background: #fff;
  font: 400 14px/1 Manrope, Arial, sans-serif; color: #212121;
  transition: border-color 160ms var(--ms-ease-out);
}
.msf__search::placeholder { color: #B8B8B8; }
.msf__search:focus { outline: none; border-color: var(--ms-accent); }
.msf__scroll { max-height: 168px; overflow-y: auto; }

.msf__range { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.msf__num {
  flex: 1; height: 44px; padding: 0 14px; border: 1px solid #DDDDDD; border-radius: 10px;
  background: #fff; font: 400 14px/1 Manrope, Arial, sans-serif; color: #212121;
  font-variant-numeric: tabular-nums; width: 100%;
  transition: border-color 160ms var(--ms-ease-out);
}
.msf__num:focus { outline: none; border-color: var(--ms-accent); }
.msf__dash { color: var(--ms-muted); }

.msf__slider { position: relative; height: 24px; margin: 6px 2px 0; }
.msf__track { position: absolute; top: 10px; left: 0; right: 0; height: 4px; border-radius: 999px; background: var(--ms-line); }
.msf__fill  { position: absolute; top: 10px; height: 4px; border-radius: 999px; background: var(--ms-accent); }
.msf__slider input[type="range"] {
  position: absolute; top: 0; left: 0; width: 100%; height: 24px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.msf__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ms-accent); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.msf__slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ms-accent); cursor: pointer;
}

.msf__foot {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 24px; border-top: 1px solid var(--ms-line); background: #fff;
}
.msf__clear {
  background: none; border: 0; cursor: pointer; padding: 8px 4px;
  font: 600 14px/1 Manrope, Arial, sans-serif; color: #212121; text-decoration: underline;
}
.msf__apply {
  border: 0; border-radius: 999px; cursor: pointer; height: 48px; padding: 0 26px;
  background: var(--ms-accent); color: #fff;
  font: 600 15px/1 Manrope, Arial, sans-serif;
  transition: background 200ms var(--ms-ease-out), transform 160ms var(--ms-ease-out);
}
.msf__apply:hover { background: var(--ms-accent-hover); }
.msf__apply:active { transform: scale(0.97); }

@media (max-width: 600px) {
  .msf { padding: 0; }
  .msf__dialog { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
}

/* ============ First-visit tour ============
   A dim sheet with one hole punched in it. The hole is an empty box with a huge
   spread shadow, so the dim always matches the highlighted rectangle exactly and
   only one element needs to be animated between steps. */
.ms-tour {
  position: fixed; inset: 0; z-index: 1200;
  opacity: 0; transition: opacity 220ms var(--ms-ease-out);
}
.ms-tour.is-in { opacity: 1; }
.ms-tour.is-out { transition-duration: 140ms; }
/* The spotlight used to animate top/left/width/height, and it carries a
   9999px shadow — so every frame relaid out the page and repainted a full-screen
   dim over a live Google map. On a phone that stuttered badly. It now moves in
   one jump while hidden, and only opacity is animated: pure compositor work. */
.ms-tour__hole {
  position: absolute; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(17, 24, 33, 0.62);
  transition: opacity 150ms var(--ms-ease-out);
  pointer-events: none;
}
.ms-tour.is-moving .ms-tour__hole,
.ms-tour.is-moving .ms-tour__tip { opacity: 0; }
.ms-tour__tip {
  position: absolute; width: 320px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px; padding: 18px 18px 14px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.24), 0 6px 12px rgba(0,0,0,0.10);
  transition: opacity 190ms var(--ms-ease-out);
}
.ms-tour__step { font: 700 11px/1 Manrope, Arial, sans-serif; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ms-accent); opacity: 0.65; }
.ms-tour__title { margin: 8px 0 6px; font: 700 17px/1.25 Manrope, Arial, sans-serif; color: #212121; }
.ms-tour__text  { margin: 0; font: 400 14px/1.45 Manrope, Arial, sans-serif; color: var(--ms-muted); }
.ms-tour__foot  { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.ms-tour__dots  { display: flex; gap: 5px; margin-right: auto; }
.ms-tour__dots i { width: 6px; height: 6px; border-radius: 50%; background: #E0E0E0;
  transition: background 200ms var(--ms-ease-out), transform 200ms var(--ms-ease-out); }
.ms-tour__dots i.is-on { background: var(--ms-accent); transform: scale(1.25); }
.ms-tour__skip {
  background: none; border: 0; cursor: pointer; padding: 8px 6px;
  font: 500 13px/1 Manrope, Arial, sans-serif; color: var(--ms-muted);
  transition: color 160ms var(--ms-ease-out);
}
.ms-tour__skip:hover { color: #212121; }
.ms-tour__next {
  border: 0; border-radius: 999px; cursor: pointer; height: 40px; padding: 0 20px;
  background: var(--ms-accent); color: #fff;
  font: 600 14px/1 Manrope, Arial, sans-serif;
  transition: background 200ms var(--ms-ease-out), transform 140ms var(--ms-ease-out);
}
.ms-tour__next:hover { background: var(--ms-accent-hover); }
.ms-tour__next:active { transform: scale(0.96); }
@media (max-width: 991px) {
  .ms-tour__tip { width: 300px; }
}

/* ---- one view switch, not two ----
   The site-wide widget renders its own pill on every page; this page also has
   its own in the markup, and on a phone the two sat on top of each other. The
   page's own one wins here, because only it can follow the Properties/Projects
   switch — the site widget always points at the listing. */
.plv-vsw { display: none !important; }

/* The count line is desktop-only: on a phone it took a whole row of the bar
   above the map, and the same number is one scroll away in the list itself. */
@media (max-width: 991px) {
  .ms-bar__count { display: none !important; }
}

/* ---- card photos: direct manipulation, same as the listing page ----
   The track is moved in pixels by the gesture, so the CSS transition is only
   armed for arrow steps (.is-stepping) and removed while a finger is down. */
.ms-card .plv-card__track { will-change: transform; }
.ms-card .plv-card__track.is-stepping { transition: transform 420ms var(--ms-ease-out); }
.ms-card .plv-card__photo.is-dragging { cursor: grabbing; }
.ms-card .plv-card__photo.is-dragging .plv-card__track { transition: none; }
.ms-card .plv-card__photo img { -webkit-user-drag: none; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  .ms-preview, .msf, .msf__dialog { transition-duration: 120ms; }
  .ms-preview, .msf__dialog { transform: none; }
  .ms-pin, .msf-chip, .ms-fbtn, .plv-card__nav, .plv-card__track { transition: none; }
  .ms-card .plv-card__track.is-stepping { transition: none; }
  .ms-pin:hover, .ms-pin.is-on { transform: none; }
  .ms-tour__hole, .ms-tour__tip { transition: none; }
}

/* ── header right: locale switcher + shortlist, the site header's pair ─────
   The page shipped a dead "EN" link (href="#") and a CTA that pointed back at
   the listing the map already is. The switcher is the site header's: a globe,
   the code, a caret, and a small menu — and it is built from the page's own
   hreflang alternates, so it can never offer a language this page lacks. */
.ms-lang{position:relative;display:inline-flex}
.ms-lang__btn{appearance:none;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 12px;
  border:0;border-radius:999px;background:transparent;cursor:pointer;
  font-family:inherit;font-size:14px;font-weight:600;color:#303030;
  transition:background-color 160ms var(--ms-ease-out)}
.ms-lang__btn svg:first-child{width:18px;height:18px;opacity:.75}
.ms-lang__btn::after{content:'';width:6px;height:6px;margin-left:1px;
  border-right:1.6px solid #838383;border-bottom:1.6px solid #838383;
  transform:translateY(-2px) rotate(45deg);transition:transform 200ms var(--ms-ease-out)}
.ms-lang__btn[aria-expanded="true"]{background:#F4F7FB}
.ms-lang__btn[aria-expanded="true"]::after{transform:translateY(1px) rotate(225deg);border-color:#1F3A5F}
.ms-lang__menu{position:absolute;top:calc(100% + 8px);right:0;min-width:172px;padding:6px;
  background:#fff;border:1px solid #eee;border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.04);
  opacity:0;visibility:hidden;transform:translateY(-4px);pointer-events:none;z-index:1200;
  transition:opacity 130ms var(--ms-ease),transform 130ms var(--ms-ease),visibility 0s linear 130ms}
.ms-lang__menu[data-open="true"]{opacity:1;visibility:visible;transform:none;pointer-events:auto;
  transition:opacity 180ms var(--ms-ease-out),transform 180ms var(--ms-ease-out)}
.ms-lang__opt{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-radius:8px;
  background:transparent;cursor:pointer;text-align:left;text-decoration:none;
  font-family:inherit;font-size:13px;font-weight:500;color:#212121;
  transition:background-color 160ms var(--ms-ease-out)}
.ms-lang__opt[aria-current="true"]{background:#EEF2F7;color:#1F3A5F;font-weight:600}
.ms-lang__opt .ms-lang__dot{width:6px;height:6px;border-radius:999px;background:#AB7D56;margin-left:auto;opacity:0}
.ms-lang__opt[aria-current="true"] .ms-lang__dot{opacity:1}
@media (hover:hover) and (pointer:fine){
  .ms-lang__btn:hover{background:#F4F7FB}
  .ms-lang__opt:hover{background:#F4F7FB}
}
