/* Expatserv, m4b scheme (approved by Sujith, 30 Nov 2026; spec docs/specs/2026-11-30-m4b-design-port.md).
   The first half is the approved mock's stylesheet (mocks/full/tools/style.css and pages.py EXTRA); the second half
   is the site's own parts (listing cards, filters, property page, forms, sheets) in the same tokens.
   Brand kit, 30 Nov 2026: kit hues only, plus measured shades of them. */
:root {
  --gold: #907718;        /* Hacienda: rules, large accents, icons; never small text (3.93:1 on Ecru White) */
  --gold-text: #6B5811;   /* Hacienda shade for small gold text: 6.28:1 on Ecru White, 4.97:1 on Tasman */
  --ink: #2F3016;         /* Black Olive: text, filled buttons, the dark bands */
  --ink-2: #46482A;       /* Black Olive shade: button hover */
  --page: #F6F4E9;        /* Ecru White: main ground */
  --card: #FBFAF4;        /* Ecru White tint: header, inputs, cards */
  --wash: #D8DBD8;        /* Tasman: alternate section ground */
  --rule: #D8DBD8;        /* Tasman: hairlines on Ecru White */
  --rule-on-wash: #A5A7AB;/* Aluminium: hairlines on Tasman */
  --field: #86888C;       /* Aluminium shade: input borders, 3.4:1 on the card tint */
  --muted: #55573E;       /* Black Olive tint: secondary text, 6.75:1 on Ecru White, 5.34:1 on Tasman */
  --on-ink: #F6F4E9;
  --on-ink-2: #D8DBD8;
  --sand: #CCBB93;        /* Sorrell Brown: rules on the dark band */
  --err: #8A1C12;         /* a form that did not send: 8.4:1 on Ecru White */
  --r: 4px;
  --shadow: 0 18px 40px -14px rgba(47, 48, 22, .45);
  --shadow-s: 0 1px 4px rgba(47, 48, 22, .28);
  --hdr-h: 80px;
  --bar-h: 58px;
  --gut: 48px;
  color-scheme: light;
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-ui: "Montserrat", system-ui, sans-serif;
  --f-text: "Open Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hdr-total, var(--hdr-h)) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--f-text); overflow-x: hidden; }
body.sheet-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); }
p { margin: 0; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.ic, .icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.icon--s { width: 18px; height: 18px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: var(--r); font: 600 15px var(--f-ui); }
.skip:focus { top: 12px; }
.preview-strip { margin: 0; background: var(--ink); color: var(--on-ink); font: 600 13px/1.3 var(--f-ui); text-align: center; padding: 8px var(--gut); }
/* cookie banner (launch builds, visitors in Europe only): a strip above the header, in the flow */
.consent { background: var(--card); border-bottom: 1px solid var(--rule); color: var(--ink); padding: 12px var(--gut); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; font-size: 15px; line-height: 1.4; }
.consent p { max-width: 62ch; }
.consent a { color: var(--gold-text); font-weight: 600; }
.consent__btns { display: flex; gap: 10px; }
.consent .btn { height: 44px; }

/* buttons and links: one filled shape, one quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--r);
       background: var(--ink); color: var(--on-ink); font: 700 15px/1 var(--f-ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--light { background: transparent; color: var(--on-ink); border: 1.5px solid var(--on-ink); }
.btn--light:hover { background: rgba(246, 244, 233, .12); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--wash); }
.btn--ghost { background: transparent; color: var(--gold-text); padding: 0 8px; }
.btn--ghost:hover { background: transparent; text-decoration: underline; }
.btn--block { width: 100%; }
.btn--wrap { white-space: normal; text-align: left; height: auto; padding-top: 12px; padding-bottom: 12px; line-height: 1.3; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--f-ui); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 6px; white-space: nowrap; }
.textlink:hover { color: var(--gold-text); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--rule); display: flex; align-items: center; height: var(--hdr-h); padding: 0 var(--gut); gap: 24px; }
.hdr__logo img { height: 48px; width: auto; max-width: none; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font: 600 15px/1 var(--f-ui); white-space: nowrap; }
.hdr__nav a { text-decoration: none; padding: 12px 14px; }
.hdr__nav a:hover { color: var(--gold-text); }
.hdr__nav > a[aria-current="page"], .hdr__item > a[aria-current="page"] { color: var(--gold-text); box-shadow: inset 0 -2px 0 var(--gold); }
.hdr__nav .quiet { margin-left: 12px; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 11px 16px; }
.hdr__nav .quiet[aria-current="page"] { box-shadow: none; background: var(--ink); color: var(--on-ink); }
.hdr__tools { display: flex; align-items: center; gap: 4px; }
.hdr__cur, .hdr__list, .hdr__share { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 10px; background: none; border: 0; color: var(--ink); font: 600 14px/1 var(--f-ui); text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-appearance: none; appearance: none; }
.hdr__cur .ic { width: 14px; height: 14px; }
.hdr__list { position: relative; }
.hdr__badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font: 700 11px/18px var(--f-ui); text-align: center; font-variant-numeric: tabular-nums; }
/* Services: the link goes to the hub's list; the caret button beside it opens every service page (desktop) */
.hdr__item { position: relative; display: flex; align-items: center; }
.js .hdr__item > a { padding-right: 2px; }
.hdr__more { display: inline-grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.hdr__more .icon { width: 14px; height: 14px; }
.hdr__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hdr__drop { display: none; position: absolute; top: 100%; left: 0; z-index: 31; min-width: 260px; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); white-space: normal; }
.hdr__drop a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font: 600 15px/1.3 var(--f-ui); }
.hdr__drop a:hover { background: var(--page); }
.hdr__drop a[aria-current="page"] { color: var(--gold-text); }
.hdr__drop-city > a { font-weight: 700; }
.hdr__drop ul { padding-left: 12px; }
.hdr__more[aria-expanded="true"] + .hdr__drop, html:not(.js) .hdr__item:focus-within .hdr__drop { display: block; }
@media (hover: hover) and (pointer: fine) { html:not(.js) .hdr__item:hover .hdr__drop { display: block; } }

/* ---------- home hero: one featured property, its listing card the one action ----------
   No coloured wash: a plain black darkening sits only behind the H1 and the line, as light as the measured
   contrast allows (--sh-h1 and --sh-line on desktop, --sh-h1p on phones; set per photo by src/hero.py). */
.hero { position: relative; display: grid; grid-template-columns: 1fr; min-height: 620px; --sh-line: .62; --sh-h1: .5; --sh-h1p: .45;
        height: calc(100svh - var(--hdr-h)); max-height: 980px; background: var(--ink); container-type: inline-size; }
.hero__pic { position: absolute; inset: 0; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:not(.is-on), .lcard:not(.is-on) { visibility: hidden; opacity: 0; }
/* the incoming photo fades in (0.9s) over the outgoing one, which stays fully opaque until it is covered */
.hero__slide.is-on { z-index: 1; }
html.js-slides .hero__slide { transition: opacity 0s linear .9s, visibility 0s linear .9s; }
html.js-slides .hero__slide.is-on { transition: opacity .9s ease, visibility 0s; }
/* the card never fades: it stays fully opaque and its contents change at once */
.hero__cards { grid-column: 2; justify-self: end; display: grid; }
.hero__cards .lcard { grid-area: 1 / 1; }
.hero__tag { position: absolute; right: var(--gut); top: 24px; z-index: 3; }
.hero__pause { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(47, 48, 22, .35); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.hero__pause .ic { width: 20px; height: 20px; }
.hero__pause:focus-visible { outline: 2px solid var(--card); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
html.js-slides .hero__pause { display: inline-flex; align-items: center; justify-content: center; }
.hero__pause:hover { color: var(--gold-text); }
.hero__copy { grid-area: 1 / 1; align-self: end; z-index: 2; padding: 0 var(--gut) 96px; display: grid; grid-template-columns: minmax(0, 820px) 1fr; column-gap: 48px; align-items: end; }
.hero__text { position: relative; z-index: 0; }
.hero h1, .hero__line { position: relative; }
.hero h1::before, .hero__line::before { content: ""; position: absolute; z-index: -1; filter: blur(28px); border-radius: 48px; }
.hero h1::before { inset: -40px -96px -24px -64px; background: rgba(0, 0, 0, var(--sh-h1)); }
.hero__line::before { inset: -20px -80px -32px -64px; background: rgba(0, 0, 0, var(--sh-line)); }
.hero h1 { margin: 0; font: 800 clamp(34px, 4.45cqi, 66px)/1.05 var(--f-head); letter-spacing: -0.02em; color: var(--on-ink); max-width: min(12em, 100%); overflow-wrap: anywhere; }
.hero__line { margin: 18px 0 0; font: 400 20px/1.5 var(--f-text); color: var(--on-ink); max-width: 40ch; overflow-wrap: anywhere; }
.hero__own { display: none; }
/* the featured listing card */
.lcard { width: 340px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); }
.lcard img { width: 100%; height: 220px; object-fit: cover; }
.lcard__body { display: block; padding: 16px 18px 18px; min-width: 0; }
.lcard__title, .lcard__price, .lcard__ref span { overflow-wrap: anywhere; min-width: 0; }
.lcard__ref { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; justify-content: space-between; font: 600 13px/1 var(--f-ui); color: var(--gold-text); letter-spacing: .02em; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.lcard__title { display: block; margin: 12px 0 4px; font: 400 16px/1.35 var(--f-text); }
.lcard__price { display: block; font: 700 26px/1.1 var(--f-ui); font-variant-numeric: tabular-nums; }
.lcard__price .card__per { display: block; margin: 4px 0 0; }
.lcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 15px/1 var(--f-ui); border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.lcard:hover .lcard__go { color: var(--gold-text); }

/* segmented choices: radio labels (forms) and buttons (the listings toolbar) */
.seg { display: inline-flex; gap: 0; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.seg label, .seg button { position: relative; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; font: 600 15px/1 var(--f-ui); padding: 10px 16px 12px; cursor: pointer; color: var(--muted); border: 0; border-bottom: 2px solid var(--rule); background: none; white-space: nowrap; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked), .seg button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold-text); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.field { display: grid; gap: 6px; min-width: 0; margin-top: 14px; }
.field > span, .field > label, .field label:first-child { font: 600 13px/1.3 var(--f-ui); color: var(--muted); }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea { font: 400 17px/1.2 var(--f-text); color: var(--ink); min-height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r); background: var(--card); width: 100%; }
/* selects drawn the same in every browser (WebKit's own control ignores the height and the border): a Phosphor caret */
.field select, .tools__sort { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%232F3016' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 14px 14px; }
.field textarea { min-height: 96px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.phone { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; }

/* ---------- sections ---------- */
.sec { padding: 72px var(--gut) 80px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec h2, .sec__h { font: 700 32px/1.18 var(--f-head); letter-spacing: -0.01em; }
.sec--wash { background: var(--wash); }
.sec--card { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lede { margin: 14px 0 0; max-width: 62ch; font: 400 18px/1.55 var(--f-text); color: var(--muted); }
.body { font: 400 18px/1.55 var(--f-text); max-width: 62ch; margin: 12px 0 0; }
.crumbs { margin: 0 0 14px; font: 600 14px/1.3 var(--f-ui); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.kick { font: 600 13px/1.3 var(--f-ui); color: var(--gold-text); letter-spacing: .02em; margin: 0; }

/* listing row with the buy / rent filter */
.props { padding-top: 56px; }
.filt { display: flex; gap: 32px; margin: 0 0 28px; border-bottom: 1px solid var(--rule); }
.filt a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0 14px; margin-bottom: -1px; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.filt b { font: 700 15px/1 var(--f-ui); }
.filt span { font: 400 15px/1.2 var(--f-text); color: var(--muted); }
.filt .filt__s { display: none; }
.props__all { display: flex; width: max-content; margin: 32px auto 0; }
.filt a[aria-pressed="true"] { border-bottom-color: var(--gold-text); }
.filt a[aria-pressed="false"] b { color: var(--ink-2); }
.filt a:hover b { color: var(--gold-text); }
.lrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.lrow li { display: none; }
.lrow[data-show="all"] li[data-in~="all"], .lrow[data-show="sale"] li[data-in~="sale"], .lrow[data-show="rent"] li[data-in~="rent"] { display: block; }
.lrow li.past4 { display: none !important; }
.lrow a { text-decoration: none; display: block; }
.lrow img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--wash); }
.lrow__ref { display: block; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--gold); font: 600 13px/1 var(--f-ui); color: var(--gold-text); letter-spacing: .02em; }
.lrow__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font: 400 17px/1.35 var(--f-text); }
.lrow__price { display: block; margin-top: 6px; font: 700 19px/1.2 var(--f-ui); font-variant-numeric: tabular-nums; }
.lrow__price small, .lrow__price .card__per { font: 600 14px/1 var(--f-ui); color: var(--muted); margin-left: 4px; }
.lrow a:hover .lrow__title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.vetline { margin: -6px 0 22px; max-width: 70ch; font: 400 17px/1.5 var(--f-text); color: var(--ink); padding-left: 14px; border-left: 3px solid var(--gold); }

/* owner band: list with us, and the estimate */
.owner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-items: start; background: var(--wash); }
.owner__list { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.owner__est { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; }
.tool { background: var(--card); border-radius: var(--r); padding: 22px 22px 24px; border: 1px solid var(--rule-on-wash); color: var(--ink); }
.tool h2 { margin: 0 0 20px; font: 700 24px/1.25 var(--f-head); }
.tool .field { margin: 0 0 14px; }
.tool .seg { display: flex; flex-wrap: wrap; margin: 6px 0 0; }
.tool .seg label { padding: 10px 14px 12px; }
.tool__grp { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.tool__lg { padding: 0; float: left; width: 100%; font: 600 13px/1 var(--f-ui); color: var(--muted); }
.tool__lg + .seg { clear: both; }
.tool .btn { width: 100%; }
.tool .lede { margin: -10px 0 20px; font-size: 16px; }
/* the estimate box without JavaScript: one list whose choice is the WhatsApp question itself */
.est-nojs { display: none; }
.est-js { border: 0; margin: 0; padding: 0; min-width: 0; }
html:not(.js-home) .est-js { display: none; }
html:not(.js-home) .est-nojs { display: block; }

/* proof row */
.proof { padding-top: 44px; padding-bottom: 52px; display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); column-gap: 48px; row-gap: 28px; align-items: start; }
/* Google rating, laid out the way Google's own rating reads: the G, the score, the stars, the count */
.gr { border-top: 2px solid var(--ink); padding-top: 20px; }
.gr__t { display: flex; align-items: center; gap: 10px; font: 600 16px/1.3 var(--f-ui); margin: 0; }
.gr__g { width: 22px; height: 22px; flex: none; }
.gr__score { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.gr__score b { font: 700 48px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.gr__n { margin: 8px 0 0; font: 400 16px/1.4 var(--f-text); color: var(--muted); }
.gr__all { margin-top: 14px; min-height: 44px; }
.stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.stars svg { width: 22px; height: 22px; margin-right: 2px; }
.stars--s svg { width: 16px; height: 16px; margin-right: 1px; }
.stars__off svg { fill: #DADCE0; }
.stars__on { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.stars__on svg { fill: #FBBC04; }   /* Google's star yellow, only on the Google rating */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rev { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.rev__top { display: flex; align-items: center; gap: 12px; }
.rev__av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wash); color: var(--ink); font: 700 16px/1 var(--f-ui); }
.rev__by { margin: 0; display: grid; }
.rev__who { font: 700 15px/1.3 var(--f-ui); color: var(--ink); text-decoration: none; }
a.rev__who:hover { color: var(--gold-text); text-decoration: underline; }
.rev__when { font: 400 14px/1.3 var(--f-text); color: var(--muted); }
.rev__txt { margin: 0; font: 400 16px/1.5 var(--f-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.proof__areas { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); font: 400 16px/1.4 var(--f-text); color: var(--muted); }
.proof__areas b { font: 700 16px/1.4 var(--f-ui); color: var(--ink); }

/* What do you need done? a ruled list; a row opens to its items */
.needs { border-top: 1px solid var(--rule); }
.needs > h2 { font-size: 44px; line-height: 1.08; margin-bottom: 32px; }
.need { border-bottom: 1px solid var(--rule); }
.need:first-child { border-top: 2px solid var(--ink); }
.need__h { margin: 0; }
.need__h button { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; width: 100%; padding: 28px 0 26px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.need__tab { font: 700 26px/1.2 var(--f-head); letter-spacing: -0.01em; }
.need__caret { width: 22px; height: 22px; transition: transform .2s ease; }
.need__h button:hover .need__tab { color: var(--gold-text); }
.is-open .need__caret { transform: rotate(180deg); }
.need__panel { display: grid; grid-template-rows: 1fr; }
.need__in { overflow: hidden; min-height: 0; max-width: 880px; }
.need__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; padding: 0; font: 400 17px/1.45 var(--f-text); }
.need__list li { padding-top: 10px; border-top: 1px solid var(--rule); }
.need__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 24px 0 34px; }
.need__foot .textlink { min-height: 44px; }
html.js-needs .need__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s ease, visibility 0s linear .35s; }
html.js-needs .is-open .need__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s ease, visibility 0s; }
html.js-needs .is-snap .need__panel { transition: none; }
html.js-needs { overflow-anchor: none; }   /* home.js keeps the reader's place itself when a row above closes */
html:not(.js-needs) .need__caret { display: none; }
html:not(.js-needs) .need__h button { cursor: default; }

/* browse by property type */
.types h2 { margin-bottom: 24px; }
.types__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; }
.types__list a { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 6px; padding: 16px 0 18px; border-top: 2px solid var(--ink); text-decoration: none; min-height: 44px; }
.types__name { font: 700 22px/1.2 var(--f-head); }
.types__n { grid-row: 2; font: 400 15px/1.35 var(--f-text); color: var(--muted); }
.types__list .ic { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--gold); }
.types__list a:hover .types__name { color: var(--gold-text); }

/* steps: one line with a stop per step (home, About, service pages, Port Desk); --down runs it downwards */
.steps h2 { margin-bottom: 36px; }
.steps__line { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 32px; position: relative; padding-top: 26px; }
.steps__line::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--gold); }
.steps__line li { position: relative; }
.steps__line li::before { content: ""; position: absolute; top: -26px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--page); }
.steps__line h3 { font: 700 16px/1.3 var(--f-ui); }
.steps__line p { margin: 8px 0 0; font: 400 17px/1.5 var(--f-text); color: var(--ink); max-width: 30ch; }
.sec--wash .steps__line li::before { box-shadow: 0 0 0 4px var(--wash); }
.steps__line--down { grid-template-columns: 1fr; gap: 22px; padding: 0 0 0 30px; }
.steps__line--down::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
.steps__line--down li::before { top: 5px; left: -30px; background: var(--gold); }
.steps__line--down p { max-width: none; }
.after { margin: 36px 0 24px; max-width: 62ch; font: 400 18px/1.55 var(--f-text); padding-left: 14px; border-left: 3px solid var(--gold); }

/* where we work: full bleed ink band */
.where { background: var(--ink); color: var(--on-ink); padding: 80px var(--gut); }
.where__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: start; }
.where--sub .where__in { grid-template-columns: minmax(0, 1fr); }
.where h2 { font: 700 32px/1.18 var(--f-head); color: var(--on-ink); }
.where__head p { margin: 10px 0 28px; font: 400 19px/1.45 var(--f-text); color: var(--on-ink); }
.where__label { margin: 0 0 14px; font: 600 14px/1.3 var(--f-ui); color: var(--sand); }
.where__places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; font: 700 30px/1.2 var(--f-head); color: var(--on-ink); letter-spacing: -0.01em; }
.where__places li { padding: 14px 0 22px; border-top: 1px solid var(--sand); overflow-wrap: anywhere; }

/* Port Desk band and every page banner: a photo with a plain black darkening behind the words only */
.port { position: relative; min-height: 560px; display: grid; background: var(--ink); --shd: .58; }
.port__pic { overflow: hidden; }
.port h2, .port__copy p { overflow-wrap: anywhere; }
.port__pic, .port__pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.port__pic img { object-fit: cover; object-position: 50% 62%; }
.port__copy { position: relative; z-index: 2; align-self: center; justify-self: start; padding: 0 var(--gut); }
.port__copy::before, .bleed__copy::before { content: ""; position: absolute; top: -48px; bottom: -48px; left: calc(var(--gut) - 64px); right: -96px; z-index: -1; background: rgba(0, 0, 0, var(--shd)); filter: blur(28px); border-radius: 48px; }
.port h2 { font: 700 48px/1.1 var(--f-head); color: var(--on-ink); max-width: 9em; letter-spacing: -0.01em; }
.port__copy p { margin: 16px 0 28px; max-width: 40ch; font: 400 19px/1.45 var(--f-text); color: var(--on-ink); }
.port__credit, .bleed .bleed__credit { position: absolute; z-index: 2; right: var(--gut); bottom: 16px; margin: 0; font: 600 12px/1.3 var(--f-ui); color: var(--ink); background: var(--card); padding: 6px 8px; border-radius: var(--r); }
.port__credit a, .bleed__credit a { text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 14px 0; margin: -14px 0; }
.bleed { position: relative; min-height: 520px; display: grid; background: var(--ink); overflow: hidden; color: var(--on-ink); --shd: .5; }
.bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.bleed picture { position: absolute; inset: 0; }
.bleed__inner { position: relative; z-index: 2; align-self: end; padding: 0 var(--gut) 72px; }
.bleed__copy { position: relative; z-index: 0; max-width: 760px; }
.bleed__copy::before { top: -48px; bottom: -24px; left: -64px; }
.bleed h1 { margin: 0; font: 800 clamp(36px, 4.4vw, 60px)/1.05 var(--f-head); letter-spacing: -0.02em; color: var(--on-ink); overflow-wrap: anywhere; }
.bleed__copy > p:not(.crumbs) { margin: 16px 0 0; max-width: 40ch; font: 400 20px/1.5 var(--f-text); color: var(--on-ink); }
.bleed .crumbs a { color: inherit; }

/* sub page heading without a photo (Contact, listings, legal) */
.ptop { padding: 56px var(--gut) 0; }
.ptop h1, .legal h1, .lst-head h1 { margin: 0; font: 600 clamp(32px, 3.6vw, 50px)/1.1 var(--f-head); letter-spacing: -0.01em; }
.ptop .lede { margin: 14px 0 0; max-width: 46ch; font: 400 20px/1.5 var(--f-text); color: var(--ink); }

/* About: links to every service, the office */
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-top: 24px; }
.svcs a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; border-top: 1px solid var(--rule); font: 700 19px/1.3 var(--f-head); text-decoration: none; }
.svcs a:hover { color: var(--gold-text); }
.svcs .icon { color: var(--gold); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
.office { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
.office address { font: 600 28px/1.3 var(--f-head); font-style: normal; margin-top: 14px; }
.office .body { color: var(--muted); }
.office__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Contact */
.ctc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 64px; align-items: start; padding: 40px var(--gut) 88px; }
.ctc__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ctc__blk { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); }
.ctc__blk h2 { font: 700 24px/1.25 var(--f-head); }
.ctc__nums { display: grid; gap: 4px; margin-top: 12px; }
.ctc__nums a { display: inline-flex; align-items: center; min-height: 44px; font: 700 22px/1.3 var(--f-ui); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; justify-self: start; font-variant-numeric: tabular-nums; }
.ctc__nums span { font: 400 16px/1.4 var(--f-text); color: var(--muted); margin: -2px 0 8px; }
.ctc address { font: 600 24px/1.35 var(--f-head); font-style: normal; margin-top: 12px; }
.ctc .body a { text-underline-offset: 3px; }
.ctc .tool { position: sticky; top: calc(var(--hdr-total, var(--hdr-h)) + 24px); }

/* ---------- footer: the contact block, then the links ---------- */
.ftr { background: var(--card); border-top: 2px solid var(--ink); padding: 64px var(--gut) 24px; }
.ftr__contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.ftr h2 { font: 600 13px/1.3 var(--f-ui); color: var(--gold-text); letter-spacing: .02em; margin-bottom: 14px; }
.ftr h2 a { text-decoration: none; }
.ftr address { font: 600 28px/1.3 var(--f-head); font-style: normal; }
.ftr__nums { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.ftr__uk .ftr__nums { margin-top: 0; }
.ftr__nums a { display: inline-flex; align-items: center; min-height: 44px; font: 700 19px/1.3 var(--f-ui); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 4px; font-variant-numeric: tabular-nums; }
.ftr__links { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr)); column-gap: 48px; padding: 40px 0; }
.ftr__logo { height: 56px; width: auto; }
.ftr__links li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: 400 16px/1.4 var(--f-text); text-decoration: none; }
.ftr__links li a:hover { color: var(--gold-text); text-decoration: underline; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; padding-top: 8px; border-top: 1px solid var(--rule); font: 600 13px/1.3 var(--f-ui); color: var(--muted); }
.ftr__base a, .ftr__link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.ftr__baselinks { display: flex; flex-wrap: wrap; column-gap: 24px; }
.ftr__link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* contact: WhatsApp button on desktop, action bar below 1024 */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px;
      background: var(--ink); color: var(--on-ink); border: 0; border-radius: 999px; font: 700 16px/1 var(--f-ui); text-decoration: none; box-shadow: var(--shadow); }
.wa .ic { width: 24px; height: 24px; }
.wa:hover { background: var(--ink-2); }
.bar { display: none; }

/* ======================================================================== the site's own parts, in m4b */

/* listings index */
.lst-head { padding: 48px var(--gut) 8px; }
.lst-head p { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.tools { position: sticky; top: var(--hdr-total, var(--hdr-h)); z-index: 15; background: var(--page); border-bottom: 1px solid var(--rule); }
.tools__row { display: flex; gap: 8px; align-items: center; min-height: 60px; }
.tools .seg { margin: 0; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--r); background: var(--card); color: var(--ink); font: 600 14px var(--f-ui); cursor: pointer; white-space: nowrap; }
.tbtn b { background: var(--ink); color: var(--on-ink); border-radius: 9px; min-width: 20px; height: 20px; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.tools__sort { -webkit-appearance: none; appearance: none; }
.tools__row .tbtn { margin-left: auto; }
.tools__row .tools__sort { margin-left: 0; }
.active { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.active:empty { display: none; }
.active button { flex: none; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 10px 0 12px; border-radius: var(--r); border: 1px solid var(--gold); background: var(--card); font: 600 13px var(--f-ui); cursor: pointer; }
.countrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.count { font: 600 14px var(--f-ui); color: var(--muted); margin: 0; }
.cards { display: grid; gap: 32px 24px; margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* listing card: the whole card is one link; save and WhatsApp sit on the photo as their own targets */
.card { position: relative; min-width: 0; }
.card__link { display: grid; text-decoration: none; }
.card__img { aspect-ratio: 4 / 3; background: var(--wash); border-radius: var(--r); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: grid; gap: 4px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--gold); }
.card__top { display: flex; justify-content: space-between; gap: 12px; font: 600 13px/1.2 var(--f-ui); color: var(--gold-text); letter-spacing: .02em; }
.card__deal { color: var(--gold-text); }
.card__price { font: 700 19px/1.25 var(--f-ui); font-variant-numeric: tabular-nums; margin-top: 4px; }
.card__per { font: 600 13px var(--f-ui); color: var(--muted); margin-left: 6px; }
.card__title { font: 400 16px/1.35 var(--f-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.card__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.card__facts span { display: inline-flex; gap: 5px; align-items: center; }
.save, .card__wa, .gal__share { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-s); }
.card__wa { right: 62px; }
.save[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.more { margin-top: 28px; }
.empty { border: 1px dashed var(--field); border-radius: var(--r); padding: 24px 22px; margin-top: 20px; background: var(--card); }
.empty h2 { font: 700 21px/1.25 var(--f-head); }
.empty p { color: var(--muted); margin: 6px 0 16px; }
.empty__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.shortbar { position: fixed; right: 24px; bottom: 88px; z-index: 25; }
.shortbar .btn { width: auto; box-shadow: var(--shadow); }
.owner-band { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; margin-top: 40px; padding: 24px 28px; border-radius: var(--r); background: var(--wash); text-decoration: none; }
.owner-band b { font: 700 19px/1.3 var(--f-head); }
.owner-band .btn { justify-self: end; }

/* sheets (filters, currency, call, enquiry, shortlist): a <dialog>, so focus and Escape work for free */
.sheet { border: 0; padding: 0; margin: auto; width: 100%; max-width: 560px; max-height: 86dvh; border-radius: var(--r); color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(47, 48, 22, .55); }
.sheet__head { position: sticky; top: 0; background: var(--card); display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 10px 22px; border-bottom: 2px solid var(--ink); z-index: 1; }
.sheet__head h2 { font: 700 20px/1.25 var(--f-head); }
.sheet__x { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.sheet__body { padding: 4px 22px 18px; }
.sheet__foot { position: sticky; bottom: 0; z-index: 2; background: var(--card); border-top: 1px solid var(--rule); padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.fgroup { border: 0; padding: 0; margin: 20px 0 0; }
.fgroup legend { font: 600 13px/1.3 var(--f-ui); color: var(--muted); padding: 0; margin-bottom: 10px; }
.fgroup--sort { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r); background: var(--card); font: 600 14px var(--f-ui); }
.opts small { color: var(--muted); margin-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.opts .is-zero span { color: var(--muted); border-style: dashed; }
.opts input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.opts input:checked + span small { color: var(--on-ink-2); }
.opts input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calls { display: grid; gap: 10px; margin-top: 12px; }
.calls a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 16px; border-top: 1px solid var(--rule); text-decoration: none; }
.calls b { display: block; font: 700 18px var(--f-ui); font-variant-numeric: tabular-nums; }
.calls small { color: var(--muted); font-size: 14px; }
.locnote { font-size: 14px; color: var(--muted); margin-top: 10px; }
.formerr { margin: 14px 0 12px; padding: 10px 12px; border-left: 3px solid var(--err); background: var(--card); color: var(--err); font-size: 15px; }
.formerr a { color: inherit; font-weight: 600; }

/* shortlist compare */
.cmp { overflow-x: auto; margin-inline: -22px; padding-inline: 22px; scrollbar-width: thin; }
.cmp table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; font-size: 14px; border-bottom: 1px solid var(--rule); min-width: 150px; max-width: 200px; }
.cmp th[scope="row"] { position: sticky; left: -22px; background: var(--card); color: var(--muted); font: 600 13px var(--f-ui); min-width: 92px; z-index: 1; }
.cmp td img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.cmp td b { font: 700 16px var(--f-ui); }
.cmp .best { color: var(--gold-text); font-weight: 600; }
.cmp a.rm { font-size: 13px; color: var(--muted); }
.cmp__empty { color: var(--muted); padding: 16px 0; }

/* converted price, shown under the rupee asking price */
.fx { display: block; font: 600 14px var(--f-ui); color: var(--ink-2); margin-top: 2px; }
.pd-price .fx { font-size: 16px; }

/* Quick look deck */
.deck { border: 0; padding: 0; margin: 0; position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; overflow: hidden; background: var(--page); color: var(--ink);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); }
.deck[open] { display: grid; }
.deck::backdrop { background: rgba(47, 48, 22, .6); }
.deck__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; background: var(--card); border-bottom: 1px solid var(--rule); }
.deck__bar h2 { font: 700 16px var(--f-ui); }
.deck__stage { position: relative; perspective: 1100px; margin: 14px 16px 0; min-width: 0; min-height: 0; }
@media (min-width: 768px) { .deck__stage { width: min(460px, 90vw); justify-self: center; margin-top: 24px; } }
.dcard { position: absolute; inset: 0; background: var(--card); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: 1fr auto;
  box-shadow: var(--shadow); touch-action: pan-y; user-select: none; cursor: grab; transform-style: preserve-3d; will-change: transform; }
.dcard .card__title { overflow-wrap: anywhere; }
.dcard--under { transform: scale(.95) translateY(10px); box-shadow: none; opacity: .7; pointer-events: none; }
.dcard img { width: 100%; height: 100%; object-fit: cover; min-height: 0; pointer-events: none; }
.dcard__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.dcard__stamp { position: absolute; top: 22px; padding: 6px 12px; border: 3px solid; border-radius: var(--r); font: 700 20px var(--f-ui); opacity: 0; transition: opacity .15s; background: var(--card); }
.dcard__stamp--save { left: 18px; color: var(--gold-text); transform: rotate(-12deg); }
.dcard__stamp--skip { right: 18px; color: var(--muted); transform: rotate(12deg); }
.dcard.is-save .dcard__stamp--save, .dcard.is-skip .dcard__stamp--skip { opacity: 1; }
.deck__hint { text-align: center; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.deck__btns { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 12px 0 calc(18px + env(safe-area-inset-bottom)); }
.deck__b { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; }
.deck__b .icon { width: 26px; height: 26px; }
.deck__b--save { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.deck__b--open { width: auto; padding: 0 22px; height: 48px; border-radius: var(--r); font: 700 15px var(--f-ui); }
.deck__end { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; }

/* property page */
.trail { position: sticky; top: var(--hdr-total, var(--hdr-h)); z-index: 15; background: var(--page); border-bottom: 1px solid var(--rule); }
.trail__row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 52px; }
.trail a.step { width: 48px; height: 48px; display: grid; place-items: center; text-decoration: none; }
.trail a.step[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.trail__mid { text-align: center; font: 600 14px var(--f-ui); line-height: 1.25; text-decoration: none; min-height: 48px; display: grid; align-content: center; }
.trail__mid small { color: var(--gold-text); font-weight: 600; font-size: 13px; }
.pd-top { padding-top: 24px; padding-bottom: 72px; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.gal { position: relative; border-radius: var(--r); overflow: hidden; }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 16 / 9; background: var(--wash); }
.gal__track img { width: 100%; height: 100%; object-fit: cover; }
.gal__n { position: absolute; right: 12px; bottom: 12px; background: var(--ink); color: var(--on-ink); font: 600 13px var(--f-ui); border-radius: var(--r); padding: 5px 10px; }
.gal__save { top: 12px; right: 12px; }
/* share on the photo, under the heart (Sujith, 2 Dec 2026), as well as in the header */
.gal__share { top: 64px; right: 12px; }
.gal__arrow { display: grid; position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); place-items: center; cursor: pointer; box-shadow: var(--shadow-s); }
.gal__arrow--l { left: 14px; } .gal__arrow--r { right: 14px; }
.pd-main { padding-top: 20px; }
.pd-meta { display: flex; gap: 12px; flex-wrap: wrap; font: 600 13px var(--f-ui); color: var(--gold-text); letter-spacing: .02em; }
.pd-price { font: 700 34px/1.15 var(--f-ui); margin-top: 6px; font-variant-numeric: tabular-nums; }
.pd-per { font: 600 14px var(--f-ui); color: var(--muted); }
.pd-title { font: 700 28px/1.2 var(--f-head); margin-top: 10px; letter-spacing: -0.01em; }
.pd-key { display: none; }
.pd-loc { display: flex; gap: 6px; align-items: center; color: var(--muted); margin-top: 10px; font-size: 16px; }
.pd-loc .icon { color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 24px; margin: 24px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 12px 0; display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; align-items: center; border-bottom: 1px solid var(--rule); }
.facts .icon { grid-row: 1 / 3; color: var(--gold); }
.facts dt { font: 600 13px var(--f-ui); color: var(--muted); }
.facts dd { margin: 0; font: 700 16px var(--f-ui); }
.pd-sec { margin-top: 40px; }
.pd-sec h2 { font: 700 22px/1.25 var(--f-head); margin-bottom: 12px; }
.pd-sec p, .pd-sec li { font-size: 17px; }
.pd-sec p + p { margin-top: 12px; }
.pd-sec ul { padding-left: 20px; margin: 0; list-style: disc; }
.near { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.near dt, .near dd { padding: 10px 0; border-top: 1px solid var(--rule); }
.near dd { margin: 0; padding-left: 16px; text-align: right; font: 700 15px var(--f-ui); }
.aside { position: sticky; top: calc(var(--hdr-total, var(--hdr-h)) + 52px + 20px); background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--ink); border-radius: var(--r); padding: 22px; }
.aside .pd-price { font-size: 28px; margin-top: 4px; }
.aside .pd-per { margin-top: 2px; }
.aside .btn { width: 100%; margin-top: 12px; }
.pd-main > .pd-price, .pd-main > .pd-per { display: none; }
.nextcard { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; text-decoration: none; border-top: 1px solid var(--rule); padding: 14px 0; }
.nextcard img { width: 128px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r); }
.nextcard small { color: var(--gold-text); font: 600 13px var(--f-ui); }
.nextcard b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 16px/1.35 var(--f-text); }
.nextcard span { font: 700 17px var(--f-ui); }
.similar { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.similar > * { scroll-snap-align: start; }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--ink); }
.lightbox .gal__track { height: calc(100dvh - 56px); }
.lightbox .gal__track figure { aspect-ratio: auto; height: 100%; background: transparent; }
.lightbox img { object-fit: contain; }
.lightbox__bar { height: 56px; display: flex; justify-content: space-between; align-items: center; color: var(--on-ink); padding: 0 4px 0 16px; font: 600 14px var(--f-ui); }
.lightbox .sheet__x { color: var(--on-ink); }

/* service, hub, Port Desk and List your property pages */
.svc-hero { padding: 56px 0 80px; }
.svc-grid, .list-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
.svc-grid h2, .list-grid h2 { font: 700 32px/1.18 var(--f-head); letter-spacing: -0.01em; }
.svc-grid .steps__line { margin-top: 28px; }
.incl { margin: 28px 0 0; border-bottom: 1px solid var(--rule); border-top: 2px solid var(--ink); }
.incl li { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--rule); }
.incl li:first-child { border-top: 0; }
.incl h3 { font: 700 19px/1.3 var(--f-head); }
.incl h3 a { text-decoration: none; }
.incl h3 a:hover { color: var(--gold-text); }
.incl p { color: var(--ink); font-size: 17px; }
.who { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.who li { border-top: 1px solid var(--rule); padding: 12px 0; font-size: 17px; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 18px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--rule); text-decoration: none; font: 700 18px/1.3 var(--f-head); }
.related a:hover { color: var(--gold-text); }
.related .icon { color: var(--gold); }
.formcard { background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--ink); border-radius: var(--r); padding: 24px; position: sticky; top: calc(var(--hdr-total, var(--hdr-h)) + 24px); }
.formcard h2 { font: 700 24px/1.25 var(--f-head); }
.formcard .lede { font-size: 16px; margin-top: 6px; }
.formcard .btn { width: 100%; margin-top: 18px; }
.formcard--wide { position: static; padding: 32px; }
.list-aside { position: sticky; top: calc(var(--hdr-total, var(--hdr-h)) + 24px); }
.list-aside .steps__line { margin: 24px 0 28px; }
.panel { border-radius: var(--r); padding: 32px; }
.panel--line { background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--ink); }
.panel h2 { font: 700 26px/1.2 var(--f-head); }
.split2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.places { display: grid; gap: 0; margin-top: 16px; }
.places li { border-top: 1px solid var(--rule); padding: 10px 0; }
.places a { font: 700 17px var(--f-ui); text-decoration: none; border-bottom: 2px solid var(--gold); }
.hub-new { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
/* list your property: the steps form */
.step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.step legend { font: 700 24px/1.25 var(--f-head); margin-bottom: 14px; padding: 0; }
.fq { font: 600 13px/1.3 var(--f-ui); color: var(--muted); margin: 22px 0 10px; }
.stepper { display: grid; gap: 8px; font: 600 14px var(--f-ui); color: var(--muted); margin-bottom: 18px; }
.stepper__bar { height: 4px; background: var(--wash); overflow: hidden; }
.stepper__bar span { display: block; height: 100%; background: var(--gold); transition: width .25s ease; }
.stepnav { display: flex; gap: 10px; margin-top: 24px; }
.stepnav .btn { flex: 1; margin: 0; }
.formcard .stepnav .btn { width: auto; }
.upload { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 14px 16px; border: 1px dashed var(--field); border-radius: var(--r); background: var(--card); cursor: pointer; }
.upload .icon { color: var(--gold-text); width: 28px; height: 28px; }
.upload b { font: 700 15px var(--f-ui); color: var(--ink); }
.upload small { color: var(--muted); font-size: 14px; }
.upload:focus-within, input[type="file"]:focus-visible + .upload__list { outline: 2px solid var(--gold-text); }
.upload__list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); list-style: disc; }
html:not(.js) .step { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }

/* privacy, thank you, not sent: a reading page */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 88px; }
.legal .lede { color: var(--ink); }
.legal__sec { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.legal__sec h2 { font: 700 22px/1.25 var(--f-head); margin-bottom: 10px; }
.legal__sec p + p, .legal__sec ul + p, .legal__sec p + ul { margin-top: 10px; }
.legal__sec ul { padding-left: 1.2em; list-style: disc; }
.legal__sec li { margin-top: 8px; line-height: 1.6; }
.legal__sec p { line-height: 1.6; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .btn { text-decoration: none; margin-top: 28px; }

/* ======================================================================== widths */
@media (min-width: 1024px) {
  /* the floating WhatsApp button sits over the right edge: the needs list ends short of it, so a row's caret is never under it */
  .needs__list { margin-right: 152px; }
  .has-aside .wa { display: none; }
}
@media (max-width: 1279px) {
  .where__places { font-size: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid, .list-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Montserrat nav plus the 291px lockup and the Services button: tighter nav and gutters so the header fits from
     1024 (measured with scripts/m4b_check.mjs; rule header-fits-before-breakpoint) */
  :root { --gut: 32px; }
  .hdr { gap: 8px; }
  .hdr__nav { gap: 0; font-size: 14px; }
  .hdr__nav a { padding: 12px 8px; }
  .js .hdr__item > a { padding-right: 0; }
  .hdr__more { width: 20px; }
  .hdr__nav .quiet { margin-left: 6px; padding: 11px 10px; }
  .hdr__cur, .hdr__list { padding: 0 4px; }
  .hdr__logo img { height: 44px; }
}
@media (max-width: 1023px) {
  :root { --hdr-h: 119px; --gut: 16px; }
  .wa { display: none; }
  .bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
         height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--rule); }
  .bar a, .bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--ink); font: 600 12px/1 var(--f-ui); border: 0; border-left: 1px solid var(--rule); background: none; cursor: pointer; padding: 0 2px; text-align: center; }
  .bar > :first-child { border-left: 0; }
  .bar .ic, .bar .icon { width: 22px; height: 22px; }
  .bar [data-save][aria-pressed="true"] { color: var(--gold-text); }
  html { scroll-padding-bottom: calc(var(--bar-h) + 16px); }
  .shortbar { right: 16px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); }

  .hdr { height: auto; flex-wrap: wrap; padding: 0; gap: 0; }
  .hdr__logo { flex: 1; min-width: 0; display: flex; align-items: center; height: 72px; padding: 0 0 0 16px; }
  .hdr__tools { padding-right: 8px; }
  .hdr__nav { order: 3; width: 100%; margin: 0; padding: 0 4px; border-top: 1px solid var(--rule); gap: 0; justify-content: space-between; }
  .hdr__nav a { padding: 15px 9px; flex: none; }
  .hdr__nav .quiet { order: -1; margin: 0; border: 0; padding: 15px 9px; }
  .hdr__more, .hdr__drop { display: none !important; }
  .js .hdr__item > a { padding-right: 12px; }

  .hero { height: auto; min-height: 0; max-height: none; background: var(--page); }
  .hero__pic { position: relative; grid-area: 1 / 1; aspect-ratio: 16 / 10; }
  .hero h1::before, .hero__line::before { content: none; }
  .hero__copy, .hero__words, .hero__text { display: contents; }
  /* the darkening is the H1's own background: it starts 36px above the first line and covers the H1 only */
  .hero h1 { grid-area: 1 / 1; align-self: end; z-index: 2; padding: 36px 16px 18px; font-size: clamp(24px, 7.4cqi, 46px); max-width: 100%;
             background: linear-gradient(to top, rgba(0, 0, 0, var(--sh-h1p)) 0, rgba(0, 0, 0, var(--sh-h1p)) calc(100% - 36px), rgba(0, 0, 0, 0) 100%); }
  .hero__line { grid-row: 2; margin: 0; padding: 18px 16px 0; color: var(--ink); font-size: 18px; max-width: 60ch; }
  .hero__cards { grid-column: 1; grid-row: 3; justify-self: stretch; margin: 16px 16px 0; }
  .lcard { width: auto; box-shadow: none; border: 1px solid var(--rule); display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .hero__tag { right: 12px; top: 12px; }
  .lcard img { height: 100%; aspect-ratio: auto; }
  .lcard__body { padding: 12px 14px 14px; }
  .lcard__title { font-size: 15px; margin-top: 8px; }
  .lcard__price { font-size: 21px; }
  .lcard__go { min-height: 32px; }
  .hero__own { grid-row: 4; justify-self: start; margin: 6px 16px 8px; white-space: normal; line-height: 1.3; min-height: 44px; }

  .sec { padding: 48px 16px 52px; }
  .sec h2, .sec__h { font-size: 27px; }
  .props { padding-top: 40px; }
  .sec__head .textlink { display: none; }
  .filt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 20px; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
  .filt a { justify-content: center; align-items: center; min-height: 44px; padding: 0 6px; margin: 0; border: 0; }
  .filt a + a { border-left: 1px solid var(--ink); }
  .filt .filt__l, .filt span { display: none; }
  .filt .filt__s { display: inline; }
  .filt b { font: 700 14px/1 var(--f-ui); }
  .filt a[aria-pressed="true"] { background: var(--ink); }
  .filt a[aria-pressed="true"] b { color: var(--on-ink); }
  .filt a[aria-pressed="false"] b { color: var(--ink); }
  .lrow { grid-template-columns: 1fr; gap: 0; }
  .lrow a { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--rule); }
  .lrow img { grid-row: 1 / 4; width: 128px; }
  .lrow__ref { margin: 0; padding: 0; border: 0; font-size: 12px; }
  .lrow__title { margin-top: 6px; font-size: 16px; line-height: 1.3; }
  .lrow__price { margin-top: 6px; font-size: 17px; }
  .props__all { display: flex; width: 100%; margin-top: 8px; }

  .owner { grid-template-columns: 1fr; }
  .owner__list, .owner__est { grid-column: 1; grid-row: auto; }
  .owner__list { order: 1; } .owner__est { order: 3; margin-top: 28px; }
  .tool { padding: 18px 16px 20px; }
  .tool h2 { font-size: 23px; }
  .tool .seg label { padding: 10px 8px 12px; }

  .proof { padding-top: 32px; grid-template-columns: 1fr; row-gap: 22px; }
  .revs { grid-template-columns: 1fr; gap: 14px; }
  .rev__txt { -webkit-line-clamp: 5; }
  .gr__score b { font-size: 40px; }

  .needs > h2 { font-size: 30px; margin-bottom: 20px; }
  .need__h button { padding: 20px 0 18px; }
  .need__tab { font-size: 22px; }
  .need__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; font-size: 16px; }
  .need__foot { padding: 20px 0 26px; }

  .steps h2 { margin-bottom: 24px; }
  .steps__line { grid-template-columns: 1fr; gap: 26px; padding: 0 0 0 30px; }
  .steps__line::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .steps__line li::before { top: 5px; left: -30px; background: var(--gold); }
  .steps__line p { max-width: none; }

  .where { padding: 52px 16px 56px; }
  .where__in { grid-template-columns: 1fr; row-gap: 28px; }
  .where h2 { font-size: 27px; }
  .where__head .btn { white-space: normal; text-align: left; height: auto; min-height: 50px; padding: 12px 18px; line-height: 1.3; }
  .where__places { font-size: 21px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }

  .ftr { padding: 44px 16px calc(20px + var(--bar-h) + env(safe-area-inset-bottom)); }
  .ftr__contact { grid-template-columns: 1fr; row-gap: 32px; padding-bottom: 36px; }
  .ftr address { font-size: 24px; }
  .ftr__links { grid-template-columns: 1fr 1fr; row-gap: 28px; padding: 32px 0; }
  .ftr__logo { grid-column: 1 / -1; }

  /* steps line on the home page: draws down as the reader scrolls (armed only by the home script, never with
     reduced motion; with no script, in print or with reduced motion the line stays fully drawn) */
  html.js-steps [data-steps]::before { background: var(--rule); }
  html.js-steps [data-steps]::after { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--gold);
    transform-origin: 50% 0; transform: scaleY(var(--steps-p, 0)); will-change: transform; }
  html.js-steps [data-steps] li { z-index: 1; }
  html.js-steps [data-steps] li::before { background: var(--page); box-shadow: inset 0 0 0 2px var(--rule), 0 0 0 4px var(--page); transition: background-color .25s ease, box-shadow .25s ease; }
  html.js-steps [data-steps] li.is-on::before { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px var(--page); }

  /* banners: the photo whole at a shape chosen for it, the words below it on the ink ground (no darkening needed).
     The shape steps with the browser's height so the H1 ends above the action bar (scripts/measure_phone.py). */
  .bleed { display: block; min-height: 0; }
  .bleed picture { position: static; display: block; }
  .bleed__img { position: relative; inset: auto; display: block; height: auto; aspect-ratio: 3 / 2; object-position: var(--phone-pos, 50% 50%) !important; }
  .bleed__inner { padding: 12px 16px 22px; }   /* the phone sizes measured by scripts/measure_phone.py: the H1 ends above the bar */
  .bleed__copy::before { content: none; }
  .bleed h1 { font-size: 26px; line-height: 1.12; }
  .bleed__copy > p:not(.crumbs) { font-size: 16px; margin-top: 8px; }
  .bleed .crumbs { margin-bottom: 4px; }
  .bleed .bleed__credit { top: 8px; bottom: auto; right: 8px; padding: 2px 6px; }
  .bleed .bleed__credit a { padding: 0; margin: 0; }
  .ptop { padding: 32px 16px 0; }
  .ptop .lede { font-size: 18px; }
  .lst-head { padding-top: 28px; }
  .svcs { grid-template-columns: 1fr; }
  .svcs a { font-size: 18px; min-height: 56px; }
  .two, .office { grid-template-columns: 1fr; row-gap: 12px; }
  .office address { font-size: 23px; }
  .ctc { grid-template-columns: 1fr; padding: 8px 16px 52px; row-gap: 40px; }
  .ctc .tool { position: static; }
  .ctc__acts .btn { white-space: normal; }
  .ctc__nums a { font-size: 20px; }
  .ctc address { font-size: 21px; }
  .svc-hero { padding: 36px 0 52px; }
  .svc-grid, .list-grid, .split2 { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid h2, .list-grid h2 { font-size: 27px; }
  .formcard, .list-aside { position: static; }
  .formcard--wide { padding: 20px 16px; }
  .panel { padding: 24px 20px; }
  .incl li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .pd { grid-template-columns: 1fr; gap: 0; }
  .pd-top { padding-top: 0; padding-inline: 0; }
  .pd-main { padding-inline: 16px; }
  .gal { border-radius: 0; }
  .gal__arrow { display: none; }
  .gal__track figure { aspect-ratio: 4 / 3; }
  .aside { display: none; }
  .pd-main > .pd-price, .pd-main > .pd-per { display: block; }
  .has-aside .wa { display: none; }
  .similar { grid-auto-columns: 46%; }
  .tools__row { flex-wrap: wrap; padding-block: 8px; }
}
@media (min-width: 600px) and (max-width: 1023px) and (orientation: landscape) {
  .hero__pic { aspect-ratio: 2 / 1; }
}
@media (max-width: 767px) {
  .port { display: block; min-height: 0; background: var(--ink); }
  .port__copy::before { content: none; }
  .port__pic, .port__pic img { position: static; height: auto; aspect-ratio: 5 / 2; }
  .port__credit { position: static; display: block; text-align: right; background: none; color: var(--on-ink-2); padding: 8px 16px 0; }
  .port__credit a { padding: 0; margin: 0; }
  .port__copy { padding: 20px 16px 52px; }
  .port h2 { font-size: 30px; }
  .port__copy p { font-size: 17px; margin: 12px 0 22px; max-width: none; }
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .similar { grid-auto-columns: 78%; }
  .who, .related { grid-template-columns: 1fr; }
  .owner-band { grid-template-columns: 1fr; padding: 20px; }
  .owner-band .btn { justify-self: start; }
  .tools__sort { display: none; }
  .fgroup--sort { display: block; }
  .sheet { max-width: 100%; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; max-height: 88dvh; }
  /* property page on a phone: price, deal and reference, title and the key facts on the first screen. The photo
     keeps a shape chosen for it, set by the browser's height (a-phone-photo-gets-a-chosen-shape). */
  .pd-main { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding-top: 12px; }
  .pd-main > * { grid-column: 1 / -1; }
  .pd-main > .pd-price { grid-column: 1; grid-row: 1 / 3; align-self: center; margin-top: 0; font-size: 28px; line-height: 1.15; white-space: nowrap; }
  .pd-main > .pd-meta { grid-column: 2; grid-row: 1; align-self: end; justify-content: flex-end; text-align: right; gap: 0 10px; line-height: 1.3; }
  .pd-main > .pd-per { grid-column: 2; grid-row: 2; align-self: start; text-align: right; line-height: 1.3; }
  .pd-title { font-size: 17px; line-height: 1.3; margin-top: 4px; }
  .pd-key { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 6px; font: 600 14px/1.4 var(--f-ui); color: var(--ink); }
  .pd-key span { display: inline-flex; align-items: center; gap: 4px; }
  .pd-key .icon { color: var(--gold-text); }
  .pd-main > .pd-loc { display: none; }
  .trail__row { height: 44px; }
  .trail a.step, .trail__mid { min-height: 44px; height: 44px; }
}
@media (max-width: 767px) and (max-height: 799px) { .pd .gal__track figure { aspect-ratio: 16 / 9; } }
@media (max-width: 767px) and (max-height: 659px) { .pd .gal__track figure { aspect-ratio: 2 / 1; } }
@media (max-width: 767px) and (max-height: 599px) { .pd .gal__track figure { aspect-ratio: 8 / 3; } }
@media (max-width: 1023px) and (max-height: 799px) { .bleed__img { aspect-ratio: 16 / 9; } }
@media (max-width: 1023px) and (max-height: 659px) { .bleed__img { aspect-ratio: 2 / 1; } }
@media (max-width: 1023px) and (max-height: 599px) {
  .bleed__img { aspect-ratio: 5 / 2; }     /* a house needs this much height to stay whole */
  .bleed--port .bleed__img { aspect-ratio: 3 / 1; }    /* the port file is a panorama already */
}
@media (max-width: 599px) {
  .hero__pic { aspect-ratio: 5 / 4; }
}
/* short phone screens: the 2:1 crop (same queries as the picture sources in build.py, HERO_SHORT) */
@media (max-width: 599px) and (max-height: 560px), (min-width: 400px) and (max-width: 599px) and (max-height: 640px), (min-width: 480px) and (max-width: 599px) and (max-height: 720px) {
  .hero__pic { aspect-ratio: 2 / 1; }
}
@media (max-width: 599px) {
  /* phone header (Sujith, 1 Dec 2026): row one is the logo with currency and the shortlist heart beside it; row two
     is one segmented control across the width (Properties, Services, Port Desk, About; the current page filled).
     Contact and List your property leave the row (the action bar's Enquire, the footer and the home link carry them). */
  :root { --hdr-h: 100px; }
  .hdr__tools { display: contents; }
  .hdr__logo { flex: 1 1 auto; height: 52px; border-bottom: 1px solid var(--rule); }
  .hdr__cur { order: 2; height: 52px; min-width: 44px; padding: 0; justify-content: center; border-bottom: 1px solid var(--rule); border-radius: 0; font: 600 14px/1 var(--f-ui); box-sizing: content-box; }
  .hdr__cur .ic { display: none; }
  .hdr__list { order: 3; width: 44px; height: 52px; padding: 0 6px 0 0; justify-content: center; border-bottom: 1px solid var(--rule); box-sizing: content-box; }
  .hdr__list .hdr__badge { right: 12px; }
  .hdr__nav { order: 4; flex: 1 1 100%; width: 100%; justify-content: stretch; padding: 0 16px; height: 46px; border-top: 0; }
  .hdr__nav > a, .hdr__item { flex: 1 1 auto; }
  .hdr__nav { border-bottom: 1px solid var(--rule); }
  .hdr__nav > a, .hdr__item > a { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 10px; border: 0; box-shadow: none; }
  .hdr__item > a { width: 100%; }
  .js .hdr__item > a { padding-right: 10px; }
  .hdr__nav > a[aria-current="page"], .hdr__item > a[aria-current="page"] { color: var(--gold-text); box-shadow: inset 0 -2px 0 var(--gold); }
  .hdr__nav > a[href="/contact/"], .hdr__nav .quiet { display: none; }
  .hero__own { display: inline-flex; }
}
@media (max-width: 399px) {
  .where__places { font-size: 18px; }
  .hdr__nav { font-size: 14px; padding: 0 12px; }
  .hdr__nav > a, .hdr__item > a, .js .hdr__item > a { padding: 0 6px; }
  .hdr__logo { padding-left: 12px; }
  .hdr__logo img { height: 44px; }   /* the logo, the currency code and the heart share one row */
  .hdr__cur-code { display: none; }
  /* five property types on one row in the owner boxes (Commercial never wraps on its own) */
  .tool .seg label { padding: 10px 6px 12px; font-size: 14px; }
}
@media (max-width: 374px) {
  .hdr__logo { padding-left: 10px; }
  .hdr__logo img { height: 42px; }   /* 360px: logo, currency and heart on one row (measured) */
}
@media (max-width: 359px) {
  .hdr__logo { padding-left: 8px; }
  .hdr__logo img { height: 36px; }   /* 320px phones only: the logo, currency and heart still share one row */
  .hdr__list { padding-right: 2px; }
  .hdr__nav { font-size: 13px; padding: 0 8px; }
  .hdr__nav > a, .hdr__item > a, .js .hdr__item > a { padding: 0 4px; }
}
@media (max-width: 479px) {
  .types__list { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .types__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .types__name { font-size: 19px; }
}
@media (max-width: 479px) { .types__list { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .ctc__acts .btn, .office__acts .btn, .acts .btn { width: 100%; } }
@media print {
  html.js-steps [data-steps]::after { transform: none; }
  html.js-steps [data-steps] li::before { background: var(--gold); box-shadow: none; transition: none; }
  .hdr, .tools, .trail { position: static; } .bar, .wa { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .gal__track, .similar, .active { scroll-behavior: smooth; }
  .hdr__more .icon { transition: transform .15s ease; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Review round 1 Dec 2026 (Expatserv's comments on the preview) */
/* home: What Happens Next beside the List your property box (d33019fe) */
.owner__next { grid-column: 2; grid-row: 1; }
.owner__next h2 { margin: 0 0 24px; font: 700 24px/1.25 var(--f-head); }
.owner__next .steps__line { margin: 0 0 8px; }
.owner .steps__line--down li::before { box-shadow: 0 0 0 4px var(--wash); }
/* home: the estimate box in its own section, away from the listing box (7461f6da) */
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
.est__box { display: flex; flex-direction: column; }
.est__why p { margin: 0; max-width: 34ch; font: 400 20px/1.5 var(--f-text); }
/* Where We Work: the areas with the most listings, each a link with its count */
.where__places--top a { display: block; color: inherit; text-decoration: none; }
.where__places--top a:hover { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 6px; }
.where__places--top span { display: block; margin-top: 6px; font: 400 16px/1.3 var(--f-text); color: var(--sand); letter-spacing: 0; }
/* properties: Quick look is for phones (6cb3c370); thumbnails zoom under the pointer (4138dca1) */
@media (min-width: 768px) { .tbtn--phone { display: none; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card__img img, .lrow img { transition: transform .4s ease; }
  .card__link:hover .card__img img { transform: scale(1.06); }
  .lrow a { overflow: hidden; }
  .lrow a:hover img { transform: scale(1.04); }
}
.lrow a > img, .lrow a picture { display: block; }
/* Contact: the registered office */
.ctc__reg { margin: 24px 0 6px; font: 600 15px/1.3 var(--f-ui); }
/* WhatsApp in its own green on the icon (b1776dad, d6ae2781); the button stays in Expatserv's ink */
.ic--wa, .btn--wa .ic { color: #25D366; }
.btn--wa { background: var(--ink); color: var(--on-ink); font-size: 17px; }
.waway { margin: 0 0 24px; }
.waway__or { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; font: 600 14px/1 var(--f-ui); color: var(--muted); }
.waway__or::before, .waway__or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
@media (max-width: 1023px) {
  .owner__next { grid-column: 1; grid-row: auto; order: 2; margin-top: 36px; }
  .est { grid-template-columns: 1fr; row-gap: 20px; }
  .est__why { order: -1; }
}
.ftr__nums small { margin-left: 8px; font: 600 13px/1 var(--f-ui); color: var(--muted); }
.whoweare p { margin: 0 0 16px; max-width: 62ch; font: 400 19px/1.6 var(--f-text); }
.whoweare p:last-child { margin-bottom: 0; }
.svc-about p { margin: 0 0 16px; max-width: 62ch; font: 400 19px/1.6 var(--f-text); }
.svc-incl-h { margin: 40px 0 20px; }
/* header share (every page) */
.hdr__share { cursor: pointer; }
.hdr__share:hover { color: var(--gold-text); }
.hdr__tools { position: relative; }
.hdr__said { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; padding: 8px 12px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font: 600 13px/1 var(--f-ui); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hdr__said:empty { padding: 0; }
.hdr__said.is-on { opacity: 1; }
@media (max-width: 1023px) { .hdr__share { padding: 0 4px; } }
@media (max-width: 599px) {
  .hdr__share { order: 2; width: 44px; height: 52px; padding: 0; border-bottom: 1px solid var(--rule); box-sizing: content-box; }
  .hdr__said { position: fixed; top: auto; bottom: 84px; left: 50%; right: auto; transform: translateX(-50%); }
}
/* With the share button the phone's first row holds the logo and three 44px buttons (currency symbol, share, heart).
   The currency code goes below 600px, and the logo takes the width that is left, up to 48px tall (measured from
   320 to 599px: one row at every width). */
@media (max-width: 599px) {
  .hdr__cur-code { display: none; }
  .hdr__cur { width: 44px; }
  .hdr__logo { min-width: 0; display: flex; align-items: center; }
  .hdr__logo img, .hdr__logo img[width] { height: auto; width: 100%; max-width: 291px; max-height: 48px; }
}
/* 1024 to 1179px: the desktop nav and four tools are 17px too wide at 1024 (measured), so the links sit closer */
@media (min-width: 1024px) and (max-width: 1179px) {
  .hdr__nav a { padding: 12px 9px; }
  .hdr__nav .quiet { margin-left: 6px; padding: 11px 12px; }
}
@media (max-width: 599px) { .hdr__logo { flex: 1 1 0; } }
@media (min-width: 1024px) and (max-width: 1179px) {
  .hdr__logo img { height: 42px; }
  .hdr__cur-code { display: none; }
  .hdr__cur, .hdr__share, .hdr__list { padding: 0 4px; }
}
/* WhatsApp in its own green on a white round (Expatserv, 1 Dec 2026) */
.card__wa .icon, .card__wa .ic { color: #25D366; }
.gal__wa { top: auto; bottom: 12px; right: auto; left: 12px; width: 52px; height: 52px; }
.gal__wa .icon, .gal__wa .ic { width: 28px; height: 28px; }
.wa .ic--wa { box-sizing: content-box; width: 22px; height: 22px; padding: 6px; margin-left: -10px; border-radius: 50%; background: #fff; color: #25D366; }
/* footer: About, Contact and Privacy are a column; the base line has the copyright and the credit, clear of the WhatsApp button (Sujith, 2 Dec 2026) */
.ftr__base { justify-content: flex-start; column-gap: 32px; }
.ftr__credit a { text-decoration: underline; }
.ftr__links .ftr__link { min-height: 44px; font: 400 16px/1.4 var(--f-text); text-decoration: none; }
@media (min-width: 1024px) { .ftr { padding-bottom: 96px; } }
.tool__free { margin: -4px 0 16px; font: 600 15px/1.4 var(--f-ui); color: var(--gold-text); }
/* services as a row of icons (Expatserv, 2 Dec 2026). Sujith, 2 Dec: six arrows were too many, so
   three columns of two, left-aligned, the icon beside the name, a rule above each, and the arrow
   only on hover or keyboard focus. The whole block is the link. */
.svcrow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
.svcrow li { border-top: 1px solid var(--rule); }
.svcrow a { display: grid; grid-template-columns: 32px 1fr 22px; grid-template-areas: "ic t go" ". p p"; column-gap: 16px; row-gap: 6px; align-items: center; align-content: start; height: 100%; padding: 28px 0 32px; text-align: left; text-decoration: none; color: var(--ink); box-sizing: border-box; }
.svcrow a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.svcrow__ic { grid-area: ic; width: 32px; height: 32px; color: var(--gold-text); }
.svcrow h3 { grid-area: t; margin: 0; font: 600 20px/1.3 var(--f-head); }
.svcrow p { grid-area: p; margin: 0; font: 400 15px/1.5 var(--f-text); color: var(--muted); }
.svcrow__go { grid-area: go; width: 22px; height: 22px; color: var(--gold-text); opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s; }
.svcrow a:hover h3, .svcrow a:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.svcrow a:hover .svcrow__go, .svcrow a:focus-visible .svcrow__go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .svcrow__go { transition: none; } }
@media (max-width: 1023px) { .svcrow { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (max-width: 599px) {
  .svcrow { grid-template-columns: 1fr; }
  .svcrow a { padding: 20px 0 22px; grid-template-columns: 28px 1fr 22px; column-gap: 14px; }
  .svcrow__ic { width: 28px; height: 28px; }
  .svcrow h3 { font-size: 18px; }
}
/* property page: feed details (2 Dec 2026) */
.near dt { display: flex; gap: 10px; align-items: flex-start; }
.near dt .icon { flex: none; margin-top: 2px; color: var(--gold-text); }
.near dt span { display: flex; flex-direction: column; }
.near dt small { font: 500 13px/1.4 var(--f-ui); color: var(--muted); }
.near dd { white-space: nowrap; }
.near__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.near__note a { color: inherit; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.vid { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink); text-decoration: none; font: 600 15px/1.35 var(--f-ui); }
.vid:hover, .vid:focus-visible { border-color: var(--gold-text); }
.vid__play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.vid__play svg { width: 18px; height: 18px; }
.vid--on { display: block; padding: 0; border: 0; grid-column: 1 / -1; aspect-ratio: 16 / 9; min-height: 0; }
.vid--on iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r); }
